charts icon indicating copy to clipboard operation
charts copied to clipboard

[mongodb-replicaset] found invalid field args for v1.ExecAction

Open scottcrespo opened this issue 8 years ago • 8 comments

Is this a request for help?:


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Version of Helm and Kubernetes:

Helm Version

Client: &version.Version{SemVer:"v2.7.2", GitCommit:"8478fb4fc723885b155c924d1c8c410b7a9444e6", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.7.2", GitCommit:"8478fb4fc723885b155c924d1c8c410b7a9444e6", GitTreeState:"clean"}

Kubernetes Version

Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.5", GitCommit:"cce11c6a185279d037023e02ac5249e14daa22bf", GitTreeState:"clean", BuildDate:"2017-12-07T18:09:07Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:23:29Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Which chart:

mongodb-replicaset version 3.0.0

What happened:

$ helm install stable/mongodb-replicaset
> Error: error validating "": error validating data: found invalid field args for v1.ExecAction

What you expected to happen:

Chart successfully installs

How to reproduce it (as minimally and precisely as possible):

$ helm install stable/mongodb-replicaset

Anything else we need to know:

Also downloaded the values.yaml file, uncommented resources section, and ran

$ helm install -f values.yaml stable/mongodb-replicaset

Still encountered the same problem.

@unguiculus

scottcrespo avatar Apr 04 '18 17:04 scottcrespo

The chart installed and tests ran successfully on our CI. I also run it without any problems on my cluster. These clusters have 1.9.x and Helm 2.8.2. Maybe it's related to your Helm or Kubernetes version. I'm kind of clueless from looking at the manifest.

Do you have any idea?

unguiculus avatar Apr 07 '18 16:04 unguiculus

/assign

unguiculus avatar Apr 07 '18 16:04 unguiculus

I have the same problem when using helm 2.7.2, works fine with 2.8.2

rodcloutier avatar Apr 10 '18 15:04 rodcloutier

Same problem when using Kubernetes 1.8.2 and Helm 2.7.2

zhaoshan86 avatar Apr 13 '18 01:04 zhaoshan86

I have the same problems uing helm 2.7.0 and Kubernetes 1.9.3. Is there any work around to fix that?

JennyLi90 avatar Apr 13 '18 05:04 JennyLi90

This might be due to #3331 which was necessary for Kubernetes 1.10 compatibility.

I guess there are only two options: Use an older version of the chart or upgrade Helm. I would definitely recommend the latter if possible.

cc @mattfarina

unguiculus avatar Apr 13 '18 17:04 unguiculus

Hi @unguiculus ,I found that a property called "args" is used in livenessProbe of mongo container. You can see it in the picture below:

image

I checked api-reference, "args" is not supported in version 1.8, 1.9 and 1.10. After I removed "args", the chart works fine in kubernetes 1.8 and helm 2.7.2 .

image

I think maybe higher version helm can ignore properties not supported when generating yaml files. But you still should remove "args" appear in livenessProbe and readinessProbe.

zhaoshan86 avatar Apr 19 '18 03:04 zhaoshan86

I was wrong in my above comment. Anyways, the issue was fixed in #5008.

unguiculus avatar Apr 19 '18 20:04 unguiculus