← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1693251] [NEW] cloud-init should configure networkmanager to not manage /etc/resolv.conf

 

Public bug reported:

Currently, cloud-init adds nameserver entries directly to
/etc/resolv.conf but does not configure namservers in per-interface
configuration files.  This could be problematic because information
received from other sources (e.g., from another interface that is using
dhcp) could clobber the information in /etc/resolv.conf.

Unfortunately, at least under OpenStack, the nameserver information is
not interface-scoped so it is not *possible* to correctly configure the
interface configuration files.

The solution in this case is to ensure that NM will not attempt to
update /etc/resolv.conf.  The simplest way of doing this is to drop a
file into /etc/NetworkManager/conf.d containing:

  [main]
  dns=none

This will prevent NetworkManager from managing /etc/resolv.conf.

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1693251

Title:
  cloud-init should configure networkmanager to not manage
  /etc/resolv.conf

Status in cloud-init:
  New

Bug description:
  Currently, cloud-init adds nameserver entries directly to
  /etc/resolv.conf but does not configure namservers in per-interface
  configuration files.  This could be problematic because information
  received from other sources (e.g., from another interface that is
  using dhcp) could clobber the information in /etc/resolv.conf.

  Unfortunately, at least under OpenStack, the nameserver information is
  not interface-scoped so it is not *possible* to correctly configure
  the interface configuration files.

  The solution in this case is to ensure that NM will not attempt to
  update /etc/resolv.conf.  The simplest way of doing this is to drop a
  file into /etc/NetworkManager/conf.d containing:

    [main]
    dns=none

  This will prevent NetworkManager from managing /etc/resolv.conf.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1693251/+subscriptions


Follow ups