TypeError: 'NoneType' object is not iterable

Bug #1652438 reported by YAMAMOTO Takashi on 2016-12-24
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Unassigned

Bug Description

With openstacksdk 0.9.11 and neutron plugin without router AZ extension,
"openstack router create" and "openstack router show" fails with
"TypeError: 'NoneType' object is not iterable".

Note that with such a plugin a router doesn't have "availability_zones" and
"availability_zone_hints".

an example of such a plugin is MidoNet L3 plugin. This problem is blocking
networking-midonet gate.

ubu7% openstack --debug router show hoge
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/local/lib/python2.7/dist-packages/cueclient/osc/plugin.py
START with options: [u'--debug', u'router', u'show', u'hoge']
options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='http://192.168.137.129:5000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, murano_url='', old_profile=None, openid_scope='', os_application_catalog_api_version='1', os_baremetal_api_version='1.9', os_beta_command=False, os_clustering_api_version='1', os_compute_api_version='', os_container_infra_api_version='1', os_data_processing_api_version='1.1', os_data_processing_url='', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='', os_infra_optim_api_version='1', os_key_manager_api_version='1', os_mb_api_version='1', os_metrics_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_queues_api_version='2', os_volume_api_version='2', os_workflow_api_version='2', passcode='', password='***', profile=None, project_domain_id='default', project_domain_name='', project_id='', project_name='demo', protocol='', redirect_uri='', region_name='RegionOne', roles='', timing=False, token='***', trust_id='', url='', user_domain_id='default', user_domain_name='', user_id='', username='demo', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.137.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'queues_api_version': '2', 'workflow_api_version': '2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', 'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', u'image_api_version': u'2', 'auth': {'project_name': 'demo', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', 'application_catalog_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'mb_api_version': '1', u'volume_api_version': '2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
Deferring keystone exception: argument of type 'OSC_Config' is not iterable
defaults: {u'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.137.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'queues_api_version': '2', 'workflow_api_version': '2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', 'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', u'image_api_version': u'2', 'auth': {'project_name': 'demo', 'auth_url': 'http://192.168.137.129:5000/v3', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', 'application_catalog_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'mb_api_version': '1', u'volume_api_version': '2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
messaging API version 2, cmd group openstack.messaging.v2
infra-optim API version 1, cmd group openstack.infra_optim.v1
clustering API version 1, cmd group openstack.clustering.v1
data_processing API version 1.1, cmd group openstack.data_processing.v1
neutronclient API version 2, cmd group openstack.neutronclient.v2
application_catalog API version 1, cmd group openstack.application_catalog.v1
workflow_engine API version 2, cmd group openstack.workflow_engine.v2
container_infra API version 1, cmd group openstack.container_infra.v1
baremetal API version 1.9, cmd group openstack.baremetal.v1
orchestration API version 1, cmd group openstack.orchestration.v1
dns API version 2, cmd group openstack.dns.v2
mb API version 1, cmd group openstack.mb.v1
key_manager API version 1, cmd group openstack.key_manager.v1
metric API version 1, cmd group openstack.metric.v1
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.137.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'queues_api_version': '2', 'workflow_api_version': '2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', 'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', u'image_api_version': u'2', 'auth': {'project_name': 'demo', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', 'application_catalog_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'mb_api_version': '1', u'volume_api_version': '2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.137.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'queues_api_version': '2', 'workflow_api_version': '2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', 'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', u'image_api_version': u'2', 'auth': {'project_name': 'demo', 'user_domain_id': 'default', 'project_domain_id': 'default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', 'application_catalog_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'mb_api_version': '1', u'volume_api_version': '2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
command: router show -> openstackclient.network.v2.router.ShowRouter
Using auth plugin: password
Using parameters {'username': 'demo', 'project_name': 'demo', 'user_domain_id': 'default', 'auth_url': 'http://192.168.137.129:5000/v3', 'password': '***', 'project_domain_id': 'default'}
Get auth_ref
REQ: curl -g -i -X GET http://192.168.137.129:5000/v3 -H "Accept: application/json" -H "User-Agent: osc-lib keystoneauth1/2.16.0 python-requests/2.12.4 CPython/2.7.6"
Starting new HTTP connection (1): 192.168.137.129
http://192.168.137.129:5000 "GET /v3 HTTP/1.1" 200 254
RESP: [200] Vary: X-Auth-Token Content-Type: application/json Content-Length: 254 x-openstack-request-id: req-4e6830dc-44e1-47f3-ad45-621174bdc003 Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2016-10-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.7", "links": [{"href": "http://192.168.137.129:5000/v3/", "rel": "self"}]}}

Making authentication request to http://192.168.137.129:5000/v3/auth/tokens
Resetting dropped connection: 192.168.137.129
http://192.168.137.129:5000 "POST /v3/auth/tokens HTTP/1.1" 201 3537
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "660b1f558b564484ac515a0e3ddf5bff", "name": "Member"}, {"id": "6394cfc1465f4c8db2e737f76432bd68", "name": "anotherrole"}], "expires_at": "2016-12-24T10:57:28.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "e95e80a4d9fd4a81b8d4df1e334f59a6", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://192.168.137.129:5000", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "119fb4c815f34e1da870fedba674a462"}, {"url": "http://192.168.137.129:5000", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "b9b69045d9a34074b21a7f5fe8ef32a0"}, {"url": "http://192.168.137.129:35357", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0288e3f6ddda4bc19fe4bbb711cf24e4"}], "type": "identity", "id": "0160c4bc421a48729eaeeb921c798a0b", "name": "keystone"}, {"endpoints": [{"url": "http://192.168.137.129:8774/v2/e95e80a4d9fd4a81b8d4df1e334f59a6", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "c1a8e2b8ab374f8183de7c3c6ee27ad4"}, {"url": "http://192.168.137.129:8774/v2/e95e80a4d9fd4a81b8d4df1e334f59a6", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "3798d525dd714228a45ec55cd9992b74"}, {"url": "http://192.168.137.129:8774/v2/e95e80a4d9fd4a81b8d4df1e334f59a6", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3b2ae6bac9304d809d009b6f4e6d74e8"}], "type": "compute_legacy", "id": "e4b43876030f4248869ccffa48b54cf3", "name": "nova_legacy"}, {"endpoints": [{"url": "http://192.168.137.129:8774/v2.1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "4bc1ba910aa04b55a1ea9c3969a31c4b"}, {"url": "http://192.168.137.129:8774/v2.1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "e7d6f62390a44ff790673b06157be06a"}, {"url": "http://192.168.137.129:8774/v2.1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "479a10393f824cfeafdbf99a0b6e7eea"}], "type": "compute", "id": "bdd7d0af3f9f4bfeb919695cded2e4d6", "name": "nova"}, {"endpoints": [{"url": "http://192.168.137.129:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "8fe367524e81420d8020afc8ebc61117"}, {"url": "http://192.168.137.129:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "282e846f2c2341278ab977613fa10317"}, {"url": "http://192.168.137.129:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "9158ef2df9424a21b717b7015df927a3"}], "type": "image", "id": "13985d4afe484287932dd69f6a071853", "name": "glance"}, {"endpoints": [{"url": "http://192.168.137.129:9696/", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "cad29ef82e834a83b9497050aa33aca6"}, {"url": "http://192.168.137.129:9696/", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "12cb0028dc2247ee8dd9d19da6a51859"}, {"url": "http://192.168.137.129:9696/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e4dc5911a8bb4293930d2f65073b6f42"}], "type": "network", "id": "180d6c7e096544c8b5b8e231fa2c1c44", "name": "neutron"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "demo", "id": "ac449d9098ed4df78040763bd87a4da5"}, "audit_ids": ["5P07zq4DQDuS9yaADz6FEw"], "issued_at": "2016-12-24T09:57:28.000000Z"}}
run(Namespace(columns=[], formatter='table', max_width=0, noindent=False, prefix='', router=u'hoge', variables=[]))
Connection: <openstack.connection.Connection object at 0x7fa17ace7d50>
Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x7fa17ac2f210>
Making authentication request to http://192.168.137.129:5000/v3/auth/tokens
Starting new HTTP connection (1): 192.168.137.129
http://192.168.137.129:5000 "POST /v3/auth/tokens HTTP/1.1" 201 3537
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "660b1f558b564484ac515a0e3ddf5bff", "name": "Member"}, {"id": "6394cfc1465f4c8db2e737f76432bd68", "name": "anotherrole"}], "expires_at": "2016-12-24T10:57:29.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "e95e80a4d9fd4a81b8d4df1e334f59a6", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://192.168.137.129:5000", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "119fb4c815f34e1da870fedba674a462"}, {"url": "http://192.168.137.129:5000", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "b9b69045d9a34074b21a7f5fe8ef32a0"}, {"url": "http://192.168.137.129:35357", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0288e3f6ddda4bc19fe4bbb711cf24e4"}], "type": "identity", "id": "0160c4bc421a48729eaeeb921c798a0b", "name": "keystone"}, {"endpoints": [{"url": "http://192.168.137.129:8774/v2/e95e80a4d9fd4a81b8d4df1e334f59a6", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "c1a8e2b8ab374f8183de7c3c6ee27ad4"}, {"url": "http://192.168.137.129:8774/v2/e95e80a4d9fd4a81b8d4df1e334f59a6", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "3798d525dd714228a45ec55cd9992b74"}, {"url": "http://192.168.137.129:8774/v2/e95e80a4d9fd4a81b8d4df1e334f59a6", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3b2ae6bac9304d809d009b6f4e6d74e8"}], "type": "compute_legacy", "id": "e4b43876030f4248869ccffa48b54cf3", "name": "nova_legacy"}, {"endpoints": [{"url": "http://192.168.137.129:8774/v2.1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "4bc1ba910aa04b55a1ea9c3969a31c4b"}, {"url": "http://192.168.137.129:8774/v2.1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "e7d6f62390a44ff790673b06157be06a"}, {"url": "http://192.168.137.129:8774/v2.1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "479a10393f824cfeafdbf99a0b6e7eea"}], "type": "compute", "id": "bdd7d0af3f9f4bfeb919695cded2e4d6", "name": "nova"}, {"endpoints": [{"url": "http://192.168.137.129:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "8fe367524e81420d8020afc8ebc61117"}, {"url": "http://192.168.137.129:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "282e846f2c2341278ab977613fa10317"}, {"url": "http://192.168.137.129:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "9158ef2df9424a21b717b7015df927a3"}], "type": "image", "id": "13985d4afe484287932dd69f6a071853", "name": "glance"}, {"endpoints": [{"url": "http://192.168.137.129:9696/", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "cad29ef82e834a83b9497050aa33aca6"}, {"url": "http://192.168.137.129:9696/", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "12cb0028dc2247ee8dd9d19da6a51859"}, {"url": "http://192.168.137.129:9696/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e4dc5911a8bb4293930d2f65073b6f42"}], "type": "network", "id": "180d6c7e096544c8b5b8e231fa2c1c44", "name": "neutron"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "demo", "id": "ac449d9098ed4df78040763bd87a4da5"}, "audit_ids": ["jfbEA3BAS8mczfwi0TP4_Q"], "issued_at": "2016-12-24T09:57:29.000000Z"}}
Looking for versions at http://192.168.137.129:9696
REQ: curl -g -i -X GET http://192.168.137.129:9696 -H "User-Agent: openstacksdk/0.9.11 keystoneauth1/2.16.0 python-requests/2.12.4 CPython/2.7.6" -H "X-Auth-Token: {SHA1}e1b05e24a7b24a9b268aa2d3c684aac8d87ddefd"
Starting new HTTP connection (1): 192.168.137.129
http://192.168.137.129:9696 "GET / HTTP/1.1" 200 124
RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 124 Date: Sat, 24 Dec 2016 09:57:29 GMT Connection: keep-alive
RESP BODY: {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://192.168.137.129:9696/v2.0/", "rel": "self"}]}]}

Using http://192.168.137.129:9696/v2.0 as public network endpoint
REQ: curl -g -i -X GET http://192.168.137.129:9696/v2.0/routers/hoge -H "User-Agent: openstacksdk/0.9.11 keystoneauth1/2.16.0 python-requests/2.12.4 CPython/2.7.6" -H "X-Auth-Token: {SHA1}e1b05e24a7b24a9b268aa2d3c684aac8d87ddefd"
http://192.168.137.129:9696 "GET /v2.0/routers/hoge HTTP/1.1" 404 103
RESP: [404] Content-Type: application/json Content-Length: 103 X-Openstack-Request-Id: req-1edcbbe2-39ad-41ff-b36c-389602d3d26c Date: Sat, 24 Dec 2016 09:57:29 GMT Connection: keep-alive
RESP BODY: {"NeutronError": {"message": "Router hoge could not be found", "type": "RouterNotFound", "detail": ""}}

Request returned failure status: 404
REQ: curl -g -i -X GET http://192.168.137.129:9696/v2.0/routers -H "User-Agent: openstacksdk/0.9.11 keystoneauth1/2.16.0 python-requests/2.12.4 CPython/2.7.6" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}e1b05e24a7b24a9b268aa2d3c684aac8d87ddefd"
http://192.168.137.129:9696 "GET /v2.0/routers HTTP/1.1" 200 1018
RESP: [200] Content-Type: application/json Content-Length: 1018 X-Openstack-Request-Id: req-f3adac1a-2f33-4e71-ad07-0718d630f7fa Date: Sat, 24 Dec 2016 09:57:29 GMT Connection: keep-alive
RESP BODY: {"routers": [{"status": "ACTIVE", "external_gateway_info": null, "description": "", "admin_state_up": true, "tenant_id": "e95e80a4d9fd4a81b8d4df1e334f59a6", "created_at": "2016-12-24T09:18:34Z", "updated_at": "2016-12-24T09:18:34Z", "revision_number": 1, "routes": [], "project_id": "e95e80a4d9fd4a81b8d4df1e334f59a6", "id": "97ce502b-3e6e-4d0e-9f87-efc4d509f037", "name": "hoge"}, {"status": "ACTIVE", "external_gateway_info": {"network_id": "816a7bb5-d417-432e-b403-57228f76bf93", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "1c7b3734-dba6-4615-a4d1-4d7171412f81", "ip_address": "172.24.4.11"}, {"subnet_id": "0facd6ca-486b-4ac4-aab1-5aaf177cc5ad", "ip_address": "2001:db8::1"}]}, "description": "", "admin_state_up": true, "tenant_id": "e95e80a4d9fd4a81b8d4df1e334f59a6", "created_at": "2016-12-24T08:42:36Z", "updated_at": "2016-12-24T08:48:42Z", "revision_number": 11, "routes": [], "project_id": "e95e80a4d9fd4a81b8d4df1e334f59a6", "id": "ca2deb9d-f151-4653-9abd-c425918c7c9c", "name": "router1"}]}

'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/network/v2/router.py", line 603, in take_action
    data = utils.get_item_properties(obj, columns, formatters=_formatters)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/utils.py", line 324, in get_item_properties
    row.append(formatters[field](data))
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/utils.py", line 209, in format_list
    return separator.join(sorted(data))
TypeError: 'NoneType' object is not iterable
clean_up ShowRouter: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 180, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/network/v2/router.py", line 603, in take_action
    data = utils.get_item_properties(obj, columns, formatters=_formatters)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/utils.py", line 324, in get_item_properties
    row.append(formatters[field](data))
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/utils.py", line 209, in format_list
    return separator.join(sorted(data))
TypeError: 'NoneType' object is not iterable

END return value: 1

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers