Bug 1427844

Summary: [downstream clone - 3.6.11] Block memory over-commitment when KSM and ballooning are not being used
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-engineAssignee: Jenny Tokar <jtokar>
Status: CLOSED ERRATA QA Contact: Shira Maximov <mshira>
Severity: high Docs Contact:
Priority: high    
Version: 4.0.5CC: eheftman, jentrena, lsurette, mavital, mgoldboi, pdwyer, rbalakri, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ovirt-3.6.11Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, it was possible to set memory overcommit without enabling either Kernel Same-page Merging (KSM) or memory ballooning. As a result, the scheduler used the requested optimization but Red Hat Virtualization Host was unable to perform memory overcommit. In this update, it is no long er possible to set memory overcommit without enabling KSM or memory ballooning.
Story Points: ---
Clone Of: 1402838 Environment:
Last Closed: 2017-05-09 17:04:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1402838    
Bug Blocks:    

Description rhev-integ 2017-03-01 11:44:37 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1402838 +++
======================================================================

Description of problem:
Currently we allow memory over-commitment even when KSM and ballooning are not being used. Since there's nothing to create over-commitment, we should not allow this.

Version-Release number of selected component (if applicable):
4.0.5 and below.

How reproducible:


Steps to Reproduce:
1. In edit cluster dialog, go to optimization side tab.
2. Set memory optimization to server load (150%)
3. Disable KSM and Ballooning and approve the settings.

Actual results:
Scheduler will use the requested optimization, although there's nothing
to allow this at the host level.

Expected results:
Disable optimization when ksm and ballooning are unavailable.

Additional info:

(Originally by Doron Fediuck)

Comment 1 rhev-integ 2017-03-01 11:44:44 UTC
This should consider REST and and GUI, so implementation should be at the engine (CanDoAction during editing and creation).

(Originally by Doron Fediuck)

Comment 7 Shira Maximov 2017-04-03 13:30:27 UTC
Verify on : 
Red Hat Enterprise Virtualization Manager Version: 3.6.11-0.1.el6

Steps to Reproduce:
1. In edit cluster dialog, go to optimization side tab.
2. Set memory optimization to server load (150%)
3. Disable KSM and Ballooning and approve the settings.

Result: 
Error while executing action: KSM or balooning must be enabled to allow memory optimization.

Comment 9 errata-xmlrpc 2017-05-09 17:04:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1210