nova host-list cann't return result in xml form
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Yaguang Tang |
Bug Description
nova-api should can return result in json form and xml form. but the host-list api can only return result in json form.
It can be reproduced as the following step:
1)curl -i http://
return the following result:
{"hosts": [{"zone": "nova", "host_name": "host1", "service": "scheduler"}, {"zone": "nova", "host_name": "host1", "service": "compute"}, {"zone": "nova", "host_name": "host1", "service": "cert"}, {"zone": "nova", "host_name": "host1", "service": "network"}, {"zone": "nova", "host_name": "host1", "service": "consoleauth"}]}
but if we change "Accept: application/json" to "Accept: application/xml" and use the commang:
2)curl -i http://
it will be return the following result:
<?xml version='1.0' encoding='UTF-8'?>
<hosts>
I think there is something wrong with @wsgi.serialize
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Yaguang Tang (heut2008) |
Changed in nova: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
milestone: | grizzly-1 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/15649
Review: https:/