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

Bug 1826316

Summary: Memory Balloon optimization is not enable by default on new created clusters.
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: BLL.VirtAssignee: Shmuel Melamud <smelamud>
Status: CLOSED CURRENTRELEASE QA Contact: Polina <pagranat>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: ahadas, bugs, michal.skrivanek, smelamud
Target Milestone: ovirt-4.4.1Flags: pm-rhel: ovirt-4.4+
Target Release: 4.4.1.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-05 06:24:42 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:

Description Nisim Simsolo 2020-04-21 12:33:04 UTC
Description of problem:
According to https://bugzilla.redhat.com/show_bug.cgi?id=1824472#c1
Ballooning should be enabled by default on Default cluster.

Currently, Ballooning is enabled by default on Default cluster but not on new clusters created:
 engine=# select enable_balloon,bios_type from cluster where name='Default';
   enable_balloon | bios_type 
   ----------------+-----------
    t              |         2

 engine=# select enable_balloon,bios_type from cluster where name='new_cluster';
   enable_balloon | bios_type 
   ----------------+-----------
    f              |         2


Version-Release number of selected component (if applicable):
ovirt-engine-4.4.0-0.33.master.el8ev
vdsm-4.40.13-1.el8ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create new cluster and add host to cluster.
2. 
3.

Actual results:
Ballooning is disabled.

Expected results:
Ballooning behavior should be the same as in Default cluster (enabled).

Additional info:

Comment 1 Shmuel Melamud 2020-04-22 00:46:53 UTC
Is there any reason why ballooning is not enabled in new clusters?

Comment 2 Michal Skrivanek 2020-05-28 10:47:26 UTC
other than it being a bug? no

Comment 3 Polina 2020-07-08 19:55:37 UTC
Verification on ovirt-engine-4.4.1.7-0.3.el8ev.noarch.

The new cluster is created now with 'Enable Memory Balloon Optimization' = true, 'Enable KSM' = false.
While the Default cluster is set with both these options true.

Please confirm if this result is what we wanted to get

engine=# select name, enable_ksm from cluster_view;
           name            | enable_ksm 
---------------------------+------------
 Default                   | t
 new_cluster               | f


engine=# select name, enable_balloon from cluster;
           name            | enable_balloon 
---------------------------+----------------
 Default                   | t
 new_cluster               | t

Comment 4 Shmuel Melamud 2020-07-09 11:31:48 UTC
I didn't change the behaviour for enable_ksm. I'm not sure it is in the scope of this bug. Arik, should it be changed also?

Comment 5 Arik 2020-07-09 12:04:14 UTC
(In reply to Shmuel Melamud from comment #4)
> I didn't change the behaviour for enable_ksm. I'm not sure it is in the
> scope of this bug. Arik, should it be changed also?

Yes, new clusters should be set as the Default cluster
But that's a separate issue that deserves its own bz

Comment 6 Polina 2020-07-09 12:33:18 UTC
after discussion with Arik this one I verify. for ksm I create a separate bug

Comment 7 Sandro Bonazzola 2020-08-05 06:24:42 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 release, it has been closed with a resolution of CURRENT RELEASE.

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