Bug 1005751

Summary: [REST-API] Update power management agent type via CLI failed
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-engine-restapiAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Tareq Alayan <talayan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, bazulay, iheim, oramraz, pstehlik, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 1032811    

Description Artyom 2013-09-09 10:38:32 UTC
Description of problem:
Run command via cli:
update host aqua-vds8.qa.lab.tlv.redhat.com --power_management-agents-agent "agent.type=ipmilan, agent.username=qa,agent.order=1,agent.concurrent=false,agent.address=10.10.10.10,agent.password=111,agent.username=qa2,agent.order=2,agent.concurrent=false,agent.address=11.11.11.11,agent.password=222" --power_management-enabled true

Return error message 
error: "type" is invalid segment at option "--agent.type=ipmilan".



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

How reproducible:
always

Steps to Reproduce:
1. Add host with two power managements and try to update power management types of agents
2.
3.

Actual results:
error message

Expected results:
change type of first agent to ipmilan

Additional info:
When run command:
update host aqua-vds8.qa.lab.tlv.redhat.com --power_management-agents-agent "agent.username=qa,agent.order=1,agent.concurrent=false,agent.address=10.10.10.10,agent.password=111" --power_management-agents-agent "agent.type=ipmilan,agent.username=qa2,agent.order=2,agent.concurrent=false,agent.address=11.11.11.11,agent.password=222" --power_management-enabled true
Update success, with apc type for two agents

Comment 1 Tareq Alayan 2013-10-31 13:42:00 UTC
assigned back.
tested on 
rhevm-cli-3.3.0.8-1.el6ev.noarch
rhevm-3.3.0-0.30.beta1.el6ev.noarch

update host rose01 --power_management-agents-agent "agent.type=ipmilan, agent.user_name=qa,agent.order=1,agent.concurrent=false,agent.address=10.10.10.10,agent.password=111,agent.user_name=qa2,agent.order=2,agent.concurrent=false,agent.address=11.11.11.11,agent.password=222" --power_management-enabled true


error: " agent.user_name=qa" is invalid segment at option "--power_management-agents-agent".

Comment 2 Ravi Nori 2013-10-31 14:01:30 UTC
Please replace agent.user_name with agent.username

I was able to successfully update host using command

update host host1 --power_management-agents-agent "agent.type=ipmilan,agent.username=qa,agent.order=1,agent.concurrent=false,agent.address=10.10.10.10,agent.password=111,agent.username=qa2,agent.order=2,agent.concurrent=false,agent.address=11.11.11.11,agent.password=222" --power_management-enabled true

Comment 3 Ravi Nori 2013-10-31 15:21:56 UTC
Submitting patch to fix option name in rsdl

Comment 5 Tareq Alayan 2013-11-10 10:43:21 UTC
verified on rhevm-sdk-python-3.3.0.19-1.el6ev.noarch

Comment 6 Itamar Heim 2014-01-21 22:20:35 UTC
Closing - RHEV 3.3 Released

Comment 7 Itamar Heim 2014-01-21 22:26:14 UTC
Closing - RHEV 3.3 Released