Bug 1063746

Summary: PYTHON-SDK: regression in login behaviour
Product: [Retired] oVirt Reporter: Ilia Meerovich <iliam>
Component: ovirt-engine-sdkAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Meerovich <iliam>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, eedri, gklein, iheim, obasan, oramraz, yeylon
Target Milestone: ---Keywords: AutomationBlocker, TestBlocker
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-engine-sdk-python-3.4.0.4-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-31 12:29:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1024889    

Description Ilia Meerovich 2014-02-11 11:30:38 UTC
When API URI with '/' at the is used (as it was used with previous releases),
ovirt-shell login works but ovirt-shell itself useless.
If I'm working with '/' at the of URI everything is working ok.
1. It is regression in behaviour
2. If ovirt-shell supposed to get URI without '/' at the end so why it accepts it?


imeerovi@imeerovi ~ $ ovirt-shell 
 =========================================================================================================================================================================================================================================
                                                                                                    >>> connected to oVirt manager 3.4.0.0 <<<
  =========================================================================================================================================================================================================================================

  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

                                                                                                           Welcome to oVirt shell

  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


[oVirt shell (connected)]# add datacenter --storage_type 'nfs' --version-major 3 --version-minor 4 --name 'DefaultRest' --expect '201-created' > /tmp/cli_output.tmp
  ================================================================================================================== ERROR ================================================================================================================
  status: 404
  reason: Not Found
  detail: HTTP Status 404 - Could not find resource for relative : //datacenters of full path: https://ilia-rhevm.qa.lab.tlv.redhat.com/api//datacenters
  =========================================================================================================================================================================================================================================

[oVirt shell (connected)]# exit


  =========================================================================================================================================================================================================================================
                                                                                                   >>> disconnected from oVirt manager <<<
  =========================================================================================================================================================================================================================================

imeerovi@imeerovi ~ $ cat .ovirtshellrc 
[cli]
autoconnect = True
autopage = False
[ovirt-shell]
username = vdcadmin.tlv.redhat.com
timeout = None
extended_prompt = False
url = https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/
insecure = True
renew_session = False
filter = False
session_timeout = None
ca_file = None
dont_validate_cert_chain = False
key_file = None
password = 123456
cert_file = None
imeerovi@imeerovi ~ $ rpm -qa | grep ovirt
ovirt-engine-sdk-python-3.4.0.3-1.el6.noarch
ovirt-engine-sdk-java-3.4.0.3-1.el6.noarch
ovirt-engine-sdk-java-javadoc-3.4.0.3-1.el6.noarch
ovirt-engine-cli-3.4.0.3-1.el6.noarch
imeerovi@imeerovi ~ $

Comment 1 Juan Hernández 2014-02-11 12:02:05 UTC
The change has been merged to the master and 3.4 branches of the SDK. The fix will be available in the next release.

Comment 2 Juan Hernández 2014-02-18 13:57:08 UTC
The packages containing the fix for this issue are available here:

http://jhernand.fedorapeople.org/rpms/ovirt-engine-sdk-python/3.4.0.4-1

Comment 3 Ilia Meerovich 2014-02-19 08:55:38 UTC
verified with:
ovirt-engine-cli-3.4.0.4-1.el6.noarch
ovirt-engine-sdk-python-3.4.0.4-1.el6.noarch

Comment 4 Sandro Bonazzola 2014-03-31 12:29:48 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released