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

AWX installation on Kubernetes fails - incorrect helm repo #8715

Closed
dinup24 opened this issue Dec 1, 2020 · 2 comments
Closed

AWX installation on Kubernetes fails - incorrect helm repo #8715

dinup24 opened this issue Dec 1, 2020 · 2 comments
Labels

Comments

@dinup24
Copy link

dinup24 commented Dec 1, 2020

ISSUE TYPE
  • Bug Report
SUMMARY

AWX installation on Kubernetes fails due to incorrect helm repo. Followed the instructions documented here - https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes

Encountered the following error during installation.

TASK [kubernetes : Deploy and Activate Postgres (Kubernetes)] *********************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "helm repo add stable https://kubernetes-charts.storage.googleapis.com\nhelm repo update\nhelm upgrade awx-postgresql  --install  --namespace awx  --version=\"8.3.0\"  --values /var/folders/2f/3wzkqdxd4ss2fvr3gdtjq_740000gn/T/ansible.8jttg3o7.yml  stable/postgresql\n", "delta": "0:00:00.185554", "end": "2020-12-01 14:23:01.262520", "msg": "non-zero return code", "rc": 1, "start": "2020-12-01 14:23:01.076966", "stderr": "Error: repo \"https://kubernetes-charts.storage.googleapis.com\" is no longer available; try \"https://charts.helm.sh/stable\" instead\nError: no repositories found. You must add one before updating\nError: failed to download \"stable/postgresql\" at version \"8.3.0\" (hint: running `helm repo update` may help)", "stderr_lines": ["Error: repo \"https://kubernetes-charts.storage.googleapis.com\" is no longer available; try \"https://charts.helm.sh/stable\" instead", "Error: no repositories found. You must add one before updating", "Error: failed to download \"stable/postgresql\" at version \"8.3.0\" (hint: running `helm repo update` may help)"], "stdout": "Release \"awx-postgresql\" does not exist. Installing it now.", "stdout_lines": ["Release \"awx-postgresql\" does not exist. Installing it now."]}
ENVIRONMENT
  • AWX version: 15.0.1
  • AWX install method: Kubernetes (docker desktop)
  • Ansible version: 2.9.14
  • Operating System: Mac
  • Web Browser: Chrome
STEPS TO REPRODUCE

Follow AWX installtion instructions documented here - https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes

  1. Update inventory will details about kubernetes cluster
  2. Execute the command
$ ansible-playbook -i inventory install.yml
EXPECTED RESULTS

Successful installation of AWX on Kubernetes.

ACTUAL RESULTS

Installation failed with the following error

TASK [kubernetes : Deploy and Activate Postgres (Kubernetes)] *********************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "helm repo add stable https://kubernetes-charts.storage.googleapis.com\nhelm repo update\nhelm upgrade awx-postgresql  --install  --namespace awx  --version=\"8.3.0\"  --values /var/folders/2f/3wzkqdxd4ss2fvr3gdtjq_740000gn/T/ansible.8jttg3o7.yml  stable/postgresql\n", "delta": "0:00:00.185554", "end": "2020-12-01 14:23:01.262520", "msg": "non-zero return code", "rc": 1, "start": "2020-12-01 14:23:01.076966", "stderr": "Error: repo \"https://kubernetes-charts.storage.googleapis.com\" is no longer available; try \"https://charts.helm.sh/stable\" instead\nError: no repositories found. You must add one before updating\nError: failed to download \"stable/postgresql\" at version \"8.3.0\" (hint: running `helm repo update` may help)", "stderr_lines": ["Error: repo \"https://kubernetes-charts.storage.googleapis.com\" is no longer available; try \"https://charts.helm.sh/stable\" instead", "Error: no repositories found. You must add one before updating", "Error: failed to download \"stable/postgresql\" at version \"8.3.0\" (hint: running `helm repo update` may help)"], "stdout": "Release \"awx-postgresql\" does not exist. Installing it now.", "stdout_lines": ["Release \"awx-postgresql\" does not exist. Installing it now."]}
ADDITIONAL INFORMATION

Helm version: 3.4.0
As per Helm documentation, the location of helm repo has changed from "https://kubernetes-charts.storage.googleapis.com" to "https://charts.helm.sh/stable".

Helm v3.4.0 will now detect if you have the stable and incubator repository configured with the old location and warn you that you need to update your configuration to the new location.

To proceed further with the installation, the following changes were made to -

helm repo add stable https://kubernetes-charts.storage.googleapis.com

      shell: |
        helm repo add stable https://charts.helm.sh/stable
        helm repo update
        helm upgrade {{ postgresql_service_name }} \
          --install \
          --namespace {{ kubernetes_namespace }} \
          --version="8.3.0" \
          --values {{ values_file.path }} \
          stable/postgresql
      register: kubernetes_pg_activate
      no_log: true
@jhnnsg
Copy link

jhnnsg commented Dec 1, 2020

I opened an identical pull request nearly a month ago. Please review #8534 or this one. There have been serveral issues with this exact problem.

@ryanpetrello
Copy link
Contributor

Should be resolved via #8534

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

No branches or pull requests

4 participants