Bug 640626
Summary: | Python error when trying to provision RHEL6 | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Alexander Todorov <atodorov> |
Component: | Provisioning | Assignee: | Justin Sherrill <jsherril> |
Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 540 | CC: | bpeck, cperry, jhutar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-10-06 14:28:58 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: | 487677 |
Description
Alexander Todorov
2010-10-06 13:49:41 UTC
Koan seems to not detect RHEL6 OS release correctly. Traceback is: invalid literal for float(): server File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line 128, in initiate k.run() File "/usr/lib/python2.6/site-packages/koan/app.py", line 349, in run self.replace() File "/usr/lib/python2.6/site-packages/koan/app.py", line 910, in replace return self.net_install(after_download) File "/usr/lib/python2.6/site-packages/koan/app.py", line 586, in net_install after_download(self, profile_data) File "/usr/lib/python2.6/site-packages/koan/app.py", line 819, in after_download (make, version, rest) = utils.os_release() File "/usr/lib/python2.6/site-packages/koan/utils.py", line 361, in os_release return (make, float(version), rest) When this happens variables are set like this: data = 'redhat-release-server-6server-6.0.0.37.el6.i686' version = 'server' When I have "fixed" using: --- /usr/lib/python2.6/site-packages/koan/utils.py.ORIG 2010-10-06 09:45:09.431449325 -0400 +++ /usr/lib/python2.6/site-packages/koan/utils.py 2010-10-06 09:49:03.202323604 -0400 @@ -355,7 +355,10 @@ try: version = float(version) except: - version = float(version[0]) + print version + version = float(6) + #version = float(version[0]) + print make, float(version), rest return (make, float(version), rest) elif check_dist() == "debian": fd = open("/etc/debian_version") It produced: server redhat 6.0 6server Versoin of spacewalk-koan and koan being used? We pushed new stuff last week I think for this by Justin. spacewalk-koan-0.2.7-1.el6sat.noarch koan-2.1.0-2.git.87.6daccdd.el6.noarch This should already be fixed in cobbler-2.0.3.1-11 Let me make sure it made it to the build. *** This bug has been marked as a duplicate of bug 637905 *** is spacewalk-koan compatible with regular cobbler? If so I'll switch our rhel6 repo to pull that instead. |