Bug 711081

Summary: qpid-cluster -s <ID> crashes with "'NoneType' object has no attribute 'split'"
Product: Red Hat Enterprise MRG Reporter: Frantisek Reznicek <freznice>
Component: qpid-qmfAssignee: Alan Conway <aconway>
Status: CLOSED CURRENTRELEASE QA Contact: Frantisek Reznicek <freznice>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DevelopmentCC: aconway, esammons, iboverma, tross
Target Milestone: 2.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-tools-0.10-5.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 711180 (view as bug list) Environment:
Last Closed: 2012-12-07 17:41:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 711180    

Description Frantisek Reznicek 2011-06-06 13:32:49 UTC
Description of problem:
qpid-cluster -s <ID> crashes with
'NoneType' object has no attribute 'split'


qpid-cluster is not able to stop node in the cluster.
See more details in last section (Additional info).

Version-Release number of selected component (if applicable):
qpid-tools-0.10-5.el5

How reproducible:
100%


Steps to Reproduce:
1. start cluster of one/two nodes
2. list nodes and IDs with 
   'qpid-cluster'
3. perform node stop by 
   'qpid-cluster -s <ID>'
3. echo $?
  
Actual results:
qpid-cluster crashes and requested node is not stopped.

Expected results:
qpid-cluster should not crash and requested node should be stopped.


Additional info:

[root@dhcp-26-234 ~]# qpid-cluster -h
usage: qpid-cluster [options] BROKER

Example: $ qpid-cluster -C  broker-host:10000

options:
  -h, --help            show this help message and exit
  -t SECS, --timeout=SECS
                        Maximum time to wait for broker connection (in
                        seconds)
  -C, --all-connections
                        View client connections to all cluster members
  -c ID, --connections=ID
                        View client connections to specified member
  -d HOST:PORT, --del-connection=HOST:PORT
                        Disconnect a client connection
  -s ID, --stop=ID      Stop one member of the cluster by its ID
  -k, --all-stop        Shut down the whole cluster
  -f, --force           Suppress the 'are you sure' prompt
  -n, --numeric         Don't resolve names
0
[root@dhcp-26-234 ~]# qpid-cluster
  Cluster Name: freznice-virt-cluster
Cluster Status: ACTIVE
  Cluster Size: 2
       Members: ID=192.168.1.3:2387 URL=amqp:tcp:10.34.26.234:5672,tcp:192.168.1.3:5672
              : ID=192.168.1.4:2353 URL=amqp:tcp:10.34.26.233:5672,tcp:192.168.1.4:5672
[root@dhcp-26-234 ~]# qpid-cluster -s 192.168.1.4:2353
'NoneType' object has no attribute 'split'
[root@dhcp-26-234 ~]# echo $?
1
[root@dhcp-26-234 ~]# qpid-cluster
  Cluster Name: freznice-virt-cluster
Cluster Status: ACTIVE
  Cluster Size: 2
       Members: ID=192.168.1.3:2387 URL=amqp:tcp:10.34.26.234:5672,tcp:192.168.1.3:5672
              : ID=192.168.1.4:2353 URL=amqp:tcp:10.34.26.233:5672,tcp:192.168.1.4:5672
[root@dhcp-26-234 ~]# qpid-cluster -s 192.168.1.3:2387
'NoneType' object has no attribute 'split'
[root@dhcp-26-234 ~]# qpid-cluster -s 192.168.1.3
'NoneType' object has no attribute 'split'
[root@dhcp-26-234 ~]# qpid-cluster -s 192.168.1.2
'NoneType' object has no attribute 'split'
[root@dhcp-26-234 ~]# rpm -qf `which qpid-cluster`
qpid-tools-0.10-5.el5

Comment 1 Alan Conway 2011-06-06 15:55:12 UTC
Fixed on upstream trunk r1132683

Comment 3 Frantisek Reznicek 2011-06-07 11:24:51 UTC
The issue has been fixed, verified on RHEL 5.6 / 6.1 i[36]86 / x86_64 on packages:
qpid-tools-0.10-5.el6.noarch qpid-tools-0.10-6.el5.noarch

-> VERIFIED