Reviewed: https://review.openstack.org/288433 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=43d00cbfa65fca29773b7f9cf9ed2db25359e827 Submitter: Jenkins Branch: master
commit 43d00cbfa65fca29773b7f9cf9ed2db25359e827 Author: zhengyao1 <[email protected]> Date: Fri Mar 4 21:27:23 2016 +0800 After migrate in-use volume the BDM information lost This flag delete_on_termination is important for use, but after the volume migration, this flag is the hardcoded "false". It should be consistent with the information on the migration before. Closes-Bug: #1550250 Change-Id: Ifa1fb061df697f03893171a8c6ba96154ec8a29d ** Changed in: nova Status: In Progress => Fix Released -- 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/1550250 Title: migrate in-use status volume, the volume's "delete_on_termination" flag lost Status in OpenStack Compute (nova): Fix Released Bug description: Reproducing method as following: 1. create a blank volume named "test_show" 2. create a vm instance named test and attach volume "test_show". [root@2C5_10_DELL05 ~(keystone_admin)]# nova boot --flavor 1 --image fd8330b3-a307-4140-8fe0-01341b583e26 --block-device-mapping vdb=4ee8dc8e-9ebc-4f82-bab1-862ee7866f2f:::1 --nic net-id=5c8f7e7a-5a75-48eb-9c68-096278585c18 test +--------------------------------------+--------------------------------------------------+ | Property | Value | +--------------------------------------+--------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | - | | OS-EXT-SRV-ATTR:hypervisor_hostname | - | | OS-EXT-SRV-ATTR:instance_name | instance-0000063f | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | adminPass | 8SGyuuuESf8n | | autostart | TRUE | | boot_index_type | | | config_drive | | | created | 2016-02-26T09:15:43Z | | flavor | m1.tiny (1) | | hostId | | | id | 9010a596-d0e7-42e3-a472-d164f02c0e34 | | image | cirros (fd8330b3-a307-4140-8fe0-01341b583e26) | | key_name | - | | metadata | {} | | move | TRUE | | name | test | | novnc | TRUE | | os-extended-volumes:volumes_attached | [{"id": "4ee8dc8e-9ebc-4f82-bab1-862ee7866f2f"}] | | priority | 50 | | progress | 0 | | qos | | | security_groups | default | | status | BUILD | | tenant_id | 181a578bc97642f2b9e153bec622f130 | | updated | 2016-02-26T09:15:43Z | | user_id | 8b34e1ab75024fcba0ea69a6fd0937c3 | +--------------------------------------+--------------------------------------------------+ 3.After step 2 , until the instance "test" ok. then, to observe the BDM table, the instance using volume's "delete_on_termination" flag is True. 4.run cinder migrate volume [root@2C5_10_DELL05 ~(keystone_admin)]# cinder migrate 4ee8dc8e-9ebc-4f82-bab1-862ee7866f2f 2C5_10_DELL05@KS3200ISCSIDriver-1#KS3200_IPSAN 5. Until the step 4 migrate volume success. then,to observe the BDM table again,the instance using volume's "delete_on_termination" flag is changed to be False. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1550250/+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

