Liran Zelkha has uploaded a new change for review. Change subject: core: VdsNotRespondingTreatment Job is not marked as finished. ......................................................................
core: VdsNotRespondingTreatment Job is not marked as finished. When a hypervisor gets into non responding state and it is fenced the job VdsNotRespondingTreatment is not marked as finished and get stuck in the tasks list. Change-Id: I956c8f8d51e8c9569013973044494a8c95a58454 Bug-Url: https://bugzilla.redhat.com/1075500 Signed-off-by: lzel...@redhat.com <lzel...@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsNotRespondingTreatmentCommand.java 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/26/27826/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsNotRespondingTreatmentCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsNotRespondingTreatmentCommand.java index 543ba1a..cfdbc5b 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsNotRespondingTreatmentCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsNotRespondingTreatmentCommand.java @@ -73,6 +73,10 @@ this.setExecutionContext(ec); } else { super.executeCommand(); + // Since the parent class run the command, we need to reinitialize the execution context + if (this.getExecutionContext() != null) { + this.getExecutionContext().setJob(getDbFacade().getJobDao().get(this.getJobId())); + } } } else { setCommandShouldBeLogged(false); -- To view, visit http://gerrit.ovirt.org/27826 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I956c8f8d51e8c9569013973044494a8c95a58454 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.4 Gerrit-Owner: Liran Zelkha <lzel...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches