Bug 1026798

Summary: [rhevm-cli] rhevm-shell --help requires authentication in autoconnect mode
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-cliAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, iheim, juan.hernandez, oramraz, Rhev-m-bugs, yeylon
Target Milestone: ---   
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: 2014-01-21 22:11:53 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: 1032811    

Description Jiri Belka 2013-11-05 13:03:53 UTC
Description of problem:

README file points to http://wiki.ovirt.org/wiki/CLI#Usage (Does have this wiki a process to have up-to-date documentation?) and there's output from `ovirt-shell --help` but this does not work.

Two points:
* --help _must_ work and it worked! BZ854338#4
* what about if I don't have network access to Internet, how would I find out what is valid syntax just to connect rhevm-shell?

-%-
# rhevm-shell 
URL: localhost
Username: admin@internal
Password: 


error: "localhost" is invalid url format. valid format is http[s]://server:port/api.



        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (disconnected)]# 
[root@jb-rh33 ~]# rhevm-shell -c -l https://localhost/api
Username: admin@internal
Password: 


error: server CA certificate file must be specified for SSL secured connection.



        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (disconnected)]# 
[root@jb-rh33 ~]# rhevm-shell --help
URL:
-%-

Version-Release number of selected component (if applicable):
rhevm-cli-3.3.0.8-1.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. --help
2.
3.

Actual results:
--help does not work. taking magic ball to get what should i type to make it work

Expected results:
--help should how me some info how to make it work

Additional info:
this app neither does have a manpage nor it has any useful documentation inside rpm package. it points only to ovirt.org wiki which has probably questionable process for updates of the info. let's hope users would find out there's rhevm-doc package which has Command Line Shell Guide.

Comment 1 Michael Pasternak 2013-11-05 13:45:59 UTC
Hi Jiri,

this issues is already addressed in 3.4 cli, workarounds are:

1. configure shell at ~/rhevmshellrc

2. disable 'autoconnect' at ~/rhevmshellrc, this way you can see
help without connecting and when you would like to connect, just
pass -c/--connect among other options.

hope it helps.

Comment 2 Michael Pasternak 2013-11-05 13:46:49 UTC
(In reply to Michael Pasternak from comment #1)
> Hi Jiri,
> 
> this issues is already addressed in 3.4 cli, workarounds are:
> 
> 1. configure shell at ~/rhevmshellrc

~/.rhevmshellrc of course.

> 
> 2. disable 'autoconnect' at ~/rhevmshellrc, this way you can see
> help without connecting and when you would like to connect, just
> pass -c/--connect among other options.
> 
> hope it helps.

Comment 3 Jiri Belka 2013-11-05 14:02:29 UTC
Yes this workaround works. But... how would one find this workaround in 3.3 which would be shipped? For me --help is a must for 3.3 version.

Comment 4 Michael Pasternak 2013-11-05 14:08:32 UTC
(In reply to Jiri Belka from comment #3)
> Yes this workaround works. But... how would one find this workaround in 3.3
> which would be shipped? For me --help is a must for 3.3 version.

no problem, i'll beakport the fix.

Comment 5 Jiri Belka 2013-11-08 15:10:28 UTC
ok, is22.

Comment 7 Itamar Heim 2014-01-21 22:11:53 UTC
Closing - RHEV 3.3 Released