argo-workflows icon indicating copy to clipboard operation
argo-workflows copied to clipboard

UI returns 500 on WorkflowTemplates tap if one WorkflowTemplate is invalid

Open nice-pink opened this issue 2 years ago • 4 comments

Checklist

  • [x] Double-checked my configuration.
  • [x] Tested using the latest version.
  • [x] Used the Emissary executor.

Summary

What happened/what you expected to happen?

I pushed a broken version of a WorkflowTempate to the cluster. Clicking on the WorkflowTemplates tap in the argo-workflows UI returns 500 and I can't see any WorkflowTemplates.

The error message is: "Unsuccessful HTTP response: json: cannot unmarshal object into Go struct field DAGTask.items.spec.templates.dag.tasks.template of type string"

I understand the behavior, it would still be nice to get a list of valid WorkflowTemplates.

What version are you running?

v3.3.8

Diagnostics

Paste the smallest workflow that reproduces the bug. We must be able to run the workflow.

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: check-cond
spec:
  serviceAccountName: workflow
  templates:
    dag:
      tasks:
        - name: print
          template:
            name: go-print
            container:
              image: docker/whalesay:latest
              command: [cowsay]
              args: ["printed"]

Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

nice-pink avatar Aug 08 '22 13:08 nice-pink

I was able to reproduce this and seems like a real bug. (Therefore, removing the "Triage" label.) I did also confirm that it works again if you delete the WorkflowTemplate.

juliev0 avatar Aug 10 '22 20:08 juliev0

any fix? delete does not work either

tooptoop4 avatar Sep 04 '22 22:09 tooptoop4

Unfortunately, there are higher priority items right now. Maybe somebody from the community can pick it up?

juliev0 avatar Sep 05 '22 14:09 juliev0

Work-around: delete the bad workflow template.

alexec avatar Sep 05 '22 20:09 alexec

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.

stale[bot] avatar Oct 01 '22 17:10 stale[bot]

This issue has been closed due to inactivity. Feel free to re-open if you still encounter this issue.

stale[bot] avatar Oct 16 '22 00:10 stale[bot]