Kanagaraj M has submitted this change and it was merged.

Change subject: engine: Added canDoAction checks in case of gluster host removal
......................................................................


engine: Added canDoAction checks in case of gluster host removal

Remove host should fail in following cases if host being removed is
part of gluster cluster:
* If force remove is not set
  - and host has bricks on a volume
  - there is no up server in cluster, and if host being removed is not
    last server in cluster
* If force remove is set, but if host being removed has bricks and
there is another up server in cluster.

Bug-Url: https://bugzilla.redhat.com/957859
Change-Id: I42e1a5452e7c40ae770108cadaf69118b5e77719
Signed-off-by: Sahina Bose <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVdsCommand.java
M 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/RemoveVdsCommandTest.java
2 files changed, 38 insertions(+), 17 deletions(-)

Approvals:
  Kanagaraj M: Verified; Looks good to me, approved


-- 
To view, visit http://gerrit.ovirt.org/15401
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I42e1a5452e7c40ae770108cadaf69118b5e77719
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sahina Bose <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Shubhendu Tripathi <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to