Change in ovirt-engine[ovirt-engine-4.1]: core: handle 'migration failure due to maintenance' logging

From Tal Nisan <tnisan@redhat.com>:
Tal Nisan has submitted this change and it was merged. Change subject: core: handle 'migration failure due to maintenance' logging ...................................................................... core: handle 'migration failure due to maintenance' logging In case a vm migration is running due to vds in VDSStatus.PreparingForMaintenance status (i.e. vds moved to maintenance and caused a vm migration to start), then in case the migration failed, we need to check if there is a destination host existed or not. Before this fix, the audit log message in case of no destination vds left to re-run on, included an "UNKNOWN" destination vds name: "Migration failed while Host is in 'preparing for maintenance' state. Consider manual intervention: stopping/migrating Vms as Host's state will not turn to maintenance while VMs are still running on it.(VM: STAYING_ALIVE-8, Source: dell-r210ii-13, Destination: <UNKNOWN>)" In this patch we added a new message for omitting destination host if none exist after re-run trials. Change-Id: I74605aa7d37551169911e4a406dac094e65e0566 Bug-Url: https://bugzilla.redhat.com/1436397 Signed-off-by: Sharon Gratch <sgratch@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MigrateVmCommand.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java M backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties 3 files changed, 7 insertions(+), 4 deletions(-) Approvals: Jenkins CI: Passed CI tests Sharon Gratch: Verified Arik Hadas: Looks good to me, approved -- To view, visit https://gerrit.ovirt.org/76966 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I74605aa7d37551169911e4a406dac094e65e0566 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-4.1 Gerrit-Owner: Sharon Gratch <sgratch@redhat.com> Gerrit-Reviewer: Arik Hadas <ahadas@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Sharon Gratch <sgratch@redhat.com> Gerrit-Reviewer: Tal Nisan <tnisan@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
Code Review