You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The addrconf value gets passed to cloud-init as an IP address but cloud-init has no idea what to do with it, and so it throws an error.
# cloud-init status -l
status: error
extended_status: error
boot_status_code: enabled-by-generator
last_update: Mon, 21 Oct 2024 00:52:15 +0000
detail:
Cloud-init enabled by systemd cloud-init-generator
errors:
- Address addrconf is not a valid ip address
- Address addrconf is not a valid ip address
recoverable_errors:
ERROR:
- Address addrconf is not a valid ip network
- Address addrconf is not a valid ip network
WARNING:
- failed stage init
- failed stage init-local
I've got a PR pending in cloud-init to fix the issue there, but it might not be backported to images that are presently in the wild, and so the docs may continue to cause some confusion.
Yes, this is most definitely a bug in cloud-init not recognizing how we designate address auto configuration.
One thing about your cloud-init PR, in SmartOS addrconf means either stateless (i.e., SLAAC), or stateful (DHCPv6) configuration. I notice that you set subnet = {"type": "dhcp6"}. If cloud-init has a distinction for SLAAC, that should be accounted for. Otherwise, that PR looks good from my perspective.
@bahamat I was thinking the same thing. It turns out that dhcp6 in cloud-init is imprecisely named; in practice it results in SmartOS addrconf style behaviour on most/all distros.
There are other options, such as ipv6_dhcpv6-stateful to force specific behaviour.
The procedure for configuring IPv6 set out in docs/blob/master/docs/setting-up-ipv6-in-a-zone.md does not work for Linux in Bhyve or KVM zones.
The
addrconf
value gets passed tocloud-init
as an IP address butcloud-init
has no idea what to do with it, and so it throws an error./var/lib/cloud/instances/c3cfc40e-9b68-4330-bbd1-5f36f4439815/network-config.json
The text was updated successfully, but these errors were encountered: