← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1818032] [NEW] sysconfig renders BOOTPROTO=dhcp even if dhcp=false in v2 network-config

 

Public bug reported:

Distribution: Fedora 29
Cloud Provider: None, NoCloud
Cloud-Init Version: 18.5 (also 17.1)

Network Config V2:
version: 2
ethernets:
  ens3:
    match:
      macaddress: 52:54:00:ab:cd:ef
    dhcp4: false
    dhcp6: false
    addresses:
      - 192.168.42.100/24
      - 2001:db8::100/32
    gateway4: 192.168.42.1
    gateway6: 2001:db8::1
    nameservers:
      search: [example.com]
      addresses: [192.168.42.53, 1.1.1.1]

Renders to /etc/sysconfig/network-scripts/ifcfg-ens3:

# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=dhcp
DEFROUTE=yes
DEVICE=ens3
DHCPV6C=yes
DNS1=192.168.42.53
DNS2=1.1.1.1
DOMAIN=example.com
GATEWAY=192.168.42.1
HWADDR=52:54:00:ab:cd:ef
IPADDR=192.168.42.101
IPV6ADDR=2001:db8::101/32
IPV6INIT=yes
IPV6_DEFAULTGW=2001:db8::1
NETMASK=255.255.255.0
NM_CONTROLLED=no
ONBOOT=yes
STARTMODE=auto
TYPE=Ethernet
USERCTL=no


But 'BOOTPROTO=dhcp' should be 'BOOTPROTO=none' and 'DHCPV6C=yes' should be 'DHCPV6C=no' or missing.

Already fixed this: https://code.launchpad.net/~kurt-easygo/cloud-
init/+git/cloud-init/+merge/363732

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

** Attachment added: "cloud-init.tar.gz"
   https://bugs.launchpad.net/bugs/1818032/+attachment/5242222/+files/cloud-init.tar.gz

** Merge proposal linked:
   https://code.launchpad.net/~kurt-easygo/cloud-init/+git/cloud-init/+merge/363732

-- 
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/1818032

Title:
  sysconfig renders BOOTPROTO=dhcp even if dhcp=false in v2 network-
  config

Status in cloud-init:
  New

Bug description:
  Distribution: Fedora 29
  Cloud Provider: None, NoCloud
  Cloud-Init Version: 18.5 (also 17.1)

  Network Config V2:
  version: 2
  ethernets:
    ens3:
      match:
        macaddress: 52:54:00:ab:cd:ef
      dhcp4: false
      dhcp6: false
      addresses:
        - 192.168.42.100/24
        - 2001:db8::100/32
      gateway4: 192.168.42.1
      gateway6: 2001:db8::1
      nameservers:
        search: [example.com]
        addresses: [192.168.42.53, 1.1.1.1]

  Renders to /etc/sysconfig/network-scripts/ifcfg-ens3:

  # Created by cloud-init on instance boot automatically, do not edit.
  #
  BOOTPROTO=dhcp
  DEFROUTE=yes
  DEVICE=ens3
  DHCPV6C=yes
  DNS1=192.168.42.53
  DNS2=1.1.1.1
  DOMAIN=example.com
  GATEWAY=192.168.42.1
  HWADDR=52:54:00:ab:cd:ef
  IPADDR=192.168.42.101
  IPV6ADDR=2001:db8::101/32
  IPV6INIT=yes
  IPV6_DEFAULTGW=2001:db8::1
  NETMASK=255.255.255.0
  NM_CONTROLLED=no
  ONBOOT=yes
  STARTMODE=auto
  TYPE=Ethernet
  USERCTL=no

  
  But 'BOOTPROTO=dhcp' should be 'BOOTPROTO=none' and 'DHCPV6C=yes' should be 'DHCPV6C=no' or missing.

  Already fixed this: https://code.launchpad.net/~kurt-easygo/cloud-
  init/+git/cloud-init/+merge/363732

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


Follow ups