2016-09-12 11:31:50 |
Fernando Jalon |
description |
when calling router list with --long OSC expects the availability_zone field in the response, even if this extension is not loaded:
http://pastebin.com/raw/2BDYaPXS
In /usr/lib/python2.7/site-packages/openstackclient/network/v2/router.py if --long is called it's trying to parse availability_zones field:
def take_action(self, parsed_args):
client = self.app.client_manager.network
columns = (
'id',
'name',
'status',
'admin_state_up',
'distributed',
'ha',
'tenant_id',
)
column_headers = (
'ID',
'Name',
'Status',
'State',
'Distributed',
'HA',
'Project',
)
if parsed_args.long:
columns = columns + (
'routes',
'external_gateway_info',
'availability_zones'
)
column_headers = column_headers + (
'Routes',
'External gateway info',
'Availability zones'
)
data = client.routers()
return (column_headers,
(utils.get_item_properties(
s, columns,
formatters=_formatters,
) for s in data))
python-openstackclient-2.2.0-1.el7.noarch
openstack-neutron-8.1.2-1.el7.noarch |
when calling router list with --long OSC expects the availability_zone field in the response, even if this extension is not loaded:
http://pastebin.com/raw/2BDYaPXS
In /usr/lib/python2.7/site-packages/openstackclient/network/v2/router.py if --long is called it's trying to parse availability_zones field:
def take_action(self, parsed_args):
client = self.app.client_manager.network
columns = (
'id',
'name',
'status',
'admin_state_up',
'distributed',
'ha',
'tenant_id',
)
column_headers = (
'ID',
'Name',
'Status',
'State',
'Distributed',
'HA',
'Project',
)
if parsed_args.long:
columns = columns + (
'routes',
'external_gateway_info',
'availability_zones'
)
column_headers = column_headers + (
'Routes',
'External gateway info',
'Availability zones'
)
data = client.routers()
return (column_headers,
(utils.get_item_properties(
s, columns,
formatters=_formatters,
) for s in data))
python-openstackclient-2.2.0-1.el7.noarch
openstack-neutron-8.1.2-1.el7.noarch
Seen also with OSC 2.6.0 |
|