heartbeat-vl.spec 60 KB

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