Check destination_type when booting with bdm provided
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned | ||
OpenStack Compute (nova) |
Opinion
|
Medium
|
Unassigned | ||
python-novaclient |
Fix Released
|
Medium
|
Zhenyu Zheng |
Bug Description
When booting instance with block_device_
Step 1: Booting with block_device_
root@SZX1000191
the corresponding REST call is:
DEBUG (session:342) REQ: curl -g -i -X POST http://
Step 2: After the instance is successfully launched, the detailed info is like this:
root@SZX1000191
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-11-
| description | - |
| flavor | m1.tiny (1) |
| hostId | 410c49382deba8e
| host_status | UP |
| id | 83d9ec32-
| image | cirros-
| key_name | - |
| locked | False |
| metadata | {} |
| name | test_bdm |
| os-extended-
| private network | 2001:db8:8000::5, 10.0.0.13 |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tags | [] |
| tenant_id | 405a8b8100ae47f
| updated | 2016-11-
| user_id | 43db6c7e51754c0
+------
As been shown, a volume attach is recored in Nova
Step 3: Check the volume status in Cinder:
root@SZX1000191
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 9f49d5b0-
+------
The volume is still available.
The volume is actually not attached by checking the instance's XML.
We should forrbid the boot call with None destination_type both in Nova and NovaClient.
Changed in nova: | |
assignee: | nobody → Zhenyu Zheng (zhengzhenyu) |
description: | updated |
Changed in python-novaclient: | |
assignee: | nobody → Zhenyu Zheng (zhengzhenyu) |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in python-novaclient: | |
importance: | Undecided → Medium |
Changed in python-openstackclient: | |
assignee: | nobody → Zhenyu Zheng (zhengzhenyu) |
no longer affects: | python-openstackclient |
Fix proposed to branch: master /review. openstack. org/402364
Review: https:/