Terminate instance button should be grayed out while instance is in suspended state
Bug #1009893 reported by
David Naori
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Gabriel Hurley |
Bug Description
When trying to terminate an instance on suspended status via the dashboard it fails with the following (uninformative) error:
""" Error: Unable to terminate instance: XXXX """
The actual error:
Cannot 'delete' while instance is in vm_state suspended
In my opinion terminate instance button should be grayed out while instance is in suspended state.
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → Low |
milestone: | none → folsom-3 |
assignee: | nobody → Nebula (nebula) |
Changed in horizon: | |
status: | In Progress → Fix Committed |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | folsom-3 → 2012.2 |
To post a comment you must log in.
I have the same problem.
root@cloud01:~#nova list ------- ------- ------- ------- ----+-- ------- ------+ ------- ----+-- ------- ------- ------- ------- -+ 7ec8-4fb3- b1f8-4fe98300e9 97 | unisinos_vm01 | SUSPENDED | vmnet=10.1.0.3 | ------- ------- ------- ------- ----+-- ------- ------+ ------- ----+-- ------- ------- ------- ------- -+
+------
| ID | Name | Status | Networks |
| 8f18f6c2-
+------
root@cloud01:~# nova delete unisinos_vm01
ERROR: Cannot 'delete' while instance is in vm_state suspended (HTTP 409)
but I restart the services (compute, api, rabbit) and not working.
I delete manually all (instance files, volume lvm and entries in mysql database):
mysql> delete from block_device_ mapping where id="1"; group_instance_ association where instance_id="4"; info_caches where instance_ id="8f18f6c2- 7ec8-4fb3- b1f8-4fe98300e9 97"; 7ec8-4fb3- b1f8-4fe98300e9 97";
mysql> delete from security_
mysql> delete from iscsi_targets where volume_id=6;
mysql> delete from volumes where id='6';
mysql> delete from instance_
mysql> delete from instances where uuid="8f18f6c2-
rm /var/lib/ nova/instances/ instance- 00000004/ -rf
/etc/init. d/iscsitarget stop volumes/ volume- 00000006 d/iscsitarget start
lvremove /dev/nova-
/etc/init.