Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #20642 - don't set hostname-override when localhost #164

Merged
merged 1 commit into from
Aug 30, 2017

Conversation

iNecas
Copy link
Member

@iNecas iNecas commented Aug 18, 2017

No description provided.

if [ $? == "0" ] && [ -d /etc/rhsm/facts/ ]; then
echo "{\"network.hostname-override\":\"$FQDN\"}" > /etc/rhsm/facts/katello.facts
if [ $? == "0" ] && [ "$FQDN" != "localhost" ] && [ -d /etc/rhsm/facts/ ]; then
echo "{\"network.hostname-override\":\"$FQDN\"}" > /etc/rhsm/faacts/katello.facts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt this line was intentional.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Daaamn :) Fixed. Thanks for spotting this. My future that would need to debug the issue in few years also thanks you :)

@ekohl ekohl requested a review from ehelms August 21, 2017 14:03
@iNecas
Copy link
Member Author

iNecas commented Aug 30, 2017

@ehelms anything else required for this PR, or it can be merged?

Copy link
Member

@ehelms ehelms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iNecas This will fix the issue for new clients, but without a change in Katello as well this won't prevent existing clients from running into this problem. I think we should file a separate issue or consider this one not fixed until that part is done as well.

@ehelms ehelms merged commit 7c0326d into theforeman:master Aug 30, 2017
@iNecas
Copy link
Member Author

iNecas commented Aug 31, 2017

Here is the issue against Katello http://projects.theforeman.org/issues/20816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants