-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Machine image updates #3873
Machine image updates #3873
Conversation
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @c2thorn, please review this PR or find an appropriate assignee. |
IAM Tests are passing.
|
In commit c7820aa , the test are failing because the logic to override disks is broken.
|
I applied a similar logic in https://gist.github.com/upodroid/1721c4e4ee26930619813a182c1e1be2 Results of the acceptance test from e2453db commit. |
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.
Thanks @upodroid! Have some minor changes for you
third_party/terraform/resources/resource_compute_instance_from_machine_image.go.erb
Outdated
Show resolved
Hide resolved
third_party/terraform/website/docs/r/compute_instance_from_machine_image.html.markdown
Outdated
Show resolved
Hide resolved
third_party/terraform/resources/resource_compute_instance_from_machine_image.go.erb
Outdated
Show resolved
Hide resolved
third_party/terraform/resources/resource_compute_instance_from_machine_image.go.erb
Outdated
Show resolved
Hide resolved
third_party/terraform/website/docs/r/compute_instance_from_machine_image.html.markdown
Outdated
Show resolved
Hide resolved
third_party/terraform/website/docs/r/compute_instance_from_machine_image.html.markdown
Outdated
Show resolved
Hide resolved
third_party/terraform/website/docs/r/compute_instance_from_machine_image.html.markdown
Outdated
Show resolved
Hide resolved
third_party/terraform/website/docs/r/compute_instance_from_machine_image.html.markdown
Show resolved
Hide resolved
Applied the minor changes, the override logic is still broken. |
@c2thorn ^ |
Hi @upodroid, sorry about that. I was under the impression that you still wanted to address the override logic. Do you have any ideas for that? |
Not really. I'm stuck on making the disk override work correctly. |
Okay, I'll take a look at it! |
@upodroid I found out internally that there is a Compute bug for overriding disks from machine images. Your logic for that should be correct. Allegedly a fix should have already rolled out, but I am still running into failures using the latest googleapi go client. I'll follow up internally. Also, I don't mind adding a commit or two to this PR, but I think I need push access to your fork. |
Thanks for the update. You should be able to edit my fork. |
Co-authored-by: Cameron Thornton <camthornton@google.com>
Hmm still getting a 403 trying to add to this PR. @upodroid can you try checking the box on this page stating |
I can't see it. I ticked it the first time I opened a PR from my fork. |
Urgh, the fork belongs to my gh org and not my user. I added you directly to the repo with write perms. |
6c9ea2a
to
0b04439
Compare
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 353 insertions(+), 5 deletions(-)) |
/gcbrun |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=154395" |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 353 insertions(+), 5 deletions(-)) |
I updated the release notes to remove the iam resources. They were implemented in a separate PR. |
@upodroid The machine image IAM resources? can't seem to find them in any other PR/in TPGB currently |
Also, I am planning to move forward with this PR with the minor changes I've made. I've basically updated the PR to be compatible with general changes to the repo, and then removed the ability to override disks (not yet supported by the API). Testing changes now |
IAM was done in #3887 . I remember it because the issue was duplicated. |
nvm, that was compute image not machine image :D |
Sounds great, I just need to fix the typo @drebes pointed out earlier |
@upodroid already taken care of! |
Tests pass! I know it has been a while on this one, thanks for your help and patience. I'll likely merge this in later today if you don't have any concerns. |
Thanks, merge it once you are ready. |
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.
Might as well do it soon.
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDataSourceSpannerInstance_basic|TestAccComputeMachineImageIamBindingGenerated|TestAccComputeMachineImageIamMemberGenerated|TestAccComputeMachineImageIamPolicyGenerated|TestAccComputeMachineImageIamBindingGenerated_withCondition|TestAccComputeMachineImageIamMemberGenerated_withCondition|TestAccComputeMachineImageIamPolicyGenerated_withCondition|TestAccComputeInstanceFromMachineImage_basic|TestAccComputeInstanceFromMachineImage_overrideMetadataDotStartupScript|TestAccComputeMachineImage_machineImageBasicExample|TestAccContainerCluster_withConfidentialNodes You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=154398" |
Fixes: hashicorp/terraform-provider-google#7019
Fixes: hashicorp/terraform-provider-google#7055
I noticed something else. There is a new CMEK field called kmsKeyServiceAccount which allows you to set the Service account to use with KMS. All the resources that use CMEK need to be updated with this field, seen it both v1 and beta apis.
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)