-
Notifications
You must be signed in to change notification settings - Fork 785
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
Failing on : jx step helm release #7597
Comments
same here |
same here, any solution? |
Same story. |
Got the same problem. The helm repo https://storage.googleapis.com/chartmuseum.jenkins-x.io is now dead, should now use https://charts.helm.sh/stable
There are 2 ways to fix that:
args = append(args, "--stable-repo-url", "https://charts.helm.sh/stable") In the meanwhile, I'll create my own docker images to make it work. |
OK apparently the |
@aure-olli can you, please, post a code snippet about new docker image building or share more info about fix? |
OK got it to work on my cluster Build a new jx git clone https://github.com/jenkins-x/jx
cd jx
nano +32 pkg/packages/packages.go # const Helm2Version = "2.17.0"
make build
cd .. Download the last helm wget https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz
tar -xvzf helm-v2.17.0-linux-amd64.tar.gz Create a new image echo 'FROM gcr.io/jenkinsxio/builder-go:2.1.150-769
COPY linux-amd64/helm /home/jenkins/.jx/bin/helm
COPY linux-amd64/helm /usr/bin/helm
COPY jx/build/jx /usr/bin/jx' > Dockerfile
docker build . -t builder-go:helm-v2.17.0 $DOCKER_REPO/builder-go:helm-v2.17.0
docker push $DOCKER_REPO/builder-go:helm-v2.17.0 Then use that I don't know if all those steps are necessary, but at least they work. |
….googleapis.com/chartmuseum.jenkins-x.io The helm repo https://storage.googleapis.com/chartmuseum.jenkins-x.io, used prior to helm v2.17.0, is dead. Consequently, any call to `helm init` with an older version fails. This fix, as long as the update of the helm version in jx docker images, fixes that problem. fixes jenkins-x#7597 Signed-off-by: Aurélien Lambert <aure@olli-ai.com>
All my attempts to make this action work on python or nodejs iamges are failed. |
I found how to resolve that.
|
@aure-olli may be you know where possible to setup image for env building? I reset image value in configmap jenkins-x-pod-template-go but on env building step it still use old go image |
I found solution. To set image for your env You should overwrite agent in each env repo jenkins-x.yaml.
|
Those are currently the fixes I had to perform (with dev environment: In image: builder-go by image: $DOCKER_REPO/builder-go:helm-v2.17.0 Other environments: Add in pipelineConfig:
agent:
image: $DOCKER_REPO/builder-go:helm-v2.17.0
label: jenkins-go Make sure that apiVersion: v1 For applications Add in pipelineConfig:
pipelines:
pullRequest:
promote:
preSteps:
- command: helm init --client-only
image: asia.gcr.io/olli-iviet/builder-go:helm-v2.17.0-x2
name: helm-init
release:
promote:
preSteps:
- command: helm init --client-only
image: asia.gcr.io/olli-iviet/builder-go:helm-v2.17.0-x2
name: helm-init Not sure why needs a To create the Build jx git clone https://github.com/jenkins-x/jx
cd jx
nano +32 pkg/packages/packages.go # const Helm2Version = "2.17.0"
make linux
cd .. Download the last helm wget https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz
tar -xvzf helm-v2.17.0-linux-amd64.tar.gz Create a new image echo 'FROM gcr.io/jenkinsxio/builder-go:2.1.150-769
COPY linux-amd64/helm /home/jenkins/.jx/bin/helm
COPY linux-amd64/helm /usr/bin/helm
COPY jx/build/linux/jx /usr/bin/jx' > Dockerfile
docker build . -t builder-go:helm-v2.17.0 -t $DOCKER_REPO/builder-go:helm-v2.17.0
docker push $DOCKER_REPO/builder-go:helm-v2.17.0 |
Apparently the team has already update the |
Hi everyone, same problem in our project. We have tried to apply the workaround but this is only valid for dev environment. We have dozens of microservices using different buildpacks and builder images. We would need jx version 2.1.154 to be pre-released with helm patch applied, and then jenkins-x-versions 1.0.610 (currently 1.0.609) released referencing the first release (jx) updating all builder images. Any suggestion what we can do? We have all projects stopped. Thanks in advance. |
Hi @anmiralles |
Hi @aure-olli , your workaround is valid, but it is not applicable if you have dozens of builder images to rebuild and manage in your docker registry....modify all applications pipelines, etc. Instead of all of these hand customizations, the only thing needed is current version of jx 2.1.154 to be released and jenkins-x-versions pointed to jx version. Moreover, this will come in some days and you will have to disable all you made by hand. Do you see my point? Maybe I am wrong.... |
@anmiralles not wrong... |
@anmiralles @gcontini |
@jstrachan @rawlingsj hi guys, We can not build everywhere the custom images and apply the idea above. Thanks & BR |
Just seen this sorry as I'm on PTO. After a quick look from my phone it looks like our v2 cluster needs to have the workaround applied to it's own infra so we can release the fixes. The helm deprecation was some time ago but I wonder if for some reason the service for the old helm stable repo was taken down this week. Horrible timing if that is the case but again will need to investigate. I dont know how long I can get on my laptop but will try now and build the custom image with the fix from @aure-olli (MASSIVE THANKS BTW) and see if I can upgrade our cluster and then retrigger the real fix #7598 and hopefully that will get through the release pipelines and into the version stream. |
Just manually built and pushed an image with the fix, will go through our infra pipelines and switch to that and try to get the release out but I'm running out of time, will give an update shortly. |
@rawlingsj will this be applied to other builders too? Your fix will be only fixing the go builder? How about the Java/Maven ones etc., on our side (and collegues above) it affects all of them by a failing "jx step helm release" |
this will enable our pipelines to run and release all the builders with the fix although that will need for the version stream release to go through which may take a few hours and thats provided there's no other issues. I dont have long but will do what I can. For now its probably best to wait for the release rather than use the image above so I might edit the comment above and remove the image name so folks dont get caught in two worlds. |
closing the fix from @aure-olli as a duplicate of this #7599 which turns out was merged yesterday, though the release pipeline for that PR failed because our infra didn't have the workaround fix applied. It does now for this release pipeline at least and that is running so lets see if we get a PR on the builders repo |
I've run out of time ATM but should be able to check back in later, hopefully the fix will get through the builders image and then PR the version stream in that time. |
The builder repo update went through ok but the platform failed, then found the old helm version coming from base image repo. This might be the last I can look at tonight as already vastly pushed the boundaries of family time on xmas eve. When I can I'll check back in on the pipelines and fix up remaining issues, I know it's not a good situation to be in but we really got blindsided by the stable repo service stopping this week as we thought we handled the deprecation before the deadline, evidently a service stopped this week and caused severe impact at one of the worst times of year. I've done what I can so far and it seems close as BDD tests now get further but will need the fix above and potentially more. We will do what we can but to set expectations in will likely be after Christmas + Boxing day now. |
… use that and fix broken v2 release pipeline as old binary does not exist anymore, relates to jenkins-x/jx#7597
Yeah where I live we don't celebrate much Christmas 😅 |
Oh the PR is already available actually: jenkins-x/jenkins-x-versions#1098 |
Hi everyone, any updates on this? I can see @rawlingsj sent a PR to jenkins-x-versions with the desire changes that will solve our problems. Thanks for the effort.... |
the platform release has now gone through jenkins-x/jenkins-x-platform#7336 and jenkins-x/jenkins-x-versions#1098 has been updated so lets see how the BDD tests go now |
Hello,
Hello, Follow the full log: |
yeah that's the same error as the version stream BDD tests, this fixes that error jenkins-x/jenkins-x-builders-base@d50e8b1 and is the fix I mentioned that is going through the release pipelines now. The next run of BDD tests are close to being triggered with that fix in so fingers crossed its close now. |
another BDD test failure, this should fix it jenkins-x/default-environment-charts@cf9c3d4 but will mean users will need to add the |
just a quick update that the BDD tests on the version stream PR have started passing jenkins-x/jenkins-x-versions#1098, we have just retriggered the last two that were failing and I'm fairly confident they should pass. Provided they do pass then the PR should be ready to merge in ~1 hour. |
jenkins-x/jenkins-x-versions#1098 has merged now, this should fix the issue but please re-open if not. |
@rawlingsj: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. |
@rawlingsj I applied the jx binary update. I guess we also need to update the platform. Maybe it makes sense to describe the needed steps to get this fully solved in our CI/CD? Many Thanks. |
@marziman I suppose we gotta manage on our own lol.
|
Apparently the dev environment will fail, a chicken and egg problem. Step 1 Step 2 |
Summary
We are having the jx cluster running fine, suddently, the "jx step helm release" start failing with error below:
error: failed to build dependencies for chart from directory '.': failed to add chart repositories:
failed to add the Helm repository with URL 'https://storage.googleapis.com/chartmuseum.jenkins-x.io':
failed to add the repository 'storage.googleapis.com' with URL 'https://storage.googleapis.com/chartmuseum.jenkins-x.io':
failed to run 'helm repo add storage.googleapis.com https://storage.googleapis.com/chartmuseum.jenkins-x.io'
command in directory '.', output: 'Error: Couldn't load repositories file (/tekton/home/.helm/repository/repositories.yaml).
If you have any inside , please advice,
Much appreciate
The text was updated successfully, but these errors were encountered: