Skip to content
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

make integ test support ipv6 cluster #193

Merged

Conversation

gthao313
Copy link
Member

testing with ipv6 cluster, we need specify dns-ip setting on node
userdata. So add a logic to find dns-ip from cluster info and transform
to ideal format.

Issue number:
#186

Description of changes:

Author: Tianhao Geng <[email protected]>
Date:   Thu Apr 14 23:47:49 2022 +0000

    make integ test support ipv6 cluster

    testing with ipv6 cluster, we need specify dns-ip setting on node
    userdata. So add a logic to find dns-ip from cluster info and transform
    to ideal format.

Meanwhile remove a strict and not generic filter to find instance profile.

Testing done:
Test with brupop-ipv6 and brupop-ipv4 cluster on brupop integration test account.

ipv6

[tianhg@ip-172-31-39-243 bottlerocket-update-operator]$ kubectl -n brupop-bottlerocket-aws get brs
NAME                                                STATE              VERSION   TARGET STATE   TARGET VERSION
brs-ip-192-168-137-245.us-west-2.compute.internal   Idle               1.6.1     Idle           <no value>
brs-ip-192-168-140-207.us-west-2.compute.internal   Idle               1.7.0     Idle
brs-ip-192-168-143-103.us-west-2.compute.internal   MonitoringUpdate   1.7.0     Idle           1.7.0

ipv4

brs-ip-192-168-138-196.us-west-2.compute.internal   StagedUpdate   1.6.1     PerformedUpdate   1.7.0
brs-ip-192-168-155-104.us-west-2.compute.internal   Idle           1.6.1     Idle              <no value>
brs-ip-192-168-156-212.us-west-2.compute.internal   Idle           1.7.0     Idle

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@gthao313 gthao313 force-pushed the integ-test-support-ipv6 branch from 0fd67e3 to a2c0ceb Compare April 15, 2022 01:14
list_result
.instance_profiles
.as_ref()
.context("No instance profiles found")?
.iter()
.filter(|x| {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this from previous PR for the sg group?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's about finding instance profile not related to SG. The logic here is pretty strict and not suitable for different situations, so I think we don't need this anymore. Actually I have this code change in my NodeGroup PR, but I think it might be worth to add here.

@gthao313 gthao313 force-pushed the integ-test-support-ipv6 branch 2 times, most recently from 1779710 to 5999eec Compare April 15, 2022 19:16
@gthao313
Copy link
Member Author

Push above address Lu's comments.

@gthao313 gthao313 force-pushed the integ-test-support-ipv6 branch from 5999eec to b2ff447 Compare April 15, 2022 22:51
@gthao313 gthao313 force-pushed the integ-test-support-ipv6 branch from b2ff447 to 8ed8232 Compare April 15, 2022 23:17
testing with ipv6 cluster, we need specify dns-ip setting on node
userdata. So add a logic to find dns-ip from cluster info and transform
to ideal format.
@gthao313 gthao313 force-pushed the integ-test-support-ipv6 branch from 8ed8232 to e803d0e Compare April 15, 2022 23:27
@gthao313 gthao313 requested a review from somnusfish April 15, 2022 23:34
@somnusfish somnusfish merged commit 7e81073 into bottlerocket-os:develop Apr 17, 2022
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