Change in ovirt-engine[master]: engine: Added canDoAction checks in case of gluster host rem...

kmayilsa at redhat.com kmayilsa at redhat.com
Thu Jun 13 11:26:45 UTC 2013


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 <sabose at redhat.com>
---
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 <sabose at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayilsa at redhat.com>
Gerrit-Reviewer: Sahina Bose <sabose at redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtripat at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list