cliff 1.16-17.0 breaks neutron lbaas-loadbalancer-list when no load balancers are present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cliff |
New
|
Undecided
|
Unassigned |
Bug Description
Using cliff 1.16.0 or 1.17.0 we get an exception when listing load balancers and there are no load balancers in the tenant.
stack@devstack:~$ neutron lbaas-loadbalan
<keystone debug removed>
DEBUG: keystoneauth.
DEBUG: keystoneauth.
RESP BODY: {"loadbalancers": []}
ERROR: neutronclient.shell list index out of range
Traceback (most recent call last):
File "/opt/stack/
return run_command(cmd, cmd_parser, sub_argv)
File "/opt/stack/
return cmd.run(known_args)
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
Previous behavior with cliff 1.15.0 installed we get blank lines.
stack@devstack:~$ neutron lbaas-loadbalan
summary: |
- cliff 1.17.0 breaks neutron lbaas-loadbalancer-list when no load + cliff 1.16-17.0 breaks neutron lbaas-loadbalancer-list when no load balancers are present |
description: | updated |