[Pulp-list] Cert based requests Broken?

Jeff Ortel jortel at redhat.com
Fri Feb 18 16:15:46 UTC 2011



On 02/18/2011 09:51 AM, Pradeep Kilambi wrote:
> On 02/18/2011 10:46 AM, Jason L Connor wrote:
>> On Fri, 2011-02-18 at 09:57 -0500, Pradeep Kilambi wrote:
>>> Few of us already ran into this. But looks like the client is not able
>>> to handle any cert based requests. If you do a client command you get:
>>>
>>> making connection with: /root/.pulp/user-cert.pem, /root/.pulp/user-key.pem
>>> Traceback (most recent call last):
>>>     File "/usr/bin/pulp-admin", line 7, in<module>
>>>       execfile(__file__)
>>>     File "/home/pkilambi/code/pulp/bin/pulp-admin", line 149, in<module>
>>>       admin.main()
>>>     File "/home/pkilambi/code/pulp/src/pulp/client/cli/base.py", line
>>> 137, in main
>>>       command.main(args[1:])
>>>     File "/home/pkilambi/code/pulp/src/pulp/client/core/base.py", line
>>> 118, in main
>>>       action.main(args[1:])
>>>     File "/home/pkilambi/code/pulp/src/pulp/client/core/base.py", line
>>> 224, in main
>>>       self.run()
>>>     File "/home/pkilambi/code/pulp/src/pulp/client/core/repo.py", line
>>> 1051, in run
>>>       checksum=checksum)
>>>     File "/home/pkilambi/code/pulp/src/pulp/client/api/file.py", line 33,
>>> in search_file
>>>       return self.server.POST(path, params)[1]
>>>     File "/home/pkilambi/code/pulp/src/pulp/client/server.py", line 281,
>>> in POST
>>>       return self._request('POST', path, body=body)
>>>     File "/home/pkilambi/code/pulp/src/pulp/client/server.py", line 238,
>>> in _request
>>>       response = connection.getresponse()
>>>     File "/usr/lib64/python2.6/httplib.py", line 974, in getresponse
>>>       response.begin()
>>>     File "/usr/lib64/python2.6/httplib.py", line 391, in begin
>>>       version, status, reason = self._read_status()
>>>     File "/usr/lib64/python2.6/httplib.py", line 355, in _read_status
>>>       raise BadStatusLine(line)
>>> httplib.BadStatusLine
>>>
>>>
>>> If we use -u admin -p admin it fixes it for few commands. So my guess is
>>> the certificate based requests are broken. -u/-p uses Basic Auth which
>>> works for few commands.
>>>
>>> We should make this a priority to fix it before todays build.
>>>
>>> ~ Prad
>>>
>>> _______________________________________________
>>> Pulp-list mailing list
>>> Pulp-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/pulp-list
>> Hey Pradep,
>>
>> Can you tell me what commands you're using seeing this on. Jeff was
>> seeing this last night on package upload.

FYI, the issue I saw last night is fixed when using username/password instead of cert 
authentication.  Seems like the same root cause.

>
> I get this for few commands, one of which is:
>
> $ sudo pulp-admin repo sync -F --id=test_local
>
> I think any POST on repo actions is giving this from what I can tell.
>
> ~ Prad
>
>>
>> _______________________________________________
>> Pulp-list mailing list
>> Pulp-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/pulp-list
>
>
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list




More information about the Pulp-list mailing list