OSAPI v1.1 basic server entity should not have config_drive/key_name attributes

Bug #844947 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Brian Waldon

Bug Description

The output below shows key_name and config_drive attributes on the basic (non-detailed) server entity. They should only be returned in a detailed server entity (/servers/detail):

$ curl -H "X-Auth-Token: admin:admin" http://localhost:8774/v1.1/admin/servers

{"servers": [{"uuid": "b62b8b5b-7126-4219-bf7a-13308e1862b8", "links": [{"href": "http://localhost:8774/v1.1/admin/servers/2", "rel": "self"}, {"href": "http://localhost:8774/admin/servers/2", "rel": "bookmark"}], "key_name": null, "name": "stacktester1", "id": 2, "config_drive": ""}, {"uuid": "1cf4680d-958d-4bdd-82b7-cd7624255577", "links": [{"href": "http://localhost:8774/v1.1/admin/servers/1", "rel": "self"}, {"href": "http://localhost:8774/admin/servers/1", "rel": "bookmark"}], "key_name": null, "name": "stacktester1", "id": 1, "config_drive": ""}]}

Tags: osapi-v1.1

Related branches

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
Brian Waldon (bcwaldon)
Changed in nova:
status: Triaged → In Progress
assignee: nobody → Brian Waldon (bcwaldon)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.3
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
Mark Washenberger (markwash) wrote :

Looks like this bug came back.

Changed in nova:
status: Fix Released → Confirmed
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Are you sure? Here's what I get with latest trunk:

GET /v1.1/admin/servers

{"servers": [
{"id": 7, "uuid": "042058f1-2025-46d6-8c06-54a93a4edec6", "links": [{"href": "http://localhost:8774/v1.1/admin/servers/7", "rel": "self"}, {"href": "http://localhost:8774/admin/servers/7", "rel": "bookmark"}], "name": "trousers"},
{"id": 6, "uuid": "dd341883-399c-45ac-a3dd-4be1a7ce4a5f", "links": [{"href": "http://localhost:8774/v1.1/admin/servers/6", "rel": "self"}, {"href": "http://localhost:8774/admin/servers/6", "rel": "bookmark"}], "name": "trousers"}
]}

Changed in nova:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.