volume_size in bdms cannot work when instance boot with snapshot image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
renminmin |
Bug Description
In my env, cinder volume backend is ceph rbd.
# Original instance boot with volume-backend from the image01
$ nova boot --block-device source=
# create instance image
$ nova image-create vm01 img-vm04
$ glance image-show img-vm04
+------
| Property | Value |
+------
| base_image_ref | |
| bdm_v2 | True |
| block_device_
| | "42fea563-
| | null, "source_type": "snapshot", "device_type": "disk", "guest_format": null, |
| | "device_name": "/dev/vda", "no_device": null, "delete_
| | "volume_size": 100, "disk_bus": "virtio", "volume_id": null}] |
| boot_roles | reader,admin,member |
| checksum | d41d8cd98f00b20
| container_format | bare |
| created_at | 2020-08-
| direct_url | rbd://b7b2fac6-
| | 1524dab/snap |
| disk_format | qcow2 |
| hw_rng_model | virtio |
| id | f11d2516-
| locations | [{"url": "rbd://
| | b984-d253d1524d
| min_disk | 1
# Boot new instance with img-vm04
nova boot --block-device source=
# root volume size is 50
3ea44251-
Excepted: volume size is 200
Fix proposed to branch: master /review. opendev. org/745821
Review: https:/