← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2008772] [NEW] Ubuntu 18.04 wrong parsing of instance-data.json generating config

 

Public bug reported:

Hello,

We have an cloud service based on Openstack, we have provide IPv4 (dhcp) and IPv6 (static),
on ubuntu 18.04 we detected that when is parsed instance-data.json it take info only for IPv4 and not get static records for IPv6. And related to this it not generate config for IPv6 we tested with netplan and ENI (ifupdown), all data in instance-data.json are present in the file.

2023-02-28 09:21:42,649 - util.py[DEBUG]: Reading from /sys/class/net/ens3/type (quiet=False)
2023-02-28 09:21:42,650 - util.py[DEBUG]: Read 2 bytes from /sys/class/net/ens3/type
2023-02-28 09:21:42,650 - networking.py[DEBUG]: net: all expected physical devices present
2023-02-28 09:21:42,650 - stages.py[DEBUG]: applying net config names for {'ethernets': {'ens3': {'dhcp4': True, 'set-name': 'ens3', 'match': {'macaddress': 'fa:16:3e:00:3c:33'}}}, 'version': 2}
2023-02-28 09:21:42,650 - util.py[DEBUG]: Reading from /sys/class/net/ens3/device/device (quiet=False)
2023-02-28 09:21:42,650 - util.py[DEBUG]: Read 7 bytes from /sys/class/net/ens3/device/device

On ubuntu 20.04 this problem not persist.
2023-02-27 14:36:40,755 - util.py[DEBUG]: Reading from /sys/class/net/lo/type (quiet=False)
2023-02-27 14:36:40,755 - util.py[DEBUG]: Read 4 bytes from /sys/class/net/lo/type
2023-02-27 14:36:40,755 - networking.py[DEBUG]: net: all expected physical devices present
2023-02-27 14:36:40,755 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': [{'type': 'physical', 'mtu': 1500, 'accept-ra': False, 'subnets': [{'type': 'dhcp4'}, {'type': 'static6', 'netmask': 'ffff:ffff:ffff:ffff::', 'routes': [{'network': '::', 'netmask': '::', 'gateway': '2a10:c941:12:1::1'}], 'address': '2a10:c941:12:1::10f', 'ipv6': True}], 'mac_address': 'fa:16:3e:f3:d9:ad', 'name': 'ens3'}, {'type': 'nameserver', 'address': '8.8.8.8'}, {'type': 'nameserver', 'address': '1.1.1.1'}]}
2023-02-27 14:36:40,756 - util.py[DEBUG]: Reading from /sys/class/net/ens3/device/device (quiet=False)
2023-02-27 14:36:40,756 - util.py[DEBUG]: Read 7 bytes from /sys/class/net/ens3/device/device


cloud-init version: 22.4.2-0ubuntu0~18.04.1

we tried and older version but it work same

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

Title:
  Ubuntu 18.04 wrong parsing of instance-data.json generating config

Status in cloud-init:
  New

Bug description:
  Hello,

  We have an cloud service based on Openstack, we have provide IPv4 (dhcp) and IPv6 (static),
  on ubuntu 18.04 we detected that when is parsed instance-data.json it take info only for IPv4 and not get static records for IPv6. And related to this it not generate config for IPv6 we tested with netplan and ENI (ifupdown), all data in instance-data.json are present in the file.

  2023-02-28 09:21:42,649 - util.py[DEBUG]: Reading from /sys/class/net/ens3/type (quiet=False)
  2023-02-28 09:21:42,650 - util.py[DEBUG]: Read 2 bytes from /sys/class/net/ens3/type
  2023-02-28 09:21:42,650 - networking.py[DEBUG]: net: all expected physical devices present
  2023-02-28 09:21:42,650 - stages.py[DEBUG]: applying net config names for {'ethernets': {'ens3': {'dhcp4': True, 'set-name': 'ens3', 'match': {'macaddress': 'fa:16:3e:00:3c:33'}}}, 'version': 2}
  2023-02-28 09:21:42,650 - util.py[DEBUG]: Reading from /sys/class/net/ens3/device/device (quiet=False)
  2023-02-28 09:21:42,650 - util.py[DEBUG]: Read 7 bytes from /sys/class/net/ens3/device/device

  On ubuntu 20.04 this problem not persist.
  2023-02-27 14:36:40,755 - util.py[DEBUG]: Reading from /sys/class/net/lo/type (quiet=False)
  2023-02-27 14:36:40,755 - util.py[DEBUG]: Read 4 bytes from /sys/class/net/lo/type
  2023-02-27 14:36:40,755 - networking.py[DEBUG]: net: all expected physical devices present
  2023-02-27 14:36:40,755 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': [{'type': 'physical', 'mtu': 1500, 'accept-ra': False, 'subnets': [{'type': 'dhcp4'}, {'type': 'static6', 'netmask': 'ffff:ffff:ffff:ffff::', 'routes': [{'network': '::', 'netmask': '::', 'gateway': '2a10:c941:12:1::1'}], 'address': '2a10:c941:12:1::10f', 'ipv6': True}], 'mac_address': 'fa:16:3e:f3:d9:ad', 'name': 'ens3'}, {'type': 'nameserver', 'address': '8.8.8.8'}, {'type': 'nameserver', 'address': '1.1.1.1'}]}
  2023-02-27 14:36:40,756 - util.py[DEBUG]: Reading from /sys/class/net/ens3/device/device (quiet=False)
  2023-02-27 14:36:40,756 - util.py[DEBUG]: Read 7 bytes from /sys/class/net/ens3/device/device

  
  cloud-init version: 22.4.2-0ubuntu0~18.04.1

  we tried and older version but it work same

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



Follow ups