Update cluster versions in TestAccContainerNodePool_concurrent#12955
Conversation
At time of this writing, the cluster default version is 1.31.5, so the API will not update such as cluster to 1.29.4. This change does not "fix" the need to update these static versions from time to time. It does leave breadcrumbs for the next traveler to zero in on the answer.
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @melinath, 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. |
|
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: 225 Click here to see the affected service packages
Action takenFound 1 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 during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
Oh yes, this needs to be recorded anew. If someone gets to this before I do, that's more than welcome. |
|
@modular-magician reassign-reviewer melinath |
melinath
left a comment
There was a problem hiding this comment.
@bbasata the recording is happening automatically - the failures are due to:
Error: googleapi: Error 400: Node version "1.32.0-gke.1448000" must not have a greater minor version than master version "1.31.4-gke.1256000".
Details:
[
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"requestId": "0x19cad9635fdbce46"
}
]
, badRequest
with google_container_node_pool.np1,
on terraform_plugin_test.tf line 11, in resource "google_container_node_pool" "np1":
11: resource "google_container_node_pool" "np1" {
Error: googleapi: Error 400: Node version "1.32.0-gke.1448000" must not have a greater minor version than master version "1.31.4-gke.1256000".
Details:
[
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"requestId": "0x2a7c99b7fe91d372"
}
]
, badRequest
with google_container_node_pool.np2,
on terraform_plugin_test.tf line 23, in resource "google_container_node_pool" "np2":
23: resource "google_container_node_pool" "np2" {
Possibly relatedly - could this test be rewritten to use the google_container_engine_versions data source instead of hardcoding versions?
Got it, thanks! I think I see what I missed. The node version cannot exceed the cluster (control plane) version. git push. Waiting on checks ...
I'd like to give it a try. If this PR goes green (maybe!), how about we merge, and then follow up with the nicer solution? |
SGTM |
|
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: 225 Click here to see the affected service packages
Action takenFound 1 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 during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
melinath
left a comment
There was a problem hiding this comment.
Error is:
Error: Unsupported argument
on terraform_plugin_test.tf line 9, in resource "google_container_cluster" "cluster":
9: version = "1.32.0-gke.1448000"
An argument named "version" is not expected here.
mmv1/third_party/terraform/services/container/resource_container_node_pool_test.go.tmpl
Outdated
Show resolved
Hide resolved
…er_node_pool_test.go.tmpl Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
|
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.
|
|
Thanks for fixing this! I'm not sure why we ever hard coded it. Bumping the version works for now. A perhaps cleaner long term solution would be to just choose some simpler field. The most important thing is that the operation takes a little bit of time so that there is actual concurrency (since several fields are nearly instant to update). There's many possibilities. The |
Tests analyticsTotal tests: 225 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
melinath
left a comment
There was a problem hiding this comment.
approving this for now to get the test passing; we can consider a longer-term fix separately.
|
Thanks all! |
…eCloudPlatform#12955) Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
…eCloudPlatform#12955) Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
|
I updated it in #13161 with an approach that hopefully accomplishes the goal of the test in a slightly more durable way, by picking two (normally) different versions? I also sized down the node pools and deleted the default pool, which should if nothing else, make it faster and cheaper to run. I'd come across this PR, but hadn't read through all the comments before (since I'd noticed it was already fixed). I agree with the above, though, that probably updating a different field might make more sense, along with some additional comments on the goals behind the test. |
…eCloudPlatform#12955) Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
…eCloudPlatform#12955) Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
At time of this writing, the cluster default version is 1.31.5. The acceptance test fails because the API will not update such a cluster to 1.29.4.
This change updates the static versions and leaves hyper-breadcrumbs for the next traveler on this path.
Fixes hashicorp/terraform-provider-google#21116
Release Note Template for Downstream PRs (will be copied)