Description of problem: There is no 'name' attribute under scheduling policy object, when trying to update cluster, only scheduling-policy-policy, which is not compatible with other APIs Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1.add cluster 2.update cluster's scheduling policy 3. Actual results: scheduling-policy-policy exists, but incompatible with other APIs Expected results: scheduling-policy-name should exist Additional info:
This needs to be fixed in the rsdl_metadata.yaml file, then the Python SDK will need to be regenerated. The CLI won't need any change.
I still dont see this option in CLI: [RHEVM shell (connected)]# update cluster scheduling_policy- scheduling_policy-id scheduling_policy-properties-property scheduling_policy-thresholds-high scheduling_policy-policy scheduling_policy-thresholds-duration scheduling_policy-thresholds-low rhevm-3.6.5-0.1.el6.noarch rhevm-sdk-java-3.6.5.0-1.el6ev.noarch rhevm-sdk-python-3.6.5.0-1.el6ev.noarch rhevm-cli-3.6.2.0-1.el6ev.noarch Juan, should it work with this CLI version?
(In reply to Nelly Credi from comment #2) > I still dont see this option in CLI: > > [RHEVM shell (connected)]# update cluster scheduling_policy- > scheduling_policy-id scheduling_policy-properties-property > scheduling_policy-thresholds-high > scheduling_policy-policy scheduling_policy-thresholds-duration > scheduling_policy-thresholds-low > > > rhevm-3.6.5-0.1.el6.noarch > rhevm-sdk-java-3.6.5.0-1.el6ev.noarch > rhevm-sdk-python-3.6.5.0-1.el6ev.noarch > rhevm-cli-3.6.2.0-1.el6ev.noarch > > Juan, should it work with this CLI version? Nelly the fix wasn't no backported to ovirt-engine-3.6.5 and the automation moved the bug to MODIFY after the patch was merged to ovirt-engine-3.6.
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.
Ignore comment 3, I checked again and its there - https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=shortlog;h=67fb82b983a06d728f050476773b21e5ad131c3c it contains https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=d81f94870e29645e2ddce612940f2390857a0a0f Need to verify if the latest spin of SDK contains that.
your fix is for: /datacenter/{datacenter:id}/clusters/{cluster:id} while I asked for /clusters/{cluster:id}
reopening see comment 6
3.6 is gone EOL; Please re-target this bug to a 4.0 release.
Bug closed as next release.
I mixed this one with the cloned. moving to on_qa
Checked on rhevm-4.0.2.6-0.1.el7ev.noarch [oVirt shell (connected)]# update cluster scheduling_policy- scheduling_policy-id scheduling_policy-properties-property scheduling_policy-thresholds-high scheduling_policy-policy scheduling_policy-thresholds-duration scheduling_policy-thresholds-low I can not see cherry-pick to 4.0 of patch "restapi: schema: Allow to pass scheduling policy name for Update Cluster "
(In reply to Artyom from comment #12) > Checked on rhevm-4.0.2.6-0.1.el7ev.noarch > > [oVirt shell (connected)]# update cluster scheduling_policy- > scheduling_policy-id scheduling_policy-properties-property > scheduling_policy-thresholds-high > scheduling_policy-policy scheduling_policy-thresholds-duration > scheduling_policy-thresholds-low > > > I can not see cherry-pick to 4.0 of patch "restapi: schema: Allow to pass > scheduling policy name for Update Cluster " I apologize for the confusion. That patch doesn't need to be cherry-picked, as it didn't correct the problem, per Comment 6. Patch 60218 is the one that corrects the problem, and was merged to 4.0 on July 28th. Moving back to ON_QA
Moving to MODIFIED as target milestone is now 4.0.6.
Checked on ovirt-engine-restapi-4.0.4.2-0.1.el7ev.noarch Still, can not see auto-completion options for scheduling_policy-name [oVirt shell (connected)]# update cluster scheduling_policy- scheduling_policy-id scheduling_policy-properties-property scheduling_policy-thresholds-high scheduling_policy-policy scheduling_policy-thresholds-duration scheduling_policy-thresholds-low
https://gerrit.ovirt.org/#/c/60218/2/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml Juan do you know why even thought we have this fix Artyom still see's comment 15?
The reason is that this fix requires version 3.6.9.0 of the Python SDK, and oVirt 4.0.4 doesn't include that version. I'm requesting that the fixed version is added to the RC4: releases: 4.0.4_rc4: Add version 3.6.9.1 of Python SDK https://gerrit.ovirt.org/64122
Verified on rhevm-restapi-3.6.9.2-0.1.el6.noarch # update cluster scheduling_policy- scheduling_policy-id scheduling_policy-properties-property scheduling_policy-thresholds-low scheduling_policy-name scheduling_policy-thresholds-duration scheduling_policy-policy scheduling_policy-thresholds-high