anmolbabu has uploaded a new change for review. Change subject: engine : Sync volume details on creation ......................................................................
engine : Sync volume details on creation To create a new geo-rep session user it is required for the volumes to have their capacity information. However for a case where the user has just created the volume and wants this volume to participate in a geo-rep session, since the volume earlier didn't carry the capacity info, such a volume wouldn't feature in the eligible volumes list in the create geo-rep session dialog. Hence, this patch tries to sync the capacity info of a volume on its successful creation. Change-Id: Ic4d78ab70c0c28f107b589c1b6ff14848b184928 Signed-off-by: Anmol Babu <anb...@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StartGlusterVolumeCommand.java 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/24/40624/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StartGlusterVolumeCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StartGlusterVolumeCommand.java index 2b50232..d25acf0 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StartGlusterVolumeCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StartGlusterVolumeCommand.java @@ -64,6 +64,7 @@ setSucceeded(returnValue.getSucceeded()); if(getSucceeded()) { GlusterDBUtils.getInstance().updateVolumeStatus(getParameters().getVolumeId(), GlusterStatus.UP); + GlusterSyncJob.getInstance().refreshVolumeDetails(upServer, getGlusterVolume()); } else { handleVdsError(AuditLogType.GLUSTER_VOLUME_START_FAILED, returnValue.getVdsError().getMessage()); return; -- To view, visit https://gerrit.ovirt.org/40624 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic4d78ab70c0c28f107b589c1b6ff14848b184928 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5-gluster Gerrit-Owner: anmolbabu <anb...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches