heartbeat-vl.spec 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375
  1. %define ENABLE_SNMP_SUBAGENT 0
  2. %define ENABLE_MGMT 1
  3. %define uid 24
  4. %define gname haclient
  5. %define uname hacluster
  6. Summary: Heartbeat subsystem for High-Availability Linux
  7. Summary(ja): 高可用性 Linux のための HeartBeat サブシステム
  8. Name: heartbeat
  9. Version: 2.0.8
  10. Release: 5%{_dist_release}
  11. Group: System Environment/Daemons
  12. License: GPL/LGPL
  13. URL: http://linux-ha.org/
  14. Source0: http://linux-ha.org/download/%{name}-%{version}.tar.gz
  15. Patch0: heartbeat-fedora-pam.patch
  16. Patch1: heartbeat-fedora-chkconfig.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: glib2-devel
  19. BuildRequires: iputils
  20. BuildRequires: libnet-devel
  21. BuildRequires: libtool-ltdl-devel
  22. BuildRequires: net-snmp-devel
  23. BuildRequires: bzip2-devel
  24. BuildRequires: ncurses-devel
  25. %if %{ENABLE_MGMT}
  26. BuildRequires: gnutls-devel > 2
  27. BuildRequires: pam-devel
  28. BuildRequires: python-devel
  29. BuildRequires: swig
  30. BuildRequires: curl-devel
  31. %endif
  32. Requires: stonith = %{version}-%{release}
  33. Requires: pils = %{version}-%{release}
  34. Requires: ldirectord = %{version}-%{release}
  35. Requires: pygtk2 >= 2.4
  36. Requires(post): /sbin/chkconfig
  37. Requires(preun): /sbin/chkconfig
  38. %if %{ENABLE_MGMT}
  39. Requires: gettext
  40. %endif
  41. %description
  42. heartbeat is a basic high-availability subsystem for Linux-HA.
  43. It will run scripts at initialization, and when machines go up or down.
  44. This version will also perform IP address takeover using gratuitous ARPs.
  45. It supports "n-node" clusters with significant capabilities for managing
  46. resources and dependencies.
  47. In addition it continues to support the older release 1 style of
  48. 2-node clustering.
  49. It implements the following kinds of heartbeats:
  50. - Serial ports
  51. - UDP/IP multicast (ethernet, etc)
  52. - UDP/IP broadcast (ethernet, etc)
  53. - UDP/IP heartbeats
  54. - "ping" heartbeats (for routers, switches, etc.)
  55. (to be used for breaking ties in 2-node systems)
  56. %package -n ldirectord
  57. Summary: Monitor daemon for maintaining high availability resources
  58. Summary(ja): 高可用リソースを管理するための監視デーモン
  59. Group: System Environment/Daemons
  60. Requires: ipvsadm
  61. Requires: %{name} = %{version}
  62. Requires(post): /sbin/chkconfig
  63. Requires(preun): /sbin/chkconfig
  64. %description -n ldirectord
  65. ldirectord is a stand-alone daemon to monitor services of real
  66. for virtual services provided by The Linux Virtual Server
  67. (http://www.linuxvirtualserver.org/). It is simple to install
  68. and works with the heartbeat code (http://www.linux-ha.org/).
  69. %package -n stonith
  70. Summary: Provides an interface to Shoot The Other Node In The Head
  71. Group: System Environment/Daemons
  72. Requires: pils = %{version}-%{release}
  73. %description -n stonith
  74. The STONITH module (a.k.a. STOMITH) provides an extensible interface
  75. for remotely powering down a node in the cluster. The idea is quite simple:
  76. When the software running on one machine wants to make sure another
  77. machine in the cluster is not using a resource, pull the plug on the other
  78. machine. It's simple and reliable, albeit admittedly brutal.
  79. #'
  80. %package -n pils
  81. Summary: Provides a general plugin and interface loading library
  82. Group: System Environment/Daemons
  83. %description -n pils
  84. PILS is an generalized and portable open source Plugin and Interface Loading
  85. System. PILS was developed as part of the Open Cluster Framework reference
  86. implementation, and is designed to be directly usable by a wide variety of
  87. other applications.
  88. PILS manages both plugins (loadable objects), and the interfaces these plugins
  89. implement. PILS is designed to support any number of plugins implementing any
  90. number of interfaces.
  91. %package devel
  92. Summary: Heartbeat development package
  93. Summary(ja): Heartbeat 開発パッケージ
  94. Group: Development/Libraries
  95. Requires: heartbeat = %{version}-%{release}
  96. %description devel
  97. Heartbeat development package
  98. %prep
  99. %setup -q
  100. %patch0 -p1
  101. %patch1 -p1
  102. %build
  103. # disable-fatal-warnings flag used to disable gcc4.x warnings of 'difference in signedness'
  104. CFLAGS=${RPM_OPT_FLAGS} \
  105. %configure \
  106. --disable-fatal-warnings \
  107. --disable-static \
  108. %if %{ENABLE_MGMT}
  109. --enable-mgmt
  110. %else
  111. --disable-mgmt
  112. %endif
  113. make
  114. %install
  115. rm -rf $RPM_BUILD_ROOT
  116. mkdir -p $RPM_BUILD_ROOT
  117. make DESTDIR=$RPM_BUILD_ROOT install
  118. (
  119. cd $RPM_BUILD_ROOT/etc/ha.d/resource.d
  120. ln -s /usr/sbin/ldirectord ldirectord
  121. )
  122. mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/ha.d/conf
  123. # cleanup
  124. [ -d $RPM_BUILD_ROOT/usr/man ] && rm -rf $RPM_BUILD_ROOT/usr/man
  125. [ -d $RPM_BUILD_ROOT/usr/share/libtool ] && rm -rf $RPM_BUILD_ROOT/usr/share/libtool
  126. find $RPM_BUILD_ROOT -type f -name *.la -exec rm -f {} ';'
  127. sed -i -e '1i# -*-Shell-script-*-' $RPM_BUILD_ROOT/%{_libdir}/heartbeat/ocf-shellfuncs
  128. sed -i -e '1i# -*-Shell-script-*-' $RPM_BUILD_ROOT/%{_sysconfdir}/ha.d/shellfuncs
  129. chmod -x $RPM_BUILD_ROOT/%{_libdir}/heartbeat/ocf-shellfuncs
  130. chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/ha.d/shellfuncs
  131. chmod -x $RPM_BUILD_ROOT/%{_libdir}/heartbeat-gui/pymgmt.py
  132. %clean
  133. if [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]; then
  134. rm -rf $RPM_BUILD_ROOT
  135. fi
  136. %pre
  137. /usr/sbin/groupadd -g %{uid} %{gname} &>/dev/null || :
  138. /usr/sbin/useradd -M -r -u %{uid} -s /sbin/nologin -d /var/lib/heartbeat/cores/hacluster \
  139. -c 'heartbeat user' -g %{gname} %{uname} &>/dev/null || :
  140. %post
  141. /sbin/ldconfig
  142. /sbin/chkconfig --add heartbeat
  143. %preun
  144. /sbin/chkconfig --del heartbeat
  145. %postun
  146. /sbin/ldconfig
  147. test "$1" != 0 || /usr/sbin/userdel %{uname} &>/dev/null || :
  148. test "$1" != 0 || /usr/sbin/groupdel %{gname} &>/dev/null || :
  149. %post -n ldirectord
  150. /sbin/chkconfig --add ldirectord
  151. %preun -n ldirectord
  152. /sbin/chkconfig --del ldirectord
  153. %post -n stonith -p /sbin/ldconfig
  154. %postun -n stonith -p /sbin/ldconfig
  155. %files
  156. %doc %{_datadir}/doc/%{name}-%{version}
  157. %defattr(-,root,root)
  158. %dir %{_sysconfdir}/ha.d
  159. %{_sysconfdir}/ha.d/harc
  160. %config(noreplace) %{_sysconfdir}/ha.d/shellfuncs
  161. %{_sysconfdir}/ha.d/rc.d
  162. %config(noreplace) %{_sysconfdir}/ha.d/README.config
  163. %{_libdir}/heartbeat
  164. %{_libdir}/heartbeat-gui
  165. %{_libdir}/libapphb.so.*
  166. %{_libdir}/libccmclient.so.*
  167. %{_libdir}/libcib.so.*
  168. %{_libdir}/libclm.so.*
  169. %{_libdir}/libcrmcommon.so.*
  170. %{_libdir}/libtransitioner.so.*
  171. %{_libdir}/libhbclient.so.*
  172. %{_libdir}/liblrm.so.*
  173. %{_libdir}/libpengine.so.*
  174. %{_libdir}/libplumb.so.*
  175. %{_libdir}/libplumbgpl.so.*
  176. %{_libdir}/librecoverymgr.so.*
  177. %{_libdir}/libstonithd.so.*
  178. %{_prefix}/lib/ocf
  179. %{_sysconfdir}/ha.d/resource.d/
  180. %exclude %{_sysconfdir}/ha.d/resource.d/ldirectord
  181. %{_sysconfdir}/init.d/heartbeat
  182. %config(noreplace) %{_sysconfdir}/logrotate.d/heartbeat
  183. %dir %{_var}/lib/heartbeat
  184. %dir %{_var}/lib/heartbeat/cores
  185. %dir %attr (0755, root, root) %{_var}/lib/heartbeat/cores/root
  186. %dir %attr (0755, nobody, nobody) %{_var}/lib/heartbeat/cores/nobody
  187. %dir %attr (0755, hacluster, haclient) %{_var}/lib/heartbeat/cores/hacluster
  188. %dir %{_var}/run/heartbeat
  189. %attr (0755, hacluster, haclient) %{_bindir}/cl_status
  190. %{_bindir}/cl_respawn
  191. %{_sbindir}/crmadmin
  192. %{_sbindir}/cibadmin
  193. %{_sbindir}/ccm_tool
  194. %{_sbindir}/crm_diff
  195. %{_sbindir}/crm_uuid
  196. %{_sbindir}/crm_mon
  197. %{_sbindir}/crm_sh
  198. %{_sbindir}/iso8601
  199. %{_sbindir}/crm_master
  200. %{_sbindir}/crm_standby
  201. %{_sbindir}/crm_attribute
  202. %{_sbindir}/crm_resource
  203. %{_sbindir}/crm_verify
  204. %{_sbindir}/attrd_updater
  205. %{_sbindir}/crm_failcount
  206. %{_sbindir}/ocf-tester
  207. %dir %attr (755, hacluster, haclient) %{_var}/run/heartbeat/ccm
  208. %dir %attr (755, hacluster, haclient) %{_var}/run/heartbeat/crm
  209. %dir %attr (755, hacluster, haclient) %{_var}/lib/heartbeat/crm
  210. %dir %attr (755, hacluster, haclient) %{_var}/lib/heartbeat/pengine
  211. %{_mandir}/man1/cl_status.1*
  212. %{_mandir}/man1/ha_logger.1*
  213. %{_mandir}/man1/hb_standby.1*
  214. %{_mandir}/man1/hb_takeover.1*
  215. %{_mandir}/man1/hb_addnode.1*
  216. %{_mandir}/man1/hb_delnode.1*
  217. %{_mandir}/man8/heartbeat.8*
  218. %{_mandir}/man8/apphbd.8*
  219. %{_mandir}/man8/ha_logd.8*
  220. %{_mandir}/man8/cibadmin.8*
  221. %{_mandir}/man8/crm_resource.8*
  222. %if %{ENABLE_SNMP_SUBAGENT}
  223. /LINUX-HA-MIB.mib
  224. %endif
  225. %if %{ENABLE_MGMT}
  226. %{_libdir}/libhbmgmt.so.*
  227. %{_libdir}/libhbmgmtclient.so.*
  228. %{_libdir}/libhbmgmtcommon.so.*
  229. %{_libdir}/libhbmgmttls.so.*
  230. %config(noreplace) %{_sysconfdir}/pam.d/hbmgmtd
  231. %{_datadir}/locale/zh_CN/LC_MESSAGES/haclient.mo
  232. %endif
  233. %files -n ldirectord
  234. %doc doc/COPYING
  235. %doc doc/README
  236. %doc ldirectord/ldirectord.cf
  237. %defattr(-,root,root)
  238. %{_sysconfdir}/ha.d/conf
  239. %{_sbindir}/ldirectord
  240. %{_sbindir}/supervise-ldirectord-config
  241. %config(noreplace) %{_sysconfdir}/logrotate.d/ldirectord
  242. %{_sysconfdir}/init.d/ldirectord
  243. %{_sysconfdir}/ha.d/resource.d/ldirectord
  244. %{_mandir}/man8/ldirectord.8*
  245. %{_mandir}/man8/supervise-ldirectord-config.8*
  246. %files -n stonith
  247. %doc doc/COPYING
  248. %doc doc/README
  249. %defattr(-,root,root)
  250. %{_libdir}/*.so.*
  251. %{_libdir}/stonith/
  252. %{_sbindir}/stonith
  253. %{_sbindir}/meatclient
  254. %{_mandir}/man8/stonith.8*
  255. %{_mandir}/man8/meatclient.8*
  256. %files -n pils
  257. %doc doc/COPYING
  258. %doc doc/README
  259. %defattr(-,root,root)
  260. /usr/include/pils
  261. %{_libdir}/libpils.*
  262. %{_libdir}/pils/
  263. %files devel
  264. %doc %{_datadir}/doc/%{name}-%{version}
  265. %defattr(-,root,root)
  266. %{_includedir}/heartbeat/
  267. %{_includedir}/clplumbing/
  268. %{_includedir}/saf/
  269. %{_includedir}/ocf/
  270. %{_includedir}/stonith/
  271. %{_includedir}/pils/
  272. %{_libdir}/*.so
  273. %changelog
  274. * Sun Oct 3 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.8-5
  275. - rebuilt with new toolchain
  276. * Sun May 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.8-4
  277. - spec in UTF-8
  278. - changed devel Group to Development/Libraries
  279. * Tue May 05 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.8-3
  280. - new versioning policy
  281. - rebuild with gnutls 2.6.6, libtool 2.2.6 and curl 7.19.4
  282. - add BuildRequires: curl-devel
  283. * Sun Jan 06 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.8-0vl2
  284. - rebuilt with net-snmp-5.4.1
  285. * Sat May 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-0vl1
  286. - new upstream release
  287. - build with new environment
  288. * Mon Oct 30 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.7-0vl2
  289. - rebuild with gnutls-1.4
  290. - add Japanese summaries
  291. * Mon Oct 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.7-0vl1
  292. - initial build for Vine Linux based on FE package.
  293. * Wed Aug 30 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.7-2
  294. - rebuild for Fedora Extras 6
  295. * Wed Aug 16 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.7-1
  296. - upstream version 2.0.7
  297. * Sat Jul 15 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.6-2
  298. - added BuildReqs: ncurses-devel
  299. * Fri Jul 14 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.6-1
  300. - upstream version 2.0.6
  301. * Fri Jun 16 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.5-2
  302. - bump for gnutls change in devel
  303. * Thu Apr 27 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.5-1
  304. - upstream version 2.0.5
  305. - removed patch2 - ownership of /heartbeat/crm/cib.xml is no longer
  306. set in cts/CM_LinuxHAv2.py.in
  307. * Wed Mar 29 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.4-2
  308. - Version 2.0.4
  309. * Wed Mar 1 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-9
  310. - changed user creation
  311. - added patch2 heartbeat-2.0.3-fedora-ccmuser.patch
  312. * Wed Mar 1 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-8
  313. - specifically excluded ldirectord symlink from heartbeat package
  314. - removed user and group deletion in postun
  315. - renamed subpackages ldirectord, pils and stonith to lose prefix heartbeat
  316. by using -n
  317. * Tue Feb 28 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-7
  318. - fixed more rpmlint errors and warnings
  319. * Sat Feb 25 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-6
  320. - fixed number of rpmlint warnings and errors (still ignores some..)
  321. - generate 'predictable' uid and gid with fedora-usermgmt to use with
  322. configure flag -with-ccmuser-id and groupadd, useradd
  323. - added Buildreq's: libtool-ltdl-devel, fedora-usermgmt-setup
  324. net-snmp-devel, bzip2-devel
  325. - removed *.so duplication in heartbeat and heartbeat-devel
  326. - changed file sections
  327. * Fri Feb 24 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-5
  328. - useradd with fedora-usermgmt
  329. - added *.so file to -devel sub-package
  330. * Sat Feb 18 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-4
  331. - removed all perl requires; should be picked up by rpmbuild automagically
  332. - changed system user creation hacluster part to use baseid:
  333. (http://fedoraproject.org/wiki/Packaging/UserCreation)
  334. * Thu Feb 16 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-3
  335. - removed Requires: python and gnutls
  336. - changed _libdir/ocf -> _prefix/lib/ocf
  337. - reversed subpackages depend on basepackage
  338. - removed Req swig (kept BuildReq)
  339. - added Req pygtk2
  340. * Wed Feb 15 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-2
  341. - fixes for various rpmlint errors and warnings
  342. - fixed setup -q
  343. - make subpackages depend on basepackage, not reverse
  344. - clean buildroot at beginning of install
  345. - replaced a number of hardcoded paths with RPM macros
  346. - Changed Group from Networking/Daemons to System Environment/Daemons
  347. - enable mgmt option
  348. * Sun Feb 12 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 2.0.3-1
  349. - rebuilt for Fedora Extras
  350. * Fri Feb 10 2006 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  351. + Version 2.0.3 - Bug fixes and significant new features.
  352. + Management Daemon/Library and GUI client
  353. + provide a management library for manamgement daemon and CIM provider
  354. + provide a management daemon and a basic GUI management tool
  355. + CIM enablement
  356. + CIM (Common Information Model) enablement - works with
  357. sblim-sfcb, OpenWBEM, and Pegasus CIMOMs
  358. - not yet compiled into our binary RPMs because of dependencies
  359. + CRM (Cluster Resource Manager) General
  360. + All shutdowns go via the PE/TE - preserves inter-resource ordering
  361. + Support for future changes to the CIB (depreciation of cib_fragment)
  362. + Overhaul of IPC and HA channel callback logic
  363. + Many improvments to the quality and quantity (reduced) of logging
  364. + CRMd
  365. + Timerless elections - when everyone has voted we're done
  366. + Use the replace notification from the CIB to re-update our copy with
  367. our view of our peers.
  368. + Reliably detect if the LRM connection is still active.
  369. + Elections
  370. + newer versions defer to older ones in DC elections
  371. (opposite of current behavior)
  372. + this means that only once the complete cluster has been upgraded will
  373. we start acting like the new version and accept new config options
  374. + it also means newer PE's and TE's (the most complex pieces) don't need
  375. "act like the old version" options and can rely on all slaves being at
  376. least as up-to-date as they are
  377. + people can run mixed clusters as long as they want
  378. (until they want the new PE features)
  379. + new DCs only update the version number in the CIB if they have a
  380. higher value
  381. + nodes that start and have a lower version than that stored in the CIB
  382. shut themselves down (the CRM part anyway)
  383. + this prevents an admin from introducing old nodes back into an upgraded
  384. cluster. It probably doesn't fully understand the config and may not
  385. support the actions the PE/TE requires.
  386. + CIB (Common Information Base daemon)
  387. + Make sure "query only" connections cant modify the CIB
  388. + Periodically dump some stats about what the CIB has been doing.
  389. + Verify there are no memory leaks
  390. + Performance enhancements
  391. + Prevent a single CIB client from blocking everyone else
  392. + Clients Can be notified of full CIB replacements
  393. + record_config_changes option in ha.cf for those worried about
  394. the amount of logging. Defaults to "on".
  395. + suppress_cib_writes CIB option replaced with in enable_config_writes ha.cf
  396. (enable_config_writes to be removed in 2.0.4)
  397. + Never write the status section to disk
  398. + Check permissions for the on-disk CIB at startup
  399. + Dont trash unreadable on-disk CIBs
  400. + Fix for updates made against the whole CIB (not just one section)
  401. + PEngine (Policy Engine)
  402. + Many improvements to the handling of resource groups
  403. + Support "anonymous" clones
  404. + Fix stonith ordering
  405. + Order DC shutdowns after everyone else's
  406. + Support short resource names (for group and clone resources)
  407. + The ordering and colocation of grouped resources is now optional
  408. + Support probing new nodes for active resources.
  409. + All "probe" actions are controlled by the PE.
  410. + No resource may be started until the probing is complete.
  411. + Do not probe for resources we know to be active on unprobed nodes
  412. + When looking for monitor ops, only mark it optional if it was already
  413. active on the node we're interested in.
  414. + Detect changes to class/type/provider/parameters and force a restart
  415. of the resource
  416. + New record_pengine_inputs option in ha.cf for those worried about
  417. the amount of logging. Defaults to "on".
  418. + Differentiate between config and processing errors
  419. + reduces the frequency that we need to log the complete CIB
  420. + Make notify for master/slave work
  421. + New CIB option: stop_orphan_actions (boolean)
  422. If a resource is no longer defined, we can optionally stop it
  423. + New CIB option: stop_orphan_actions (boolean)
  424. If a monitor op for a given interval is no longer defined, we can
  425. optionally stop it
  426. + Add support for time and phase-of-the-moon based constraints
  427. + Improved failure handling: avoiding false positives
  428. + Always create orphaned resources - so they show up in crm_mon
  429. + Do not require sequential clone numbers starting at 0
  430. + TEngine (transition engine)
  431. + Detect old stonith ops
  432. + CLIs (Command Line interfaces)
  433. + Create a --one-shot option for crm_mon
  434. + Switch a number of CLI tools to use the new syncronous connections
  435. + Log errors to stderr where they will be seen and therefore useful
  436. + Support migration and un-migration of resources and resource groups
  437. + Create crm_verify for checking configuration validity
  438. + Simplify the passing of XML to cibadmin
  439. + Known open bugs worth mentioning:
  440. + 1075, 1080, 1081, 1084, 1085, 1064, 1069, 756, 984
  441. + 1050, 1082, 1037, 1079
  442. * Thu Sep 22 2005 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  443. + Version 2.0.2 - small bug fix only release
  444. + Fixed a bug in ping directive - it works again
  445. + Added a check to BasicSanityCheck to check ping and ping_group directives
  446. + fixed cl_status nodestatus to return 0 if a node has status "ping"
  447. + fixed a memory leak in the CRM's LRM interface code
  448. + fixed code which deterimines which version of the CRM becomes
  449. the DC when basic CIB schema versions differ. It now prefers
  450. the older version to be DC instead of the newer version.
  451. * Wed Sep 14 2005 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  452. + Version 2.0.1 -
  453. + Communication Layer
  454. + netstring encoding format is changed to be more efficient
  455. + add compression capability for big messages
  456. + Add man pages for hb_standby/hb_takeover
  457. + The assert triggered by 2.0.0 has been fixed
  458. + CIB can now contain XML comments and/or be in DOS format
  459. + Includes implementation of the ISO8601 date format
  460. + New CLI tools for changing cluster preferences, node attributes
  461. and node standby
  462. + Improved recovery and placement of group resources
  463. + Detection of failed nodes by the Policy Engine is fixed
  464. + New Policy Engine features
  465. http://www.linux-ha.org/ClusterResourceManager/DTD1.0/Annotated :
  466. sections 1.5.[8,9,10,12]
  467. + Constraints and instance attributes can now be active conditionally
  468. + Rules can now contain other rules
  469. + Date/Time based expressions are supported
  470. + Cloned resources can now optionally be notified before and after
  471. any of its peers are stopped or started.
  472. + The cluster can re-evaluate the configuration automatically after
  473. a defined interval of idleness
  474. + Removed a flow control message which was very annoying when operating
  475. in a mixed 1.x/2.x environment
  476. -- Known Bugs :-( --
  477. - Bug 859 - FSA took too long to complete action - fully recovered from
  478. - Bug 882 - IPC channel not connected during shutdown - harmless
  479. - Bug 879 - Failed actions cause extra election - harmless
  480. Each of these occurs about once or twice in 5000 test iterations
  481. - This is probably > 10K failovers
  482. - rsc_location constraints cannot have rules that contain other rules
  483. (fixed in CVS after release)
  484. * Fri Jul 29 2005 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  485. + Version 2.0.0 - First stable release of the next generation of the Linux-HA project
  486. + Basic Characteristics described here:
  487. http://linux-ha.org/FactSheetv2
  488. + Core infrastructure improvments:
  489. + Messaging (message acknowledging and flow control)
  490. + Logging (logging daemon)
  491. + Release 1.x style (2-node) clusters fully supported
  492. + Multi-node support (so far up to 16-node clusters tested)
  493. See http://linux-ha.org/GettingStartedV2 for more information
  494. + New components:
  495. + Cluster Information Base (replicated resource configuration)
  496. + Cluster Resource Manager (supporting 1->N nodes)
  497. + Modular Policy Engine (controlling resource placement)
  498. + Local Resource Manager (policy free, not cluster aware)
  499. + Stonith Daemon (stand-alone fencing subsytem)
  500. + Support for OCF and LSB resource agents
  501. + Support for composite resource types (groups, clones)
  502. + Support for a rich set of resource location and ordering constraints
  503. + Conversion tool for existing haresources
  504. + Resources monitored by request
  505. + Resource "maintenance" mode
  506. + Several failback, failure and "No Quorum" behaviours to choose from
  507. (global defaults and per action or resource)
  508. + Sample cluster state and configuration monitoring tools
  509. Known issues in 2.0.0:
  510. - Under some rare circumstances the cluster manager will time out
  511. while stabilizing a new cluster state. This appears to be
  512. otherwise harmless - the cluster is actually fine.
  513. http://www.osdl.org/developer_bugzilla/show_bug.cgi?id=770
  514. - Under some rare circumstances, a dev assert will be triggered
  515. in unpack.c. This results in the pengine getting restarted.
  516. This is annoying, but not a disaster.
  517. http://www.osdl.org/developer_bugzilla/show_bug.cgi?id=797
  518. * Tue May 23 2005 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  519. + Version 1.99.5 - Near-final beta of 2.0.0 release
  520. + many bug fixes - code looks very stable at this point
  521. -- well tested at this point on 4 and 8 node clusters.
  522. * Thu Apr 07 2005 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  523. + Version 1.99.4 - Near-final beta of 2.0.0 release
  524. + many bug fixes since 1.99.1
  525. + new external STONITH model - fully supports scripting interface
  526. + tested through 12 node clusters successfully
  527. + No serious defects found in testing
  528. + Easier-to-understand locational constraints model
  529. + Many bug fixes of many kinds
  530. + Important bug fixes to OCF IPaddr resource agent
  531. + Resources are monitored only on request
  532. + See http://wiki.linux-ha.org/ClusterResourceManager/Setup
  533. for basic ideas about getting started.
  534. + Release 1 style (2-node) clusters still fully supported
  535. + Release 2 style clusters support 1-N node clusters
  536. (where N is probably something like 8-32)
  537. * Tue Mar 20 2005 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  538. + Version 1.99.3 - Near-final beta "technology preview" of 2.0.0 release
  539. + many bug fixes since 1.99.1
  540. + tested through 12 node clusters with reasonable success
  541. + new STONITH API
  542. * Sun Feb 20 2005 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  543. + Version 1.99.2 - Near-final beta "technology preview" of 2.0.0 release
  544. + Many many many changes. Far too many to describe here.
  545. + See http://wiki.linux-ha.org/ClusterResourceManager/Setup
  546. for certain basic ideas about getting started.
  547. * Mon Oct 11 2004 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  548. + Version 1.99.1 - *early* beta series - preparing for 2.0.0
  549. + Andrew provided a number of fixes to the CRM and 2.0 features
  550. + Fixed a problem with retrying failed STONITH operations
  551. * Mon Oct 11 2004 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  552. + Version 1.99.0 - *early* beta series - preparing for 2.0.0
  553. + All STABLE changes noted below have been ported to this branch
  554. + Included in this release is a beta of the next generation of Heartbeat
  555. resource manager developed by Andrew Beekhof.
  556. http://linuxha.trick.ca/NewHeartbeatDesign is a good place to learn
  557. more about this effort. Please examine crm/README, crm/test/README
  558. and crm/crm-1.0.dtd for example usage and configuration.
  559. + Also included is the L(ocal) R(esource) M(anager) developed by IBM China
  560. which is an integral part of the NewHeartbeatDesign.
  561. + Known caveats:
  562. - STONITH as a whole has seen a code cleanup and should be tested
  563. carefully.
  564. - The external STONITH plug-in has undergone major surgery and
  565. probably doesn't work yet.
  566. - the new CRM is not perfectly stable with 3 nodes yet.
  567. + PLEASE see http://osdl.org/developer_bugzilla/enter_bug.cgi?product=Linux-HA
  568. and use it to report quirks and issues you find!
  569. * Sat Sep 18 2004 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  570. + Version 1.2.3 (stable)
  571. + fixed a serious error which causes heartbeat to misbehave after about
  572. 10 months of continuous operation
  573. + Made our ARP packets more RFC compliant
  574. + Extended apcmastersnmp code to deal with new devices
  575. + fixed a bug concerning simultaneous stops of both machines causing one
  576. of them to not shut down.
  577. + added an option to suppress reporting on packet corruption
  578. + fixed it so that we don't create the FIFO by the RPM
  579. + made cl_status setgid so anyone can run it, and fixed exit codes
  580. + eliminated a serious memory leak associated with client code
  581. + packaged doc files which had been missed before
  582. + fixed many many small bugs and memory leaks detected by BEAM
  583. + added several new test cases
  584. + fixed longstanding bug in plugin unloading
  585. + fixed a shutdown hang problem
  586. + several fixes for Solaris, FreeBSD
  587. + Solaris packaging now included in base
  588. + fixed a bug related to the apache resource agent not handling
  589. quoted parameters
  590. + added use_apphbd parameter to have heartbeat register
  591. with apphbd instead of watchdog device when desired
  592. + changed apphbd to default its config file to /etc
  593. + added snmp subagent code
  594. + added hbaping communications plugin
  595. + added external STONITH plugin
  596. + ldirectord: fixed a bug where real servers that were are
  597. present in multiple virtual services will only be added
  598. to one virtual service.
  599. * Mon May 11 2004 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  600. + Version 1.2.2 (stable)
  601. + Fixed several format string errors in communication plugins
  602. + Fixed a bug which kept us from diagnosing errors in non-aliased interfaces
  603. + Fixed a bug in ipaddr which caused an infinite loop when auto_failback on
  604. + Updated Debian things...
  605. + Added IPv6addr resource agent
  606. + Added ibmhmc STONITH plugin
  607. + Added cl_status command
  608. + Fixed a bug regarding restarts when auto_failback is on...
  609. + Fixed a couple of bugs in sha1 authentication method for very long keys
  610. + Fixed a bug in the portblock resource agent so that it no longer blocks
  611. ports on the loopback interface
  612. + Increased the time allowed for split brain test before it declares failure
  613. + Version 1.2.1 (stable)
  614. + Netstrings can now be used for our on-the-wire data format
  615. + Perl/SWIG bindings added for some heartbeat libraries
  616. + Significant improvements to SAF data checkpointing API
  617. + Implemented unbuffered ipcsocket code for SAF APIs
  618. + Many Solaris fixes -- except for ipfail, Solaris works
  619. + Significant library restructuring
  620. + Watchdog device NOWAYOUT is now overridded if defaulted
  621. + Watchdog device now kills machine instantly after deadtime
  622. instead of after one minute
  623. + Hostnames should now be treated case-independently...
  624. + Added new client status APIs - client_status() and cstatus_callback()
  625. + Fixed bug with auto_failback and quick full restarts
  626. + We now automatically reboot when resources fail to stop correctly...
  627. + We now check the status of the configured STONITH device hourly...
  628. + STONITH operations repeat after a 5 second delay, not immediately...
  629. + Added hb_takeover command - complement to hb_standby
  630. + Added documentation on how to use evlog/TCP to enable testing to
  631. take place without losing messages due to UDP message forwarding
  632. + Several new tests from Mi, Jun - split brain, bandwidth, failure
  633. detection time.
  634. + Fix to LVM resource from Harald Milz <hm@muc.de>
  635. + Fixed FreeBSD authentication problems breaking ipfail
  636. + Fixed .so loading on Debian
  637. + Fixed false complaints about resource scripts (from Jens Schmalzing)
  638. + Fixed false stop failure from LinuxSCSI (from Jens Schmalzing <j.s@lmu.de>)
  639. * Thu Apr 15 2004 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  640. + Version 1.3.0 - beta series
  641. + Netstrings can now be used for our on-the-wire data format
  642. + Perl/SWIG bindings added for some heartbeat libraries
  643. + Significant improvements to SAF data checkpointing API
  644. + Implemented unbuffered ipcsocket code for SAF APIs
  645. + Many Solaris fixes -- except for ipfail, Solaris works
  646. + Significant library restructuring
  647. + Watchdog device NOWAYOUT is now overridded if defaulted
  648. + Watchdog device now kills machine instantly after deadtime
  649. instead of after one minute
  650. + Hostnames should now be treated case-independently...
  651. + Added new client status APIs - client_status() and cstatus_callback()
  652. + Fixed bug with auto_failback and quick full restarts
  653. + We now automatically reboot when resources fail to stop correctly...
  654. + We now check the status of the configured STONITH device hourly...
  655. + STONITH operations repeat after a 5 second delay, not immediately...
  656. + Added hb_takeover command - complement to hb_standby
  657. + Added documentation on how to use evlog/TCP to enable testing to
  658. take place without losing messages due to UDP message forwarding
  659. + Several new tests from Mi, Jun - split brain, bandwidth, failure
  660. detection time.
  661. + Fix to LVM resource from Harald Milz <hm@muc.de>
  662. * Tue Feb 16 2004 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  663. + Version 1.2.0
  664. + Replaced the nice_failback option with the auto_failback option.
  665. THIS OBSOLETES THE NICE_FAILBACK OPTION. READ THE DOCS FOR HOW
  666. TO UPGRADE SMOOTHLY.
  667. + Added a new feature to hb_standby which allows you to give up
  668. any specific category of resources: local, foreign, or all.
  669. The old behavior is "all" which is the default.
  670. This allows you to put a auto_failback no cluster into
  671. an active/active configuration on demand.
  672. + ipfail now works properly with auto_failback on (active/active)
  673. + ipfail now has "hysteresis" so that it doesn't respond immediately
  674. to a network failure, but waits a little while so that the
  675. damage can be properly assessed and extraneous takeovers avoided
  676. + Added new ping node timeout directive "deadping"
  677. + Made sure heartbeat preallocated stack and heap, and printed a
  678. message if we allocate heap once we're started up...
  679. + IPMILan STONITH plugin added to CVS
  680. + Added IPaddr2 resource script
  681. + Made the APC smart UPS ups code compatible with more UPSes
  682. + Added a (preliminary?) ordered messaging facility from Yi Zhu
  683. + Changed IPaddr's method of doing ARPs in background so that
  684. certain timing windows were closed.
  685. + Added OCF (wrapper) resource script
  686. + Allow respawn programs to take arguments
  687. + Added pinggroups (where any node being up is OK)
  688. + SIGNIFICANT amount of internal rearchitecture.
  689. + Many bug fixes.
  690. + Several documentation updates.
  691. * Tue Feb 10 2004 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  692. + Version 1.1.5
  693. + ipfail now has "hysteresis" so that it doesn't respond immediately
  694. to a network failure, but waits a little while so that the
  695. damage can be properly assessed and extraneous takeovers avoided
  696. + Several fixes to cl_poll()
  697. + More fixes to the IPC code - especially handling data reception
  698. after EOF
  699. + removed some unclean code from GSource for treating EOF conditions
  700. + Several bugs concerning hanging when shutting down early during startup
  701. + A few BasicSanityCheck bug fixes
  702. + CTS now allows a single machine to be able to monitor several clusters
  703. + Most former CTS options are now either unneeded or on the command line
  704. + Increased number of ARPs and how long they're being sent out
  705. + Fixed uncommon (authorization) memory leak
  706. + Some Solaris portability fixes.
  707. + Made init script handle standby correctly for new config files
  708. + Improved the fast failure detection test
  709. + Added some backwards compatibility for nice_failback and some default
  710. authentication directives
  711. + Corrected the 1.1.4 change log
  712. * Fri Jan 22 2004 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  713. + Version 1.1.4
  714. + ipfail now works properly with auto_failback on (active/active)
  715. + Changed the API to use sockets (IPC library) instead of FIFOs.
  716. + Added new apiauth directives to provide authorization information
  717. formerly provided by the FIFO permissions.
  718. + Added Intel's implementation of the SAF data checkpointing API and daemon
  719. + Added a cleanup suggested by Emily Ratliff.
  720. + IPMILan STONITH plugin added to CVS
  721. + Added IPaddr2 resource script
  722. + Various cleanups due to horms.
  723. + Fixed authentication to work on 64-bit platforms(!)
  724. + Fixed the cl_poll() code to handle corner cases better
  725. + Made heartbeat close watchdog device before re-execing itself
  726. + New CTS improvements from Mi, Jun <jun.mi@intel.com>
  727. + Various minor bug fixes.
  728. . Several shutdown bugs addressed
  729. . fixed sendarp to make a pid file, so we can shut it down
  730. when we shut everything else down in case it's still running.
  731. . Lots of minor bug fixes to IPC code
  732. . Lots of minor bug fixes to ipctest program
  733. . made BasicSanityCheck more tolerant of delays
  734. . Fixed IPC code to authenticate based on ints, not int*s.
  735. . Check properly for strnlen instead of strlen...
  736. . Several signed/unsigned fixes
  737. . A few uninitialized vars now are inited
  738. . Switched to compiling lex/yacc sources the automake way
  739. . Lots of minor CTS fixes...
  740. + ldirectord bug fixes:
  741. . When new real servers are added on initialisation or when
  742. the configuration file is reread they are marked with status
  743. of -1 (uninitialised) so they will be checked and inserted
  744. into the virtual service as required
  745. . All checks use the checkport if set, otherwise the port set for
  746. the individual real server. This was the case for http and
  747. connect checks, but others had variations on this theme.
  748. . When the configuration file is reread because it changed
  749. on disk and autoreload is set, check the real servers
  750. immediately rather than waiting for checkinterval to expire
  751. . Already running message sent to stderr instead of stdout
  752. . Support alternate server in real-server specific URL
  753. . Treat the same real server with different weights as a different
  754. real server. Fixes bug reported by Philip Hayward whereby the same
  755. real-server would always have the same weight, regardless of
  756. the ldirectord.cf
  757. * Fri Sep 26 2003 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  758. + Version 1.1.3
  759. + Bugfix for heartbeat starting resources twice concurrently if
  760. auto_failback was set to "legacy".
  761. + Bugfix for messages getting lost if messages were sent in quick
  762. succession. (Kurosawa Takahiro)
  763. + Bugfix for Filesystem resource checking for presence of filesystem
  764. support before loading the module.
  765. + BasicSanityCheck extended to cover more basic tests.
  766. + Bugfix for findif not working correctly for CIDR netmasks.
  767. + Minor bugfix for ldirectord recognizing new schedulers correctly and
  768. timeout settings are now being honoured.
  769. + Enhanced the message giving a better explanation of how to set up node
  770. names properly when current node not found in the ha.cf file
  771. + Send a message to the cluster whenever we have a node which doesn't
  772. need STONITHing - even though it's gone down. This fix needed
  773. by CCM, which is in turn needed by EVMS.
  774. + Enhanced the messages for missing ha.cf and missing haresources files
  775. explaining that sample config files are found in the documentation.
  776. + Fix for memory leak from Forrest Zhao<forrest.zhao@intel.com>
  777. + Added a (preliminary?) ordered messaging facility from Yi Zhu
  778. + FAQ updates
  779. + Added Xinetd resource script
  780. + Added OCF (wrapper) resource script
  781. + Allow respawn programs to take arguments
  782. + Added pinggroups (where any node being up is OK)
  783. + fixed ldirectord negotiatetimeout for HTTP
  784. + fixed a bug which caused -d flag to be ignored
  785. + failing resource scripts are now ERRORs not WARNings
  786. + now shuts down correctly when auto_failback == legacy
  787. * Mon Jul 13 2003 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  788. + Version 1.1.2
  789. + Replaced the nice_failback option with the auto_failback option.
  790. THIS OBSOLETES THE NICE_FAILBACK OPTION. READ THE DOCS FOR HOW
  791. TO UPGRADE SMOOTHLY.
  792. + Changed IPaddr to not do ARPs in background, and shortened time
  793. between ARPs. Also made these things tunable...
  794. + changed our comm ttys to not become our controlling TTYs
  795. + Enhanced the ServeRAID script to fix a critical bug by using a new feature
  796. + Added a new DirectoryMap to CVS - tells where everything is...
  797. + significantly enhanced the BasicSanityCheck script, and the tests
  798. it calls.
  799. + added a new option to use a replacement poll function for improved
  800. real-time performance.
  801. + added the ability to have a cluster node's name be different
  802. from it's uname -n
  803. + Moved where CTS gets installed to /usr/lib/heartbeat/cts
  804. + Big improvements to the CTS README from IBM test labs in Austin.
  805. + bug fixes to the WTI NPS power switch
  806. + new client API calls:
  807. return arbitrary configuration parameters
  808. return current resource status
  809. + Added a new clplumbing function: mssleep()
  810. + added new capabilities for supporting pseudo-resources
  811. + added new messages which come out after initial takeover is done
  812. (improves CTS results)
  813. + LOTS of documentation updates.
  814. + fixed a security vulnerability
  815. + fixed a bug where heartbeat would shut down while in the middle
  816. of processing resource movement requests.
  817. + changed compilation flags to eliminate similar future security
  818. issues
  819. + went to even-more-strict gcc flags
  820. + fixed several "reload" bugs. Now reload works ;-)
  821. + fixed STONITH bug when other node never heard from.
  822. + Minor bug fixes (cleaned up corrupted message)
  823. + Two different client API bugs fixed.
  824. + changed the configure script to test which warning flags are
  825. supported by the current gcc.
  826. + enhanced the API test program to test new capabilities...
  827. * Wed May 21 2003 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  828. + Version 1.1.1
  829. + Significant restructuring of the processes in heartbeat
  830. + Added a new feature to hb_standby which allows you to give up
  831. any specific category of resources: local, foreign, or all.
  832. The old behavior is "all" which is the default.
  833. This allows you to put a nice_failback cluster into
  834. an active/active configuration
  835. + Enhancements to the ServeRAID code to make it work with the new
  836. (supported) version of IPSSEND from the ServeRAID folks...
  837. + Added STONITH code for the Dell remote access controller
  838. + Fixed a major bug which kept it from taking over correctly after 246
  839. days or so
  840. + Fixed a major bug where heartbeat didn't lock itself into memory
  841. properly
  842. + Added new ping node timeout directive "deadping"
  843. + Made sure heartbeat preallocated stack and heap, and printed a
  844. message if we allocate heap once we're started up...
  845. + Minor heartbeat API bug fixes
  846. + Minor documentation fixes
  847. + Minor fix to allow IP addresses with /32 masks...
  848. + Fixed a timing window for !nice_failback resource acquisition
  849. + Added several CCM bug fixes
  850. + Made the APC smart UPS ups code compatible with more UPSes
  851. + Fixed a bug in respawn
  852. + Enhanced internal checking for malloc errors...
  853. + Added IP alias search optimization from Sean Reifscheneider
  854. * Wed Mar 19 2003 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  855. + Version 1.0.2:
  856. + Fixed comment errors in heartbeat init script to allow it to run on RH 8.0
  857. + Changed apphbd to use poll(2) instead of sigtimedwait(2)
  858. + Put missing files into tarball
  859. + Documentation improvements for IPaddr and other things
  860. + Fixed an error in hb_standby which kept it from working if releasing
  861. resources takes more than 10 seconds
  862. + Added a fix to allow heartbeat to run on systems without writable disk
  863. (like routers booting from CD-ROM)
  864. + Added configuration file for apphbd
  865. + Added fix from Adam Li to keep recoverymgr stop looping at high priority
  866. + Added fix to ServeRAID resource to make it work with (new) supported
  867. hardware
  868. + Added Delay resource script
  869. + Added fix to Filesystem to allow it to support NFS mounts and allow
  870. user to specify mount options
  871. + Added fix to IPaddr to make tmp directory for restoring loopback device
  872. + Added fix to ipcsocket code to deal correctly with EAGAIN when sending
  873. message body
  874. * Mon Feb 17 2003 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  875. + Version 1.0.1:
  876. + Fixed some compile errors on different platforms, and library versions
  877. + Disable ccm from running on 'ping' nodes
  878. + Put in Steve Snodgrass' fix to send_arp to make it work on non-primary
  879. interfaces.
  880. * Thu Feb 13 2003 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  881. + Version 1.0.1 beta series
  882. 0.4.9g:
  883. + Changed default deadtime, warntime, and heartbeat interval
  884. + Auto* tool updates
  885. + VIP loopback fixes for IP address takeover
  886. + Various Solaris and FreeBSD fixes
  887. + added SNMP agent
  888. + Several CCM bug fixes
  889. + two new heartbeat API calls
  890. + various documentation fixes, including documentation for ipfail
  891. + Numerous minor cleanups.
  892. + Fixed a few bugs in the IPC code.
  893. + Fixed the (IPC) bug which caused apphbd to hang the whole machine.
  894. + Added a new IPC call (waitout)
  895. + Wrote a simple IPC test program.
  896. + Clarified several log messages.
  897. + Cleaned up the ucast communications plugin
  898. + Cleaned up for new C compilers
  899. + Fixed permissions bug in IPC which caused apphbd to not be usable by all
  900. + Added a new rtprio option to the heartbeat config file
  901. + updated apphbtest program
  902. + Changed ipfail to log things at same level heartbeat does
  903. * Sat Nov 30 2002 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  904. + Version 0.5 beta series (now renamed to 1.0.1 beta series).
  905. 0.4.9f:
  906. + Added pre-start, pre-stop, post-stop and pre-stop constructs in init script
  907. + various IPC fixes
  908. + Fix to STONITH behavior: STONITH unresponsive node right after we reboot
  909. + Fixed extreme latency in IPC code
  910. + various configure.in cleanups
  911. + Fixed memory leak in IPC socket code
  912. + Added streamlined mainloop/IPC integration code
  913. + Moved more heartbeat internal communication to IPC library
  914. + Added further support for ipfail
  915. + Added supplementary groups to the respawn-ed clients
  916. + Added standby to init script actions
  917. + Lots of minor CCM fixes
  918. + Split (most) resource management code into a separate file.
  919. + Fixes to accommodate different versions of libraries
  920. + Heartbeat API client headers fixup
  921. + Added new API calls
  922. + Simplified (and fixed) handling of local status. This would sometimes cause
  923. obscure failures on startup.
  924. + Added new IPsrcaddr resource script
  925. KNOWN BUGS:
  926. + apphbd goes into an infinite loop on some platforms
  927. * Wed Oct 9 2002 Alan Robertson <alanr@unix.sh> (see doc/AUTHORS file)
  928. 0.4.9e:
  929. + Changed client code to keep write file descriptor open at all times
  930. (realtime improvement)
  931. + Added a "poll replacement" function based on sigtimedwait(2), which
  932. should be faster for those cases that can use it.
  933. + Added a hb_warntime() call to the application heartbeat API.
  934. + Changed all times in the configuration file to be in milliseconds
  935. if specified with "ms" at the end. (seconds is still the default).
  936. + Fixes to serious security issue due to Nathan Wallwork <nwallwo@pnm.com>
  937. + Changed read/write child processes to run as nobody.
  938. + Fixed a bug where ping packets are printed incorrectly when debugging.
  939. + Changed heartbeat code to preallocate a some heap space.
  940. + CCM daemon API restructuring
  941. + Added ipc_channel_pair() function to the IPC library.
  942. + Changed everything to use longclock_t instead of clock_t
  943. + Fixed a bug concerning the ifwalk() call on ping nodes in the API
  944. + Made apphbd run at high priority and locked into memory
  945. + Made a library for setting priority up.
  946. + Made ucast comm module at least be configurable and loadable.
  947. + Fixed a startup/shutdown timing problem.
  948. 0.4.9d:
  949. + removed an "open" call for /proc/loadavg (improve realtime behavior)
  950. + changed API code to not 1-char reads from clients
  951. + Ignored certain error conditions from API clients
  952. + fixed an obscure error message about trying to retransmit a packet
  953. which we haven't sent yet. This happens after restarts.
  954. + made the PILS libraries available in a separate package
  955. + moved the stonith headers to stonith/... when installed
  956. + improved debugging for NV failure cases...
  957. + updated AUTHORS file and simplified the changelog authorship
  958. (look in AUTHORS for the real story)
  959. + Added Ram Pai's CCM membership code
  960. + Added the application heartbeat code
  961. + Added the Kevin Dwyer's ipfail client code to the distribution
  962. + Many fixes for various tool versions and OS combinations.
  963. + Fixed a few bugs related to clients disconnecting.
  964. + Fixed some bugs in the CTS test code.
  965. + Added BasicSanityCheck script to tell if built objects look good.
  966. + Added PATH-like capabilities to PILS
  967. + Changed STONITH to use the new plugin system.
  968. + *Significantly* improved STONITH usage message (from Lorn Kay)
  969. + Fixed some bugs related to restarting.
  970. + Made exit codes more LSB-compliant.
  971. + Fixed various things so that ping nodes don't break takeovers.
  972. 0.4.9c and before:
  973. + Cluster partitioning now handled correctly (really!)
  974. + Complete rearchitecture of plugin system
  975. + Complete restructure of build system to use automake and port things
  976. to AIX, FreeBSD and solaris.
  977. + Added Lclaudio's "standby" capability to put a node into standby
  978. mode on demand.
  979. + Added code to send out gratuitous ARP requests as well as gratuitous
  980. arp replies during IP address takeover.
  981. + Suppress stonith operations for nodes which went down gracefully.
  982. + Significantly improved real-time performance
  983. + Added new unicast heartbeat type.
  984. + Added code to make serial ports flush stale data on new connections.
  985. + The Famous CLK_TCK compile time fixes (really!)
  986. + Added a document which describes the heartbeat API
  987. + Changed the code which makes FIFOs to not try and make the FIFOs for
  988. named clients, and several other minor API client changes.
  989. + Fixed a fairly rare client API bug where it would shut down the
  990. client for no apparent reason.
  991. + Added stonith plugins for: apcmaster, apcmastersnmp switches, and ssh
  992. module (for test environments only)
  993. + Integrated support for the Baytech RPC-3 switch into baytech module
  994. + Fixes to APC UPS plugin
  995. + Got rid of "control_process: NULL message" message
  996. + Got rid of the "controlfifo2msg: cannot create message" message
  997. + Added -h option to give usage message for stonith command...
  998. + Wait for successful STONITH completion, and retry if its configured.
  999. + Sped up takeover code.
  1000. + Several potential timing problems eliminated.
  1001. + Cleaned up the shutdown (exit) code considerably.
  1002. + Detect the death of our core child processes.
  1003. + Changed where usage messages go depending on exit status from usage().
  1004. + Made some more functions static.
  1005. + Real-time performance improvement changes
  1006. + Updated the faqntips document
  1007. + Added a feature to heartbeat.h so that log messages get checked as
  1008. printf-style messages on GNU C compilers
  1009. + Changed several log messages to have the right parameters (discovered
  1010. as a result of the change above)
  1011. + Numerous FreeBSD, Solaris and OpenBSD fixes.
  1012. + Added backwards compatibility kludge for udp (versus bcast)
  1013. + Queued messages to API clients instead of throwing them away.
  1014. + Added code to send out messages when clients join, leave.
  1015. + Added support for spawning and monitoring child clients.
  1016. + Cleaned up error messages.
  1017. + Added support for DB2, ServeRAID and WAS, LVM, and Apache (IBMhttp too),
  1018. also ICP Vortex controller.
  1019. + Added locking when creating new IP aliases.
  1020. + Added a "unicast" media option.
  1021. + Added a new SimulStart and standby test case.
  1022. + Diddled init levels around...
  1023. + Added an application-level heartbeat API.
  1024. + Added several new "plumbing" subsystems (IPC, longclock_t, proctrack, etc.)
  1025. + Added a new "contrib" directory.
  1026. + Fixed serious (but trivial) bug in the process tracking code which caused
  1027. it to exit heartbeat - this occured repeatably for STONITH operations.
  1028. + Write a 'v' to the watchdog device to tell it not to reboot us when
  1029. we close the device.
  1030. + Various ldirectord fixes due to Horms
  1031. + Minor patch from Lorn Kay to deal with loopback interfaces which might
  1032. have been put in by LVS direct routing
  1033. + Updated AUTHORS file and moved list of authors over
  1034. * Fri Mar 16 2001 Alan Robertson <alanr@unix.sh>
  1035. + Version 0.4.9
  1036. + Split into 3 rpms - heartbeat, heartbeat-stonith heartbeat-ldirectord
  1037. + Made media modules and authentication modules and stonith modules
  1038. dynamically loadable.
  1039. + Added Multicast media support
  1040. + Added ping node/membership/link type for tiebreaking. This will
  1041. be useful when implementing quorum on 2-node systems.
  1042. (not yet compatible with nice_failback(?))
  1043. + Removed ppp support
  1044. + Heartbeat client API support
  1045. + Added STONITH API library
  1046. + support for the Baytech RPC-3A power switch
  1047. + support for the APCsmart UPS
  1048. + support for the VACM cluster management tool
  1049. + support for WTI RPS10
  1050. + support for Night/Ware RPC100S
  1051. + support for "Meatware" (human intervention) module
  1052. + support for "null" (testing only) module
  1053. + Fixed startup timing bugs
  1054. + Fixed shutdown sequence bugs: takeover occured before
  1055. resources were released by other system
  1056. + Fixed various logging bugs
  1057. + Closed holes in protection against replay attacks
  1058. + Added checks that complain if all resources aren't idle on startup.
  1059. + IP address takeover fixes
  1060. + Endian fixes
  1061. + Removed the 8-alias limitation
  1062. + Takeovers now occur faster (ARPs occur asynchronously)
  1063. + Port number changes
  1064. + Use our IANA port number (694) by default
  1065. + Recognize our IANA port number ("ha-cluster") if it's in /etc/services
  1066. + Moved several files, etc. from /var/run to /var/lib/heartbeat
  1067. + Incorporated new ldirectord version
  1068. + Added late heartbeat warning for late-arriving heartbeats
  1069. + Added detection of and partial recovery from cluster partitions
  1070. + Accept multiple arguments for resource scripts
  1071. + Added Raid1 and Filesystem resource scripts
  1072. + Added man pages
  1073. + Added debian package support
  1074. * Fri Jun 30 2000 Alan Robertson <alanr@unix.sh>
  1075. + Version 0.4.8
  1076. + Incorporated ldirectord version 1.9 (fixes memory leak)
  1077. + Made the order of resource takeover more rational: Takeover is now
  1078. left-to-right, and giveup is right-to-left
  1079. + Changed the default port number to our official IANA port number (694)
  1080. + Regularized more messages, eliminated some redundant ones.
  1081. + Print the version of heartbeat when starting.
  1082. + Print exhaustive version info when starting with debug on.
  1083. + Hosts now have 3 statuses {down, up, active} active means that it knows
  1084. that all its links are operational, and it's safe to send cluster
  1085. messages
  1086. + Significant revisions to nice_failback (mainly due to lclaudio)
  1087. + More SuSE-compatibility. Thanks to Friedrich Lobenstock <fl@fl.priv.at>
  1088. + Tidied up logging so it can be to files, to syslog or both (Horms)
  1089. + Tidied up build process (Horms)
  1090. + Updated ldirectord to produce and install a man page and be
  1091. compatible with the fwmark options to The Linux Virtual Server (Horms)
  1092. + Added log rotation for ldirectord and heartbeat using logrotate
  1093. if it is installed
  1094. + Added Audible Alarm resource by Kirk Lawson <lklawson@heapy.com>
  1095. and myself (Horms)
  1096. + Added init script for ldirectord so it can be run independently
  1097. of heartbeat (Horms)
  1098. + Added sample config file for ldirectord (Horms)
  1099. + An empty /etc/ha.d/conf/ is now part of the rpm distribution
  1100. as this is where ldirectord's configuration belongs (Horms)
  1101. + Minor startup script tweaks. Hopefully, we should be able to make core
  1102. files should we crash in the future. Thanks to Holger Kiehl for diagnosing
  1103. the problem!
  1104. + Fixed a bug which kept the "logfile" option from ever working.
  1105. + Added a TestCluster test utility. Pretty primitive so far...
  1106. + Fixed the serial locking code so that it unlocks when it shuts down.
  1107. + Lock heartbeat into memory, and raise our priority
  1108. + Minor, but important fix from lclaudio to init uninited variable.
  1109. * Sat Dec 25 1999 Alan Robertson <alanr@unix.sh>
  1110. + Version 0.4.7
  1111. + Added the nice_failback feature. If the cluster is running when
  1112. the primary starts it acts as a secondary. (Luis Claudio Goncalves)
  1113. + Put in lots of code to make lost packet retransmission happen
  1114. + Stopped trying to use the /proc/ha interface
  1115. + Finished the error recovery in the heartbeat protocol (and got it to work)
  1116. + Added test code for the heartbeat protocol
  1117. + Raised the maximum length of a node name
  1118. + Added Jacob Rief's ldirectord resource type
  1119. + Added Stefan Salzer's <salt@cin.de> fix for a 'grep' in IPaddr which
  1120. wasn't specific enough and would sometimes get IPaddr confused on
  1121. IP addresses that prefix-matched.
  1122. + Added Lars Marowsky-Bree's suggestion to make the code almost completely
  1123. robust with respect to jumping the clock backwards and forwards
  1124. + Added code from Michael Moerz <mike@cubit.at> to keep findif from
  1125. core dumping if /proc/route can't be read.
  1126. * Mon Nov 22 1999 Alan Robertson <alanr@unix.sh>
  1127. + Version 0.4.6
  1128. + Fixed timing problem in "heartbeat restart" so it's reliable now
  1129. + Made start/stop status compatible with SuSE expectations
  1130. + Made resource status detection compatible with SuSE start/stop expectations
  1131. + Fixed a bug relating to serial and ppp-udp authentication (it never worked)
  1132. + added a little more substance to the error recovery for the HB protocol.
  1133. + Fixed a bug for logging from shell scripts
  1134. + Added a little logging for initial resource acquisition
  1135. + Added #!/bin/sh to the front of shell scripts
  1136. + Fixed Makefile, so that the build root wasn't compiled into pathnames
  1137. + Turned on CTSRTS, enabling for flow control for serial ports.
  1138. + Fixed a bug which kept it from working in non-English environments
  1139. * Wed Oct 13 1999 Alan Robertson <alanr@unix.sh>
  1140. + Version 0.4.5
  1141. + Mijta Sarp added a new feature to authenticate heartbeat packets
  1142. using a variety of strong authentication techniques
  1143. + Changed resource acquisition and relinquishment to occur in heartbeat,
  1144. instead of in the start/stop script. This means you don't *really*
  1145. have to use the start/stop script if you don't want to.
  1146. + Added -k option to gracefully shut down current heartbeat instance
  1147. + Added -r option to cause currently running heartbeat to reread config files
  1148. + Added -s option to report on operational status of "heartbeat"
  1149. + Sped up resource acquisition on master restart.
  1150. + Added validation of ipresources file at startup time.
  1151. + Added code to allow the IPaddr takeover script to be given the
  1152. interface to take over, instead of inferring it. This was requested
  1153. by Lars Marowsky-Bree
  1154. + Incorporated patch from Guenther Thomsen to implement locking for
  1155. serial ports used for heartbeats
  1156. + Incorporated patch from Guenther Thomsen to clean up logging.
  1157. (you can now use syslog and/or file logs)
  1158. + Improved FreeBSD compatibility.
  1159. + Fixed a bug where the FIFO doesn't get created correctly.
  1160. + Fixed a couple of uninitialized variables in heartbeat and /proc/ha code
  1161. + Fixed longstanding crash bug related to getting a SIGALRM while in malloc
  1162. or free.
  1163. + Implemented new memory management scheme, including memory stats
  1164. * Thu Sep 16 1999 Alan Robertson <alanr@unix.sh>
  1165. + Version 0.4.4
  1166. + Fixed a stupid error in handling CIDR addresses in IPaddr.
  1167. + Updated the documentation with the latest from Rudy.
  1168. * Wed Sep 15 1999 Alan Robertson <alanr@unix.sh>
  1169. + Version 0.4.3
  1170. + Changed startup scripts to create /dev/watchdog if needed
  1171. + Turned off loading of /proc/ha module by default.
  1172. + Incorporated bug fix from Thomas Hepper <th@ant.han.de> to IPaddr for
  1173. PPP configurations
  1174. + Put in a fix from Gregor Howey <ghowey@bremer-nachrichten.de>
  1175. where Gregor found that I had stripped off the ::resourceid part
  1176. of the string in ResourceManager resulting in some bad calls later on.
  1177. + Made it compliant with the FHS (filesystem hierarchy standard)
  1178. + Fixed IP address takeover so we can take over on non-eth0 interface
  1179. + Fixed IP takeover code so we can specify netmasks and broadcast addrs,
  1180. or default them at the user's option.
  1181. + Added code to report on message buffer usage on SIGUSR[12]
  1182. + Made SIGUSR1 increment debug level, and SIGUSR2 decrement it.
  1183. + Incorporated Rudy's latest "Getting Started" document
  1184. + Made it largely Debian-compliant. Thanks to Guenther Thomsen, Thomas
  1185. Hepper, I単aki Fern叩ndez Villanueva and others.
  1186. + Made changes to work better with Red Hat 6.1, and SMP code.
  1187. + Sometimes it seems that the Master Control Process dies :-(
  1188. * Sat Aug 14 1999 Alan Robertson <alanr@unix.sh>
  1189. + Version 0.4.2
  1190. + Implemented simple resource groups
  1191. + Implemented application notification for groups starting/stopping
  1192. + Eliminated restriction on floating IPs only being associated with eth0
  1193. + Added a uniform resource model, with IP resources being only one kind.
  1194. (Thanks to Lars Marowsky-Bree for a good suggestion)
  1195. + Largely rewrote the IP address takeover code, making it clearer, fit
  1196. into the uniform resource model, and removing some restrictions.
  1197. + Preliminary "Getting Started" document by Rudy Pawul
  1198. + Improved the /proc/ha code
  1199. + Fixed memory leak associated with serial ports, and problem with return
  1200. of control to the "master" node.
  1201. (Thanks to Holger Kiehl for reporting them, and testing fixes!)
  1202. * Tue Jul 6 1999 Alan Robertson <alanr@unix.sh>
  1203. + Version 0.4.1
  1204. + Fixed major memory leak in 0.4.0 (oops!)
  1205. + Added code to eliminate duplicate packets and log lost ones
  1206. + Tightened up PPP/UDP startup/shutdown code
  1207. + Made PPP/UDP peacefully coexist with "normal" udp
  1208. + Made logs more uniform and neater
  1209. + Fixed several other minor bugs
  1210. + Added very preliminary kernel code for monitoring and controlling
  1211. heartbeat via /proc/ha. Very cool, but not really done yet.
  1212. * Wed Jun 30 1999 Alan Robertson <alanr@unix.sh>
  1213. + Version 0.4.0
  1214. + Changed packet format from single line positional parameter style
  1215. to a collection of {name,value} pairs. A vital change for the future.
  1216. + Fixed some bugs with regard to forwarding data around rings
  1217. + We now modify /etc/ppp/ip-up.local, so PPP-udp works out of the box
  1218. (at least for Red Hat)
  1219. + Includes the first version of Volker Wiegand's Hardware Installation Guide
  1220. (it's pretty good for a first version!)
  1221. * Wed Jun 09 1999 Alan Robertson <alanr@unix.sh>
  1222. + Version 0.3.2
  1223. + Added UDP/PPP bidirectional serial ring heartbeat
  1224. (PPP ensures data integrity on the serial links)
  1225. + fixed a stupid bug which caused shutdown to give unpredictable
  1226. results
  1227. + added timestamps to /var/log/ha-log messages
  1228. + fixed a couple of other minor oversights.
  1229. * Sun May 10 1999 Alan Robertson <alanr@unix.sh>
  1230. + Version 0.3.1
  1231. + Make ChangeLog file from RPM specfile
  1232. + Made ipresources only install in the DOC directory as a sample
  1233. * Sun May 09 1999 Alan Robertson <alanr@unix.sh>
  1234. + Version 0.3.0
  1235. + Added UDP broadcast heartbeat (courtesy of Tom Vogt)
  1236. + Significantly restructured code making it easier to add heartbeat media
  1237. + added new directives to config file:
  1238. + udp interface-name
  1239. + udpport port-number
  1240. + baud serial-baud-rate
  1241. + made manual daemon shutdown easier (only need to kill one)
  1242. + moved the sample ha.cf file to the Doc directory
  1243. * Sat Mar 27 1999 Alan Robertson <alanr@unix.sh>
  1244. + Version 0.2.0
  1245. + Make an RPM out of it
  1246. + Integrated IP address takeover gotten from Horms
  1247. + Added support to tickle a watchdog timer whenever our heart beats
  1248. + Integrated enough basic code to allow a 2-node demo to occur
  1249. + Integrated patches from Andrew Hildebrand <andrew@pdi.com> to allow it
  1250. to run under IRIX.
  1251. - Known Bugs
  1252. - Only supports 2-node clusters
  1253. - Only supports a single IP interface per node in the cluster
  1254. - Doesn't yet include Tom Vogt's ethernet heartbeat code
  1255. - No documentation
  1256. - Not very useful yet :-)
  1257. ###########################################################