Terminate instance succeeds but doesn't actually delete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned | ||
OpenStack Dashboard (Horizon) |
New
|
Undecided
|
Unassigned |
Bug Description
Nova:
Version: 2011.2~
clean install from packages 11 Apr 2011
Create an Instance:
-------------------
2011-04-11 10:29:30,246 DEBUG routes.middleware [-] Matched POST /servers from (pid=6076) __call__ /usr/lib/
2011-04-11 10:29:30,246 DEBUG routes.middleware [-] Route path: '/servers', defaults: {'action': u'create', 'controller': <nova.api.
2011-04-11 10:29:30,246 DEBUG routes.middleware [-] Match dict: {'action': u'create', 'controller': <nova.api.
2011-04-11 10:29:30,377 DEBUG nova [-] Using Kernel=None, Ramdisk=None from (pid=6076) create /usr/lib/
2011-04-11 10:29:30,417 DEBUG nova.compute.api [-] Going to run 1 instances... from (pid=6076) create /usr/lib/
Terminate the Instance:
-------
2011-04-11 10:30:11,812 DEBUG routes.middleware [-] Matched DELETE /servers/3 from (pid=6076) __call__ /usr/lib/
2011-04-11 10:30:11,812 DEBUG routes.middleware [-] Route path: '/servers/:(id)', defaults: {'action': u'delete', 'controller': <nova.api.
2011-04-11 10:30:11,813 DEBUG routes.middleware [-] Match dict: {'action': u'delete', 'controller': <nova.api.
2011-04-11 10:30:11,813 DEBUG nova.compute.api [-] Going to try to terminate 3 from (pid=6076) delete /usr/lib/
2011-04-11 10:30:11,999 DEBUG nova.rpc [-] Making asynchronous cast on compute.
2011-04-11 10:30:12,277 INFO nova.compute.
2011-04-11 10:30:12,338 AUDIT nova.compute.
2011-04-11 10:30:12,344 DEBUG nova.compute.
...But it didn't really terminate:
-------
euca-describe-
RESERVATION r-2ee0wrlj IRT default
INSTANCE i-00000003 ami-00000001 shutdown None (IRT, MYCOMPUTER) 0 m1.tiny 2011-04-
database state:
sqlite> select * from instances where id = 3;
created_at = 2011-04-11 01:29:30.420264
updated_at = 2011-04-11 01:30:12.840866
deleted_at =
deleted = 0
id = 3
internal_id =
admin_pass =
user_id = MYUSER
project_id = IRT
image_id = 1
kernel_id =
ramdisk_id =
server_name =
launch_index = 0
key_name =
key_data =
state = 5
state_description = shutdown
memory_mb = 512
vcpus = 1
local_gb = 0
hostname = 3
host = MYCOMPUTER
user_data =
reservation_id = r-2ee0wrlj
mac_address = 02:16:3e:5c:a2:71
scheduled_at =
launched_at = 2011-04-11 01:29:35.249876
terminated_at = 2011-04-11 01:30:11.868268
display_name = MYSERVER
display_description = MYSERVER
availability_zone =
locked = 0
os_type =
launched_on = MYCOMPUTER
instance_type_id = 2
workaround:
-----------
sudo nova-manage db sync
stop & start nova services
I need to clarify: this only applies to instances launched through the openstack API, instances launched with EC2/EUCA terminate without an issue.