View Issue Details

IDProjectCategoryView StatusLast Update
0014964CentOS-7-OTHERpublic2018-06-19 10:01
Reporterjovial 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version7.5.1804 
Target VersionFixed in Version 
Summary0014964: Cloud init fails to set IP address when vlan link is configured
DescriptionWhen a vlan link is configured using the Openstack meta data format and provided to an instance by means of a config drive, the interface will not be assigned an IP address.

When upgrading to cloud-init 18.2, this behaviour is no longer observed and the interface gets assigned an IP address.

A sample network_data.json file is included, along with the network interface configuration script (/etc/sysconfig/network-scripts/ifcfg-eno1.64) that was generated, are attached.
Steps To Reproduce- Boot a machine with cloud-init configured to use a config drive / openstack meta data format
- include a vlan link in your network configuration
- check to see if an IP has been assigned
TagsNo tags attached.
abrt_hash
URL

Activities

jovial

jovial

2018-06-18 15:59

reporter  

network-script (266 bytes)
 devuser@svn1-dr06-u10 latest]$ cat /etc/sysconfig/network-scripts/ifcfg-eno1.64 
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=none
DEVICE=eno1.64
HWADDR=18:03:73:ff:6e:7d
ONBOOT=yes
PHYSDEV=eno1
TYPE=Ethernet
USERCTL=no
VLAN=yes
network-script (266 bytes)
network_metadata (1,385 bytes)
# Mount config drive
mkdir -p /mnt/config
mount /dev/disk/by-label/config-2 /mnt/config

#view openstack metadata in latest directory:

[devuser@svn1-dr06-u10 latest]$ cat network_data.json 
{
    "links": [
        {
            "id": "vlan-18:03:73:ff:6e:7d", 
            "type": "vlan", 
            "vlan_id": "64", 
            "vlan_link": "18:03:73:ff:6e:7d", 
            "vlan_mac_address": "18:03:73:ff:6e:7d"
        }, 
        {
            "ethernet_mac_address": "18:03:73:ff:6e:7d", 
            "id": "18:03:73:ff:6e:7d", 
            "mtu": "1500", 
            "type": "phy"
        }
    ], 
    "networks": [
        {
            "dns_nameservers": [
                "131.111.8.42", 
                "131.111.12.20"
            ], 
            "id": "ipv4-vlan-18:03:73:ff:6e:7d", 
            "ip_address": "10.64.1.6", 
            "link": "vlan-18:03:73:ff:6e:7d", 
            "netmask": "255.255.0.0", 
            "routes": [
                {
                    "gateway": "10.64.255.1", 
                    "netmask": "0.0.0.0", 
                    "network": "0.0.0.0"
                }
            ], 
            "type": "ipv4"
        }
    ], 
    "services": [
        {
            "address": "131.111.8.42", 
            "type": "dns"
        }, 
        {
            "address": "131.111.12.20", 
            "type": "dns"
        }
    ]
}
network_metadata (1,385 bytes)

Issue History

Date Modified Username Field Change
2018-06-18 15:59 jovial New Issue
2018-06-18 15:59 jovial File Added: network-script
2018-06-18 15:59 jovial File Added: network_metadata