[Pulp-list] verify_ssl

Koen Vanoppen vanoppen.koen at gmail.com
Thu Aug 28 05:14:40 UTC 2014


And after I changed my http conf to ssl:
[root at pulppuppet01sand .pulp]# pulp-admin login -u admin
Enter password:
An internal error occurred on the Pulp server:

RequestException: POST request
on /pulp/api/v2/actions/login/ failed with 500 - Unhandled Exception




2014-08-28 7:00 GMT+02:00 Koen Vanoppen <vanoppen.koen at gmail.com>:

> Here are my config files for the admin and the server.conf. The repo is
> for internal use only so the SSL_verification can be False. Thanx in
> advance!
>
>
> 2014-08-28 6:41 GMT+02:00 Koen Vanoppen <vanoppen.koen at gmail.com>:
>
> This is from the admin.log:
>> 2014-08-28 06:39:50,754 - ERROR - Client-side exception occurred
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py",
>> line 478, in run
>>     exit_code = Cli.run(self, args)
>>   File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 974, in run
>>     exit_code = command_or_section.execute(self.prompt, remaining_args)
>>   File
>> "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py",
>> line 224, in execute
>>     return self.method(*arg_list, **clean_kwargs)
>>   File
>> "/usr/lib/python2.6/site-packages/pulp/client/admin/admin_auth.py", line
>> 58, in login
>>     result = self.context.server.actions.login(username,
>> password).response_body
>>   File "/usr/lib/python2.6/site-packages/pulp/bindings/actions.py", line
>> 32, in login
>>     return self.server.POST(path)
>>   File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line
>> 99, in POST
>>     return self._request('POST', path, body=body,
>> ensure_encoding=ensure_encoding)
>>   File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line
>> 143, in _request
>>     response_code, response_body = self.server_wrapper.request(method,
>> url, body)
>>   File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line
>> 316, in request
>>     connection.request(method, url, body=body, headers=headers)
>>   File "/usr/lib64/python2.6/httplib.py", line 914, in request
>>     self._send_request(method, url, body, headers)
>>   File "/usr/lib64/python2.6/httplib.py", line 951, in _send_request
>>     self.endheaders()
>>   File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
>>     self._send_output()
>>   File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
>>     self.send(msg)
>>   File "/usr/lib64/python2.6/httplib.py", line 739, in send
>>     self.connect()
>>   File "/usr/lib64/python2.6/site-packages/M2Crypto/httpslib.py", line
>> 50, in connect
>>     self.sock.connect((self.host, self.port))
>>   File "/usr/lib64/python2.6/site-packages/M2Crypto/SSL/Connection.py",
>> line 181, in connect
>>     self.socket.connect(addr)
>>   File "<string>", line 1, in connect
>> error: [Errno 111] Connection refused
>>
>>
>>
>> 2014-08-28 6:37 GMT+02:00 Koen Vanoppen <vanoppen.koen at gmail.com>:
>>
>> THANX!!! that was the trick indeed. Sorry...
>>> Now I only have this:
>>> The connection was refused when attempting to contact the server
>>> [pulppuppet01sand.brusselsairport.***]. Check the client configuration to
>>> ensure the server hostname is correct.
>>>
>>> pulp-admin and server are running on the same host, with self generated
>>> cert and key.
>>>
>>> Kind regards,
>>>
>>> Koen
>>>
>>>
>>>
>>>
>>> 2014-08-27 16:07 GMT+02:00 Sean Waite <swaite at tracelink.com>:
>>>
>>> Hi Koen,
>>>>
>>>> If you read the release notes (
>>>> http://pulp-user-guide.readthedocs.org/en/latest/release-notes/2.4.x.html),
>>>> you'll see that with the self-signed certs, you'll need to set verify_ssl
>>>> to False in the admin.conf and others.
>>>>
>>>> I hit this same issue.
>>>>
>>>>
>>>> On Wed, Aug 27, 2014 at 9:38 AM, Koen Vanoppen <vanoppen.koen at gmail.com
>>>> > wrote:
>>>>
>>>>> Dear All,
>>>>>
>>>>> I have installed pulp v 2.4 and now I'm getting following error when I
>>>>> try to login with "pulp-admin login -u admin"
>>>>>
>>>>> Traceback (most recent call last):
>>>>>   File "/usr/bin/pulp-admin", line 9, in <module>
>>>>>     load_entry_point('pulp-client-admin==2.4.0', 'console_scripts',
>>>>> 'pulp-admin')()
>>>>>   File
>>>>> "/usr/lib/python2.6/site-packages/pulp/client/admin/__init__.py", line 35,
>>>>> in main
>>>>>     config_files, exception_handler_class=AdminExceptionHandler
>>>>>   File "/usr/lib/python2.6/site-packages/pulp/client/launcher.py",
>>>>> line 85, in main
>>>>>     server = _create_bindings(config, logger, username, password)
>>>>>   File "/usr/lib/python2.6/site-packages/pulp/client/launcher.py",
>>>>> line 192, in _create_bindings
>>>>>     validate_ssl_ca = config['server']['verify_ssl'].lower() != 'false'
>>>>> KeyError: 'verify_ssl'
>>>>>
>>>>> Any Ideas?
>>>>>
>>>>> Kind regards,
>>>>>
>>>>> Koen
>>>>>
>>>>> _______________________________________________
>>>>> Pulp-list mailing list
>>>>> Pulp-list at redhat.com
>>>>> https://www.redhat.com/mailman/listinfo/pulp-list
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Sean Waite                                      swaite at tracelink.com
>>>> Cloud Operations Engineer                GPG 17F91B3A
>>>> TraceLink, Inc.
>>>>
>>>> Be Excellent to Each Other
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20140828/cc9aa060/attachment.htm>


More information about the Pulp-list mailing list