Bug 649517
| Summary: | Connection problems on Fedora 14 | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | high | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 14:00:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 647488 | ||
commit eb1f38b9a8e64fd7bc8e0143a515418cc783c045
Author: Pradeep Kilambi <pkilambi>
Date: Fri Nov 5 15:03:29 2010 -0400
649517 - httplib in py2.7 does not handle None headers correctly. Converting them to string so http requests pas through
Fixed in 0.83.
[root@10 ~]# rpm -qa |grep pulp
pulp-client-0.0.108-1.fc14.noarch
pulp-common-0.0.108-1.fc14.noarch
pulp-0.0.108-1.fc14.noarch
[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
List of Available Repositories
+------------------------------------------+
Label f14
Name f14
FeedURL http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Fedora/x86_64/os/
FeedType yum
Arch x86_64
Sync Schedule None
Packages 2766
Files 0
Distributions ks-f14-x86_64
Publish True
Clones []
Label f13
Name f13
FeedURL http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
FeedType yum
Arch x86_64
Sync Schedule None
Packages 3102
Files 0
Distributions ks-f13-x86_64
Publish True
Clones []
Closing with Community Release 15 pulp-0.0.223-4. |
Fedora comes with python 2.7, which I suspect is the cause of the issue. Output below followed by debug level logs. [root@ip-10-204-142-122 ~]# pulp-admin repo list Traceback (most recent call last): File "/usr/bin/pulp-admin", line 104, in <module> admin.main() File "/usr/lib/python2.7/site-packages/pulp/client/cli/base.py", line 98, in main command.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 116, in main action.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 200, in main self.run() File "/usr/lib/python2.7/site-packages/pulp/client/core/repo.py", line 84, in run repos = self.pconn.repositories() File "/usr/lib/python2.7/site-packages/pulp/client/connection.py", line 240, in repositories return self.conn.request_get(method) File "/usr/lib/python2.7/site-packages/pulp/client/connection.py", line 145, in request_get return self._request("GET", method) File "/usr/lib/python2.7/site-packages/pulp/client/connection.py", line 128, in _request headers=self.headers) File "/usr/lib64/python2.7/httplib.py", line 946, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.7/httplib.py", line 986, in _send_request self.putheader(hdr, value) File "/usr/lib64/python2.7/httplib.py", line 924, in putheader str = '%s: %s' % (header, '\r\n\t'.join(values)) TypeError: sequence item 0: expected string, NoneType found [root@ip-10-204-142-122 ~]# tail -40 /var/log/pulp/client.log 2010-11-03 16:39:47,133 [INFO][MainThread] setUp() @ connection.py:183 - Connection Established for cli: Host: ip-10-204-142-122, Port: 443, handler: /pulp/api 2010-11-03 16:39:47,133 [INFO][MainThread] setUp() @ connection.py:185 - Using cert_file: None and key_file: None 2010-11-03 16:39:51,496 [INFO][MainThread] setUp() @ connection.py:183 - Connection Established for cli: Host: ip-10-204-142-122, Port: 443, handler: /pulp/api 2010-11-03 16:39:51,496 [INFO][MainThread] setUp() @ connection.py:185 - Using cert_file: /root/.pulp/admin-cert.pem and key_file: /root/.pulp/admin-key.pem 2010-11-03 16:39:51,496 [INFO][MainThread] _request() @ connection.py:116 - Using SSLv3 context 2010-11-03 16:39:51,498 [ERROR][MainThread] main() @ base.py:196 - error: sequence item 0: expected string, NoneType found 2010-11-03 17:00:26,708 [INFO][MainThread] setUp() @ connection.py:185 - Connection Established for cli: Host: ip-10-204-142-122, Port: 443, handler: /pulp/api 2010-11-03 17:00:26,709 [INFO][MainThread] setUp() @ connection.py:187 - Using cert_file: /root/.pulp/admin-cert.pem and key_file: /root/.pulp/admin-key.pem 2010-11-03 17:00:26,709 [INFO][MainThread] _request() @ connection.py:118 - Using SSLv3 context 2010-11-03 17:00:26,710 [ERROR][MainThread] main() @ base.py:215 - error: sequence item 0: expected string, NoneType found 2010-11-03 17:02:18,625 [INFO][MainThread] setUp() @ connection.py:185 - Connection Established for cli: Host: ip-10-204-142-122, Port: 443, handler: /pulp/api 2010-11-03 17:02:18,625 [INFO][MainThread] setUp() @ connection.py:187 - Using cert_file: /root/.pulp/admin-cert.pem and key_file: /root/.pulp/admin-key.pem 2010-11-03 17:02:18,625 [DEBUG][MainThread] _request() @ connection.py:116 - _request calling: /pulp/api//repositories/ to host:port : ip-10-204-142-122:443 2010-11-03 17:02:18,625 [INFO][MainThread] _request() @ connection.py:118 - Using SSLv3 context 2010-11-03 17:02:18,626 [DEBUG][MainThread] _request() @ connection.py:124 - Request_type: GET 2010-11-03 17:02:18,626 [DEBUG][MainThread] _request() @ connection.py:125 - info: None 2010-11-03 17:02:18,626 [DEBUG][MainThread] _request() @ connection.py:126 - headers: {'Accept-Language': 'en-us', 'Content-type': 'application/json', 'Accept': 'application/json', 'Authorization': None} 2010-11-03 17:02:18,626 [ERROR][MainThread] main() @ base.py:215 - error: sequence item 0: expected string, NoneType found [root@ip-10-204-142-122 ~]#