Bug 1149188

Summary: [rhevm-shell] memory_policy - ballooning unable to set
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-restapiAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bazulay, ecohen, gklein, iheim, juan.hernandez, lsurette, mavital, michal.skrivanek, rbalakri, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: org.ovirt.engine-root-3.5.0-15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1149191 1149192 (view as bug list) Environment:
Last Closed: 2015-02-17 17:11:38 UTC Type: Bug
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:    
Bug Blocks: 1149191, 1149192    

Description Jiri Belka 2014-10-03 12:52:49 UTC
Description of problem:

i'd like to set ballooning to False but i can't do it via rhevm-shell.

  add vm --name blabla cluster-name Default --template-name Blank --memory<TAB>

shows

  --memory                     --memory_policy-guaranteed

I would expect to see 'memory' and 'memory_policy' like in api output.

...
<memory_policy><guaranteed>1073741824</guaranteed><ballooning>false</ballooning></memory_policy>
...

I'm not sure but shouldn't be command like this?

  add vm --name blabla cluster-name Default --template-name Blank --memory-policy {ballooning=False}

as 'ballooning' is subparam?

Version-Release number of selected component (if applicable):
rhevm-cli-3.5.0.4-1.el6ev.noarch & rhevm-cli-3.4.0.6-4.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. try to add a vm via cli with ballooning disabled
2.
3.

Actual results:
not possible (??)

Expected results:
should work

Additional info:
i tried to as workaround of BZ1135939

Comment 1 Juan Hernández 2014-10-03 13:09:01 UTC
The command should be like this:

  add vm --name blabla --cluster-name Default --template-name Blank --memory_policy-ballooning true

This should work with the current version of the CLI, even if the option isn't offered by the auto-completion mechanism. To fix the auto-completion we need to document the option in the RSDL metadata, and then we need to regenerate the Python SDK.

Comment 2 Lukas Svaty 2014-10-23 09:41:00 UTC
verified in vt7

Comment 3 Eyal Edri 2015-02-17 17:11:38 UTC
rhev 3.5.0 was released. closing.