Bug 918908

Summary: [RFE] [ovirt-engine-cli]: Add option to define auto connect from rhevm-shell environment configuration file
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engine-cliAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED ERRATA QA Contact: Ilia Meerovich <iliam>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, bazulay, iheim, jkt, juan.hernandez, oramraz, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is6 Doc Type: Enhancement
Doc Text:
The "autoconnect" option has been added in the rhevmshellrc configuration file to define automatic connection to the rhevm-shell.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 15:53:31 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:
Bug Depends On:    
Bug Blocks: 1019470    

Description Oded Ramraz 2013-03-07 08:22:09 UTC
Description of problem:

Currently I can define almost all parameters for rhevm-shell from the configuration file ( .rhevmshellrc ) : e.g url , user name password e.t.c . 
I would like to have the option to define auto connect to rhevm shell.
Instead of running "rhev-shell -c" I want to simply run rhevm-shell. 

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


 
vim ~/.rhevmshellrc

[ovirt-shell]
username = admin@internal
url = https://10.35.161.46:443/api
insecure = True
no_paging = True
filter = False
timeout = -1
password = XXXXXX

Comment 3 Michael Pasternak 2013-07-04 09:36:56 UTC
added autoconnect = True|False key to configuration file (default is True)

Comment 5 Ilia Meerovich 2013-07-23 08:25:40 UTC
[imeerovi@imeerovi ART]$ rhevm-shell

 ==========================================
 >>> connected to RHEVM manager 3.3.0.0 <<<
 ==========================================


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# exit
[imeerovi@imeerovi ART]$ cat ~/.rhevmshellrc 
[cli]
autoconnect = True
autopage = True
[ovirt-shell]
username = admin@internal
timeout = -1
extended_prompt = False
url = https://vm-161-147.scl.lab.tlv.redhat.com:443/api/
insecure = True
filter = False
session_timeout = -1
ca_file = None
dont_validate_cert_chain = False
key_file = None
password = 123456
cert_file = None
[imeerovi@imeerovi ART]$ rpm -q rhevm-cli
rhevm-cli-3.3.0.5-1.el6ev.noarch
[imeerovi@imeerovi ART]$

Comment 7 errata-xmlrpc 2014-01-21 15:53:31 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/RHEA-2014-0076.html