leveryd-asm / asm

Scanner platform based on Kubernetes and Argo-Workflow 基于k8s和argo工作流的扫描器
https://leveryd-asm.github.io/asm-document
MIT License
106 stars 6 forks source link

删除任务失败 #51

Closed leveryd closed 1 year ago

leveryd commented 1 year ago

背景

在argo-workflow控制台上删除任务后,任务实际没有删除。

通过argo cli也可以复现

image
leveryd commented 1 year ago
[root@192 ~]# kubectl describe workflow cron-crawl-scan-org-all-hn2p8 -n asm
...
  Warning  WorkflowNodeFailed     5m38s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(7:7)[0].call-get-file-line-from-index: Error (exit code 1): artifact file failed to load: The specified key does not exist.
  Warning  WorkflowNodeFailed     5m38s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(7:7): child 'cron-crawl-scan-org-all-hn2p8-1230773463' failed
  Warning  WorkflowNodeFailed     5m38s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(6:6)[0].call-get-file-line-from-index: Error (exit code 1): artifact file failed to load: The specified key does not exist.
  Warning  WorkflowNodeFailed     5m38s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(7:7)[0]: child 'cron-crawl-scan-org-all-hn2p8-1230773463' failed
  Warning  WorkflowNodeFailed     5m38s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(6:6)[0]: child 'cron-crawl-scan-org-all-hn2p8-2723081051' failed
  Warning  WorkflowNodeFailed     5m38s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(6:6): child 'cron-crawl-scan-org-all-hn2p8-2723081051' failed
  Warning  WorkflowNodeFailed     5m28s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(8:8)[0].call-get-file-line-from-index: Error (exit code 1): artifact file failed to load: The specified key does not exist.
  Warning  WorkflowNodeFailed     5m28s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(9:9)[0]: child 'cron-crawl-scan-org-all-hn2p8-558549047' failed
  Warning  WorkflowNodeFailed     5m28s                   workflow-controller  Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(9:9)[0].call-get-file-line-from-index: Error (exit code 1): artifact file failed to load: The specified key does not exist.
  Normal   WorkflowNodeSucceeded  3m26s (x25 over 6m53s)  workflow-controller  (combined from similar events): Succeeded node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(5:5)[1].call-katana-binary-from-one-url
  Normal   WorkflowNodeRunning    53s (x228 over 7m3s)    workflow-controller  (combined from similar events): Running node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(69:69)[0].call-get-file-line-from-index: Error (exit code 1): artifact file failed to load: The specified key does not exist.
  Warning  WorkflowNodeFailed     53s (x186 over 5m28s)   workflow-controller  (combined from similar events): Failed node cron-crawl-scan-org-all-hn2p8[2].call-katana-from-file-index(69:69)[0].call-get-file-line-from-index: Error (exit code 1): artifact file failed to load: The specified key does not exist.

怀疑是 artifacts gc策略的原因。将策略配置删除后,就没有上面的现象。