Skip to content

Prevent incorrect change in routeTable CR spec after adding route addition having vpcEndpointID #170

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

Merged
merged 6 commits into from
Sep 17, 2024

Conversation

nnbu
Copy link
Contributor

@nnbu nnbu commented Dec 15, 2023

Fixes #1935

Description of changes:
This fix accomodates an aws api bug so as to prevent routeTable CR spec from changing.
Details explained in the issue description.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Dec 15, 2023
Copy link

ack-prow bot commented Dec 15, 2023

Hi @nnbu. Thanks for your PR.

I'm waiting for a aws-controllers-k8s member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ack-prow ack-prow bot requested review from a-hilaly and vijtrip2 December 15, 2023 06:31
This fix accomodates an aws api bug so as to prevent routeTable CR spec
from changing.
Details explained in the issue description.
Comment on lines +12 to +17
// Even if route is created with arguments as VPCEndpointID,
// when aws api is called to describe the route (inside skdFind), it
// returns VPCEndpointID as GatewayID. Due to this bug, spec section for
// routes is populated incorrectly in above auto-gen code.
// To solve this, if 'GatewayID' has prefix 'vpce-', then the entry is
// moved from 'GatewayID' to 'VPCEndpointID'.
Copy link
Member

Choose a reason for hiding this comment

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

/cc @LikithaVemulapalli do you know how is this happening from the ec2 side? i'd prefer having EC2 team fix this bug than ec2-controller implementing a workaround (I don't think we'll be notified if/when they change this behaviour, which can cause more confusion for the users).
/hold

Copy link
Contributor Author

@nnbu nnbu Dec 15, 2023

Choose a reason for hiding this comment

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

@LikithaVemulapalli FYI
aws-controllers-k8s/community#1935 (comment) provides the details about this issue being present when route is created with vpc-endpoint-id
aws-controllers-k8s/community#1935 (comment) provides the details about this issue not being present when route is created with nat-gateway-id

@a-hilaly Currently, routeTable CR is unusable when it has VPCEndpointID. aws-controllers-k8s/community#1935 mentions the issue with update of the CR only. But I realized later that this issue exists even in creation of the CR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any update on this @LikithaVemulapalli ?

Copy link
Member

Choose a reason for hiding this comment

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

/cc @LikithaVemulapalli do you know how is this happening from the ec2 side? i'd prefer having EC2 team fix this bug than ec2-controller implementing a workaround (I don't think we'll be notified if/when they change this behaviour, which can cause more confusion for the users). /hold

Hello @a-hilaly @nnbu apologies for late response I was on vacation and started working a week ago. I'm not sure how this is happening from the ec2 side and I haven't worked on the route table create/update code as well, I agree with Amine and would prefer EC2 team fix this! Thank you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @LikithaVemulapalli
Is there any timeline for getting this fixed by EC2 team?

@a-hilaly
If not by this PR, how can we address the issue until the fix comes from EC2 team? Currently, routeTable CR is unusable when it has VPCEndpointID.

Copy link
Member

Choose a reason for hiding this comment

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

Alright @nnbu - just ok-to-test this PR, i'll do one more round of reviews and merge ASAP. Thank you for all your contributions :)

@ack-prow ack-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 15, 2023
@a-hilaly
Copy link
Member

/ok-to-test

@ack-prow ack-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 29, 2024
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2024
@a-hilaly
Copy link
Member

a-hilaly commented Mar 1, 2024

/test all

@ack-prow ack-prow bot added the approved label Mar 1, 2024
@nnbu
Copy link
Contributor Author

nnbu commented Jun 12, 2024

@a-hilaly This was approved but hold was never removed. So, this is still not merged.

@ack-prow ack-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 16, 2024
Nishant Burte added 3 commits September 17, 2024 10:48
This fix accomodates an aws api bug so as to prevent routeTable CR spec
from changing.
Details explained in the issue description.
This fix accomodates an aws api bug so as to prevent routeTable CR spec
from changing.
Details explained in the issue description.
This fix accomodates an aws api bug so as to prevent routeTable CR spec
from changing.
Details explained in the issue description.
Copy link

ack-prow bot commented Sep 17, 2024

@nnbu: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ec2-verify-attribution 50e122d link false /test ec2-verify-attribution

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

👍
/lgtm
/unhold

@ack-prow ack-prow bot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Sep 17, 2024
Copy link

ack-prow bot commented Sep 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly, nnbu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot merged commit 1f0642e into aws-controllers-k8s:main Sep 17, 2024
6 of 7 checks passed
nnbu added a commit to nnbu/ack-ec2-controller that referenced this pull request Sep 18, 2024
…ition having vpcEndpointID (aws-controllers-k8s#170)

Fixes [#1935](aws-controllers-k8s/community#1935)

Description of changes:
This fix accomodates an aws api bug so as to prevent routeTable CR spec from changing.
Details explained in the issue description.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RouteTable update using vpcEndpointID results in CR spec getting converted from vpcEndpointID to GatewayID
3 participants