<div dir="ltr"><div>the error in the admin.log file concerning above error:<br>2014-08-28 11:21:17,519 - ERROR - Exception occurred:<br>        href:      /pulp/api/v2/actions/login/<br>        method:    POST<br>        status:    500<br>
        error:     Unhandled Exception<br>        traceback: [u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/middleware/exception.py", line 44, in __call__\n    return self.app(environ, start_response)\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/middleware/postponed.py", line 42, in __call__\n    return self.app(environ, start_response)\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 279, in wsgi\n    result = self.handle_with_processors()\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 29, in _handle_with_processors\n    return process(self.processors)\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in process\n    return p(lambda: process(processors))\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 566, in processor\n    return handler()\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in <lambda>\n    return p(lambda: process(processors))\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in process\n    return p(lambda: process(processors))\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor\n    result = handler()\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in <lambda>\n    return p(lambda: process(processors))\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 28, in process\n    return self.handle()\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle\n    return self._delegate(fn, self.fvars, args)\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 422, in _delegate\n    return f()\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 430, in <lambda>\n    f = lambda: self._delegate_sub_application(pat, what)\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 455, in _delegate_sub_application\n    return app.handle_with_processors()\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 29, in _handle_with_processors\n    return process(self.processors)\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in process\n    return p(lambda: process(processors))\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 566, in processor\n    return handler()\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in <lambda>\n    return p(lambda: process(processors))\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in process\n    return p(lambda: process(processors))\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor\n    result = handler()\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in <lambda>\n    return p(lambda: process(processors))\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 28, in process\n    return self.handle()\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle\n    return self._delegate(fn, self.fvars, args)\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate\n    return handle_class(cls)\n', u'  File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class\n    return tocall(*args)\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 227, in _auth_decorator\n    value = method(self, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/root_actions.py", line 42, in POST\n    key, certificate = factory.cert_generation_manager().make_admin_user_cert(user)\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/managers/auth/cert/cert_generator.py", line 43, in make_admin_user_cert\n    return self.make_cert(self.encode_admin_user(user), expiration)\n', u'  File "/usr/lib/python2.6/site-packages/pulp/server/managers/auth/cert/cert_generator.py", line 97, in make_cert\n    raise Exception("error signing cert request: %s" % output)\n']<br>
        data:      {}<br><br></div># ************************************<br># Vhost template in module puppetlabs-apache<br># Managed by Puppet<br># ************************************<br><br><VirtualHost *:443><br>
  ServerName pulppuppet01sand.brusselsairport.***<br><br>  ## Vhost docroot<br>  DocumentRoot "/var/www/html"<br><br><br><br>  ## Directories, there should at least be a declaration for /var/www/html<br><br><br>
  <Directory "/var/www/html"><br>    Options Indexes FollowSymLinks MultiViews<br>    AllowOverride None<br>    Order allow,deny<br>    Allow from all<br>  </Directory><br><br>  ## Load additional static includes<br>
<br><br>  ## Logging<br>  ErrorLog "/var/log/httpd/pulp_error_ssl.log"<br>  ServerSignature Off<br>  CustomLog "/var/log/httpd/pulp_access_ssl.log" combined<br><br><br><br><br>  ## SSL directives<br>  SSLEngine on<br>
  SSLCertificateFile      "/etc/pki/tls/pulpserver.crt"<br>  SSLCertificateKeyFile   "/etc/pki/tls/pulpserver.key"<br>  SSLCACertificatePath    "/etc/pki/tls/certs"<br>  SSLCACertificateFile    "/etc/pki/pulp/ca.crt"<br>
  SSLVerifyClient         optional<br>  SSLVerifyDepth          3<br>  SSLOptions +StdEnvVars<br></VirtualHost><br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-28 7:14 GMT+02:00 Koen Vanoppen <span dir="ltr"><<a href="mailto:vanoppen.koen@gmail.com" target="_blank">vanoppen.koen@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">And after I changed my http conf to ssl: <br>[root@pulppuppet01sand .pulp]# pulp-admin login -u admin<br>
Enter password: <br>An internal error occurred on the Pulp server:<br><br>RequestException: POST request<br>
on /pulp/api/v2/actions/login/ failed with 500 - Unhandled Exception<br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-28 7:00 GMT+02:00 Koen Vanoppen <span dir="ltr"><<a href="mailto:vanoppen.koen@gmail.com" target="_blank">vanoppen.koen@gmail.com</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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!<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-08-28 6:41 GMT+02:00 Koen Vanoppen <span dir="ltr"><<a href="mailto:vanoppen.koen@gmail.com" target="_blank">vanoppen.koen@gmail.com</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">This is from the admin.log:<br>2014-08-28 06:39:50,754 - ERROR - Client-side exception occurred<div><br>Traceback (most recent call last):<br></div>  File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in run<br>



    exit_code = Cli.run(self, args)<br>  File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 974, in run<br>    exit_code = command_or_section.execute(self.prompt, remaining_args)<br>  File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute<br>



    return self.method(*arg_list, **clean_kwargs)<br>  File "/usr/lib/python2.6/site-packages/pulp/client/admin/admin_auth.py", line 58, in login<br>    result = self.context.server.actions.login(username, password).response_body<br>



  File "/usr/lib/python2.6/site-packages/pulp/bindings/actions.py", line 32, in login<br>    return self.server.POST(path)<br>  File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line 99, in POST<br>



    return self._request('POST', path, body=body, ensure_encoding=ensure_encoding)<br>  File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line 143, in _request<br>    response_code, response_body = self.server_wrapper.request(method, url, body)<br>



  File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line 316, in request<br>    connection.request(method, url, body=body, headers=headers)<br>  File "/usr/lib64/python2.6/httplib.py", line 914, in request<br>



    self._send_request(method, url, body, headers)<br>  File "/usr/lib64/python2.6/httplib.py", line 951, in _send_request<br>    self.endheaders()<br>  File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders<br>



    self._send_output()<br>  File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output<br>    self.send(msg)<br>  File "/usr/lib64/python2.6/httplib.py", line 739, in send<br>    self.connect()<br>



  File "/usr/lib64/python2.6/site-packages/M2Crypto/httpslib.py", line 50, in connect<br>    self.sock.connect((self.host, self.port))<br>  File "/usr/lib64/python2.6/site-packages/M2Crypto/SSL/Connection.py", line 181, in connect<br>



    self.socket.connect(addr)<br>  File "<string>", line 1, in connect<br>error: [Errno 111] Connection refused<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-28 6:37 GMT+02:00 Koen Vanoppen <span dir="ltr"><<a href="mailto:vanoppen.koen@gmail.com" target="_blank">vanoppen.koen@gmail.com</a>></span>:<div>


<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>THANX!!! that was the trick indeed. Sorry...<br></div>Now I only have this:<br>The connection was refused when attempting to contact the server<br>



[pulppuppet01sand.brusselsairport.***]. Check the client configuration to<br>
ensure the server hostname is correct.<br><br></div>pulp-admin and server are running on the same host, with self generated cert and key.<br><br></div>Kind regards,<br><br></div>Koen<br><div><div><div><br><br></div></div>




</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-27 16:07 GMT+02:00 Sean Waite <span dir="ltr"><<a href="mailto:swaite@tracelink.com" target="_blank">swaite@tracelink.com</a>></span>:<div>



<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Koen,<div><br></div><div>If you read the release notes (<a href="http://pulp-user-guide.readthedocs.org/en/latest/release-notes/2.4.x.html" target="_blank">http://pulp-user-guide.readthedocs.org/en/latest/release-notes/2.4.x.html</a>), you'll see that with the self-signed certs, you'll need to set verify_ssl to False in the admin.conf and others.<br>





<br></div><div>I hit this same issue.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Aug 27, 2014 at 9:38 AM, Koen Vanoppen <span dir="ltr"><<a href="mailto:vanoppen.koen@gmail.com" target="_blank">vanoppen.koen@gmail.com</a>></span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div>Dear All,<br><br></div>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"<br>





<br>Traceback (most recent call last):<br>
  File "/usr/bin/pulp-admin", line 9, in <module><br>    load_entry_point('pulp-client-admin==2.4.0', 'console_scripts', 'pulp-admin')()<br>  File "/usr/lib/python2.6/site-packages/pulp/client/admin/__init__.py", line 35, in main<br>






    config_files, exception_handler_class=AdminExceptionHandler<br>  File "/usr/lib/python2.6/site-packages/pulp/client/launcher.py", line 85, in main<br>    server = _create_bindings(config, logger, username, password)<br>






  File "/usr/lib/python2.6/site-packages/pulp/client/launcher.py", line 192, in _create_bindings<br>    validate_ssl_ca = config['server']['verify_ssl'].lower() != 'false'<br>KeyError: 'verify_ssl'<br>






<br></div>Any Ideas?<br><br></div>Kind regards,<br><br>Koen<br></div>
<br></div></div>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br>




<br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Sean Waite                                      <a href="mailto:swaite@tracelink.com" target="_blank">swaite@tracelink.com</a></div>
<div>Cloud Operations Engineer                GPG 17F91B3A</div><div>TraceLink, Inc.</div><div><br></div><div>Be Excellent to Each Other</div></div>
</font></span></div>
</blockquote></div></div></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>