Failed to execute nova list network if using qpid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Zhi Yan Liu |
Bug Description
ERROR: "string indices must be integers, not str" returned by "nova
network-list"
## Appearance:
1. Setup OpenStack cloud.
2. Create networks
3. List all network by nova CLI but meet the error:
[root@firstbox ~]# nova network-list
ERROR: string indices must be integers, not str
## Environment:
OpenStack: ibm-folsom
QPidd: 0.18
qpid-python: 0.18
## Analysis:
1. From the nova CLI verbose message, I found all the datetime type
filed in the nova-api response body are all wrong, as below log, this
situation cased nova client (nova-pythonclient) can not parse that
payload data into python dictionary structure by the json parser library
(novaclient/
raise "string indices must be integers, not str" exception message to
end user since "body" object is not a vaild dictionary object.
RESP:{'status': '200', 'content-length': '682', 'content-location':
u'http://
'x-compute-
'date': 'Wed, 12 Dec 2012 10:19:11 GMT', 'content-type':
'application/
"vpn_public_port": null, "dhcp_start": "172.0.0.2", "bridge_interface":
null, "updated_at": timestamp(
"491de13b-
null, "gateway": "172.0.0.1", "rxtx_base": null, "label": "demonet",
"priority": null, "project_id": null, "vpn_private_
"deleted": false, "vlan": null, "broadcast": "172.0.0.255", "netmask":
"255.255.255.0", "injected": false, "cidr": "172.0.0.0/24",
"created_at": timestamp(
null, "netmask_v6": null, "dns1": "8.8.4.4"}]}
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Russell Bryant (russellb) |
Changed in nova: | |
assignee: | Russell Bryant (russellb) → Zhi Yan Liu (lzy-dev) |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
no longer affects: | nova/folsom |
Fix proposed to branch: master /review. openstack. org/17948
Review: https:/