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

how to solve Kube exec format Error in litmus-chaos #123

Open
AnnaMohan opened this issue May 24, 2022 · 5 comments
Open

how to solve Kube exec format Error in litmus-chaos #123

AnnaMohan opened this issue May 24, 2022 · 5 comments

Comments

@AnnaMohan
Copy link

W0524 05:21:20.698096 1 client_config.go:552] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
2022/05/24 05:21:20

ChaosEngine Name : sample-exec-chaos-25ezhswb

2022/05/24 05:21:20 Created Resource Details:
{sample-exec-chaos-25ezhswb litmuschaos.io v1alpha1 ChaosEngine litmus }
W0524 05:21:20.752166 1 client_config.go:552] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
2022/05/24 05:21:20 Starting Chaos Checker in 1min
2022/05/24 05:22:20 Checking if Engine Completed or Stopped
2022/05/24 05:22:20 [*] ENGINE COMPLETED

W0524 05:21:21.878291 1 client_config.go:541] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time='2022-05-24T05:21:21Z' level=info msg='Experiments details are as follows' appNs=default appKind=deployment Service Account Name=litmus-admin Engine Namespace=litmus Experiments List='[sample-exec-chaos]' Engine Name=sample-exec-chaos-25ezhswb appLabels='app=nginx'
time='2022-05-24T05:21:22Z' level=info msg='Getting the ENV Variables'
time='2022-05-24T05:21:22Z' level=info msg='Preparing to run Chaos Experiment: sample-exec-chaos'
time='2022-05-24T05:21:22Z' level=info msg='Started Chaos Experiment Name: sample-exec-chaos, with Job Name: sample-exec-chaos-76wuma'
time='2022-05-24T05:21:42Z' level=info msg='Chaos Pod Completed, Experiment Name: sample-exec-chaos, with Job Name: sample-exec-chaos-76wuma'
time='2022-05-24T05:21:42Z' level=error msg='unable to Update ChaosEngine Status, error: unable to get ChaosResult name: sample-exec-chaos-25ezhswb-sample-exec-chaos in namespace: litmus, error: chaosresults.litmuschaos.io 'sample-exec-chaos-25ezhswb-sample-exec-chaos' not found'
time='2022-05-24T05:21:42Z' level=info msg='Chaos Engine has been updated with result, Experiment Name: sample-exec-chaos'
time='2022-05-24T05:21:42Z' level=info msg='[skip]: skipping the job deletion as jobCleanUpPolicy is set to {retain}'
time=2022-05-24 05:21:27,356 level=INFO msg=Experiment Name: chaos
time=2022-05-24 05:21:27,357 level=INFO msg=[PreReq]: Initialise Chaos Variables for the sample-exec-chaos experiment
time=2022-05-24 05:21:27,357 level=INFO msg=[PreReq]: Updating the chaos result of sample-exec-chaos experiment (SOT)
time=2022-05-24 05:21:27,504 level=ERROR msg=Unable to Create the Chaos Result, err: [Errno 8] Exec format error: 'kubectl'

Failing to run the workflow because of this kube exec format error i have provided the logs above for the same

@oumkale @ksatchit

@oumkale
Copy link
Member

oumkale commented May 24, 2022

Hi @AnnaMohan, Will you please provide background details? Is this generated by python-sdk code? Provide details were you are testing this

@AnnaMohan
Copy link
Author

@oumkale Yes ,iam trying to create sample custom chaos experiments using litmus python SDK

@oumkale
Copy link
Member

oumkale commented May 24, 2022

Create issue in : https://github.com/litmuschaos/litmus-python

@AnnaMohan
Copy link
Author

i added there @oumkale waiting for the response there

@oumkale
Copy link
Member

oumkale commented May 26, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants