netcfg does not setup search domains and nameservers via netplan

Bug #1721798 reported by Dimitri John Ledkov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
Undecided
Unassigned
debian-installer (Ubuntu)
Fix Released
Undecided
Unassigned
Artful
Fix Released
Undecided
Unassigned
netcfg (Ubuntu)
Fix Released
Undecided
Unassigned
Artful
Fix Released
Undecided
Unassigned

Bug Description

netcfg does not setup search domains and nameservers via netplan

Revision history for this message
Frank Heimes (fheimes) wrote :

$ cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    encc000:
      dhcp4: no
      dhcp6: no
  vlans:
    encc000.2653:
      link: encc000
      id: 2653
      addresses: [ 10.245.236.11/24 ]
      gateway4: 10.245.236.1

$ cat /etc/network/interfaces
 # dns-* options are implemented by the resolvconf package, if installed
 dns-nameservers 10.245.236.1
 dns-search canonical.com

$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

It looks like in the static.c case, we call

683 netcfg_write_interface(client, iface);
684 netcfg_write_resolvconf_options(domain, iface);
685 netcfg_write_resolv(domain, iface);

This results in dns-* strings written into e-n-i, instead of writing keys in netplan.
imho domain should be passed to write_interface, and the later two functions should be no-op in netplan case.

tags: added: s390x
tags: added: id-59d7a16fa78cd5587a06b6f9
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package netcfg - 1.142ubuntu5

---------------
netcfg (1.142ubuntu5) artful; urgency=medium

  * Make sure we write nameservers and search domains correctly when using
    netplan to drive network configuration. (LP: #1721798)
  * Fix writing IPv6 static config in the netplan case.

 -- Mathieu Trudel-Lapierre <email address hidden> Thu, 12 Oct 2017 09:31:02 -0400

Changed in netcfg (Ubuntu Artful):
status: New → Fix Released
Changed in debian-installer (Ubuntu Artful):
status: New → Triaged
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Fix Released
Steve Langasek (vorlon)
Changed in debian-installer (Ubuntu Artful):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers