Bug 1201879
| Summary: | Koan does not parse version numbers on EL7 correctly and therefore fails. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | sapan.ganguly |
| Component: | cobbler | Assignee: | John Eckersberg <jeckersb> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | awood, jeckersb, jimi, orion, scott, sherr, vanmeeuwen+fedora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | cobbler-2.6.9-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-07-27 23:12:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Upstream fix: https://github.com/cobbler/cobbler/pull/1334 cobbler-2.6.8-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/cobbler-2.6.8-1.el7 Package cobbler-2.6.8-1.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing cobbler-2.6.8-1.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6209/cobbler-2.6.8-1.el7 then log in and leave karma (feedback). Package cobbler-2.6.9-1.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing cobbler-2.6.9-1.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6209/cobbler-2.6.9-1.el7 then log in and leave karma (feedback). cobbler-2.6.9-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: koan doesn't support CentOS 7's version numbering, so in os_release function of /usr/lib/python2.7/site-packages/koan/utils.py, replace for t in tokens: try: return (make,float(t)) except ValueError, ve: pass raise CX("failed to detect local OS version from /etc/redhat-release") with for t in tokens: try: match = re.match('^\d+(?:\.\d+)?', t) if match: return (make, float(match.group(0))) except ValueError, ve: pass raise CX("failed to detect local OS version from /etc/redhat-release") Version-Release number of selected component (if applicable): 2.6.7-1.el7 How reproducible: Everytime koan is used on EL7. Steps to Reproduce: 1. Build an EL7 machine from Cobbler 2. Try and run koan --replace-self 3. Observe the problem with reading /etc/redhat-release Actual results: Error message (sorry, I didn't keep a copy). Expected results: After the changes to utils.py mentioned above the koan command is successful, I can then reboot the box and have it re-build. Additional info: