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
$ kubectl logs <failedpodname> -c wait
time="2018-09-04T13:31:28Z" level=info msg="Creating a docker executor"
time="2018-09-04T13:31:28Z" level=info msg="Executor (version: v2.2.0, build_date: 2018-08-30T08:52:54Z) initialized with template:\narchiveLocation: {}\ninputs: {}\nmetadata:\n labels:\n app: argo-chainer-mnist\nname: evaluation\noutputs: {}\nscript:\n command:\n - python3\n image: chainer/chainer:v4.4.0-python3\n name: \"\"\n resources: {}\n source: |\n import json, os, operator, sys\n results = {}\n d = \"/mnt/vol\"\n for p in [p for p in os.listdir(d) if os.path.isdir(os.path.join(d, p))]:\n with open(\"%s/%s/log\" % (d, p)) as fp:\n array = json.load(fp)\n results[p] = array[-1][\"main/accuracy\"]\n name = max(results.items(), key=operator.itemgetter(1))[0]\n print(\"%s performed the most!\" % name)\n sys.exit(0)\n volumeMounts:\n - mountPath: /mnt/vol\n name: workdir\n"
time="2018-09-04T13:31:28Z" level=info msg="Waiting on main container"
time="2018-09-04T13:31:28Z" level=warning msg="Failed to get pod 'argo-chainer-mnist-tmmsh-1836238827': pods \"argo-chainer-mnist-tmmsh-1836238827\" is forbidden: User \"system:serviceaccount:default:default\" cannot get pods in the namespace \"default\""
time="2018-09-04T13:31:28Z" level=info msg="No sidecars"
time="2018-09-04T13:31:28Z" level=info msg="No output artifacts"
time="2018-09-04T13:31:28Z" level=info msg="No output parameters"
time="2018-09-04T13:31:28Z" level=info msg="Capturing script output"
time="2018-09-04T13:31:28Z" level=warning msg="Failed to get pod 'argo-chainer-mnist-tmmsh-1836238827': pods \"argo-chainer-mnist-tmmsh-1836238827\" is forbidden: User \"system:serviceaccount:default:default\" cannot get pods in the namespace \"default\""
time="2018-09-04T13:31:28Z" level=info msg="Alloc=3248 TotalAlloc=9597 Sys=8774 NumGC=3 Goroutines=5"
time="2018-09-04T13:31:28Z" level=fatal msg="pods \"argo-chainer-mnist-tmmsh-1836238827\" is forbidden: User \"system:serviceaccount:default:default\" cannot get pods in the namespace \"default\"\ngithub.com/argoproj/argo/errors.Wrap\n\t/root/go/src/github.com/argoproj/argo/errors/errors.go:87\ngithub.com/argoproj/argo/errors.InternalWrapError\n\t/root/go/src/github.com/argoproj/argo/errors/errors.go:70\ngithub.com/argoproj/argo/workflow/executor.(*WorkflowExecutor).getPod\n\t/root/go/src/github.com/argoproj/argo/workflow/executor/executor.go:504\ngithub.com/argoproj/argo/workflow/executor.(*WorkflowExecutor).GetMainContainerStatus\n\t/root/go/src/github.com/argoproj/argo/workflow/executor/executor.go:546\ngithub.com/argoproj/argo/workflow/executor.(*WorkflowExecutor).GetMainContainerID\n\t/root/go/src/github.com/argoproj/argo/workflow/executor/executor.go:563\ngithub.com/argoproj/argo/workflow/executor.(*WorkflowExecutor).CaptureScriptResult\n\t/root/go/src/github.com/argoproj/argo/workflow/executor/executor.go:580\ngithub.com/argoproj/argo/cmd/argoexec/commands.waitContainer\n\t/root/go/src/github.com/argoproj/argo/cmd/argoexec/commands/wait.go:55\ngithub.com/argoproj/argo/cmd/argoexec/commands.glob..func4\n\t/root/go/src/github.com/argoproj/argo/cmd/argoexec/commands/wait.go:19\ngithub.com/argoproj/argo/vendor/github.com/spf13/cobra.(*Command).execute\n\t/root/go/src/github.com/argoproj/argo/vendor/github.com/spf13/cobra/command.go:766\ngithub.com/argoproj/argo/vendor/github.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/src/github.com/argoproj/argo/vendor/github.com/spf13/cobra/command.go:852\ngithub.com/argoproj/argo/vendor/github.com/spf13/cobra.(*Command).Execute\n\t/root/go/src/github.com/argoproj/argo/vendor/github.com/spf13/cobra/command.go:800\nmain.main\n\t/root/go/src/github.com/argoproj/argo/cmd/argoexec/main.go:15\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:198\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:2361"
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is this a BUG REPORT or FEATURE REQUEST?:
BUG REPORT
What happened:
The failure reason of wait container
failed to save outputs: verify serviceaccount default:default has necessary privileges
is confusing. It says as if I tried to save outputs even if I don't define any outputs.https://github.com/argoproj/argo/blob/master/workflow/controller/operator.go#L723
I took a while to solve this issue because I thought I had to explicitly define no output in the manifest.
What you expected to happen:
The failure reason should not be confusing.
How to reproduce it (as minimally and precisely as possible):
Run argo workflow without setting up permissions by
kubectl create rolebinding default-admin --clusterrole=admin --serviceaccount=default:default
.Anything else we need to know?:
My minikube started with the following options.
Environment:
Other debugging information (if applicable):
The text was updated successfully, but these errors were encountered: