Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1129306

Summary: provisioning leads into a infinite loop of installation after REALM Integration
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: ProvisioningAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.4   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-13 14:41:15 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 Kedar Bidarkar 2014-08-12 14:50:59 UTC
Description of problem:

Provisioning of rhel65 with the below content

a) from RH content provider
RHEL65
b) from custom content 
RHCOMMON   [ for katello-agent and puppet packages]

c) Create an activation_key with the above both the subscriptions
d) Create a host_group and attach the above activation_key to the host_group
e) Use the above host_group, while provisioning a rhel65 box

NOTE: I could only test it for now for rhel65. As this is a lengthy process will update when encounter issues with rhel5 or rhel7.


Version-Release number of selected component (if applicable):
sat6-GA-snap4

How reproducible:
always.

Steps to Reproduce:
1.
2.
3.

Actual results:
provisioning goes in an infinite loop. that is os installation goes in a loop.
Using a AK and CV with just rhel65 content/subscription has no issues.

Expected results:
Should be possible to install katello-agent and puppet and avoid the infinite loop.

Additional info:

Comment 1 Kedar Bidarkar 2014-08-12 14:52:42 UTC
this issue is seen when I am trying with REALM Integration.

I need to try without REALM Integration. If someone confirms it that would be helpful.

Comment 2 RHEL Program Management 2014-08-12 15:03:23 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.

Comment 4 Kedar Bidarkar 2014-08-12 19:56:02 UTC
stbenjam suggested that the problem is "puppet is telling foreman the wrong name".

[root@omgwtfbbq02 ~]# facter fqdn
omgwtfbbq02.englab.pnq.redhat.com
[root@omgwtfbbq02 ~]# hostname
omgwtfbbq02.katellolabs.org

Comment 5 Kedar Bidarkar 2014-08-13 14:38:42 UTC
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

Comment 6 Kedar Bidarkar 2014-08-13 14:41:15 UTC

*** This bug has been marked as a duplicate of bug 1129463 ***