Maor Lipchuk has uploaded a new change for review. Change subject: core: Add CDA message when domain is inactive ......................................................................
core: Add CDA message when domain is inactive When creating a VM from template and one of the domains sent by the user is inactive. engine should add a validation message for the user that the storage is not active and fail the operation gracefully. Change-Id: Ie443ccc36b2e7ccbf889f52e2b4c661269bc9aa5 Bug-Url:https://bugzilla.redhat.com/975053 Signed-off-by: Maor Lipchuk <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/77/16677/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java index 80715d2..3fe1409 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java @@ -217,6 +217,9 @@ || !validate(storageDomainValidator.isDomainHasSpaceForRequest(getNeededDiskSize(domain.getId())))) { return false; } + if (!validate(storageDomainValidator.isDomainExistAndActive())) { + return false; + } } } } -- To view, visit http://gerrit.ovirt.org/16677 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie443ccc36b2e7ccbf889f52e2b4c661269bc9aa5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
