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

v0.10.5 is failing due to stable repo move #649

Closed
dfry opened this issue Dec 21, 2020 · 15 comments
Closed

v0.10.5 is failing due to stable repo move #649

dfry opened this issue Dec 21, 2020 · 15 comments

Comments

@dfry
Copy link

dfry commented Dec 21, 2020

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: 0.13.05
Provider version: 0.10.5
Kubernetes version:  1.15.2
Helm version: 2.16.8

Affected Resource(s)

Error: error initializing local helm home: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@dfry dfry added the bug label Dec 21, 2020
@aareet
Copy link
Member

aareet commented Dec 21, 2020

Hi @dfry, as of our v2.0.0 provider release, we are no longer supporting Helm 2. It is explained in our upgrade guide

@aareet aareet added HelmV2 and removed bug labels Dec 21, 2020
@ludflu
Copy link

ludflu commented Dec 21, 2020

I'm seeing this error using helm v3.3.3 also.

@bfjoren
Copy link

bfjoren commented Dec 21, 2020

I'm seeing this with helm version v3.4.4

@aareet aareet added the bug label Dec 21, 2020
@jrhouston
Copy link
Contributor

Looks like the old URL is hard-coded into the 0.10.5 version of the provider here: https://github.com/hashicorp/terraform-provider-helm/blob/v0.10.5/helm/provider.go#L452

Based on their blog post it sounds like the stable repo is deprecated and will eventually be garbage collected, but they're going to keep what's there around as an archive.

I'm going to cut a hotfix release to change the URL in the old provider so folks stuck maintaining legacy aren't left hanging, but after this please upgrade to the latest provider version! You'll have to fork this repo to keep supporting this if you don't.

@ludflu
Copy link

ludflu commented Dec 21, 2020

@aareet For me, the error comes before any repos exist. I run terraform in a docker container, so its fresh everytime. There are no repos to update with helm repo update

@sergio-dreamcode
Copy link

I'm now checking on upgrading to Helm3 right now, but as mentioned the url is hardcoded in 0.10.x provider version, anyhow if this can help somehow I had a local cache of that file from some days ago.

@savvys
Copy link

savvys commented Dec 21, 2020

Provider 0.10.5
I understand the URLs are hardcoded.
Post the fix, will we be able to use the Provider 0.10.5 ? Or the fix will be done only for the latest release of helm provider which is version 2.0.1++?

@jrhouston
Copy link
Contributor

I am cutting a release for v0.10.6 now @savvys.

@savvys
Copy link

savvys commented Dec 21, 2020

Thanks a lot @jrhouston

@sergio-dreamcode
Copy link

Thank you so much @jrhouston.

I have one question, I noticed that your PR for 0.10.6 was already merged but now when I try to use it from Terraform seems that it's not found yet, is there some review process or similar before it's publicly available?

@aareet
Copy link
Member

aareet commented Dec 21, 2020

@sergio-dreamcode you'll need to wait until it appears here: https://releases.hashicorp.com/terraform-provider-helm/0.10.6/ (which it has now)

@jrhouston
Copy link
Contributor

@sergio-dreamcode There is a release pipeline that happens after the merge that builds all the appropriate binaries and uploads them to a CDN. I was just able to pull it down so it should be available now – sometimes it can take a few minutes to roll out so try again in a few.

@dfry
Copy link
Author

dfry commented Dec 21, 2020

Thanks for the quick turnaround @jrhouston , the provider is working as expected again. We have been working to convert to helm3 but we have a very large number helm deploys to regression test on helm3 and this repo becoming unavailable caught us at the worst time (during a prod release, of course). Thanks again for the speedy resolution.

@dfry dfry closed this as completed Dec 21, 2020
@jrhouston
Copy link
Contributor

No problem @dfry thanks for contributing. Good luck with your upgrades! 🤠🔧

prateekbaheti-ms added a commit to prateekbaheti-ms/drone-helm that referenced this issue Dec 22, 2020
The old repo url does not resolve causing build failures. Changing default value
hashicorp/terraform-provider-helm#649
davidread added a commit to ministryofjustice/analytics-platform-concourse-github-org-resource that referenced this issue Dec 22, 2020
This is a fix for a helm error that started today when building apps:

```
Initializing helm...

Error: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden
```
As seen: https://concourse.services.alpha.mojanalytics.xyz/teams/main/pipelines/segmentation-tool/jobs/deploy/builds/20

This was due to today Google getting rid of the 'stable repo' that Helm v2 uses. See: hashicorp/terraform-provider-helm#649 (It was deprecated in Oct).

By setting a different, valid stable_repo, helm works.
prateekbaheti-ms added a commit to moneysmartco/drone-helm that referenced this issue Dec 23, 2020
Change the default value of stable_repo_url since the old one is invalid
now. Changes in the original repo have not been made yet

hashicorp/terraform-provider-helm#649
elyalvarado added a commit to elyalvarado/kubergrunt that referenced this issue Jan 4, 2021
Since helm v2.17.0 the stable chart repositories were moved to a new URL, and since a few weeks ago the old repository is no longer available which is causing anyone using helm v2 with kubergrunt to fail.
Ideally everybody should be moving to helm v3, but this PR changes the URL to the new repository as a hotfix for those still using helm v2.

For context See:
- https://github.com/helm/helm/releases/tag/v2.17.0
- hashicorp/terraform-provider-helm#649
@ghost
Copy link

ghost commented Jan 21, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Jan 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants