You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No kind Job is registered for version batch/v1 #6894
Reacted by Márk Sági-Kazár, Gabor Kozma, Sándor Guba, Denis Iskandarov, Mourad, Tariq Hassan, Yong Wen Chua, Duan Shiqiang, Atharex, Jack Davis and 35 more
Reacted by Márk Sági-Kazár, Gabor Kozma, Sándor Guba, Atharex, Jack Davis, Navneet Gulati, Ivan Pusic, Kai Ren, Giampaolo, Marcelo Grebois and 5 more
helm upgrade --install mon --namespace mon -f values.yaml stable/prometheus-operator
Release "mon" does not exist. Installing it now.
Error: no kind "Job" is registered for version "batch/v1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30"
A community member on the #helm-users slack channel mentioned downgrading to Helm 2.15.2 appears to work around this issue for the time being. This may be due to a breaking change in Kubernetes 1.16's client libraries that affected how we perform schema lookups.
So as far as I can tell, we were using the legacyscheme (e.g. k8s.io/kubernetes/pkg/api/legacyscheme) in a few places rather than the normal scheme. Based on what I see in that code, the legacyscheme.Scheme is just an empty schema with nothing added to it. So I switched it out for the normal scheme and am testing now
Is anyone who is having this issue willing to try out #6897? I especially want to make sure that changing the schema we were referencing doesn't end up causing other issues
Yep, if you have Go set up, you can checkout my branch and run make bootstrap build. You can then run ./bin/tiller and it will connect to whatever cluster your kubeconfig is set to. Then you can export HELM_HOST=localhost:44134 in another terminal and use ./bin/helm to run your install/upgrade. Then you can bypass building a docker image
Actually, I kinda wanted to use the docker image to test an entire installation process (which accepts a docker image). But I will just test it with a single chart we had issues with.
Totally willing to push a binary and docker image if needed, because you'll need both (as it will have a version incompatibility with your local helm binary)
Oh, forgot about the version incompatibility thing. Yeah, that stuff won't work then, because I actually wanted to test it using the Terraform provider.
For those of us where using those versions of helm isn't an option due to it being embedded in other applications, can you give us a better time frame when this will be released?
Reacted by Sean Arnold, Jürgen W, Yong Wen Chua, Nenad Strainović, Martin Janosik, Laurynas Tretjakovas, Yannig, Fräbel Julian, Alexandre Malucelli, Alexander Michels and 2 more
and for some reason operator says about my mattermost installation:
component=operator warning="release has been rolled back, skipping" resource=prod:helmrelease/mattermost but nobody touched the deploy since quite some time, it just started saying that after the upgrade, helm list:
That looks like a separate issue than what's described above. The errors above describe that the job kind was not registered with the API. Your error indicates a job was found but already exists.
I upgraded to 2.16.1 and still get the same error:
Client: &version.Version{SemVer:"v2.16.1", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["helm", "install", "jupyterhub/jupyterhub", "--version=0.9-1743b85", "--name=jupyterhub", "--namespace=cluster", "--timeout=1200", "-f", "deploy/jupyterhub-config.yaml"], "delta": "0:00:10.924091", "end": "2019-11-16 14:09:01.773255", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2019-11-16 14:08:50.849164", "stderr": "Error: no kind "Job" is registered for version "batch/v1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30"", "stderr_lines": ["Error: no kind "Job" is registered for version "batch/v1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30""], "stdout": "", "stdout_lines": []}
UPDATE:
my helm update wasn't complete ...
running: helm init --upgrade
fixed that... and now things are ok again
Can you please demonstrate the issue you are experiencing more clearly? Perhaps opening a new ticket would be helpful. For example, your issue may result in the same error message, but it may be caused by something other than what #6897 resolved (which was due to a breaking change in the Kubernetes client).
A more clear explanation would be more helpful for us to help diagnose your issue better. Thanks.
I have been hit by this. I am not sure if this help, but in my case I can confirm that upgrading to 2.16.1 fixed the issue.
We are on Kubernetes 1.12.10-gke.17, and in order to get around this bug I had to upgrade both Helm and Tiller to 2.16.1 (ArchLinux's AUR doesn't have a package for 2.16.1, so I had to compile this by hand).
Activity
den-is commentedon Nov 6, 2019
same here with helm 2.16.0
clean bare-metal setup
kubernetes v1.16.2
thomastaylor312 commentedon Nov 6, 2019
Thanks for reporting this. Starting to look into it.
As a note, this may affect helm 3 as well
bacongobbler commentedon Nov 6, 2019
A community member on the #helm-users slack channel mentioned downgrading to Helm 2.15.2 appears to work around this issue for the time being. This may be due to a breaking change in Kubernetes 1.16's client libraries that affected how we perform schema lookups.
thomastaylor312 commentedon Nov 6, 2019
Ok, I can't duplicate in Helm 3, which is a good thing. Please let me know if anyone sees this in the RC
thomastaylor312 commentedon Nov 6, 2019
So as far as I can tell, we were using the
legacyscheme(e.g.k8s.io/kubernetes/pkg/api/legacyscheme) in a few places rather than the normal scheme. Based on what I see in that code, thelegacyscheme.Schemeis just an empty schema with nothing added to it. So I switched it out for the normal scheme and am testing nowthomastaylor312 commentedon Nov 6, 2019
Is anyone who is having this issue willing to try out #6897? I especially want to make sure that changing the schema we were referencing doesn't end up causing other issues
sagikazarmark commentedon Nov 6, 2019
@thomastaylor312 Is there an easy way to build a Tiller docker image for the proposed fix? I'd be happy to try it.
thomastaylor312 commentedon Nov 6, 2019
Yep, if you have Go set up, you can checkout my branch and run
make bootstrap build. You can then run./bin/tillerand it will connect to whatever cluster your kubeconfig is set to. Then you canexport HELM_HOST=localhost:44134in another terminal and use./bin/helmto run your install/upgrade. Then you can bypass building a docker imagesagikazarmark commentedon Nov 6, 2019
Actually, I kinda wanted to use the docker image to test an entire installation process (which accepts a docker image). But I will just test it with a single chart we had issues with.
thomastaylor312 commentedon Nov 6, 2019
Totally willing to push a binary and docker image if needed, because you'll need both (as it will have a version incompatibility with your local
helmbinary)sagikazarmark commentedon Nov 6, 2019
Oh, forgot about the version incompatibility thing. Yeah, that stuff won't work then, because I actually wanted to test it using the Terraform provider.
sagikazarmark commentedon Nov 6, 2019
It seems to be working with banzaicloud-stable/cadence.
9 remaining items
jdfalk commentedon Nov 8, 2019
For those of us where using those versions of helm isn't an option due to it being embedded in other applications, can you give us a better time frame when this will be released?
grebois commentedon Nov 9, 2019
@thomastaylor312 all istio charts are failing because of this issue, would you be so kind to release a patch soon? many thanks!
wtx626 commentedon Nov 11, 2019
@thomastaylor312 where is the new release 2.16.1?
thomastaylor312 commentedon Nov 13, 2019
2.16.1 came out yesterday @wtx626!
masterkain commentedon Nov 14, 2019
2.16.1 on both client and server does not seem to fix the issue.. I still cannot install https://github.com/masterkain/errbit-helm properly (dangling
runningjob)then even with a
delete --purgeof the release I get on operator reinstall:like it can't remove the job.
and for some reason operator says about my mattermost installation:
component=operator warning="release has been rolled back, skipping" resource=prod:helmrelease/mattermostbut nobody touched the deploy since quite some time, it just started saying that after the upgrade,helm list:mattermost 33 Wed Nov 13 17:37:19 2019 DEPLOYED mattermost-team-edition-3.8.0 5.13.2 prodkinda tired of random breakages :(
bacongobbler commentedon Nov 14, 2019
That looks like a separate issue than what's described above. The errors above describe that the job kind was not registered with the API. Your error indicates a job was found but already exists.
Can you open a new ticket? Thanks!
miramar-labs commentedon Nov 16, 2019
I upgraded to 2.16.1 and still get the same error:
Client: &version.Version{SemVer:"v2.16.1", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["helm", "install", "jupyterhub/jupyterhub", "--version=0.9-1743b85", "--name=jupyterhub", "--namespace=cluster", "--timeout=1200", "-f", "deploy/jupyterhub-config.yaml"], "delta": "0:00:10.924091", "end": "2019-11-16 14:09:01.773255", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2019-11-16 14:08:50.849164", "stderr": "Error: no kind "Job" is registered for version "batch/v1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30"", "stderr_lines": ["Error: no kind "Job" is registered for version "batch/v1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30""], "stdout": "", "stdout_lines": []}
UPDATE:
my helm update wasn't complete ...
running: helm init --upgrade
fixed that... and now things are ok again
ekristen commentedon Dec 11, 2019
This is still broken.
grebois commentedon Dec 11, 2019
but why?

sorry, yes, im getting the same errors, this is still broken and should be re-open @thomastaylor312
bacongobbler commentedon Dec 11, 2019
Can you please demonstrate the issue you are experiencing more clearly? Perhaps opening a new ticket would be helpful. For example, your issue may result in the same error message, but it may be caused by something other than what #6897 resolved (which was due to a breaking change in the Kubernetes client).
A more clear explanation would be more helpful for us to help diagnose your issue better. Thanks.
ekristen commentedon Dec 12, 2019
I ran into this on a 1.16 cluster using 2.16.2 and the latest Minio chart. I can try on a fresh cluster just to verify
fradeve commentedon Dec 31, 2019
I have been hit by this. I am not sure if this help, but in my case I can confirm that upgrading to 2.16.1 fixed the issue.
We are on Kubernetes 1.12.10-gke.17, and in order to get around this bug I had to upgrade both Helm and Tiller to 2.16.1 (ArchLinux's AUR doesn't have a package for 2.16.1, so I had to compile this by hand).
hebersonaguiar commentedon Mar 18, 2020
@thomastaylor312 this is a best solution for this issue, thanks.
jvanwygerden commentedon May 29, 2020
Can anybody confirm this patch has been released on 2.16.1 ?
Also, is there any work-around possible (that is known) for 2.16.0 - specifically, to upgrade charts that have K8s job manifests
Bump image version and helm default version to prevent issue while in…