← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1089430] Re: Failed to execute nova list network if using qpid

 

** No longer affects: nova/folsom

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1089430

Title:
  Failed to execute nova list network if using qpid

Status in OpenStack Compute (Nova):
  Fix Released

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/client.py:195, novaclient/base.py:67), then the nova client
  	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://10.0.0.1:8774/v1.1/cea4fe6aa31c4e85bfcd4025ad56e950/os-networks',
  	'x-compute-request-id': 'req-0bce27d9-e05f-404b-a224-dffe75b27aa9',
  	'date': 'Wed, 12 Dec 2012 10:19:11 GMT', 'content-type':
  	'application/json'} {"networks": [{"bridge": "demonetbr0",
  	"vpn_public_port": null, "dhcp_start": "172.0.0.2", "bridge_interface":
  	null, "updated_at": timestamp(1355125471.0), "id":
  	"491de13b-0cf0-403a-8d5b-9dd41185d3d9", "cidr_v6": null, "deleted_at":
  	null, "gateway": "172.0.0.1", "rxtx_base": null, "label": "demonet",
  	"priority": null, "project_id": null, "vpn_private_address": null,
  	"deleted": false, "vlan": null, "broadcast": "172.0.0.255", "netmask":
  	"255.255.255.0", "injected": false, "cidr": "172.0.0.0/24",
          "vpn_public_address": null, "multi_host": false, "dns2": null,
  	"created_at": timestamp(1355124124.0), "host": "firstbox", "gateway_v6":
  	null, "netmask_v6": null, "dns1": "8.8.4.4"}]}

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1089430/+subscriptions