Error in the JSON response when executing nova show (with quantum)
Hi everybody,
I'm running Openstack Folsom with quantum.
I have found this problem:
when I run the command:
nova --debug show <instance-id>
I think that the JSON message that the system returns is not correct because it does not correspond to a fixed schema:
{"server": {
"status": "ACTIVE",
"updated": "2012-11-
"hostId": "0d1236ea4d50a0
"OS-EXT-
"addresses": {
"private": [{"version": 4, "addr": "10.1.1.6"}],
"public": [{"version": 4, "addr": "192.168.0.134"}],
"lan02": [{"version": 4, "addr": "10.1.22.3"}],
"lan01": [{"version": 4, "addr": "10.1.11.3"}]
},
"links": [{"href": "http://
{"href": "http://
"key_name": "mazinger",
"image": {"id": "21e2e055-
"links": [{"href": "http://
"OS-EXT-
"OS-EXT-
"OS-EXT-
"OS-EXT-
"flavor": {
"id": "2",
"links": [{"href": "http://
},
"id": "be283a48-
"security_
"user_id": "c4e9a7544f7648
"name": "fenix03", "created": "2012-11-
"tenant_id": "bcb940507f6447
"OS-
"accessIPv4": "",
"accessIPv6": "",
"progress": 0,
"OS-
"config_drive": "", "metadata": {}
}
}
We can see that in the value field related to the "addresses" key there is an entry for each network at which the server
is connected. Each one, has different Key value. So each time the network configuration changes, the schema of
the message also changes, making the message unmanageable.
I think it should be something like this:
{"server": {
"status": "ACTIVE",
"updated": "2012-11-
"hostId": "0d1236ea4d50a0
"OS-EXT-
"addresses": [
{"name" : "private", [{"version": 4, "addr": "10.1.1.6"}]},
{"name" : "public", [{"version": 4, "addr": "192.168.0.134"}]},
{"name" : "lan02"
{"name" : "lan01" ,[{"version": 4, "addr": "10.1.11.3"}]}
],
"links": [{"href": "http://
{"href": "http://
"key_name": "mazinger",
"image": {"id": "21e2e055-
.
.
.
.
}
}
Am I wrong? Or it is a problem caused by the migration from nova-network to quantum.
I ask this because I'm trying to develop a Java client using JSON.
Thanks for the attention.
Best regards!
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Mattia Peirano for more information if necessary.