Bug 711081 - qpid-cluster -s <ID> crashes with "'NoneType' object has no attribute 'split'"
Summary: qpid-cluster -s <ID> crashes with "'NoneType' object has no attribute 'split'"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf
Version: Development
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 2.0
: ---
Assignee: Alan Conway
QA Contact: Frantisek Reznicek
URL:
Whiteboard:
Depends On:
Blocks: 711180
TreeView+ depends on / blocked
 
Reported: 2011-06-06 13:32 UTC by Frantisek Reznicek
Modified: 2015-11-16 01:13 UTC (History)
4 users (show)

Fixed In Version: qpid-tools-0.10-5.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 711180 (view as bug list)
Environment:
Last Closed: 2012-12-07 17:41:39 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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