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.
I noticed that satellite registration is failing on some servers with older operating systems.
When katello-ca-consumer is installed, it is modifying rhsm.conf and is introducing bad syntax in the [rhsm] section. It appears that it is supposed to be inserting a newline (\n) but someone typo'd it and it is actually inserting \nn
This specifically is the line that is being inserted:
n#config for on-premise management
This is what the [rhsm] section looks like before anything is done:
[rhsm]
# Content base URL:
baseurl= https://cdn.redhat.com
And this is what it looks like after katello-ca-consumer is installed:
[rhsm]
# Content base URL:
baseurl= https://lnxfwisat.corp.pvt/pulp/repos
n#config for on-premise management
full_refresh_on_yum = 1
I do not see this on any RHEL 7 servers.
I found what is causing the problem in katello-rhsm-consumer.
From lines 284 and 285:
full_refresh_config="#config for on-premise management\nfull_refresh_on_yum = 1"
sed -i "/baseurl/a\n$full_refresh_config" $CFG
The "\n" is creating a literal "\n" instead of a new line:
n#config for on-premise management
The sed line should look like this:
sed -i "/baseurl/a $full_refresh_config" $CFG
(The \n is replaced by a space)
I even tested it myself just to be sure it worked as expected.
Any thoughts on to why this would be happening?
Cheers,
Ivan Windon
Hi Ivan,
Thanks for creating the bugzilla. This appears to be a duplicate of bug 1661041. A solution for it should be available in 6.4.2 (and future releases).
I am going to close this bugzilla as a duplicate; however, if you re-encounter the issue after updating, please do let us know.
*** This bug has been marked as a duplicate of bug 1661041 ***