Bug 1149188 - [rhevm-shell] memory_policy - ballooning unable to set
Summary: [rhevm-shell] memory_policy - ballooning unable to set
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.5.0
Assignee: Juan Hernández
QA Contact: Lukas Svaty
URL:
Whiteboard: sla
Depends On:
Blocks: 1149191 1149192
TreeView+ depends on / blocked
 
Reported: 2014-10-03 12:52 UTC by Jiri Belka
Modified: 2016-02-10 20:13 UTC (History)
12 users (show)

Fixed In Version: org.ovirt.engine-root-3.5.0-15
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1149191 1149192 (view as bug list)
Environment:
Last Closed: 2015-02-17 17:11:38 UTC
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 33772 0 master MERGED restapi: Add ballooning to RSDL metadata Never
oVirt gerrit 34064 0 ovirt-engine-3.5 MERGED restapi: Add ballooning to RSDL metadata Never

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.


Note You need to log in before you can comment on or make changes to this bug.