Repository navigation
[CloudSigma] Report IPv6 addresses of NICs instead of a second copy of the IPv4 address - #2244
Open
aad1tyaaaaa wants to merge 2 commits into
Open
aad1tyaaaaa wants to merge 2 commits into
aad1tyaaaaa wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[CloudSigma] Report IPv6 addresses of NICs instead of a second copy of the IPv4 address
Description
CloudSigma_2_0_NodeDriver._parse_ips_from_nicreads the IPv6 address from the IPv4 object, in both the static configuration and the runtime block:So:
set();ip_v4isNoneandlist_nodes()fails withTypeError: 'NoneType' object is not subscriptable.This change reads
ip_v6["uuid"]instead. With the IPv6 address actually reaching the classification loop,is_private_subnetwould then raiseOSError(it usesinet_aton, so IPv4 only). Rather than changing the shared helper, which the OpenStack driver relies on raising for IPv6 so that it can fall back to its own network label /OS-EXT-IPS:typelogic, the CloudSigma driver now classifies IPv6 addresses itself: unique local addresses (fc00::/7, RFC 4193, the IPv6 counterpart of the RFC 1918 ranges) are private, others are public.Status
Checklist
black,isort)CHANGES.rstentry)test_parse_ips_from_nic_ipv6(runs for both CloudSigma test classes) covers a dual-stack NIC and an IPv6-only NIC. It fails without this change (only['185.12.5.10']is returned) and passes with it. The rest oflibcloud/test/computeshows no new failures.I used an AI assistant (Claude Code) to help find this bug and write the fix and test. I reviewed and ran everything myself.