Description of problem: nova network-list doesn't work Version-Release number of selected component (if applicable): python-novaclient-2.10.0-1.fc18.noarch How reproducible: 100% Steps to Reproduce: 1. run nova network-list 2. 3. Actual results: Backtrace: [sdake@bigiron tools]$ nova --debug network-list REQ: curl -i http://127.0.0.1:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "verybadpass"}}}' RESP: [200] {'date': 'Fri, 08 Mar 2013 19:25:45 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', 'vary': 'X-Auth-Token'} RESP BODY: {"access": {"token": {"expires": "2013-03-09T19:25:45Z", "id": "8bb5240466a74dde9dfe78bf1a7c2d0d", "tenant": {"enabled": true, "description": null, "name": "admin", "id": "efa9138535674b05a2fc60329a53d690"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://localhost:8774/v1.1/efa9138535674b05a2fc60329a53d690", "region": "RegionOne", "internalURL": "http://localhost:8774/v1.1/efa9138535674b05a2fc60329a53d690", "id": "41c534b2851b4898b26a729c6872d2a3", "publicURL": "http://localhost:8774/v1.1/efa9138535674b05a2fc60329a53d690"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://localhost:9292/v1", "region": "RegionOne", "internalURL": "http://localhost:9292/v1", "id": "9cd367fb790a429cba57f081652aab98", "publicURL": "http://localhost:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://localhost:8000/v1", "region": "RegionOne", "internalURL": "http://localhost:8000/v1", "id": "02ddbb66627948b48f3b64d30de68b35", "publicURL": "http://localhost:8000/v1"}], "endpoints_links": [], "type": "cloudformation", "name": "heat-cfn"}, {"endpoints": [{"adminURL": "http://localhost:8776/v1/efa9138535674b05a2fc60329a53d690", "region": "RegionOne", "internalURL": "http://localhost:8776/v1/efa9138535674b05a2fc60329a53d690", "id": "d212844839ee415bb8c8223a13cf23a9", "publicURL": "http://localhost:8776/v1/efa9138535674b05a2fc60329a53d690"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://localhost:8773/services/Admin", "region": "RegionOne", "internalURL": "http://localhost:8773/services/Cloud", "id": "d3275f5ab49c4bb2aa7f17245b86460a", "publicURL": "http://localhost:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://localhost:8004/v1/efa9138535674b05a2fc60329a53d690", "region": "RegionOne", "internalURL": "http://localhost:8004/v1/efa9138535674b05a2fc60329a53d690", "id": "087d0ef5d228473f8bc352dc662acafd", "publicURL": "http://localhost:8004/v1/efa9138535674b05a2fc60329a53d690"}], "endpoints_links": [], "type": "orchestration", "name": "heat"}, {"endpoints": [{"adminURL": "http://localhost:35357/v2.0", "region": "RegionOne", "internalURL": "http://localhost:5000/v2.0", "id": "27ca87deeac14544921ce71b466af097", "publicURL": "http://localhost:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "75fbc1ebc82b47c29b98d64baf6b9582", "roles": [{"name": "KeystoneAdmin"}, {"name": "admin"}, {"name": "KeystoneServiceAdmin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["a3f9b7aa600a4a928184b2a741078109", "9706404251934362b626fca58a132f19", "c7413fc8428e46e099caf5669d36451a"]}}} REQ: curl -i http://localhost:8774/v1.1/efa9138535674b05a2fc60329a53d690/os-networks -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 8bb5240466a74dde9dfe78bf1a7c2d0d" RESP: [200] {'date': 'Fri, 08 Mar 2013 19:25:45 GMT', 'x-compute-request-id': 'req-1850463c-b9ab-4a9d-a57b-549d80693ece', 'content-type': 'application/json', 'content-length': '688'} RESP BODY: {"networks": [{"bridge": "demonetbr0", "vpn_public_port": null, "dhcp_start": "10.0.0.2", "bridge_interface": null, "updated_at": timestamp(1361071767.0), "id": "b950dfa8-c974-42c9-811b-d43510d1f582", "cidr_v6": null, "deleted_at": null, "gateway": "10.0.0.1", "rxtx_base": null, "label": "demonet", "priority": null, "project_id": null, "vpn_private_address": null, "deleted": false, "vlan": null, "broadcast": "10.0.0.255", "netmask": "255.255.255.0", "injected": false, "cidr": "10.0.0.0/24", "vpn_public_address": null, "multi_host": false, "dns2": null, "created_at": timestamp(1360995029.0), "host": "bigiron.broked.org", "gateway_v6": null, "netmask_v6": null, "dns1": "8.8.4.4"}]} DEBUG (shell:732) 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "/opt/stack/python-novaclient/novaclient/shell.py", line 729, in main OpenStackComputeShell().main(sys.argv[1:]) File "/opt/stack/python-novaclient/novaclient/shell.py", line 665, in main args.func(self.cs, args) File "/opt/stack/python-novaclient/novaclient/v1_1/shell.py", line 573, in do_network_list network_list = cs.networks.list() File "/opt/stack/python-novaclient/novaclient/v1_1/networks.py", line 50, in list return self._list("/os-networks", "networks") File "/opt/stack/python-novaclient/novaclient/base.py", line 67, in _list data = body[response_key] TypeError: 'NoneType' object has no attribute '__getitem__' ERROR: 'NoneType' object has no attribute '__getitem__' Expected results: List of nova networks Additional info:
On Fedora 18 with OpenStack installed using openstack-demo-install directly from standard repo, I can't reproduce this. python-novaclient: 2.10.0-2.fc18 nova: 2012.2.4-1.fc18 Which nova version are you using? How did you install it?
python-novaclient-2.10.0-1.fc18.noarch Not sure on the nova version. Perhaps it has been fixed. This bug is 6 months old. Perhaps we should just close it since it works for you.