Skip to content

Fix TestLCOW_IPv6_Assignment functional test - #2359

Merged
Kathryn Baldauf (katiewasnothere) merged 1 commit into
microsoft:mainfrom
katiewasnothere:user/kabaldau/lcow_ipv6_assignment_test
Jan 30, 2025
Merged

Kathryn Baldauf (katiewasnothere) merged 1 commit into
microsoft:mainfrom
katiewasnothere:user/kabaldau/lcow_ipv6_assignment_test

Conversation

@katiewasnothere

Copy link
Copy Markdown

Previously we were just using the IPAM routes configured earlier in the test, but this causes an error since the IPAM route will append the scope identifier at the end of IPv6 routes' NextHop.

@jiechen0826 Jie Chen (jiechen0826) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for fixing the test so quickly.

For additional context, before this fix, the test will fail because the IPv6 route has the scope ID (such as %24) attached to the end of NextHop. For example, given a route

ipv6Route := hcn.Route{
		NextHop:           "fd00::101",
		DestinationPrefix: "::/0",
	}

it becomes {NextHop:fd00::101%24 DestinationPrefix:::/0 Metric:0}] when accessing the route.

More on Scope ID.

@jiechen0826

Copy link
Copy Markdown
Contributor

The flaky tests were causing the CI to fail.
Here's the PR to skip the flaky test for now until they are fixed: #2365

@katiewasnothere
Kathryn Baldauf (katiewasnothere) force-pushed the user/kabaldau/lcow_ipv6_assignment_test branch from ccb13b2 to 0638ee5 Compare January 28, 2025 22:34
* Previously we were just using the IPAM routes configured earlier in the test,
* but this causes an error since the IPAM route will append the scope identifier
* at the end of IPv6 routes' NextHop.

Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
@katiewasnothere
Kathryn Baldauf (katiewasnothere) force-pushed the user/kabaldau/lcow_ipv6_assignment_test branch from 0638ee5 to dbef1c1 Compare January 29, 2025 20:19
@katiewasnothere
Kathryn Baldauf (katiewasnothere) merged commit 56e7aa8 into microsoft:main Jan 30, 2025
@katiewasnothere
Kathryn Baldauf (katiewasnothere) deleted the user/kabaldau/lcow_ipv6_assignment_test branch January 30, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants