Bug 654943
Summary: | Grid Engine configuration script inst_sge fails in Fedora 13, 14, and RHEL6 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sidney Markowitz <sidney> | ||||
Component: | gridengine | Assignee: | Orion Poplawski <orion> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 14 | CC: | brendan.jones.it, maurizio.antillon, orion | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | gridengine-6.2u5-6.fc14 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-03-11 20:52:59 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: | |||||||
Attachments: |
|
Description
Sidney Markowitz
2010-11-19 05:35:54 UTC
Thanks for the report. Assigning -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers Created attachment 462953 [details]
Proposed patch that only rejects when the only host name is localhost* and the only ip address is 127.0*
Here is a patch to the configuration script that is less picky about what it rejects. Instead of looking for any host name or alias named localhost* and any ip address that is 127.0* like the current script does, it only rejects the case in which there are only localhost names and ip addresses. I tried this on various configurations in RHEL6, Fedora 13 and Fedora 14 and could not come up with one that broke it.
I think this is simple enough not to require a CLA from me, and I state here that anyone is free to use this any way they want, but I am willing to submit a CLA if you want one.
Could you try: gethostname | awk -F: '/Host/ { split($2, items," "); print items[1]; } ' as the filter to gethostname with the rest of inst_common.sh intact? I think that should be sufficient. That doesn't work with one Fedora 14 system I encountered that somehow ended up with the 127.0.0.1 line in /etc/hosts containing the host name of the machine, i.e., the equivalent of 192.168.3.4 foo foo.example.com 127.0.0.1 foo localhost.localdomain localhost localhost4 ::1 foo localhost6.localdomain6 localhost6 I don't know how it ended up configured like that, but on that machine the command hostname -i begins with "::1" and the gridengine gethostname program has 127.0.0.1 coming before the nonlocal ip address. It was because of that example that I made the more complex patch that I submitted instead of just looking at the first name and ip address on each line as you suggested and was the first fix that I tried. By the way, this bug is more widely applicable than just with NetworkManager. I realized that when looking at a system that had NetworkManager disabled but still has the host name in the ::1 line of /etc/hosts, that there could be any number of ways that /etc/hosts ends up looking like that and that is what breaks the install script in gridengine. gridengine-6.2u5-6.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/gridengine-6.2u5-6.fc14 gridengine-6.2u5-6.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gridengine'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/gridengine-6.2u5-6.fc14 gridengine-6.2u5-6.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |