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

Bug #1462987 reported by Alex Ermolov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Undecided
Unassigned

Bug Description

This is backport for upstream fix for: https://bugs.launchpad.net/nova/+bug/1195884

Original description:
=====================

If an instance is created from a multi-part image (i.e. separate kernel 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 credentials of a user that has read access to all images in Glance than can be used in this context

Tags: libvirt
Alex Ermolov (aermolov)
Changed in mos:
milestone: none → 5.1.1-mu-1
importance: Undecided → Low
assignee: nobody → Alex Ermolov (aermolov)
description: updated
description: updated
Changed in mos:
milestone: 5.1.1-mu-1 → none
Alex Ermolov (aermolov)
Changed in mos:
milestone: none → 5.1.1-updates
milestone: 5.1.1-updates → none
Alex Ermolov (aermolov)
no longer affects: mos
Changed in mos:
status: New → Invalid
Alex Ermolov (aermolov)
no longer affects: mos/5.1.1-updates
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.