Change in ovirt-engine[ovirt-engine-3.6]: core: Allow VM disks editing after enabling quota on data ce...

tnisan at redhat.com tnisan at redhat.com
Thu Aug 13 12:06:24 UTC 2015


Tal Nisan has submitted this change and it was merged.

Change subject: core: Allow VM disks editing after enabling quota on data center
......................................................................


core: Allow VM disks editing after enabling quota on data center

Diagnostics:
------------
After enabling quota on data center.
The recent quota id for a disk (in the database) is null.
And the current quota id from GUI has value
(current quota id = the selected quota in the list box).

CanDoAction in UpdateVmDiskCommand prevent change to quota id while vm
is running (rightfully).
Therefore detects quota id change:
  for existing disks (of type IMAGE or CINDER) after
  quota is enabled in data center.

Short term solution:
-------------------
If recent quota id on disk is null always assume there is no change to
quota id.

Change-Id: Ib615cc1daa81a5b5d89d848bb88adb297fcf3473
Bug-Url: https://bugzilla.redhat.com/1193643
Signed-off-by: Dudi Maroshi <dudi at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmDiskCommand.java
1 file changed, 13 insertions(+), 1 deletion(-)

Approvals:
  Tal Nisan: Passed CI tests
  Dudi Maroshi: Verified
  Roy Golan: Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/44769
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib615cc1daa81a5b5d89d848bb88adb297fcf3473
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6
Gerrit-Owner: Dudi Maroshi <dudi at redhat.com>
Gerrit-Reviewer: Dudi Maroshi <dudi at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list