Bug 1129463
Summary: | Foreman creates duplicate hosts based on incorrect facter 'fqdn' resolution | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Stephen Benjamin <stbenjam> |
Component: | Provisioning | Assignee: | Stephen Benjamin <stbenjam> |
Status: | CLOSED WONTFIX | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.4 | CC: | bkearney, jhutar, kbidarka, mmello, riehecky |
Target Milestone: | Unspecified | ||
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/7384 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-01-06 19:18:43 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: |
Description
Stephen Benjamin
2014-08-12 20:00:07 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. Workaround for now. I had to use fix_hosts to over come this issue and slightly modify it as below. NOTE: 1) The below step 2) is required for REALM/IPA Integration as ipa-client-install checks for <hostname>.<domainname> and clearly states that FQDN is preferred. 2) Modified few instances of s/@host.shortname/@host/ in fix_hosts 3) Added: <%= snippet 'fix_hosts' %> before <%= snippet "subscription_manager_registration" %> in 'Satellite Kickstart Default' template. Below is the modified fix_hosts template which helped solve this issue for now. <%# kind: snippet name: fix_hosts1 %> echo "<%= @host %>" > /etc/hostname hostname <%= @host %> cat > /etc/hosts << EOF <%# simple snippet to generate /etc/hosts when provisioning image based systems -%> 127.0.0.1 <%= @host %> <%= @host.shortname %> localhost localhost.localdomain ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters EOF *** Bug 1129306 has been marked as a duplicate of this bug. *** This could be a blocker, as the vm's provisioning would go in an infinite loop, due to the above metioned reason. When Sat6 is integrated with IPA Server. Do you only see the problem with IPA realm enabled? Or even with no realm, but Satellite in one domain, VM in another? Let me check, as per what you have asked. Updating what was said on comment5. Seeing this for both with or without sat6 integrated with IPA Server. The underlying issue is fact exepcts that `hostname -f` will return a correct value. That fails if you don't have working DNS (or an entry in /etc/hosts). I would say it's not really a blocker issue for GA, since the problem only happens in those 2 scenarios, which I think are sane requirements. Two solutions are: 1) Have working DNS 2) Use the fix_hosts snippet with the modifications above If it really becomes an issue for users, maybe then we consider including fix_hosts by default in the template. s/fact exepcts/facter expects/ Created redmine issue http://projects.theforeman.org/issues/7384 from this bug Upstream bug component is Other Upstream bug component is Provisioning I think it's probably already fixed, will confirm. This is an older bug which has been reported upstream. We are not going to track this bug downstream. When the upstream issue is resolved, the next build will contain the fix. Thank you. |