nova boot fails while using bootable cinder volume which was created from an image created from a volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
nova boot fails while using bootable cinder volume as a backend when that cinder volume is created from a volume-based image.
A similar issue is https:/
Steps to reproduce
==================
1. Create a bootable volume.
[root@zhuljbj-mgt ~]# cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 5228a250-
+------
2. Create a glance image with the volume 'zlj-vol'
[root@zhuljbj-mgt ~]# glance image-list
+------
| ID | Name |
+------
| 3f3eff5f-
+------
[root@zhuljbj-mgt ~]# glance image-show 3f3eff5f-
+------
| Property | Value |
+------
| architecture | s390x |
| base_image_ref | |
| bdm_v2 | True |
| block_device_
| | ":"5228a250-
| | k_bus":
| | apshot_
| checksum | d41d8cd98f00b20
| container_format | bare |
| created_at | 2024-04-
| disk_format | raw |
| disk_type | SCSI |
| hypervisor_type | zvm |
| id | 3f3eff5f-
| min_disk | 0 |
| min_ram | 0 |
| name | zlj-vol-img |
| os_distro | Rhel9 |
| os_hash_algo | sha512 |
| os_hash_value | cf83e1357eefb8b
| | ff8318d2877eec2
| os_hidden | False |
| owner | 6f9ee43b492f40e
| protected | False |
| secure_execution | False |
| size | 0 |
| status | active |
| tags | [] |
| updated_at | 2024-04-
| virtual_size | Not available |
| visibility | private |
+------
3. Create a bootable cinder volume using the image
[root@zhuljbj-mgt ~]# cinder create --image zlj-vol-img --display-name zlj-vt-from-img 20
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | Default_Group |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2024-04-
| description | None |
| encrypted | False |
| group_id | None |
| health_status | {'id': '72aa9955-
| host | None |
| id | 72aa9955-
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | zlj-vt-from-img |
| os-vol-
| os-vol-
| provider_id | None |
| replication_status | None |
| service_uuid | None |
| shared_targets | True |
| size | 20 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | 0688b01e6439ca3
| volume_type | None |
+------
4. Boot a vm instance using the bootable cinder volume
[root@zhuljbj-mgt ~]# nova boot --poll --flavor tiny --nic net-name=zvmnet --block-
nova CLI is deprecated and will be a removed in a future release
ERROR (BadRequest): Invalid image metadata. Error: A list is required in field img_block_
Expected result
===============
nova boot command should complete successfully without any errors.
Actual result
=============
Below error is reported.
ERROR (BadRequest): Invalid image metadata. Error: A list is required in field img_block_
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
[root@zhuljbj-mgt ~]# rpm -qa | grep nova
openstack-
openstack-
openstack-
python3-
openstack-
openstack-
openstack-
openstack-
openstack-
python3-
openstack-
openstack-
2. Which hypervisor did you use?
z/VM
2. Which storage type did you use?
IBM Flashsystem
3. Which networking type did you use?
nova-network
Logs & Configs
==============
description: | updated |
description: | updated |