Comment 9 for bug 1462991

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to patching-tests (stable/6.1)

Reviewed: https://review.fuel-infra.org/8967
Submitter: Alex Khivin <email address hidden>
Branch: stable/6.1

Commit: 42bb875b43e65996598898015c7515e3ff96388a
Author: Denis V. Meltsaykin <email address hidden>
Date: Thu Jul 2 13:44:59 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).

Change-Id: Idcc973b049b78e1ac4f4dd3177fee899340b86f9
Partial-Bug: 1462991