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

"Failed to get argo pod logs" is not intuitive #4532

Open
namkyu1999 opened this issue Mar 15, 2024 · 9 comments · May be fixed by #4926
Open

"Failed to get argo pod logs" is not intuitive #4532

namkyu1999 opened this issue Mar 15, 2024 · 9 comments · May be fixed by #4926
Assignees

Comments

@namkyu1999
Copy link
Member

When we initiate the chaos experiment, {"mainLogs":"Failed to get argo pod logs"} is shown when a workflow is not ready. but IMO, for users, this log message is not intuitive so that they cannot know what it mean exactly (because they even don't know how litmus uses argo workflow).

I'm gonna work on this issue and will suggest alternatives.

@lacike200
Copy link

Hello @namkyu1999 this error ("mainLogs":"Failed to get argo pod logs") is exactly what I am getting if I want to run any chaosexperiment, any advice what I am doing wrong? Or maybe where I can find more detailed logs..? First time I am installing and trying Litmus..

@hafeezahmed-hub
Copy link

Hi any updates on this, I have the same issue.

@pratik705
Copy link

I can see "Failed to get argo pod logs" on node drain experiment. Also, the state of the experiment on the UI updates to "completed" whereas the operation is still going on in the cluster.

any update on this?

@namkyu1999
Copy link
Member Author

still in progress 😢

@kwx4957
Copy link
Contributor

kwx4957 commented Sep 18, 2024

can i take this issue?

@namkyu1999
Copy link
Member Author

can i take this issue?

go ahead, @kwx4957

@celinegrn
Copy link

hello, are there any updates?

I still get the same message mainLogs: Failed to get argo pod logs after completing any experiment, even though the main logs are displayed while the chaos experiment is running:

1 mainLogs: W0102 08:07:39.397356       1 client_config.go:552] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
2 2025/01/02 08:07:39 
3
4 ChaosEngine Name : pod-delete-prs65csg
5
6 2025/01/02 08:07:39 Created Resource Details: 
7 {pod-delete-prs65csg litmuschaos.io v1alpha1 ChaosEngine litmus }
8
W0102 08:07:39.430842       1 client_config.go:552] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
9 2025/01/02 08:07:39 Starting Chaos Checker in 1min
10 2025/01/02 08:08:39 Checking if Engine Completed or Stopped
11
12 chaosLogs: [object Object] 

After completion (successful or not), the logs are gone.

@kwx4957
Copy link
Contributor

kwx4957 commented Jan 2, 2025

@celinegrn it’s not merged yet, in reviewing process

i think if you want to get logs after completing experiment, you can remove podGC field in yaml manifest.

In that case, you'll need to delete the experiment pod manually

@Sasi6799
Copy link

Sasi6799 commented Jan 3, 2025

Hi Team,
@kwx4957 I am facing the above issue and able to see the same message mainLogs: Failed to get argo pod logs after completing any experiment. In my case the screen was frozen, and the experiment status was pending for a long time, again when i navigated back to chaos experiments tab then i could see the experiment is completed and on checking the logs i am getting the above error.

Kindly could you guide me on how to remove the podGC from the yaml manifest which u have suggested above, as i am unable to find podGC in my yaml manifest.

Attached the screenshot for reference:
image

Also, could u update once fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Review
Development

Successfully merging a pull request may close this issue.

7 participants