Bug 1005751 - [REST-API] Update power management agent type via CLI failed
Summary: [REST-API] Update power management agent type via CLI failed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3.0
Assignee: Ravi Nori
QA Contact: Tareq Alayan
URL:
Whiteboard: infra
Depends On:
Blocks: 3.3snap2
TreeView+ depends on / blocked
 
Reported: 2013-09-09 10:38 UTC by Artyom
Modified: 2016-02-10 19:26 UTC (History)
8 users (show)

Fixed In Version: is22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 19104 0 None None None Never
oVirt gerrit 20770 0 None None None Never
oVirt gerrit 20874 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.