Bug 1118329
Summary: | Can't change power management type using REST-API | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | sefi litmanovich <slitmano> |
Component: | ovirt-engine | Assignee: | Ori Liel <oliel> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.5.0 | CC: | eedri, gklein, iheim, lpeer, oourfali, rbalakri, Rhev-m-bugs, yeylon |
Target Milestone: | --- | Keywords: | AutomationBlocker, AutomationTriaged |
Target Release: | 3.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | infra | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-04-08 07:22:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
sefi litmanovich
2014-07-10 13:00:39 UTC
A rewrite of the REST API for the power management definition is on the way. Will be available in 3.6. Changing the target release properly. The Power-Management refactoring for 3.6 was done, among other reasons, because the old entity structure was wrong. One bad thing about the old structure was that 'type' was associated directly with 'Power-Management'. Since two agents in the same Power-Management may have different types, this doesn't make sense. Updating 'type' of the Power-Management as describes in the bug description would result in updating the type of the first agent. Since this is wrong to begin with, I see no point maintaining backwards-compatibility to it. The new way to update agent type is: PUT ...api/hosts/xxx/fenceagnets/yyy (xxx = host-id, yyy = fence-agent id) <agent> <type>apc_snmp</type> </agent> |