Change in ovirt-engine[master]: core: Allow transferring images for down VMs

From Allon Mureinik <amureini@redhat.com>:
Allon Mureinik has submitted this change and it was merged. ( https://gerrit.ovirt.org/79061 ) Change subject: core: Allow transferring images for down VMs ...................................................................... core: Allow transferring images for down VMs Currently, DiskValidator#isDiskAttachedToAnyVm() is used to block image transfers on all non-floating disks. This behavior seems to be a bit too naive, as there's no storage-related not to upload/download an image that happens to have a database entry that ties it to a VM. For simplicity's sake, the operation is still blocked for any status other than DOWN. In the future, we can consider refining this restriction. Change-Id: Ia313a451f7642b10b1ee3a46d2ce1bdd1d2fa061 Bug-Url: https://bugzilla.redhat.com/1414499 Signed-off-by: Allon Mureinik <amureini@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/disk/image/TransferDiskImageCommand.java M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/storage/DiskValidator.java M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/disk/image/TransferDiskImageCommandTest.java M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/validator/storage/DiskValidatorTest.java 4 files changed, 22 insertions(+), 8 deletions(-) Approvals: Jenkins CI: Passed CI tests Daniel Erez: Looks good to me, approved Allon Mureinik: Verified -- To view, visit https://gerrit.ovirt.org/79061 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia313a451f7642b10b1ee3a46d2ce1bdd1d2fa061 Gerrit-PatchSet: 4 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Daniel Erez <derez@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Maor Lipchuk <mlipchuk@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
Code Review