nova allows to boot images with virtual size > root_gb specified in flavor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
High
|
Roman Podoliaka | ||
6.0.x |
Fix Released
|
High
|
Alexander Nevenchannyy | ||
6.1.x |
Fix Released
|
High
|
Roman Podoliaka |
Bug Description
Upstream bug: https:/
It's currently possible to boot an instance from a QCOW2 image, which has the virtual size larger than root_gb size specified in the given flavor.
Steps to reproduce:
1. Download a QCOW2 image (e.g. Cirros - https:/
2. Resize the image to a reasonable size:
qemu-img resize cirros-
3. Upload the image to Glance:
glance image-create --file cirros-
4. Boot the first VM using a 'correct' flavor (root_gb > virtual size of the Cirros image), e.g. m1.small (root_gb = 20)
nova boot --image cirros-10GB --flavor m1.small demo-ok
5. Wait until the VM boots.
6. Boot the second VM using an 'incorrect' flavor (root_gb < virtual size of the Cirros image), e.g. m1.tiny (root_gb = 1):
nova boot --image cirros-10GB --flavor m1.tiny demo-should-fail
7. Wait until the VM boots.
Expected result:
demo-ok is in ACTIVE state
demo-should-fail is in ERROR state (failed with FlavorDiskTooSmall)
Actual result:
demo-ok is in ACTIVE state
demo-should-fail is in ACTIVE state
information type: | Public → Private Security |
description: | updated |
Changed in mos: | |
status: | Triaged → In Progress |
description: | updated |
Changed in mos: | |
assignee: | MOS Nova (mos-nova) → Roman Podoliaka (rpodolyaka) |
tags: | added: customer-found |
Fix proposed to branch: openstack- ci/fuel- 6.1/2014. 2 /review. fuel-infra. org/6132
Change author: Roman Podoliaka <email address hidden>
Review: https:/