Shubhendu Tripathi has posted comments on this change.
Change subject: engine:BLL Command to Start Remove Gluster volume brick
......................................................................
Patch Set 8:
(3 comments)
....................................................
Commit Message
Line 6:
Line 7: engine:BLL Command to Start Remove Gluster volume brick
Line 8:
Line 9: Start remove gluster volume brick is an asynchronous operation started
from the console.
Line 10: IT starts migarting all the data in the brick(s) being removed before
the removing
Done
Line 11: the brick completly. On completion of the migration, user has to
commit the remove
Line 12: operation to finally remove the brick from volume.
Line 13:
Line 14: Calling this command starts an async task in gluster. Gluster returns
a task-id
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StartRemoveGlusterVolumeBricksCommand.java
Line 50: return false;
Line 51: }
Line 52:
Line 53: if (getParameters().getBricks().isEmpty()) {
Line 54: return
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_BRICKS_REQUIRED);
Moved the validations to GlusterBrickValidator
Line 55: }
Line 56: if (getGlusterVolume().getBricks().size() == 1 ||
Line 57: getGlusterVolume().getBricks().size() <=
getParameters().getBricks().size()) {
Line 58: return
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_CAN_NOT_REMOVE_ALL_BRICKS_FROM_VOLUME);
....................................................
File
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/gluster/GlusterBrickDaoDbFacadeImpl.java
Line 60: }
Line 61:
Line 62: @Override
Line 63: public void updateBrickStatuses(List<GlusterBrickEntity> bricks) {
Line 64: for (GlusterBrickEntity brick : bricks) {
Will do the same
Line 65: updateBrickStatus(brick.getId(), brick.getStatus());
Line 66: }
Line 67: }
Line 68:
--
To view, visit http://gerrit.ovirt.org/18923
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3ee4620b75b4b714087dbf1dec3720661a5ce6b
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ramesh N <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Ramesh N <[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
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches