Closed blackhelicoptersdotnet closed 3 weeks ago
@blackhelicoptersdotnet , thanks for the PR! At first look, the changes look good, though there will need to be fixes for CI. To run the same checks as CI, you can run tox
(with no arguments) locally.
Are you associated with the smartos project, or just providing a fix for your use case? Since I don't have the means to verify the fix myself, can add the tarball from cloud-init collect-logs
from a run of this branch working as expected?
@TheRealFalcon Thanks for the feedback! I've pushed a fix for the check that failed CI.
Not affiliated with SmartOS, just wanted to push a fix to resolve my issue and assist whoever comes after me :)
The log tarball contains some environment details that I'd prefer not to have in the public domain. Happy to provide one privately if you like, or alternatively, if there specific files that you need I can scrub those and upload them?
@blackhelicoptersdotnet , sure. Could you provide the var/log/cloud-init.log
and var/lib/cloud/instance/network-config.json
?
@TheRealFalcon Hi, I’m one of the maintainers for SmartOS (incidentally, I am also the person producing guest images that use cloud-init), so I can speak to that side of things. The keyword addrconf
is how we indicate dynamic IPv6 addressing, whether DHCPv6 or SLAAC.
@TheRealFalcon Here's the logs
Proposed Commit Message
Additional Context
The vendor's documentation describes how this is supposed to work.
https://docs.smartos.org/setting-up-ipv6-in-a-zone/
This works fine for native and lx-branded zones (where network configuration is handled by other means), but not for KVM or Bhyve zones in which
cloud-init
is expected to perform the appropriate configuration.Before this change,
addrconf
would be passed through tocloud-init
as a static address, causing errors.Test Steps
On a SmartOS host, follow the vendor's documentation to create a
bhyve
orkvm
zone with theaddrconf
keyword in the NIC configuration.On the guest, check to see that an IPv6 address was autoconfigured.
Merge type