metadata service returns Content-Type: text/html
Bug #1243878 reported by
Lorin Hochstein
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Sridhar Gaddam | ||
neutron |
Fix Released
|
Medium
|
Sridhar Gaddam |
Bug Description
When making an http request against the OpenStack metadata service, it returns "Content-Type: text/html", despite the returned content being in json format.
For example (using httpie):
$ http get http://
HTTP/1.1 200 OK
Content-Length: 1283
Content-Type: text/html; charset=UTF-8
Date: Wed, 23 Oct 2013 18:55:17 GMT
{"random_seed": ... }
The returned content type should really be something like:
Content-Type: application/json; charset=UTF-8
Version: grizzly
tags: | added: api |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: metadata |
Changed in nova: | |
assignee: | nobody → Sridhar Gaddam (sridhargaddam) |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in neutron: | |
assignee: | nobody → Sridhar Gaddam (sridhargaddam) |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
importance: | Undecided → Medium |
milestone: | none → icehouse-3 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | icehouse-3 → 2014.1 |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
To post a comment you must log in.
Note that the EC2 metadata service is also returning the incorrect content type. It is returning text/html instead of text/plain
On OpenStack (grizzly):
$ http get http:// 169.254. 169.254/ 2009-04- 04/meta- data/ami- id
HTTP/1.1 200 OK
Content-Length: 12
Content-Type: text/html; charset=UTF-8
Date: Wed, 23 Oct 2013 19:16:02 GMT
ami-00000005
On Amazon EC2:
$ http get http:// 169.254. 169.254/ 2009-04- 04/meta- data/ami- id
HTTP/1.0 200 OK
Accept-Ranges: bytes
Connection: close
Content-Length: 12
Content-Type: text/plain
Date: Wed, 23 Oct 2013 19:16:12 GMT
ETag: "1713461041"
Last-Modified: Thu, 20 Jun 2013 13:21:54 GMT
Server: EC2ws
ami-852352ec