root@cloud01:~#nova list
+--------------------------------------+---------------+-----------+-------------------------------+
| ID | Name | Status | Networks |
| 8f18f6c2-7ec8-4fb3-b1f8-4fe98300e997 | unisinos_vm01 | SUSPENDED | vmnet=10.1.0.3 |
+--------------------------------------+---------------+-----------+-------------------------------+
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";
mysql> delete from security_group_instance_association where instance_id="4";
mysql> delete from iscsi_targets where volume_id=6;
mysql> delete from volumes where id='6';
mysql> delete from instance_info_caches where instance_id="8f18f6c2-7ec8-4fb3-b1f8-4fe98300e997";
mysql> delete from instances where uuid="8f18f6c2-7ec8-4fb3-b1f8-4fe98300e997";
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.