[openstack-dev] can not show the soft_deleted instance

Eli Qiao taget at linux.vnet.ibm.com
Thu Sep 4 07:58:34 UTC 2014


hi all :
I found nova can not list the soft_deleted instances(v2 an v3 no show),
but seen from novaclient help
[tagett at stack-01 devstack]$ nova help restore
usage: nova restore <server>

Restore a soft-deleted server.

how can I restore a soft-deleted server ? we can not list the soft
deleted instances.

[tagett at stack-01 devstack]$ nova list --all-tenants --status SOFT_DELETED
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+

but from the database we can see this status.
MariaDB [nova]> select hostname ,vm_state from instances;
| vm11111 | soft-delete |
| vm1111 | soft-delete |


I check v3 code, it don't support restore even, how will this go ?
I find some discussion https://review.openstack.org/#/c/35061/2
any comments on that ?
this is designed ? we abandon the restore operation ?
beside I have a WIP patch to have soft-deleted instance listed in v3 api.
https://review.openstack.org/#/c/118641/

-- 
Thanks,
Eli (Li Yong) Qiao

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140904/be2988cb/attachment.html>


More information about the OpenStack-dev mailing list