Comment 3 for bug 1462991

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/nova (openstack-ci/fuel-6.0-updates/2014.2)

Reviewed: https://review.fuel-infra.org/7716
Submitter: Vitaly Sedelnik <email address hidden>
Branch: openstack-ci/fuel-6.0-updates/2014.2

Commit: 988c7be9958abd1b88f282ed768f513038804450
Author: Alex Ermolov <email address hidden>
Date: Wed Jun 10 15:09:32 2015

libvirt: Handle empty context on _hard_reboot

When _hard_reboot runs for resume_guest_state_on_host_boot, we don't
have a valid context. This checks if the context is valid before
attempting to repopulate base images.

This is a bit of a hack, as it assumes that the base images already
exist on the system, and will fail if they don't. However, it reduces
the number of failures (without this, every downed guest is guaranteed
to error when coming back up for resume_guest_state_on_host_boot).

Closes-Bug: 1462991
Change-Id: Ibac52f5d1b4e5ab2adb0a561659e6df8c7c1f40f