** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1206890

Title:
  Deleting an instance should clean all the BDMs from the database too

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Right now, when booting an instance from an image a new BDM
  (origin=image, destination=local) is created for the image. The entry
  in the database for this BDM is not marked as deleted when destroying
  the instance:

  $ nova boot --flavor m1.nano --image cirros-0.3.1-x86_64-uec server
  $ nova list
  
+--------------------------------------+-------+---------+------------+-------------+---------------------+
  | ID                                   | Name  | Status | Task State | Power 
State | Networks            |
  
+--------------------------------------+-------+---------+------------+-------------+---------------------+
  | 955d08de-dea7-44e8-b04a-f9993072ceec | server | ACTIVE | None       | 
Running     | private=172.30.42.2 |
  
+--------------------------------------+-------+---------+------------+-------------+---------------------+

  mysql> select source_type, destination_type, image_id, instance_uuid, deleted 
from block_device_mapping where instance_uuid = 
'955d08de-dea7-44e8-b04a-f9993072ceec';
  
+-------------+------------------+--------------------------------------+--------------------------------------+---------+
  | source_type | destination_type | image_id                             | 
instance_uuid                        | deleted |
  
+-------------+------------------+--------------------------------------+--------------------------------------+---------+
  | image       | local            | 7ee18238-5e5c-4778-af28-c649acdb0256 | 
955d08de-dea7-44e8-b04a-f9993072ceec |       0 |
  
+-------------+------------------+--------------------------------------+--------------------------------------+---------+
  1 row in set (0.00 sec)

  $ nova delete server

  mysql> select source_type, destination_type, image_id, instance_uuid, deleted 
from block_device_mapping where instance_uuid = 
'955d08de-dea7-44e8-b04a-f9993072ceec';
  
+-------------+------------------+--------------------------------------+--------------------------------------+---------+
  | source_type | destination_type | image_id                             | 
instance_uuid                        | deleted |
  
+-------------+------------------+--------------------------------------+--------------------------------------+---------+
  | image       | local            | 7ee18238-5e5c-4778-af28-c649acdb0256 | 
955d08de-dea7-44e8-b04a-f9993072ceec |       0 |
  
+-------------+------------------+--------------------------------------+--------------------------------------+---------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1206890/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to