Bug 670870 - Traceback trying to `auth login` on RHEL 5
Summary: Traceback trying to `auth login` on RHEL 5
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-19 15:22 UTC by Jay Dobies
Modified: 2011-08-16 12:22 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:10:13 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Dobies 2011-01-19 15:22:23 UTC
$ pulp-admin -uadmin -padmin auth login
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 147, in ?
    admin.main()
  File "/usr/lib/python2.4/site-packages/pulp/client/cli/base.py", line 98, in main
    command.main(args[1:])
  File "/usr/lib/python2.4/site-packages/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/usr/lib/python2.4/site-packages/pulp/client/core/base.py", line 229, in main
    self.run()
  File "/usr/lib/python2.4/site-packages/pulp/client/core/auth.py", line 47, in run
    cert_dict = self.authconn.admin_certificate()
  File "/usr/lib/python2.4/site-packages/pulp/client/connection.py", line 671, in admin_certificate
    return self.conn.request_get(method)
  File "/usr/lib/python2.4/site-packages/pulp/client/connection.py", line 126, in request_get
    return self._request("GET", method)
  File "/usr/lib/python2.4/site-packages/pulp/client/connection.py", line 114, in _request
    self.validateResponse(response)
  File "/usr/lib/python2.4/site-packages/pulp/client/connection.py", line 122, in validateResponse
    raise RestlibException(response.status, response.read())
  File "/usr/lib/python2.4/site-packages/pulp/client/connection.py", line 50, in __init__
    super(RestlibException, self).__init__(code, msg)
TypeError: super() argument 1 must be type, not classobj

Comment 1 Pradeep Kilambi 2011-01-19 18:59:15 UTC
commit 155eddb0850b74ab7d5e7df1739b7bc0bc3b5b98
Author: Pradeep Kilambi <pkilambi>
Date:   Wed Jan 19 13:58:12 2011 -0500

    670870 - since rhel5 python uses older style class objects, super bails on
us. invoke the exception class directly instead

Comment 2 Jay Dobies 2011-01-21 19:18:48 UTC
Fixed in 0.130.

Comment 3 Preethi Thomas 2011-01-26 15:48:51 UTC
fails-qa
I have tried restating pulp-server

[root@pulp-qe-rhel5 ~]# rpm -q pulp
pulp-0.0.131-1

[root@pulp-qe-rhel5 ~]# pulp-admin auth login -u admin -p admin
error: operation failed: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at pulp-qe-rhel5.usersys.redhat.com Port 443</address>
</body></html>
[root@pulp-qe-rhel5 ~]# service mongod status
mongod (pid 21213) is running...

Comment 4 Pradeep Kilambi 2011-01-26 15:57:27 UTC
there is a db upgrade issue on 131..

paste me server side ssl logs (/var/log/https/ssl_Error_log

Comment 5 Preethi Thomas 2011-01-26 16:09:15 UTC
[root@pulp-qe-rhel5 ~]# tail -f /var/log/httpd/ssl_error_log

[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_io.c(1766): +-------------------------------------------------------------------------+
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_io.c(1791): | 0000: f1 f4 61 1a 0c be 35 1a-ca 45 17 f3 73 3e a3 a4  ..a...5..E..s>.. |
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_io.c(1791): | 0010: 56 2b 57 f3 8a 22 41 5d-5d ea 90 2f 7d d8 7c dd  V+W.."A]]../}.|. |
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_io.c(1791): | 0020: 99 7a f6 15 3d 83 d8 e7-77 62 cc bc 3f 28 42 c0  .z..=...wb..?(B. |
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_io.c(1797): +-------------------------------------------------------------------------+
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_kernel.c(1809): OpenSSL: Loop: SSLv3 read finished A
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_kernel.c(1809): OpenSSL: Loop: SSLv3 write change cipher spec A
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_kernel.c(1809): OpenSSL: Loop: SSLv3 write finished A
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_kernel.c(1809): OpenSSL: Loop: SSLv3 flush data
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(670): inside shmcb_store_session
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(676): session_id[0]=139, masked index=11
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(1059): entering shmcb_insert_encoded_session, *queue->pos_count = 0
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(983): entering shmcb_expire_division
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(1115): we have 13853 bytes and 133 indexes free - enough
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(1144): storing in index 0, at offset 0
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(1159): session_id[0]=139, idx->s_id2=207
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(1170): leaving now with 123 bytes in the cache and 1 indexes
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(1174): leaving shmcb_insert_encoded_session
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(704): leaving shmcb_store successfully
[Wed Jan 26 11:05:09 2011] [debug] ssl_scache_shmcb.c(418): shmcb_store successful
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_kernel.c(1667): Inter-Process Session Cache: request=SET status=OK id=8BCFE50B7CC0901315E076C4064BA0E5E6C2F4FE683B7F112928B7BEF0A9D8F8 timeout=300s (session caching)
[Wed Jan 26 11:05:09 2011] [debug] ssl_engine_kernel.c(1805): OpenSSL: Handshake: done
[Wed Jan 26 11:05:09 2011] [info] Connection: Client IP: 10.16.79.193, Protocol: TLSv1, Cipher: DHE-RSA-AES256-SHA (256/256 bits)
[Wed Jan 26 11:07:09 2011] [error] [client 10.16.79.193] Premature end of script headers: webservices.wsgi
[Wed Jan 26 11:07:09 2011] [debug] ssl_engine_kernel.c(1819): OpenSSL: Write: SSL negotiation finished successfully
[Wed Jan 26 11:07:09 2011] [info] [client 10.16.79.193] Connection closed to child 2 with standard shutdown (server pulp-qe-rhel5.usersys.redhat.com:443)

Comment 6 Pradeep Kilambi 2011-01-26 16:26:43 UTC
This error is a 

[Wed Jan 26 11:07:09 2011] [error] [client 10.16.79.193] Premature end of
script headers: webservices.wsgi

which i is due to bug# https://bugzilla.redhat.com/show_bug.cgi?id=670967

Either apply the patch from that bug and test this bug or hold QA on this bug until thats fixed.

Moving this back to QA.

Comment 7 Preethi Thomas 2011-02-04 15:43:39 UTC
verified


[root@unused yum.repos.d]# pulp-admin auth login -u admin -p admin
User credentials successfully stored at [/root/.pulp]

[root@unused yum.repos.d]# rpm -q pulp
pulp-0.0.134-1

Comment 8 Preethi Thomas 2011-08-16 12:10:13 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 9 Preethi Thomas 2011-08-16 12:22:18 UTC
Closing with Community Release 15

pulp-0.0.223-4.


Note You need to log in before you can comment on or make changes to this bug.