Bug 1320145

Summary: NM does not set hostname
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: NetworkManagerAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: bgalvani, dcbw, lkundrak, psimerda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-29 11:44:22 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 Vít Ondruch 2016-03-22 12:10:54 UTC
Description of problem:
$ hostname
localhost

$ LANG=C.UTF-8 journalctl -b -u NetworkManager
... snip ...
Mar 22 13:02:12 localhost NetworkManager[1203]: <info>  [1458648132.396400] Setting system hostname to 'unused-4-232.brq.redhat.com' (from address lookup)
Mar 22 13:02:12 localhost NetworkManager[1203]: <warn>  [1458648132.396488] couldn't set the system hostname to 'unused-4-232.brq.redhat.com': (1) Operace není povolena
Mar 22 13:02:12 localhost NetworkManager[1203]: <warn>  [1458648132.396500] You should use hostnamed when systemd hardening is in effect!


Version-Release number of selected component (if applicable):
$ rpm -q NetworkManager
NetworkManager-1.2.0-0.6.beta2.fc25.x86_64


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Beniamino Galvani 2016-03-25 15:05:58 UTC
Please upgrade to NetworkManager-1.2.0-0.7.beta2.fc25.x86_64, this should be fixed now.

Comment 2 Vít Ondruch 2016-03-30 13:57:26 UTC
Thx, it works now with:

$ rpm -q NetworkManager
NetworkManager-1.2.0-0.8.beta3.fc25.x86_64

Comment 3 Jan Kurik 2016-07-26 04:35:04 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.