Red Hat Bugzilla – Bug 1310804
[RFE] Override instance type on VmPools in Python-SDK
Last modified: 2016-08-22 21:34:27 EDT
Description of problem:
When creating VM Pools via the webadmin, we're allowed to pick an instance type (Small, Medium, ...) that will override hardware resources that have been set in the template on which is based the pool.
In Python-SDK there seems not to be a parameter that allows specifying an instance_type on params.VmPool objects.
Would it be difficult to implement this?
This isn't possible in the Python SDK because it isn't implemented in the server side of the API. When it is eventually implemented, it will be automatically supported by the SDK, as its code is generated automatically from the specification of the API.
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
not urgent RFE - not a 3.6.6 material. Pushing to 4.0
Failed to verify with rhevm-220.127.116.11-0.1.el7ev.noarch - instance type reference doesn't exist in vm pool's xsd. It isn't possible to create a vm pool with instance type via API and also to see the instance type of an existing vm pool created in webadmin.
UPDATE - Had a mistake while trying to verify the RFE, xml had a typo.
With the correct xml the instance type is created properly but:
1. Instance_type reference doesn't exist in pool's xml.
2. Changing the instance type should be impossible and produce error, but I was able to call PUT and provide vm_pool with a different instance_type, the result was vm pool not actually changed the instance type, but no error was produced and RC was 200 - so another thing that should be fixed.
Please note that the fix handles only the REST API part for 4.0 (e.g. the SDK may still be affected for 4.0 and will start working in 4.1).
The 2. from Comment 12 is not fixed - it is a cosmetic issue and will not be backported to 4.0. Please open a separate bug for it.
Verified with rhevm-4.0.2-0.1.rc.el7ev.noarch.
the cases attached to this bug from polarion.
Regarding editing the vm pool and changing instance type - PUT action succeeds but in fact the instance type doesn't change, which is ok, I will open a different bz in order to fail already on PUT call (as suggested in comment 13).
Verified also that vm pool's instance type is reachable in the new sdk for api v4: python-ovirt-engine-sdk4-4.0.0-0.5.a5.el7ev.x86_64