Create Server Response body does not contain all the details

Bug #1053360 reported by Rajalakshmi Ganesan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Description: Create Server Response body does not contain all the details as per the Document at " http://docs.openstack.org/api/openstack-compute/2/content/CreateServers.html "

Environment observerd:
Folsom

LOG:
-----------
[umamaheshk@HPOpenstackVM16 ~/source/csbu-qa-dev/nova/tests]$./apitool.py -j create_server.json POST servers
REQ: curl -i http://15.184.64.226:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "User-Agent: python-novaclient"

REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "iforgot"}}}

RESP:{'date': 'Thu, 20 Sep 2012 09:32:18 GMT', 'vary': 'X-Auth-Token', 'content-length': '2584', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"expires": "2012-09-21T09:32:18Z", "id": "a2d5f2099642474381f74cf2b711a243", "tenant": {"enabled": true, "description": null, "name": "admin", "id": "26b9af28e4c048f69aeddfa46517cf70"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70", "region": "RegionOne", "publicURL": "http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70", "internalURL": "http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70"}], "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": [{"adminURL": "http://15.184.64.226:3333", "region": "RegionOne", "publicURL": "http://15.184.64.226:3333", "internalURL": "http://15.184.64.226:3333"}], "endpoints_links": [], "type": "s3", "name": "S3 Service"}, {"endpoints": [{"adminURL": "http://15.184.64.226:9292", "region": "RegionOne", "publicURL": "http://15.184.64.226:9292", "internalURL": "http://15.184.64.226:9292"}], "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": [{"adminURL": "http://15.184.64.226:8776/v1/26b9af28e4c048f69aeddfa46517cf70", "region": "RegionOne", "publicURL": "http://15.184.64.226:8776/v1/26b9af28e4c048f69aeddfa46517cf70", "internalURL": "http://15.184.64.226:8776/v1/26b9af28e4c048f69aeddfa46517cf70"}], "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": [{"adminURL": "http://15.184.64.226:8773/services/Admin", "region": "RegionOne", "publicURL": "http://15.184.64.226:8773/services/Cloud", "internalURL": "http://15.184.64.226:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": [{"adminURL": "http://15.184.64.226:8080/", "region": "RegionOne", "publicURL": "http://15.184.64.226:8080/v1/AUTH_26b9af28e4c048f69aeddfa46517cf70", "internalURL": "http://15.184.64.226:8080/v1/AUTH_26b9af28e4c048f69aeddfa46517cf70"}], "endpoints_links": [], "type": "object-store", "name": "Swift Service"}, {"endpoints": [{"adminURL": "http://15.184.64.226:35357/v2.0", "region": "RegionOne", "publicURL": "http://15.184.64.226:5000/v2.0", "internalURL": "http://15.184.64.226:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": {"username": "admin", "roles_links": [], "id": "c7d669d9438d46e895e6af32a2e05b15", "roles": [{"name": "KeystoneServiceAdmin"}, {"name": "KeystoneAdmin"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["29301a9127d24a9288765469d586861d", "e48958a439574cadbc4d24a010705fbe", "4edec5afdfd041ceadfe717e91808cec"]}}}

REQ: curl -i http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70/servers -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "X-Auth-Token: a2d5f2099642474381f74cf2b711a243"

REQ: curl -i http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70/servers -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "X-Auth-Token: a2d5f2099642474381f74cf2b711a243"

REQ BODY: {"server": {"flavorRef": "1", "name": "new-server-test-delete_ps", "imageRef": "50d1bf80-eed7-4381-ab32-a04ac5aad1f8", "metadata": {"My Server Name": "Apache1"}}}

REQ BODY: {"server": {"flavorRef": "1", "name": "new-server-test-delete_ps", "imageRef": "50d1bf80-eed7-4381-ab32-a04ac5aad1f8", "metadata": {"My Server Name": "Apache1"}}}

RESP:{'status': '202', 'content-length': '442', 'x-compute-request-id': 'req-b80a3535-54b8-45da-9b71-dbd105a76e42', 'location': 'http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70/servers/b244938c-48ab-4ef4-8d65-8e068d8e6c71', 'date': 'Thu, 20 Sep 2012 09:32:22 GMT', 'content-type': 'application/json'} {"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "b244938c-48ab-4ef4-8d65-8e068d8e6c71", "links": [{"href": "http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70/servers/b244938c-48ab-4ef4-8d65-8e068d8e6c71", "rel": "self"}, {"href": "http://15.184.64.226:8774/26b9af28e4c048f69aeddfa46517cf70/servers/b244938c-48ab-4ef4-8d65-8e068d8e6c71", "rel": "bookmark"}], "adminPass": "uxz5goW5VDdn"}}

RESP:{'status': '202', 'content-length': '442', 'x-compute-request-id': 'req-b80a3535-54b8-45da-9b71-dbd105a76e42', 'location': 'http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70/servers/b244938c-48ab-4ef4-8d65-8e068d8e6c71', 'date': 'Thu, 20 Sep 2012 09:32:22 GMT', 'content-type': 'application/json'} {"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "b244938c-48ab-4ef4-8d65-8e068d8e6c71", "links": [{"href": "http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70/servers/b244938c-48ab-4ef4-8d65-8e068d8e6c71", "rel": "self"}, {"href": "http://15.184.64.226:8774/26b9af28e4c048f69aeddfa46517cf70/servers/b244938c-48ab-4ef4-8d65-8e068d8e6c71", "rel": "bookmark"}], "adminPass": "uxz5goW5VDdn"}}

--- START OF RESPONSE ---
{ u'server': { u'OS-DCF:diskConfig': u'MANUAL',
                   u'adminPass': u'uxz5goW5VDdn',
                   u'id': u'b244938c-48ab-4ef4-8d65-8e068d8e6c71',
                   u'links': [ { u'href': u'http://15.184.64.226:8774/v2/26b9af28e4c048f69aeddfa46517cf70/servers/b244938c-48ab-4ef4-8d65-8e068d8e6c71',
                                     u'rel': u'self'},
                                 { u'href': u'http://15.184.64.226:8774/26b9af28e4c048f69aeddfa46517cf70/servers/b244938c-48ab-4ef4-8d65-8e068d8e6c71',
                                     u'rel': u'bookmark'}],
                   u'security_groups': [{ u'name': u'default'}]}}
--- ENF OF RESPONSE ---
[umamaheshk@HPOpenstackVM16 ~/source/csbu-qa-dev/nova/tests]$

Revision history for this message
Vish Ishaya (vishvananda) wrote :

From the linked document: "Note that when creating a server only the server ID, its links, and the admin password are guaranteed to be returned in the request. Additional attributes may be retrieved by performing subsequent GETs on the server."

Changed in nova:
status: New → Invalid
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.