Change in ovirt-engine[ovirt-engine-3.5]: core, restapi: DirectLUN disk - validate LUN visibilty

tnisan at redhat.com tnisan at redhat.com
Thu Aug 28 08:37:19 UTC 2014


Tal Nisan has submitted this change and it was merged.

Change subject: core,restapi: DirectLUN disk - validate LUN visibilty
......................................................................


core,restapi: DirectLUN disk - validate LUN visibilty

Validate LUN visibility on DirectLUN disk creation:

* core
- Added a validation method to DiskValidator that verifies
  visibility of a LUN by querying GetDeviceList.
- Execute the validation on AddDiskCommand only when a host
  is specified in parameters.
- Added relevant AppError messages.

* REST-API
- When optional 'host' element is specified within the
  'lun_storage' element, pass it to the parameters object.
- Updated rsdl yaml accordingly.

Change-Id: I339c999ebdfa69b8e2cbe4f55f8fe12e455810e4
Bug-Url: https://bugzilla.redhat.com/1123754
Buf-Url: https://bugzilla.redhat.com/1096217
Signed-off-by: Daniel Erez <derez at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddDiskCommand.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/DiskValidator.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/AddDiskToVmCommandTest.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/validator/DiskValidatorTest.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/VmDiskOperationParameterBase.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBllMessages.java
M backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDisksResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmDisksResource.java
M frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java
M frontend/webadmin/modules/userportal-gwtp/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
M frontend/webadmin/modules/webadmin/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
13 files changed, 169 insertions(+), 0 deletions(-)

Approvals:
  Tal Nisan: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I339c999ebdfa69b8e2cbe4f55f8fe12e455810e4
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list