Bug 977354 - RHEVM-CLI: "power management user name" flag usage, wasn't updated as in help and auto complete
Summary: RHEVM-CLI: "power management user name" flag usage, wasn't updated as in help...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.2.1
Assignee: Michael Pasternak
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On: 969097 970237
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-24 11:27 UTC by Idith Tal-Kohen
Modified: 2016-02-10 19:02 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A power management property name was changed from 'power-management-username' to 'power-management-user_name' in the help and auto-complete output, however the command line shell did not accept the 'user_name' property. The property is now reverted to 'power-management-username' in the help output and can be used on the command line.
Clone Of: 970237
Environment:
Last Closed: 2013-07-16 15:30:44 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1078 0 normal SHIPPED_LIVE new package: rhevm-sdk 2013-07-16 19:29:23 UTC
oVirt gerrit 15299 0 None None None Never
oVirt gerrit 15304 0 None None None Never

Comment 1 Michael Pasternak 2013-06-24 11:44:01 UTC
this bug regenerates the sdk according the #970237 change.

Comment 3 Ilia Meerovich 2013-06-25 12:15:00 UTC
[imeerovi@imeerovi ~]$ rpm -qa | grep rhevm-cli
rhevm-cli-3.2.1.1-1.el6ev.noarch

[RHEVM shell (connected)]# update host 
address                          correlation_id                   port                             power_management-enabled         power_management-pm_proxy        root_password                    
cluster-id                       display-address                  power_management-address         power_management-options-option  power_management-type            storage_manager-priority         
cluster-name                     name                             power_management-agents-agent    power_management-password        power_management-username        value                            
[RHEVM shell (connected)]# update 
cdrom          cluster        datacenter     disk           host           network        nic            role           storagedomain  tag            template       vm             vmpool         
[RHEVM shell (connected)]# update host 
address                          correlation_id                   port                             power_management-enabled         power_management-pm_proxy        root_password                    
cluster-id                       display-address                  power_management-address         power_management-options-option  power_management-type            storage_manager-priority         
cluster-name                     name                             power_management-agents-agent    power_management-password        power_management-username        value                            
[RHEVM shell (connected)]# update host 

error: wrong number of arguments, try 'help update' for help.

[RHEVM shell (connected)]# update host 
address                          correlation_id                   port                             power_management-enabled         power_management-pm_proxy        root_password                    
cluster-id                       display-address                  power_management-address         power_management-options-option  power_management-type            storage_manager-priority         
cluster-name                     name                             power_management-agents-agent    power_management-password        power_management-username        value                            
[RHEVM shell (connected)]# update host po
port                             power_management-agents-agent    power_management-options-option  power_management-pm_proxy        power_management-username        
power_management-address         power_management-enabled         power_management-password        power_management-type            
[RHEVM shell (connected)]# update host power_management-
power_management-address         power_management-enabled         power_management-password        power_management-type            
power_management-agents-agent    power_management-options-option  power_management-pm_proxy        power_management-username        
[RHEVM shell (connected)]# update host --power_management-username 
[imeerovi@imeerovi ~]$ /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I


 ==========================================
 >>> connected to RHEVM manager 3.2.0.0 <<<
 ==========================================


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# help add host

USAGE
  
  add <type> [parent identifiers] [command options]
  
DESCRIPTION
  
  Creates a new object or adds existent with type host. See 'help add' for generic
  help on creating objects.
  
ATTRIBUTE OPTIONS
  
  The following options are available for objects with type host:
  
    * --name: string
    * --address: string
    * --root_password: string
    * --cluster-id|name: string
    * [--port: int]
    * [--display-address: string]
    * [--storage_manager-priority: int]
    * [--power_management-type: string]
    * [--power_management-enabled: boolean]
    * [--power_management-address: string]
    * [--power_management-username: string]
    * [--power_management-password: string]
    * [--power_management-options-option: collection]
      {
        [option.name: string]
        [option.value: string]
      }
    * [--power_management-pm_proxy: collection]
      {
        [propietary: string]
      }
    * [--power_management-agents-agent: collection]
      {
        [type: string]
        [address: string]
        [user_name: string]
        [password: string]
        [options.option: collection]
      {
    * [--name: string]
    * [--value: string]
      }
      }
    * [--reboot_after_installation: boolean]
    * [--expect: 201-created]
    * [--correlation_id: anystring]
  
COLLECTION BASED OPTION FORMAT
  
    * [--x-y: collection]
[RHEVM shell (connected)]#

Comment 5 errata-xmlrpc 2013-07-16 15:30:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1078.html


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