Nova doesn't fail at API layer when image_size > volume_size with BFV
Bug #1883969 reported by
Mohammed Naser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Mohammed Naser |
Bug Description
When trying to boot an instance where the image size is larger than the volume size, there seems to be no 'protection' mechanism of stopping you from doing that, it ends up failing in the compute manager layer making it more complicated for the user to debug.
We should probably fail early in the API (just like we do for non-BFV instances).
BFV behaviour: /github. com/openstack/ nova/blob/ 6ed556f4adfd8a9 8fae2e91204f1ce 0484f5dd9d/ nova/compute/ api.py# L681-L683
https:/
non-BFV behaviour: /github. com/openstack/ nova/blob/ 6ed556f4adfd8a9 8fae2e91204f1ce 0484f5dd9d/ nova/compute/ api.py# L693-L699
https:/