Bug 1061754 - qpid-ha set --backups fails
Summary: qpid-ha set --backups fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 3.0
: ---
Assignee: Alan Conway
QA Contact: Frantisek Reznicek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-05 14:49 UTC by Justin Ross
Modified: 2015-11-16 01:16 UTC (History)
6 users (show)

Fixed In Version: qpid-cpp-0.22-35
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-24 15:10:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-5541 0 None None None Never
Red Hat Bugzilla 1061736 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Product Errata RHEA-2014:1296 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 3.0 Release 2014-09-24 19:00:06 UTC

Internal Links: 1061736

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


Note You need to log in before you can comment on or make changes to this bug.