Bug 1389049

Summary: anaconda sets hostname inconsistently
Product: [Fedora] Fedora Reporter: Marko Myllynen <myllynen>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: anaconda-maint-list, g.kaviyarasu, jonathan, jpazdziora, mkolman, swadeley, vanmeeuwen+fedora, vponcova
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:47:40 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:

Description Marko Myllynen 2016-10-26 17:57:08 UTC
Description of problem:
When no hostname is specified Anaconda sets up /etc/hosts correctly:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

However in /etc/hostname there is:

localhost.localdomain

I think Anaconda should set hostname consistently by using localhost in /etc/hostname.

Comment 1 Marko Myllynen 2016-10-26 18:00:18 UTC
There's a corner case with cloud-init where this causes cloud-init to configure /etc/hostname wrongly:

https://bugzilla.redhat.com/show_bug.cgi?id=1389048

cloud-init should not get confused by localhost.localdomain but still it would seem that using localhost consistently would be the right thing to do.

Thanks.

Comment 2 Fedora End Of Life 2017-12-12 10:47:40 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.