← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1383899] [NEW] xenapi auto disk config uses wrong size value when booting from volume

 

Public bug reported:

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.log:2014-10-10 16:04:30.829 19672 TRACE nova.utils [instance: uuid] raise Failure(result['ErrorDescription'])
nova-compute.log:2014-10-10 16:04:30.829 19672 TRACE nova.utils [instance: uuid] Failure: ['BOOTLOADER_FAILED', 'OpaqueRef:cd142319-cf6e-c2eb-8c1d-b303a5157ac2', 'Disk has no partitions\n']

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.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1383899

Title:
  xenapi auto disk config uses wrong size value when booting from volume

Status in OpenStack Compute (Nova):
  New

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.log:2014-10-10 16:04:30.829 19672 TRACE nova.utils [instance: uuid] raise Failure(result['ErrorDescription'])
  nova-compute.log:2014-10-10 16:04:30.829 19672 TRACE nova.utils [instance: uuid] Failure: ['BOOTLOADER_FAILED', 'OpaqueRef:cd142319-cf6e-c2eb-8c1d-b303a5157ac2', 'Disk has no partitions\n']

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1383899/+subscriptions


Follow ups

References