cloud-init writes route6-$DEVICE config with a HEX netmask. ip route does not like : Error: inet6 prefix is expected rather than "fd00:fd00:fd00::/ffff:ffff:ffff:ffff::".
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Wishlist
|
Unassigned | ||
cloud-init |
Fix Released
|
Undecided
|
Harald Jensås |
Bug Description
Description of problem:
The routes put in route6-$DEVICE by cloud-init is in an invalid format.
The schema[1] for network_matadata uses a non-converntinal format for the IPv6 netmask. It is stored as an IPv6 address, similar to how IPv4 netmasks are written 255.255.255.0 the IPv6 netmask is written as FFFF:FFFF:
cloud-init does not translate this. So you end up with:
cat /etc/sysconfig/
# Created by cloud-init on instance boot automatically, do not edit.
#
::/:: via fd00:fd00:
fd00:fd00:
fd00:fd00:
The result is that the routes are ignored since it is not a valid inet6 prefix.
[1] https:/
Actual results:
Jan 26 14:12:45 overcloud-
Jan 26 14:12:45 overcloud-
Jan 26 14:12:45 overcloud-
ip -6 route add fd00:fd00:
Error: inet6 prefix is expected rather than "fd00:fd00:
Expected results:
The netmask should be the decimal number in CIDR annotation.
Changed in cloud-init: | |
status: | In Progress → Fix Committed |
https:/ /github. com/canonical/ cloud-init/ pull/1215