-
Notifications
You must be signed in to change notification settings - Fork 2.1k
FIX: allow update ipv6 without recreation #15989
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
base: main
Are you sure you want to change the base?
FIX: allow update ipv6 without recreation #15989
Conversation
Add acceptance test for Compute Instance with IPv6 external address handling.
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @roaks3, 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. |
roaks3
left a comment
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.
Some minor suggestions, running tests now...
| Optional: true, | ||
| Computed: true, | ||
| ForceNew: true, | ||
| ForceNew: false, |
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.
Could you just remove this line? (false is the default)
| ), | ||
| }, | ||
| { | ||
| // troca de IPv6 → recreate obrigatório |
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.
Could you remove this, or change to english?
mmv1/third_party/terraform/services/compute/resource_compute_instance_template_test.go.tmpl
Show resolved
Hide resolved
|
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_instance_from_machine_image" "primary" {
network_interface {
ipv6_access_config {
external_ipv6 = # value needed
}
}
}
Resource: resource "google_compute_instance_from_template" "primary" {
network_interface {
ipv6_access_config {
external_ipv6 = # value needed
}
}
}
|
Tests analyticsTotal tests: 1319 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Removed comment regarding IPv6 recreation requirement.
roaks3
left a comment
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.
Still just waiting on PlanCheck
|
@roaks3 I finish the plancheck , please, take a look for me |
|
@roaks3 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @roaks3 This PR has been waiting for review for 1 week. Please take a look! Use the label |
|
@roaks3 Hey , could you review this PR please |
2 similar comments
|
@roaks3 Hey , could you review this PR please |
|
@roaks3 Hey , could you review this PR please |
|
@victorsantos-cit respectfully, please stop spamming PRs to get a response, the automation already does that for us. Also note that there are US holidays at the end of the year where large numbers of employees are out of office and slower to respond. |
|
@roaks3 sorry about that |
| } | ||
| {{- end }} | ||
|
|
||
| func TestAccComputeInstance_IPv6ExternalRecreate(t *testing.T) { |
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.
I'm confused about this test in its current state:
- Isn't the change here meant to prevent recreation when this value is changed?
- Why is the plan check ensuring that the resource is recreated?
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.
hey @roaks3 , one question, on the logs in this task , the resource was created ?
Because make the analisy in the log, i dont find nothing show the resource was delete and recreated , and that is the focus on this issue, right ?
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.
So if you use TF_LOG=DEBUG you'll get the API requests, which should highlight somewhat if there are new delete/post requests during update. But the nicer way we use now is the plan check (see https://googlecloudplatform.github.io/magic-modules/test/test/#add-an-update-test, specifically plancheck.ResourceActionUpdate), which basically allows you to verify that Terraform did an in-place update.
As written, I think your test confirms that the resource is recreated instead of updated in-place.
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.
i thinkin here, one question, make the analise in the api, you could confirm if this action to update the resource, is abble ? because this field is immutable, so i'm think if this update makes sense
Hello Folks.
This PR is to fix hashicorp/terraform-provider-google#25324
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.