Bug 969097 - RHEVM-CLI: "power management user name" flag usage, wasn't updated as in help and auto complete
RHEVM-CLI: "power management user name" flag usage, wasn't updated as in help...
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: 3.3.0
Assigned To: Ori Liel
Barak Dagan
: Regression, ZStream
Depends On:
Blocks: 970237 977354
  Show dependency treegraph
Reported: 2013-05-30 12:03 EDT by Barak Dagan
Modified: 2016-02-10 14:12 EST (History)
8 users (show)

See Also:
Fixed In Version: is2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 970237 (view as bug list)
Last Closed: 2014-01-21 17:16:46 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 15299 None None None Never

  None (edit)
Description Barak Dagan 2013-05-30 12:03:50 EDT
Description of problem:
Flag was changed from power-management-username to power-management-user_name in both help and auto completion, however the cli works with the old name, while rejecting the new one. 

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

SF 17.3

backend version: 3.2
sdk version    :
cli version    :
python version : 2.6.6.final.0

How reproducible:

Steps to Reproduce:

1. Using auto completion:
[RHEVM shell (connected)]# update host 'rose02' --storage_manager-priority 5 --power_management-user_name 'user'

error: "user_name" is invalid argument segment.

2. Using old flag
[RHEVM shell (connected)]# update host 'rose02' --storage_manager-priority 5 --power_management-username 'user'

id                                : 739107e5-6dc2-4506-926f-aae9009e6f03
name                              : rose02
address                           : rose02.qa.lab.tlv.redhat.com

3. help:
[RHEVM shell (connected)]# help add host

  add <type> [parent identifiers] [command options]
  Creates a new object or adds existent with type host. See 'help add' for generic
  help on creating objects.
  The following options are available for objects with type host:
    * [--power_management-enabled: boolean]
    * [--power_management-address: string]
    * [--power_management-user_name: string]
    * [--power_management-password: string]

Actual results:

Expected results:

Additional info:
Comment 6 Barak Dagan 2013-07-01 12:09:57 EDT
Verified on SF18.2


1) href="/api/hosts" rel="add">
<parameter required="false" type="xs:string"><name>host.power_management.username</name>

2) href="/api/hosts/{host:id}" rel="update">
<parameter required="false" type="xs:string"><name>host.power_management.username</name>


1) Update PM

PUT request content is --  url:api/hosts/24a98a45-c1e6-40b0-851d-f6e70aafaf7b body: <host>
<power_management type="apc_snmp">
   <option name="slot" value="2"/>

	   <agent type="apc_snmp">
Comment 7 Barak Dagan 2013-07-02 04:42:23 EDT
Verified on IS3
Comment 9 Itamar Heim 2014-01-21 17:16:46 EST
Closing - RHEV 3.3 Released
Comment 10 Itamar Heim 2014-01-21 17:23:27 EST
Closing - RHEV 3.3 Released

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