Project

General

Profile

Bug #8540

Force network-manager not to send the hostname

Added by Lukas Zapletal over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Image
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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 6 years ago

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

History

#1 Updated by Lukas Zapletal over 8 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 7 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 6 years ago

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

Also available in: Atom PDF