← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1290455] [NEW] libvirt inject_data assumes instance with kernel_id doesn't contain a partition table

 

Public bug reported:

libvirt/driver.py passes partition=None to disk.inject_data() for any
instance with kernel_id set. partition=None means that inject_data will
attempt to mount the whole image, i.e. assuming there is no partition
table. While this may be true for EC2, it is not safe to assume that Xen
images don't contain partition tables. This should check something more
directly related to the disk image. In fact, ideally it would leave it
up to libguestfs to work it out, as libguestfs is very good at this.

** 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/1290455

Title:
  libvirt inject_data assumes instance with kernel_id doesn't contain a
  partition table

Status in OpenStack Compute (Nova):
  New

Bug description:
  libvirt/driver.py passes partition=None to disk.inject_data() for any
  instance with kernel_id set. partition=None means that inject_data
  will attempt to mount the whole image, i.e. assuming there is no
  partition table. While this may be true for EC2, it is not safe to
  assume that Xen images don't contain partition tables. This should
  check something more directly related to the disk image. In fact,
  ideally it would leave it up to libguestfs to work it out, as
  libguestfs is very good at this.

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


Follow ups

References