Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1993017

Summary: Automatic setting of guaranteed memory ignores memory overcommit
Product: [oVirt] ovirt-engine Reporter: Arik <ahadas>
Component: RestAPIAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Polina <pagranat>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.7CC: bugs, dfodor, emarcus, gzaidman, mburman
Target Milestone: ovirt-4.4.8Flags: pm-rhel: ovirt-4.4+
pm-rhel: exception+
Target Release: 4.4.8.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.8.5 Doc Type: Bug Fix
Doc Text:
Previously, when guaranteed memory (minimum available memory) was not specified in a request to add a virtual machine via the REST API, ovirt-engine set the guaranteed memory=memory, without considering the memory overcommit that is set on the cluster, and effectively disabling memory overcommit for the virtual machine. In this release, when not specified, the calculation for guaranteed memory takes into account both the specified memory and the cluster's memory overcommit.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-03 09:59:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1993128    

Description Arik 2021-08-12 09:37:00 UTC
The solution to bz 1940529 was to set the guaranteed (min) memory according to the specified memory when the former is not specified in the request to add VM. The problem with the solution that was introduced is that, unlike the webadmin, it ignores memory overcommit and always sets guaranteed-memory=memory.

Comment 1 Arik 2021-08-18 15:33:45 UTC
Switching back to post since the backport of the fix is not merged yet to the 4.4.8.z branch

Comment 2 Polina 2021-08-30 12:52:33 UTC
verified on ovirt-engine-4.4.8.5-0.4.el8ev.noarch

according to the attached polarion case https://polarion.engineering.redhat.com/polarion/redirect/project/RHEVM3/workitem?id=RHEVM-27839