Hide Forgot
Created attachment 597045 [details] Proposed patch Description of problem: Votequorum should register reload callback only once and not after each change in confdb. Version-Release number of selected component (if applicable): Flatiron How reproducible: 100% Steps to Reproduce: 1. Load votequorum plugin 2. corosync-objctl -c .usr 3. In log is corosync [VOTEQ ] Reading configuration 4. corosync-objctl -c .usr 5. In log appear another "corosync [VOTEQ ] Reading configuration" this time twice 6. corosync-objctl -c .usr 7. In log appear another "corosync [VOTEQ ] Reading configuration" this time three times ... Actual results: Votequorum register reload configuration handler after each change in confdb. Expected results: Votequorum register reload configuration handler only once.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause Corosync running with votequorum enabled. Consequence Votequorum register reload configuration handler after each change in confdb. This will cause in the beginning slow down of corosync and resulting to OOM, ... Fix Register callback only at startup Result No slowdown, OOM, ...
with this snip in corosync.conf: quorum { provider: corosync_votequorum } and debug set to on the following happens: * corosync-objctl -w quorum.expected_votes corosync [VOTEQ ] Reading configuration * corosync-objctl -c qa; corosync-objctl -w qa.test=1 [ nothing from VOTEQ in logs ] Behaves as expected. corosync-1.4.1-12.el6.x86_64.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0497.html