@mikalstill

Yes. Working on it today :)

It seems that the trouble starts when the nova client requests the
deleted image, the server happily replies with:

REQ: curl -i
https://dfw.servers.api.rackspacecloud.com/v2/641237/images/088d978f-c387
-41bd-83c7-918a0d4b38c0 -X GET -H "X-Auth-Project-Id: 641237" -H "User-
Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-
Token: bf8001da-14a5-4dbc-a72f-3d1c4d92059a"

RESP: [200] {'date': 'Wed, 24 Apr 2013 02:00:17 GMT', 'content-length': '666', 
'content-type': 'application/json', 'x-compute-request-id': 
'req-2adcb4df-5203-419c-86cd-3cbb4fdd5b60', 'server': 'Jetty(8.0.y.z-SNAPSHOT)'}
RESP BODY: {"image": {"status": "DELETED", "updated": "2013-04-24T01:50:50Z", 
"name": "temp_snapshot", "links": [{"href": 
"https://dfw.servers.api.rackspacecloud.com/v2/641237/images/088d978f-c387-41bd-83c7-918a0d4b38c0";,
 "rel": "self"}, {"href": 
"https://dfw.servers.api.rackspacecloud.com/641237/images/088d978f-c387-41bd-83c7-918a0d4b38c0";,
 "rel": "bookmark"}, {"href": 
"https://dfw.servers.api.rackspacecloud.com/641237/images/088d978f-c387-41bd-83c7-918a0d4b38c0";,
 "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": 
"2013-04-24T01:32:16Z", "progress": 0, "minRam": 512, "minDisk": 20, "id": 
"088d978f-c387-41bd-83c7-918a0d4b38c0", "metadata": {}}}

------

I think the proper behaviour should be, don't show deleted images to the
user, even if they request them by ID. Only admin's should see deleted
images.

I'm not 100% sure yet if showing deleted images is bad. Do you have an
opinon @mikalstill ?

Currently I'm digging  into the nova code to see what's happening there.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1155458

Title:
  500 response when trying to create a server from a deleted image

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1155458/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to