List command is returning "List out of index" for Multi-Node devstack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
New
|
Undecided
|
Unassigned |
Bug Description
Summary (Bug title): List index out of range returned for NeutronClient CLIs when there is no resource created, on a multi-node devstack
Additional Information given below:
Message: 3
Date: Fri, 4 Mar 2016 23:23:29 +0000
From: Anil Rao <email address hidden>
To: "OpenStack Development Mailing List (not for usage questions)"
<email address hidden>
Subject: [openstack-dev] [neutron][taas] tap-service-list /
Message-ID:
<email address hidden>
Content-Type: text/plain; charset="us-ascii"
Hi,
Here is some additional information pertaining to the failures I am seeing when invoking the tap-service-list and tap-flow-list commands. This is on a multi-node DevStack environment (1 controller node, I network node and 2 compute nodes).
1. The tap-service-list command returns a failure when there are no tap-services.
2. The tap-flow-list command returns a failure when there are no tap-flows.
3. Both commands work as expected when the respective objects are present.
See example output (for tap-services) below.
osadmin@ds-ctl:~$ neutron tap-service-list
list index out of range
osadmin@ds-ctl:~$ neutron tap-service-create --name TS1 --description "tap-service-1" --port 2100906e-
Created a new tap_service:
+------
| Field | Value |
+------
| description | tap-service-1 |
| id | 1086170e-
| name | TS1 |
| port_id | 2100906e-
| tenant_id | 93c1c68f06e8439
+------
osadmin@ds-ctl:~$ neutron tap-service-list
+------
| id | name |
+------
| 1086170e-
+------
osadmin@ds-ctl:~$ neutron tap-service-delete TS1
Deleted tap_service: TS1
osadmin@ds-ctl:~$ neutron tap-service-list
list index out of range
Here is the output of tap-service-list with the "-debug" flag. The error is being reported by neutronclient.
DEBUG: keystoneauth.
RESP BODY: {"tap_services": []}
ERROR: neutronclient.shell list index out of range
Traceback (most recent call last):
File "/usr/local/
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/local/
return cmd.run(known_args)
File "/usr/local/
return super(OpenStack
File "/usr/local/
self.
File "/usr/local/
parsed_args,
File "/usr/local/
stdout, x, int(parsed_
File "/usr/local/
first_line = x.get_string(
IndexError: list index out of range
list index out of range
It appears that other list commands associated with the neutron client also show the same type of failure when their lists are empty.
osadmin@ds-ctl:~$ neutron agent-list
list index out of range
osadmin@ds-ctl:~$ neutron address-scope-list
list index out of range
Thanks,
Anil
Changed in python-neutronclient: | |
assignee: | nobody → Reedip (reedip-banerjee) |