Bug 1389049 - anaconda sets hostname inconsistently
Summary: anaconda sets hostname inconsistently
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-26 17:57 UTC by Marko Myllynen
Modified: 2017-12-12 10:47 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:47:40 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.