rancher / qa-tasks

List of QA Backlog
1 stars 1 forks source link

Unable to create Hosted GKE Rancher servers using the HA Deploy Job #653

Closed jameson-mcghee closed 1 year ago

jameson-mcghee commented 1 year ago

Need to resolve the ability to create Hosted GKE Rancher servers using the HA Deploy Job.

When running the HA Deploy Jenkins job for GKE Rancher servers, we are getting the following error. in the Console Output Logs:

14:31:18.25  ------------------------------ Captured log call -------------------------------
14:31:18.25  __init__.py                306 WARNING  error: b'\nError: Failed to query available provider packages\n\nCould not retrieve the list of available versions for provider\nhashicorp/google: no available releases match the given constraints ~> 3.42.0,\n>= 4.47.0, != 4.49.0, != 4.50.0, < 5.0.*\n\n'
14:31:18.25  __init__.py                306 WARNING  error: b'\nError: Could not load plugin\n\n\nPlugin reinitialization required. Please run "terraform init".\n\nPlugins are external binaries that Terraform uses to access and manipulate\nresources. The configuration provided requires plugins which can\'t be located,\ndon\'t satisfy the version constraints, or are otherwise incompatible.\n\nTerraform automatically discovers provider requirements from your\nconfiguration, including providers used in child modules. To see the\nrequirements and constraints, run "terraform providers".\n\nFailed to instantiate provider "registry.terraform.io/hashicorp/google" to\nobtain schema: unknown provider "registry.terraform.io/hashicorp/google"\n\n\n'
14:31:18.25  __init__.py                306 WARNING  error: b'\nError: Could not load plugin\n\n\nPlugin reinitialization required. Please run "terraform init".\n\nPlugins are external binaries that Terraform uses to access and manipulate\nresources. The configuration provided requires plugins which can\'t be located,\ndon\'t satisfy the version constraints, or are otherwise incompatible.\n\nTerraform automatically discovers provider requirements from your\nconfiguration, including providers used in child modules. To see the\nrequirements and constraints, run "terraform providers".\n\nFailed to instantiate provider "registry.terraform.io/hashicorp/google" to\nobtain schema: unknown provider "registry.terraform.io/hashicorp/google"\n\n\n'
14:31:18.26  __init__.py                306 WARNING  error: b"\x1b[31mThe output variable requested could not be found in the state\nfile. If you recently added this to your configuration, be\nsure to run `terraform apply`, since the state won't be updated\nwith new output variables until that command is run.\x1b[0m\x1b[0m\n"
14:31:18.26  ----------- generated xml file: /src/rancher-validation/results.xml ------------

Related issue 652

jameson-mcghee commented 1 year ago

When attempting to run the HA Deploy Pytest (-k "test_install_rancher_ha") using the rancher-freeform job to create a GKE Rancher server, the same error is observed as on the HA Deploy Job.

https://github.com/rancher/qa-tasks/issues/653#issue-1634768919

sowmyav27 commented 1 year ago

@slickwarren was able to get this to work. Offline chat

I went ahead and updated the key and did a test run so this doesn’t get lost again