Liron Ar has posted comments on this change.
Change subject: core: Add storage validation when plugging an image.
......................................................................
Patch Set 4: (2 inline comments)
please return the save of the vm device.
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AttachDiskToVmCommand.java
Line 117
Line 118
Line 119
Line 120
Line 121
please return it, otherwise the attach won't work
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/HotPlugDiskToVmCommand.java
Line 49: checkCanPerformPlugUnPlugDisk() &&
Line 50: isVmNotInPreviewSnapshot() &&
Line 51: imageValidation();
Line 52: }
Line 53:
please verify that we have unified behaviour here, meaning that the order of
the operations doesn't matter (when hotplugging a disk and changing domain
status) - seems to me like with current implementation we will have mixed
results.
Line 54: private boolean imageValidation() {
Line 55: if (disk.getDiskStorageType() != DiskStorageType.IMAGE) {
Line 56: return true;
Line 57: }
--
To view, visit http://gerrit.ovirt.org/17170
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ieeb2522bc5aa280b9b98ef728737aeeaa82d1263
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches