Skip to content
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

Rancher 2.6 deployment failure #182

Closed
ab-mohamed opened this issue Sep 1, 2021 · 4 comments · Fixed by #185
Closed

Rancher 2.6 deployment failure #182

ab-mohamed opened this issue Sep 1, 2021 · 4 comments · Fixed by #185

Comments

@ab-mohamed
Copy link

Hi,

I have some questions regarding the Rancher GCP quickstart guide https://rancher.com/docs/rancher/v2.6/en/quick-start-guide/deployment/google-gcp-qs/

  1. When I use the default Terraform values in the terraform.tfvars file, the created Rancher server version is 2.5.7 (the default version according to variables.tf file).
    The deployment is failed when I update the terraform.tfvars file to use the most recent Rancher version 2.6.0.

Here are the terrafrom.tfvars configurations that create Rancher 2.5.7:

$ grep -v "#" terraform.tfvars | awk NF
gcp_account_json = "sa-key.json"
gcp_project = "<PROJECT ID>"
rancher_server_admin_password = "<TEMP PASSWORD>"

And here is the updated configurations to create Rancher 2.6.0:

$ grep -v "#" terraform.tfvars | awk NF
gcp_account_json = "sa-key.json"
gcp_project = "<PROJECT ID>"
rancher_server_admin_password = "<TEMP PASSWORD>"
gcp_region = "us-west1"
gcp_zone = "us-west1-a"
machine_type = "n1-standard-2"
rancher_version = "2.6.0"

The error message was shown after executing terraform apply --auto-approve command from the Google Cloud Shell is:

╷
│ Warning: Empty provider configuration blocks are not required
│
│   on ../rancher-common/provider.tf line 2:
│    2: provider "local" {
│
│ Remove the local provider block from module.rancher_common.
│
│ (and one more similar warning elsewhere)
╵
╷
│ Error: [ERROR] Login with admin user: Doing  user logging: error Unauthorized
│
│   with module.rancher_common.rancher2_bootstrap.admin,
│   on ../rancher-common/rancher.tf line 4, in resource "rancher2_bootstrap" "admin":
│    4: resource "rancher2_bootstrap" "admin" {

Notice that I cannot determine the best value for docker_version, rke_kubernetes_version, and workload_kubernetes_version as there is no support matrix yet for Rancher 2.6.0 in the https://rancher.com/support-maintenance-terms/all-supported-versions/rancher-v2.5.9/ support matrix guide. The latest version there is 2.5.9.

  1. Is there any plans to extend this project to create Rancher HA environment on GCP?

  2. What is the current status of using SLES instead of Ubuntu?

@bashofmann
Copy link
Contributor

The quickstarts have not been updated to 2.6.0 yet, because there is no support for 2.6.0 in the terraform provider as well: rancher/terraform-provider-rancher2#711

@ab-mohamed
Copy link
Author

@bashofmann Thank you for the quick update. Any estimated time to support Rancher 2.6.0?

Some more questions:

  1. Do we have any current Rancher 2.5.x Terraform-based guide to implementing HA Rancher on GCP? or any other CSP?
  2. Is there any plan to use SLES instead of Ubuntu (the current used OS)?

Thank you in advance. :)

@giuseppeCozzolino
Copy link

Any update about this?

@bashofmann
Copy link
Contributor

WIP: https://github.com/bashofmann/quickstart/tree/rancher-2.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants