-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cannot view logs in UI for multi-template workflows #6865
Comments
The bug is here: argo-workflows/ui/src/app/workflows/components/workflow-logs-viewer/workflow-logs-viewer.tsx Line 26 in 994ff74
It assumes that the pod's name is the same as the node ID, but this is no longer true in v3.2. I think we need to replicate this. logic: argo-workflows/workflow/util/pod_name.go Line 15 in e5b131a
Would you be interested in providing a fix? Maybe @JPZ13 can help |
@sampierson happy to help or take on the issue once I get back from my trip tomorrow. Let me know! |
I have assigned to you. @sarabala1979 this will be critical issue for most users, so we should look to get into v3.2.0 GA. |
Workaround: Using |
@JPZ13 no hurry! I have an easy workaround now. |
@sarabala1979 can I ask you or @whynowy to fix this issue as I think that @JPZ13 is too busy. |
Sorry @alexec. I got tied up with some of the Kubecon travel |
…j#6925) Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
Summary
When attempting to view the log for a workflow with multiple templates, you are presented with a blank log.
What happened/what you expected to happen?
If I run the "Quick Start" workflow at https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/hello-world.yaml, I can view the container log through the argo UI.
However if I use a workflow with multiple templates, like the first example from https://argoproj.github.io/argo-workflows/workflow-templates/, when I attempt to view the log for the "hello" step, I get a blank log.
Digging into the browser console I see that for workflow
steps-grsvt
nodehello
the UI is attempting to GET the log fromhttps://<hostname>/api/v1/workflows/argo/steps-grsvt/log?logOptions.container=main&grep=&logOptions.follow=true&podName=steps-grsvt-1882255119
. Experimenting withcurl
on the command line, I can retrieve the log if I change thepodName
in the URL fromsteps-grsvt-1882255119
tosteps-grsvt-whalesay-1882255119
:What version of Argo Workflows are you running?
3.1.12
Diagnostics
Either a workflow that reproduces the bug, or paste you whole workflow YAML, including status, something like:
kubectl get workflow steps-grsvt -o yaml
What Kubernetes provider are you using?
GKE v1.19.13-gke.701
What executor are you running? Docker/K8SAPI/Kubelet/PNS/Emissary:
I'm not sure. Whatever the default is.
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: