Public bug reported: % cat simple-v1.yaml network: version: 1 config: - type: physical name: interface0 mac_address: "52:54:00:12:34:00" subnets: - type: static address: 10.0.2.15/24 gateway: 10.0.2.2
% cat target/etc/sysconfig/network-scripts/ifcfg-interface0 # Created by cloud-init on instance boot automatically, do not edit. # BOOTPROTO=static DEVICE=interface0 HWADDR=52:54:00:12:34:00 IPADDR=10.0.2.15/24 NM_CONTROLLED=no ONBOOT=yes TYPE=Ethernet USERCTL=no When running an ifcf-interface0 under centos7, network-scripts complain with: arping: 10.0.2.15/24: Name or service not known Error: ??? prefix is expected rather than "10.0.2.15/24/". ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Error adding address 10.0.22 .15/24 for interface0. arping: 10.0.2.15/24: Name or service not known Error: ??? prefix is expected rather than "10.0.2.15/24/". Changing ifcfg-interface to this, fixes the error: IPADDR=10.0.2.15 NETMASK=255.255.255.0 CIDR expression should get expanded into a NETMASK value ** Affects: cloud-init Importance: Undecided Status: New ** Tags: centos7 -- 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/1686754 Title: sysconfig renderer leaves CIDR notation in IPADDR field Status in cloud-init: New Bug description: % cat simple-v1.yaml network: version: 1 config: - type: physical name: interface0 mac_address: "52:54:00:12:34:00" subnets: - type: static address: 10.0.2.15/24 gateway: 10.0.2.2 % cat target/etc/sysconfig/network-scripts/ifcfg-interface0 # Created by cloud-init on instance boot automatically, do not edit. # BOOTPROTO=static DEVICE=interface0 HWADDR=52:54:00:12:34:00 IPADDR=10.0.2.15/24 NM_CONTROLLED=no ONBOOT=yes TYPE=Ethernet USERCTL=no When running an ifcf-interface0 under centos7, network-scripts complain with: arping: 10.0.2.15/24: Name or service not known Error: ??? prefix is expected rather than "10.0.2.15/24/". ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Error adding address 10.0.22 .15/24 for interface0. arping: 10.0.2.15/24: Name or service not known Error: ??? prefix is expected rather than "10.0.2.15/24/". Changing ifcfg-interface to this, fixes the error: IPADDR=10.0.2.15 NETMASK=255.255.255.0 CIDR expression should get expanded into a NETMASK value To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1686754/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp