Project

General

Profile

Bug #8540

Force network-manager not to send the hostname

Added by Lukas Zapletal over 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Image
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

It looks like NM is still sending the hostname, which is bad thing for DHCP (a conflict with dracut can occur).

Make sure NM is configured NOT to send the DHCP client hostname:

gconftool-2 --type bool --set /system/networking/connections/<NUM>/ipv4/dhcp-send-hostname true

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

Backport to 0.6.

Associated revisions

Revision 92aaa220 (diff)
Added by Lukas Zapletal over 3 years ago

Fixes #8540 - hostname is no longer sent in DHCP request

History

#1 Updated by Lukas Zapletal over 5 years ago

Here is a snippet where we see that dhclient was started with different hostnames, this can lead to DHCP conflicts eventually:

 3024 tty1     Ssl+   0:00 ruby /usr/bin/discover-host.rb
 3049 ?        Ss     0:00 /sbin/dhclient -H localhost -1 -q -lf /var/lib/dhclient/dhclient--eno1.lease -pf /var/run/dhclient-eno1.pid eno1
 3162 ?        Ss     0:00 /sbin/dhclient -H localhost -1 -q -lf /var/lib/dhclient/dhclient--eno2.lease -pf /var/run/dhclient-eno2.pid eno2
 3239 ?        S      0:00 [kworker/18:3]
 3283 ?        Ss     0:00 /sbin/dhclient -H dhcp-111 -1 -q -lf /var/lib/dhclient/dhclient--enp2s0f0.lease -pf /var/run/dhclient-enp2s0f0.pid enp2s0f0
 3866 ?        Ss     0:00 /sbin/dhclient -H dhcp-111 -1 -q -lf /var/lib/dhclient/dhclient--eth0.lease -pf /var/run/dhclient-eth0.pid eth0
 3972 ?        Ss     0:00 /sbin/dhclient -H dhcp-111 -1 -q -lf /var/lib/dhclient/dhclient--eth1.lease -pf /var/run/dhclient-eth1.pid eth1

#2 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-discovery-image/pull/65 added

#3 Updated by Anonymous over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF