Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
I just upgraded my machine to CentOS 8 Stream and NetworkManager no longer sets the hostname like it used to. No modifications have been made to the configuration after the upgrade. There is a primary interface (eno1) which uses DHCP for IP / DNS / default gateway and a secondary one which has a statically assigned IP address without a DNS entry.
Prior to the upgrade I would see the following messages in the system logs:
Aug 29 09:00:42 localhost.localdomain NetworkManager[3240]: <info> [1598706042.1537] NetworkManager (version 1.22.8-4.el8) is starting... (for the first time)
...
Aug 29 09:00:46 localhost.localdomain NetworkManager[3240]: <info> [1598706046.3192] policy: set 'eno1' (eno1) as default for IPv4 routing and DNS
Aug 29 09:00:46 localhost.localdomain NetworkManager[3240]: <info> [1598706046.3201] device (eno1): Activation: successful, device activated.
Aug 29 09:00:46 localhost.localdomain NetworkManager[3240]: <info> [1598706046.3205] manager: NetworkManager state is now CONNECTED_GLOBAL
Aug 29 09:00:46 localhost.localdomain NetworkManager[3240]: <info> [1598706046.3256] policy: set-hostname: set hostname to 'broadwell.fios-router.home' (from address lookup)
Aug 29 09:00:48 broadwell.fios-router.home NetworkManager[3240]: <info> [1598706048.6677] manager: startup complete
Since the upgrade this is what it prints:
Dec 11 20:04:31 localhost.localdomain NetworkManager[3220]: <info> [1607735071.2966] NetworkManager (version 1.30.0-0.3.el8) is starting... (for the first time)
...
Dec 11 20:04:35 localhost.localdomain NetworkManager[3220]: <info> [1607735075.4877] policy: set 'eno1' (eno1) as default for IPv4 routing and DNS
Dec 11 20:04:35 localhost.localdomain NetworkManager[3220]: <info> [1607735075.4887] device (eno1): Activation: successful, device activated.
Dec 11 20:04:35 localhost.localdomain NetworkManager[3220]: <info> [1607735075.4891] manager: NetworkManager state is now CONNECTED_GLOBAL
Dec 11 20:04:37 localhost.localdomain NetworkManager[3220]: <info> [1607735077.8180] manager: startup complete
Notice the missing "policy: set-hostname ..." messages with version 1.30
Version-Release number of selected component (if applicable):
NetworkManager-1.30.0-0.3.el8.x86_64
How reproducible:
Consistently
Steps to Reproduce:
1.
2.
3.
Actual results:
hostname is set to localhost.localdomain
Expected results:
hostname should be set via reverse DNS lookup like it prior to the upgrade
Additional info: