-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(smartos): Add addrconf
IPv6 support
#5831
Conversation
addrconf
IPv6 supportaddrconf
IPv6 support
SmartOS uses `addrconf` as a special value to indicate that an IPv6 address should be obtained via DHCPv6 or SLAAC. cloud-init does not know how to handle this. Added logic to DataSourceSmartOS.py to properly recognise and handle this value.
8c53f53
to
97e8245
Compare
@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 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 |
tabs->spaces
@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 |
@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 |
@TheRealFalcon Here's the logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for 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