Bug 1275987 - [REGENERATE JAVA SDK] set vmpool type
Summary: [REGENERATE JAVA SDK] set vmpool type
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk-java
Version: 3.5.5
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-3.5.6
: 3.5.6
Assignee: Juan Hernández
QA Contact: Gonza
URL:
Whiteboard: infra
Depends On: 1244841 1273930 1286683
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-28 09:54 UTC by Juan Hernández
Modified: 2016-02-10 19:14 UTC (History)
10 users (show)

Fixed In Version: rhevm-sdk-java-3.5.6.0-1
Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Clone Of: 1273930
Environment:
Last Closed: 2015-12-01 18:55:06 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:2533 0 normal SHIPPED_LIVE rhevm-sdk-java bug fix and enhancement update 2015-12-01 23:54:48 UTC

Description Juan Hernández 2015-10-28 09:54:53 UTC
+++ This bug was initially created as a clone of Bug #1273930 +++

Description of problem:
I need to set vmpool type to manual ( can do this via webui ) and fail to find any trace in documentation
please assist


Version-Release number of selected component (if applicable):
i am using : ovirt-engine-sdk-python 3.5.1.0
and ovirt oVirt Engine Version: 3.5.2.1-1.el6

How reproducible:
 src_tpl = api.vmpools.add(params.VmPool(
                                            name = poolname,
                                            template = params.Template(id=templateid),
                                            cluster = params.Cluster(id=clusterid),
                                            size = int(numvm),
                                            description = desc,
                                            max_user_vms = 1
                                            )
                            )


Steps to Reproduce:
1.
2.
3.

Actual results:
always get automatic pool type

Expected results:
would like to know what params. need to use as failed to find in documentation

Additional info:

--- Additional comment from Juan Hernández on 2015-10-21 10:20:32 EDT ---

Currently this is impossible. It will be possible starting with version 3.5.6, see bug 1244841.

Comment 2 Gonza 2015-11-09 16:30:03 UTC
Verified with:
rhevm-sdk-java-3.5.6.0-1.el6ev.noarch

VmPool vm_pool = new VmPool();
vm_pool.setName("API_vm_pool_java");
vm_pool.setTemplate(default_template);
vm_pool.setCluster(default_cluster);
vm_pool.setSize(2);
vm_pool.setDescription("api vm pool from api");            vm_pool.setMaxUserVms(1);
vm_pool.setType("MANUAL");

VmPools vm_pools = api.getVmPools();
vm_pools.add(vm_pool);

Comment 4 errata-xmlrpc 2015-12-01 18:55:06 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://rhn.redhat.com/errata/RHEA-2015-2533.html


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