The bug content here was selected from bug 1061736: 2] query vs. set functionality (expected backups) There is no way how to specify number of expected backups: * qpid-ha set --backups=2 consistently fails with UnknownMethod * note qpid-ha set --backups=0 do not fail - has simply no effect * qpid query always say None See Additional Info 2] I propose: * remove the expected backups functionality (if not useful/functional/needed) OR * valid values should not fail and should be reflected in qpid query table Additional info: 2] Expected backups [root@dhcp-lab-190 ~]# qpid-ha status active [root@dhcp-lab-190 ~]# qpid-ha query Status: active Brokers URL: amqp:tcp:192.168.6.66:5672,tcp:192.168.6.67:5672,tcp:192.168.6.65:5672 Public URL: amqp:tcp:192.168.6.251:5672 Expected Backups: None Replicate: all [root@dhcp-lab-190 ~]# qpid-ha set --backups=2 Exception from Agent: {u'error_code': 2, u'error_text': 'UnknownMethod'} [root@dhcp-lab-190 ~]# qpid-ha query Status: active Brokers URL: amqp:tcp:192.168.6.66:5672,tcp:192.168.6.67:5672,tcp:192.168.6.65:5672 Public URL: amqp:tcp:192.168.6.251:5672 Expected Backups: None Replicate: all
Alan, please assess.
Well spotted, not sure what I was doing there but I didn't finish it. It doesn't make sense anyway as "expected backups" means something else (specific backup UUIDs, not just a count) in the new HA context. Removed the invalid options on trunk: Commit 1564797 from Alan Conway in branch 'qpid/trunk' [ https://svn.apache.org/r1564797 ] QPID-5541: HA incorrect options for expected-backups in qpid-ha tool Remove invalid --backup option from qpid-ha set and query commands.
The not functional Expected backups HA feature was successfully removed. qpid-ha set --backups is no longer valid option. Tested on RHEL 6.5 i/x on packages: perl-qpid-0.22-7.el6.x86_64 perl-qpid-debuginfo-0.22-7.el6.x86_64 python-qpid-0.22-11.el6.noarch python-qpid-qmf-0.22-27.el6.x86_64 qpid-cpp-client-0.22-35.el6.x86_64 qpid-cpp-client-devel-0.22-35.el6.x86_64 qpid-cpp-client-devel-docs-0.22-35.el6.noarch qpid-cpp-client-rdma-0.22-35.el6.x86_64 qpid-cpp-debuginfo-0.22-35.el6.x86_64 qpid-cpp-server-0.22-35.el6.x86_64 qpid-cpp-server-devel-0.22-35.el6.x86_64 qpid-cpp-server-ha-0.22-35.el6.x86_64 qpid-cpp-server-linearstore-0.22-35.el6.x86_64 qpid-cpp-server-rdma-0.22-35.el6.x86_64 qpid-cpp-server-xml-0.22-35.el6.x86_64 qpid-java-client-0.22-6.el6.noarch qpid-java-common-0.22-6.el6.noarch qpid-java-example-0.22-6.el6.noarch qpid-jca-0.22-2.el6.noarch qpid-jca-xarecovery-0.22-2.el6.noarch qpid-jca-zip-0.22-2.el6.noarch qpid-proton-c-0.6-1.el6.x86_64 qpid-proton-c-devel-0.6-1.el6.x86_64 qpid-proton-debuginfo-0.6-1.el6.x86_64 qpid-qmf-0.22-27.el6.x86_64 qpid-qmf-debuginfo-0.22-27.el6.x86_64 qpid-qmf-devel-0.22-27.el6.x86_64 qpid-snmpd-1.0.0-15.el6.x86_64 qpid-snmpd-debuginfo-1.0.0-15.el6.x86_64 qpid-tools-0.22-8.el6.noarch rh-qpid-cpp-tests-0.22-35.el6.x86_64 -> VERIFIED
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/RHEA-2014-1296.html