nova should support showing 'DELETED' servers

Bug #1007116 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Abhishek Talwar

Bug Description

Nova supports showing (HTTP GET) on deleted images and flavors. Trying to show a deleted server currently fails however:

[root@nova1 ~]# nova delete 4e38efa4-6980-44b0-8774-3a28de88e22f
[root@nova1 ~]# nova show 4e38efa4-6980-44b0-8774-3a28de88e22f
ERROR: No server with a name or ID of '4e38efa4-6980-44b0-8774-3a28de88e22f' exists.

It would seem for consistency that we should follow the model we do with images and flavors and allow 'DELETED' records that still exist in the database to be shown. See example of showing deleted image below:

[root@nova1 ~]# nova image-show 01705a39-4deb-402c-a651-e6e8bbef83ef
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| created | 2012-05-31T20:39:36Z |
| id | 01705a39-4deb-402c-a651-e6e8bbef83ef |
| minDisk | 0 |
| minRam | 0 |
| name | foo |
| progress | 0 |
| status | DELETED |
| updated | 2012-05-31T20:39:54Z |
+----------+--------------------------------------+

Tags: api
Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → Low
status: New → In Progress
Dan Prince (dan-prince)
Changed in nova:
status: In Progress → Triaged
Lawrance (jing)
Changed in nova:
assignee: Dan Prince (dan-prince) → Lawrance (jing)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/41054

Matt Riedemann (mriedem)
tags: added: api
Changed in nova:
status: In Progress → Triaged
importance: Low → Wishlist
assignee: Lawrance (jing) → nobody
Revision history for this message
Matt Riedemann (mriedem) wrote :

There is contention in the patch review so marking this as wishlist.

hzxiongwenwu (xwwzzy)
Changed in nova:
assignee: nobody → hzxiongwenwu (xwwzzy)
Sean Dague (sdague)
Changed in nova:
assignee: hzxiongwenwu (xwwzzy) → nobody
Changed in nova:
assignee: nobody → Abhishek Talwar (abhishek-talwar)
Changed in nova:
status: Triaged → In Progress
Revision history for this message
Abhishek Talwar (abhishek-talwar) wrote :

Hi All

I have been working on this bug fix and have implemented the required change but as there is a change in the functionality of nova few of the test cases fail . so please provide some knowledge how can i successfully run all the test cases.
I am not submitting a patch as Jenkins will fail it because the test cases don't pass.
So please provide some suggestions.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/122313

Revision history for this message
Phil Day (philip-day) wrote :

I don't think this is a valid bug. Admins can already see deleted instances by including "deleted=True" in the search options. Non admins shouldn't be able to see deleted instances.

Changed in nova:
status: In Progress → Opinion
Changed in nova:
assignee: Abhishek Talwar (abhishek-talwar) → tcs_openstack_group (tcs-openstack-group)
assignee: tcs_openstack_group (tcs-openstack-group) → Abhishek Talwar (abhishek-talwar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/122313
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

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.