-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: Router advertised-route-priority undefined behavior #11613
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: Router advertised-route-priority undefined behavior #11613
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @c2thorn, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
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.
Does this have an associated Github issue that this closes?
How did you test this change? Can it be written as a new testing or into an existing test?
Are we sure this won't be a breaking change for existing configurations?
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 910 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. |
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.
Confirming that the contributor has provided manual tests of the changes and walked through the logic. LGTM
Bug: b/356353797
Issue: advertised-route-priority is an optional field and if not present, the value in the GCP is considered to be 100.
However, TF would set advertised-route-priority to be 0 even if the user has not explicitly set the value to be 0 when there is an update to the resource.
Repro steps:
resource "google_compute_router_peer" "foobar" {
name = "tf-my-router"
router = google_compute_router.foobar.name
region = google_compute_router.foobar.region
peer_asn = 65515
interface = google_compute_router_interface.foobar.name
advertise_mode = "DEFAULT"
}
Query gcloud to check the value of advertised_route_priority, it will be empty
gcloud compute routers describe {router-name}
resource "google_compute_router_peer" "foobar" {
name = "tf-my-router"
router = google_compute_router.foobar.name
region = google_compute_router.foobar.region
peer_asn = 65515
interface = google_compute_router_interface.foobar.name
advertise_mode = "DEFAULT"
enable_ipv6 = true
}
Query gcloud to check the value of advertised_route_priority, it will be 0 even though it is not set by the user.
gcloud compute routers describe {router-name}
Release Note Template for Downstream PRs (will be copied)