← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1195884] Re: resume guests on libvirt host reboot fails for instances created from multi-part image

 

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

** Changed in: nova
    Milestone: None => kilo-2

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

Title:
  resume guests on libvirt host reboot fails for instances created from
  multi-part image

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  If an instance is created from a multi-part image (i.e. separate
  kernal and ramdisk files) , and resume_guests_state_on_host_boot=True
  the resulting _hard_reboot will fail and put the instance into an
  error state.

  This is because the code in _hard_reboot that checks the image files,
  _create_images_and_backing() always tries to reload these from Glance.

  In a normal reboot this results in an unnecessary image download from
  Glance.

  In the case of reboot following a host boot the download fails because
  the context at this point does not have credentials to be able to
  access Glance.

  Possible fix is to:
  - Check files exist rather than always trying to download them
  - Provide in conf credentails of a user that has read access to all images in Glance than can be used in this context

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