Bug 1459220

Summary: pycurl.HTTPAUTH_GSSNEGOTIATE moved from pycurl.Curl() to pycurl.CurlMulti() fails
Product: [oVirt] ovirt-engine-sdk-python Reporter: Fabrice Bacchella <fabrice.bacchella>
Component: GeneralAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Gonza <grafuls>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.4CC: bugs, juan.hernandez, mperina, oourfali, stirabos
Target Milestone: ovirt-4.1.3Flags: rule-engine: ovirt-4.1+
pstehlik: testing_ack+
Target Release: 4.1.5   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: python-ovirt-engine-sdk4-4.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-06 13:18:46 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:

Description Fabrice Bacchella 2017-06-06 14:45:26 UTC
This lines: https://github.com/oVirt/ovirt-engine-sdk/commit/9db60cb3a2498ecce94eb424f92ff1685b2abece#diff-ec850c078e3abcabfb17c357722e7fe7L493

brake kerberos authentication.

setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_GSSNEGOTIATE) is for a Curl object, not a CurlMulti one.

Try:

    new_curl = pycurl.Curl()
    new_curl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_GSSNEGOTIATE)

    multi = pycurl.CurlMulti()
    multi.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_GSSNEGOTIATE)


It fails for the second setopt, not the first one.

Comment 1 Gonza 2017-06-21 12:24:34 UTC
Verified with:
python-ovirt-engine-sdk4-4.2.1-1.a1.20170607gitdec2258.el7.centos.x86_64