xenapi auto disk config uses wrong size value when booting from volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
The auto disk config setting to resize a guest filesystem on boot in the xenapi driver can destroy the partition when booting from a volume. The end result of which is the following error during boot:
nova-compute.
nova-compute.
This happens because auto_disk_config gets a size value from the flavor root_gb setting, but when booting from a volume this value is ignored in favor of the volume size. This can lead to unexpected behavior when volume size > root_gb, and the above error when volume size < root_gb.
Fix proposed to branch: master /review. openstack. org/130038
Review: https:/