Created attachment 1729063 [details] Ballooning disabled Description of problem: We're using oVirt 4.3.8 along with ovirt-engine-sdk-python (4.4.1) to handle our pools. Pools are based on a template which has ballooning enabled. However, when deploying a VmPool based on that template, it has the "Ballooning enabled" field disabled, uneditable and an icon which states: "The field is not attached to any instance type" (screenshot attached). We're handling a big number of VMs based on pools (> 1500), and we think this should be enabled. When creating the VmPool from the GUI, it's created correctly with Ballooning enabled. According to Michal Skrivanek, this looks like a bug. Version-Release number of selected component (if applicable): 4.4.1 How reproducible: Always Steps to Reproduce: Create a VmPool using this snippet: newpool = types.VmPool(name='test', cluster=cl, template=t, max_user_vms=1, size=1, type=types.VmPoolType.MANUAL) vmpool_serv.add(newpool) cl is a types.Cluster instance with ballooning_enabled=True t is a types.Template instance of a template with Ballooning enabled. Actual results: A VM pool with ballooning disabled is created. Expected results: A VM pool with ballooning enabled should be created.
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.
First of all, from looking at the code, this should work as a work-around: POST ...api/vmpools <vm_pool> <name>test</name> . . . <vm> <memory_policy> <ballooning>true</ballooning> </memory_policy> </vm> <vm_pool> As for the bug, the solution should be that if ballooning isn't provided explicitly (as in above example), the API layer should leave it empty and let AddVmPoolCommand infer it from the Template. Right now the API layer must choose a value for AddVmPoolParameters.balloonEnalbed, because balloonEnalbed is defined as a primitive, so it must contain a value (in this case - true/false) and may not be null.
*** Bug 1923717 has been marked as a duplicate of this bug. ***
Verified on ovirt-engine-4.4.5.9-0.1.el8ev.noarch template and cluster are set with ballooning enabled . In this case send POST https://{{host}}/ovirt-engine/api/vmpools <vm_pool> <name>pool</name> <size>2</size> <cluster> <name>golden_env_mixed_1</name> </cluster> <template id="f1d8655a-2d0a-48d3-be4d-e0bb2f37168e"/> <vm/> </vm_pool> creates pool with the ballooning enabled
This bugzilla is included in oVirt 4.4.5 release, published on March 18th 2021. Since the problem described in this bug report should be resolved in oVirt 4.4.5 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.