| Summary: | Sending smolt profile from CentOS 6.x fails with a pycurl error | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Răzvan Sandu <rsandu2004> |
| Component: | smolt | Assignee: | Will Woods <wwoods> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | el6 | CC: | awyatt, cfeller, marbolangos, pasqual.milvaques, wwoods |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-07-20 12:18:23 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Răzvan Sandu
2012-01-13 08:37:51 UTC
This problem also occurs on Fuduntu. Error contacting Server: [Errno 14] HTTP Error 417 : http://www.smolts.org/client/add_json Could not send - Exiting I noticed that this stopped working on my RHEL6 boxes as well, but still works on my RHEL5 boxes. Looking at one of my boxes: http://smolts.org/client/show/?uuid=pub_c8aef5e1-d3a5-4af4-93fc-2ef94037a9f9 looks like it last updated on 2011-12-06. So whatever broke, broke shortly after that it seems. the smolt version included in my centos 6.2 is smolt-1.4.2.2. I have taken a look at the application in https://fedorahosted.org/releases/s/m/smolt/ and there is a new version (1.4.3) in which the code lines which are crashing (smolt.py: o = grabber.urlopen(urljoin(...) have been rewritten using the urllib2 python library I have tried running the tarball in my system but it seems that the installed python version doesn't match the requirements for python 1.4.3. so to try this solution and adaptation of the code of smolt-1.4.3 or some tweaking of the python runtime must be done. I don't remember the python version of my fedora box at this moment in which smolt 1.4.3 is running perfectly the problem could't be also related to the server as the 417 error as is defined here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html implies a problem in the dialog between client and server I have have found a quick workaround here: http://blackslot.com/blog/2009/12/solucion-al-error-http1-1-417-expectation-failed-connection-close-content-length-0-en-php-con-curl/ in smolt.py change this lines: try: o = grabber.urlopen(urljoin(smoonURL + "/", "/client/add_json", False), data=send_host_str, http_headers=( ('Content-length', '%i' % len(send_host_str)), ('Content-type', 'application/x-www-form-urlencoded'))) for this: try: o = grabber.urlopen(urljoin(smoonURL + "/", "/client/add_json", False), data=send_host_str, http_headers=( ('Content-length', '%i' % len(send_host_str)), ('Expect', ''), ('Content-type', 'application/x-www-form-urlencoded'))) before testing remember to rename the smolt.pyc and smolt.pyo files so you assure to be using the interpreted version of the software in smolt.py. after that ideally you can compile smolt.py to achieve a bit more speed but I don't know how to do it at this moment I hope this helps Same here. Please update EPEL repo. Hello, I think statistics at http://smolts.org is wildly wrong because a large class of machines are not reporting now (because of this bug). Would you please update the EPEL repo (we only use officially Fedora/RedHat/CentOS packaged software on production machines)...? Regards, Răzvan |