hostnamed should not print warning about nss-myhostname

Bug #1277608 reported by Marc Deslauriers
338
This bug affects 78 people
Affects Status Importance Assigned to Milestone
systemd (Debian)
New
Undecided
Unassigned
systemd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Currently hostnamed prints the following error in syslog:

systemd-hostnamed[24508]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!

Since nss-myhostname was rejected as being the right approach in https://bugs.launchpad.net/ubuntu/+source/libnss-myhostname/+bug/1162478/comments/6 , we should not print the warning message in the LTS release, even if hostnamed doesn't currently modify /etc/hosts (LP: #1162475).

Can we please patch this warning out to prevent users from thinking something is wrong on their system and leading them to install libnss-myhostname?

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: systemd-services 204-5ubuntu10
ProcVersionSignature: Ubuntu 3.13.0-5.20-generic 3.13.0
Uname: Linux 3.13.0-5-generic x86_64
ApportVersion: 2.13.2-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Feb 7 12:12:20 2014
InstallationDate: Installed on 2013-11-26 (72 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: systemd
UpgradeStatus: Upgraded to trusty on 2014-01-17 (20 days ago)

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Josh (majik) wrote :

Problem continues to exist on 14.10.

Revision history for this message
Spectrumknight (spectrumknight) wrote :

still having this awkward warning...

Revision history for this message
Marcus (elect-tech) wrote :

 It is still affecting 14.04LTS. Is this opening any security holes?

Revision history for this message
Nick Demou (ndemou) wrote :

This is _not_ a duplicate of bug #1162475 (titled "Changing hostname doesn't update /etc/hosts")

Ken Sharp (kennybobs)
tags: added: i386 utopic
Revision history for this message
Martin Wildam (mwildam) wrote :

Ubuntu 14.04 with latest patchlevel - I still notice that message and indeed thought, something is rotten.

Dan Streetman (ddstreet)
Changed in systemd (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.