Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1061754

Summary: qpid-ha set --backups fails
Product: Red Hat Enterprise MRG Reporter: Justin Ross <jross>
Component: qpid-cppAssignee: Alan Conway <aconway>
Status: CLOSED ERRATA QA Contact: Frantisek Reznicek <freznice>
Severity: medium Docs Contact:
Priority: medium    
Version: DevelopmentCC: aconway, esammons, freznice, iboverma, jross, lzhaldyb
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-35 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-24 15:10:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Justin Ross 2014-02-05 14:49:35 UTC
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

Comment 1 Justin Ross 2014-02-05 14:51:14 UTC
Alan, please assess.

Comment 2 Alan Conway 2014-02-05 15:13:02 UTC
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.

Comment 4 Frantisek Reznicek 2014-02-13 11:28:16 UTC
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

Comment 5 errata-xmlrpc 2014-09-24 15:10:21 UTC
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