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'
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)
(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.
[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
Closing - RHEV 3.3 Released