Create Volume from a 0-byte reference (block_device_mapping) Glance image fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
Undecided
|
Unassigned | ||
9.x |
Confirmed
|
Low
|
MOS Maintenance |
Bug Description
Issue present in MOS 9.x
Issue is not present in MOS 7.x
Steps to reproduce via Horizon:
1. spawn an instance with "Create a new Volume" enabled
2. click "Instance Snapshot"
3. click "Create Volume" for the created 0-byte image
Originally reported in https:/
Although it was decided that the 0-byte image is a "won't fix", this particular issue with "create volume" should be a bug, because it is possible to spawn a new VM from the 0-byte image, if "Create a new Volume" is used for the new VM. This means that functionality to create a volume from such image works; however it does not work from Images tab.
I will try to troubleshoot the issue and find the root cause. So far it looks like we hit the code here:
https:/
when using Images tab; however we do not hit it when we create a VM with "Create a new Volume", meaning one of self.driver.
summary: |
- Create Volume from a snapshot-backed Glance image fails (with Ceph - backend) + Create Volume from a snapshot-backed Glance image fails |
summary: |
- Create Volume from a snapshot-backed Glance image fails + Create Volume from a 0-byte reference (block_device_mapping) Glance + image fails |
test showed that with subsequent VM boot with "Create a new Volume", this function (_create_ from_image) is not used at all. Need to find what function is used, and somehow refer to the same code when "Create Volume" is used.