Device UUID is missing when boot up VM with block device

Bug #1835282 reported by Peng Peng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Invalid
Medium
chen haochuan

Bug Description

Brief Description
-----------------
Failed to boot up VM by volume with block-device option. The error msg show:
ERROR (BadRequest): Block Device Mapping is Invalid: Missing device UUID. (HTTP 400)

Severity
--------
Major

Steps to Reproduce
------------------
1.Creating volume
2. Boot up VM by vlume with options like: --block-device dest=volume --block-device device=vda --block-device source=volume --block-device

TC-name: testcases/functional/nova/test_config_drive.py::test_vm_with_config_drive

Expected Behavior
------------------
VM boot up successfully

Actual Behavior
----------------
Boot failed

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Multi-node system

Lab-name: WCP_63-66

Branch/Pull Time/Commit
-----------------------
stx master as of 20190703T013000Z

Last Pass
---------
Lab: SM_2
Load: 20190620T013000Z

Timestamp/Logs
--------------
[2019-07-03 11:59:04,383] 301 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne image create --disk-format=raw --public --file=/home/sysadmin/images/cgcs-guest.img --container-format=bare cgcs-guest'

[2019-07-03 11:59:25,284] 301 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne volume create --size=1 --image=bf645881-b4b8-4f90-bf17-fda24e7dd6f6 --bootable vol_inst1-3'

[2019-07-03 11:59:34,712] 301 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne flavor create --ram=1024 --vcpus=1 --disk=1 flavor-default-size1'

[2019-07-03 11:59:44,099] 301 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne volume list --a --long'
[2019-07-03 11:59:45,952] 423 DEBUG MainThread ssh.expect :: Output:
+--------------------------------------+-------------+-----------+------+------+----------+-------------+------------+
| ID | Name | Status | Size | Type | Bootable | Attached to | Properties |
+--------------------------------------+-------------+-----------+------+------+----------+-------------+------------+
| 8ade4b39-951c-4ec9-a706-0afbfc133daa | vol_inst1-3 | available | 1 | None | true | | |
+--------------------------------------+-------------+-----------+------+------+----------+-------------+------------+

[2019-07-03 11:59:48,135] 301 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne volume show ee001008-f07b-4e1b-ac33-b6011b4fe44b'
[2019-07-03 11:59:49,832] 423 DEBUG MainThread ssh.expect :: Output:
+------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | true |
| consistencygroup_id | None |
| created_at | 2019-07-03T11:59:47.000000 |
| description | None |
| encrypted | False |
| id | ee001008-f07b-4e1b-ac33-b6011b4fe44b |
| multiattach | False |
| name | vol-tenant1-config_drive-5 |
| os-vol-tenant-attr:tenant_id | a8585b5a4e2442cbb32ae9dd8040de43 |
| properties | |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| type | None |
| updated_at | 2019-07-03T11:59:48.000000 |
| user_id | f1e42728942b4739b2751d1b516ba4f3 |
| volume_image_metadata | {u'container_format': u'bare', u'min_ram': u'0', u'disk_format': u'raw', u'image_name': u'cgcs-guest', u'image_id': u'bf645881-b4b8-4f90-bf17-fda24e7dd6f6', u'checksum': u'f57e27bf2862a360e9c6ddd3dad492db', u'min_disk': u'0', u'size': u'688914432'} |
+------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[sysadmin@controller-1 ~(keystone_admin)]$

[2019-07-03 11:59:49,937] 301 DEBUG MainThread ssh.send :: Send 'nova --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne boot --key-name=keypair-tenant1 --config-drive=True --poll --flavor=a9c7b05c-85f6-4e82-8774-b8a77e5fa09d --boot-volume=ee001008-f07b-4e1b-ac33-b6011b4fe44b --nic net-id=576c7fd3-35b9-4027-8b53-793805320ecd --nic net-id=1386d16e-b802-43b1-bf5d-0b06f27cd545 --block-device dest=volume --block-device device=vda --block-device source=volume --block-device id=8ade4b39-951c-4ec9-a706-0afbfc133daa --meta foo=bar tenant1-config_drive-5'
[2019-07-03 11:59:51,249] 423 DEBUG MainThread ssh.expect :: Output:
ERROR (BadRequest): Block Device Mapping is Invalid: Missing device UUID. (HTTP 400) (Request-ID: req-c60e9eba-cca6-4522-ac7a-496d9890dc1f)
[sysadmin@controller-1 ~(keystone_admin)]$

Test Activity
-------------
Regression Testing

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as stx.2.0 gating -- regression failure in the last month; requires further investigation.

tags: added: stx.2.0 stx.distro.openstack stx.regression
Changed in starlingx:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → yong hu (yhu6)
Revision history for this message
Peng Peng (ppeng) wrote :
Revision history for this message
Peng Peng (ppeng) wrote :
Changed in starlingx:
assignee: yong hu (yhu6) → chen haochuan (martin1982)
Revision history for this message
chen haochuan (martin1982) wrote :
Download full text (3.8 KiB)

reproduced with latest image

controller-0:~$
controller-0:~$ openstack --os-username 'admin' --os-password 'Local.123' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne image list
+--------------------------------------+------------+--------+
| ID | Name | Status |
+--------------------------------------+------------+--------+
| c025f17b-0e68-4e32-845d-fdb8b6547d1f | cgcs-guest | active |
+--------------------------------------+------------+--------+
controller-0:~$ openstack --os-username 'admin' --os-password 'Local.123' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne volume list
+--------------------------------------+-------------+-----------+------+-------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+-------------+-----------+------+-------------+
| f69cdbb4-0bcb-44a5-a573-55a3b562e821 | vol_inst1-3 | available | 1 | |
+--------------------------------------+-------------+-----------+------+-------------+
controller-0:~$
controller-0:~$ openstack --os-username 'admin' --os-password 'Local.123' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne flavor list
+--------------------------------------+----------------------+------+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+--------------------------------------+----------------------+------+------+-----------+-------+-----------+
| 5e7d0ef5-effe-400a-b3aa-28b500609174 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 911c8a80-570e-4cf9-9827-35df86a1c52e | flavor-default-size1 | 1024 | 1 | 0 | 1 | True |
+--------------------------------------+----------------------+------+------+-----------+-------+-----------+
controller-0:~$
controller-0:~$
controller-0:~$ openstack --os-username 'admin' --os-password 'Local.123' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne keypair list
+-----------------+-------------------------------------------------+
| Name | Fingerprint |
+-----------------+-------------------------------------------------+
| keypair-tenant1 | 60:7c:20:06:50:5b:5d:a1:da:a4:ac:e5:dc:87:99:e3 |
+-----------------+-------------------------------------------------+
controller-0:~$
controller-0:~$
controller-0:~$ nova --os-username 'admin' --os-password...

Read more...

Revision history for this message
chen haochuan (martin1982) wrote :

The parameter should change to such way, for nova image upgraded
--block-device dest=volume,device=vda --block-device source=volume,id=8ade4b39-951c-4ec9-a706-0afbfc133daa

And then vm boot succeed.

Changed in starlingx:
status: Triaged → Invalid
Revision history for this message
Peng Peng (ppeng) wrote :

It was an automation issue and fixed. Please close it. Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.