← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1843686] [NEW] Gentoo generates broken network config

 

Public bug reported:

As the title says, Gentoo generates an unusable network config. In
includes 'mac_eth0' although no such thing was specified. Also, it adds
the unnecessary 'netmask' keyword in the config.

The network-config (/var/lib/cloud/seed/nocloud-net/network-config):
  #cloud-config
  version: 1
  config:
  - type: physical
    name: eth0
    subnets:
    - type: static
      address: 1.2.3.4/24
      gateway: 1.2.3.1
      dns_nameservers:
      - 1.2.3.10

The broken result (/etc/conf.d/net.eth0):
  config_eth0="1.2.3.4/24 netmask None"
  mac_eth0="None"
  routes_eth0="default via 1.2.3.1"
  dns_servers_eth0="('1.2.3.10')"


A correctly working config would be:
  config_eth0="1.2.3.4/24"
  routes_eth0="default via 1.2.3.1"
  dns_servers_eth0="('1.2.3.10')"

I'd be great if this could be fixed.

** 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/1843686

Title:
  Gentoo generates broken network config

Status in cloud-init:
  New

Bug description:
  As the title says, Gentoo generates an unusable network config. In
  includes 'mac_eth0' although no such thing was specified. Also, it
  adds the unnecessary 'netmask' keyword in the config.

  The network-config (/var/lib/cloud/seed/nocloud-net/network-config):
    #cloud-config
    version: 1
    config:
    - type: physical
      name: eth0
      subnets:
      - type: static
        address: 1.2.3.4/24
        gateway: 1.2.3.1
        dns_nameservers:
        - 1.2.3.10

  The broken result (/etc/conf.d/net.eth0):
    config_eth0="1.2.3.4/24 netmask None"
    mac_eth0="None"
    routes_eth0="default via 1.2.3.1"
    dns_servers_eth0="('1.2.3.10')"

  
  A correctly working config would be:
    config_eth0="1.2.3.4/24"
    routes_eth0="default via 1.2.3.1"
    dns_servers_eth0="('1.2.3.10')"

  I'd be great if this could be fixed.

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


Follow ups