Ubuntu 18.04 wrong parsing of instance-data.json generating network config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Undecided
|
Unassigned |
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/
2023-02-28 09:21:42,650 - util.py[DEBUG]: Read 2 bytes from /sys/class/
2023-02-28 09:21:42,650 - networking.
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:
2023-02-28 09:21:42,650 - util.py[DEBUG]: Reading from /sys/class/
2023-02-28 09:21:42,650 - util.py[DEBUG]: Read 7 bytes from /sys/class/
On ubuntu 20.04 this problem not persist.
2023-02-27 14:36:40,755 - util.py[DEBUG]: Reading from /sys/class/
2023-02-27 14:36:40,755 - util.py[DEBUG]: Read 4 bytes from /sys/class/
2023-02-27 14:36:40,755 - networking.
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:
2023-02-27 14:36:40,756 - util.py[DEBUG]: Reading from /sys/class/
2023-02-27 14:36:40,756 - util.py[DEBUG]: Read 7 bytes from /sys/class/
cloud-init version: 22.4.2-
we tried and older version but it work same
summary: |
- Ubuntu 18.04 wrong parsing of instance-data.json generating config + Ubuntu 18.04 wrong parsing of instance-data.json generating network + config |
Attached and the collected logs from Ubuntu 18.04 and 20.04.