Bug 1118384

Summary: Scheduling policy update fails in REST
Product: [Retired] oVirt Reporter: Nelly Credi <ncredi>
Component: ovirt-engine-apiAssignee: Gilad Chaplik <gchaplik>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: alukiano, dfediuck, gklein, iheim, obasan, rbalakri, yeylon
Target Milestone: ---Keywords: AutomationBlocker, Regression, Triaged
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: ovirt-3.5.0-beta1.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:40:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Nelly Credi 2014-07-10 14:56:16 UTC
Description of problem:

Unable to update scheduling policy from evenly_distributed to power_saving via REST API


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.create DC
2.create cluster with scheduling policy 'evenly_distributed'
3.send the following command:
curl -v -u "user@domain:password" -H "Content-type: application/xml" -X PUT -d '<cluster><scheduling_policy><policy>power_saving</policy><thresholds low="20"/></scheduling_policy></cluster>' -k 'https://hostName/api/clusters/cluster_id'

Actual results:

Returns cluster info with the same scheduling policy 
<scheduling_policy href="/api/schedulingpolicies/20d25257-b4bd-4589-92a6-c4c5c5d3fd1a" id="20d25257-b4bd-4589-92a6-c4c5c5d3fd1a">
        <name>evenly_distributed</name>
        <policy>evenly_distributed</policy>
        <thresholds high="80" duration="120"/>
        <properties>
            <property>
                <name>CpuOverCommitDurationMinutes</name>
                <value>2</value>
            </property>
            <property>
                <name>HighUtilization</name>
                <value>80</value>
            </property>
        </properties>
    </scheduling_policy>


Expected results:

scheduling policy should have been updated to power_saving

Additional info:

Comment 1 Ohad Basan 2014-09-01 11:51:56 UTC
*** Bug 1111104 has been marked as a duplicate of this bug. ***

Comment 2 Sandro Bonazzola 2014-10-17 12:40:59 UTC
oVirt 3.5 has been released and should include the fix for this issue.