← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1157412] Re: QemuImageInfo() can't succeed because QemuImageInfo requires first argument

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-rc1

-- 
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/1157412

Title:
  QemuImageInfo() can't succeed because QemuImageInfo requires first
  argument

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  In nova/virt/image.py if we ever manage to get to:

  def qemu_img_info(path):
      """Return an object containing the parsed output from qemu-img info."""
      if not os.path.exists(path):
          return QemuImgInfo()

      out, err = utils.execute('env', 'LC_ALL=C', 'LANG=C',
                               'qemu-img', 'info', path)
      return QemuImgInfo(out)

  and path does not exist, we throw an exception, as QemuImgInfo
  requires at least one argument.

  We should probably fix it by making out="" in the QemuImgInfo
  constructor.

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