← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1550250] [NEW] migrate in-use status volume, the volume's "delete_on_termination" flag lost

 

Public bug reported:

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.

** Affects: nova
     Importance: Undecided
     Assignee: YaoZheng_ZTE (zheng-yao1)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => YaoZheng_ZTE (zheng-yao1)

-- 
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):
  New

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


Follow ups