List with no resources raises IndexError: list index out of range
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cliff |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Using devstack all-in-one setup from master branch (neutron version 4.0.0).
Listing neutron resources that don't have any resources yet created causes an IndexError.
For example, I don't have any routers defined for my tenant:
ubuntu@l3-aa:~$ neutron router-list
list index out of range
If I run with debug to get the stack:
ubuntu@l3-aa:~$ neutron --debug router-list
...
DEBUG: keystoneauth.
DEBUG: keystoneauth.
DEBUG: keystoneauth.
RESP BODY: {"routers": []}
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
Changed in python-neutronclient: | |
status: | New → Confirmed |
Changed in python-neutronclient: | |
status: | Confirmed → In Progress |
assignee: | nobody → Ritesh Anand (ritesh-anand) |
affects: | python-neutronclient → python-cliff |
Seeing same behavior in my environment too without any neutron resource.