Bug 962389 - RHEVM-CLI: rhevm-shell returns not user friendly error after passing string to -S parameter
Summary: RHEVM-CLI: rhevm-shell returns not user friendly error after passing string t...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3.0
Assignee: Juan Hernández
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-13 10:46 UTC by Ilia Meerovich
Modified: 2016-02-10 19:25 UTC (History)
8 users (show)

Fixed In Version: is3
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 15021 0 None None None Never

Description Ilia Meerovich 2013-05-13 10:46:07 UTC
sf15:

[imeerovi@imeerovi ART]$ /usr/bin/rhevm-shell -c --url=https://leonid_rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I  -S foo 

error: invalid literal for int() with base 10: 'foo'

Comment 1 Ilia Meerovich 2013-05-13 12:34:42 UTC
I can see that actually I can pass negative value to sdk without any error message:

In [5]: api = API(url='https://leonid_rhevm.qa.lab.tlv.redhat.com:443/api/', username='admin@internal', password='123456', insecure=True, session_timeout=-10)

Comment 2 Michael Pasternak 2013-05-13 13:40:17 UTC
(In reply to comment #1)
> I can see that actually I can pass negative value to sdk without any error
> message:
> 
> In [5]: api = API(url='https://leonid_rhevm.qa.lab.tlv.redhat.com:443/api/',
> username='admin@internal', password='123456', insecure=True,
> session_timeout=-10)

negative numbers have same meaning as 0, i.e TTL is disabled.

Comment 3 Ilia Meerovich 2013-07-03 08:39:54 UTC
[root@ilia-rhevm ~]#  /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I -S foo
Password: 



error: value used for the "SESSION_TIMEOUT" is "foo", while <type int> is expected.



        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (disconnected)]# exit
[root@ilia-rhevm ~]#  /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I -S -1
Password: 

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


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# exit
[root@ilia-rhevm ~]#  /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I -S 0x0
Password: 


error: value used for the "SESSION_TIMEOUT" is "0x0", while <type int> is expected.



        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (disconnected)]# exit
[root@ilia-rhevm ~]#  /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I -S 10
Password: 



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


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# exit
[root@ilia-rhevm ~]#  /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I -S '10'
Password: 

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


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# exit
[root@ilia-rhevm ~]#  /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I -S 10o0
Password: 


error: value used for the "SESSION_TIMEOUT" is "10o0", while <type int> is expected.



        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (disconnected)]# exit
[root@ilia-rhevm ~]#  /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I -S foo
Password: 

error: value used for the "SESSION_TIMEOUT" is "foo", while <type int> is expected.



        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (disconnected)]# exit

Comment 5 Itamar Heim 2014-01-21 22:25:30 UTC
Closing - RHEV 3.3 Released

Comment 6 Itamar Heim 2014-01-21 22:26:09 UTC
Closing - RHEV 3.3 Released

Comment 7 Itamar Heim 2014-01-21 22:29:37 UTC
Closing - RHEV 3.3 Released


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