mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu: Add debug messages to job recovery code
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
fe67380b20
commit
8d00f3e801
@ -3374,6 +3374,9 @@ qemuProcessRecoverMigrationIn(virQEMUDriver *driver,
|
||||
(state == VIR_DOMAIN_RUNNING &&
|
||||
reason == VIR_DOMAIN_RUNNING_POSTCOPY);
|
||||
|
||||
VIR_DEBUG("Active incoming migration in phase %s",
|
||||
qemuMigrationJobPhaseTypeToString(job->phase));
|
||||
|
||||
switch ((qemuMigrationJobPhase) job->phase) {
|
||||
case QEMU_MIGRATION_PHASE_NONE:
|
||||
case QEMU_MIGRATION_PHASE_PERFORM2:
|
||||
@ -3435,6 +3438,9 @@ qemuProcessRecoverMigrationOut(virQEMUDriver *driver,
|
||||
reason == VIR_DOMAIN_PAUSED_POSTCOPY_FAILED);
|
||||
bool resume = false;
|
||||
|
||||
VIR_DEBUG("Active outgoing migration in phase %s",
|
||||
qemuMigrationJobPhaseTypeToString(job->phase));
|
||||
|
||||
switch ((qemuMigrationJobPhase) job->phase) {
|
||||
case QEMU_MIGRATION_PHASE_NONE:
|
||||
case QEMU_MIGRATION_PHASE_PREPARE:
|
||||
@ -3530,6 +3536,13 @@ qemuProcessRecoverJob(virQEMUDriver *driver,
|
||||
|
||||
state = virDomainObjGetState(vm, &reason);
|
||||
|
||||
VIR_DEBUG("Recovering job for domain %s, state=%s(%s), async=%s, job=%s",
|
||||
vm->def->name,
|
||||
virDomainStateTypeToString(state),
|
||||
virDomainStateReasonToString(state, reason),
|
||||
virDomainAsyncJobTypeToString(job->asyncJob),
|
||||
virDomainJobTypeToString(job->active));
|
||||
|
||||
switch (job->asyncJob) {
|
||||
case VIR_ASYNC_JOB_MIGRATION_OUT:
|
||||
if (qemuProcessRecoverMigrationOut(driver, vm, job,
|
||||
|
Loading…
x
Reference in New Issue
Block a user