Change in ovirt-engine[master]: core: VdsmImagePoller - ILLEGAL status consideration
Code Review
gerrit at ovirt.org
Mon Jan 16 17:32:59 UTC 2017
>From Liron Aravot <laravot at redhat.com>:
Liron Aravot has submitted this change and it was merged.
Change subject: core: VdsmImagePoller - ILLEGAL status consideration
......................................................................
core: VdsmImagePoller - ILLEGAL status consideration
This patch modifies the VdsmImagePoller to not consider the ILLEGAL
status for determining the result of a volume job.
As the SDM.update_volume verb was added, the rule of thumb that if a
volume is ILLEGAL the operation has failed was changed.
That verb allows changing the volume status to ILLEGAL, which means
that on that case this status doesn't indicate on failure.
This patch changes the VdsmImagePoller to fit to that new case, when the
lease is FREE the poller will check the volume generation -
a. if the generation equals to the execution generation + 1 the job
succeeded.
b. if the generation equals to the execution generation + the fencing
diff the operation can be considered as failed.
c. on any other case, the job status can't be determined by the poller.
when the generation equals to the execution generation - the job may be
pending or it may never start if the host was shut down. The poller will
wait till the volume job fencing will succeed or until the operation will
end) and then will end the job according to checks a/b.
Change-Id: I9794cb7ba1259791ed4c7d699fabdeae88b21cbf
Signed-off-by: Liron Aravot <laravot at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/disk/image/VdsmImagePoller.java
1 file changed, 4 insertions(+), 13 deletions(-)
Approvals:
Tal Nisan: Looks good to me, approved
Jenkins CI: Passed CI tests
Freddy Rolland: Looks good to me, but someone else must approve
Liron Aravot: Verified
--
To view, visit https://gerrit.ovirt.org/69415
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9794cb7ba1259791ed4c7d699fabdeae88b21cbf
Gerrit-PatchSet: 14
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
More information about the Engine-commits
mailing list