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

rgolan at redhat.com rgolan at redhat.com
Thu Aug 13 10:04:12 UTC 2015


Roy Golan 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: I55b571349a366d127a7fc3206888efd59419ad0f
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:
  Dudi Maroshi: Verified
  Roy Golan: Looks good to me, approved; Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I55b571349a366d127a7fc3206888efd59419ad0f
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Dudi Maroshi <dudi at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Dudi Maroshi <dudi at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
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