boot from volume instance failed,because when reschedule delete the volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Low
|
Unassigned |
Bug Description
1. Create a volume "nova volume-create --display-name test_volume 1"
[root@controller51 nova(keystone_
+------
| ID | Status | Display Name | Size | Volume Type | Attached to |
+------
| a740ca7b-
| 1f1c19c7-
| d868710e-
| b03a39ca-
+------
2. use The following command will boot a new instance and attach a volume at the same time:
[root@controller51 nova(keystone_
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | building |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| adminPass | sWTuKqzrpS32 |
| config_drive | |
| created | 2015-03-
| flavor | m1.tiny (1) |
| hostId | |
| id | 868cfd12-
| image | VMB_X86_
| key_name | - |
| metadata | {} |
| name | test |
| os-extended-
| progress | 0 |
| security_groups | default |
| serial_type | file |
| status | BUILD |
| tenant_id | df86efb4c5264f3
| updated | 2015-03-
| user_id | 7d376e69fc5d469
+------
3、if the instance are scheduled the host1, but, if the host1 network service is inactive, then will reschedule the other host,
before reschedule ,as for create instance command the parameter delete-on-terminate is 1, so will run delete volume.
but, the issue is after reschedule another host, the volume is deleted ,the instance cannot build success.
Changed in nova: | |
assignee: | nobody → jichenjc (jichenjc) |
Changed in nova: | |
assignee: | jichenjc (jichenjc) → nobody |
status: | In Progress → Confirmed |
this bug is the parameter delete-on-terminate is 1, when scheduler one host allocate resources failed,then reschedule another host,the volume should not be deleted.