-
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
Artifact in workflow diagram not working when workflow is archived and deleted from cluster #12331
Comments
I may be able to assist here. I'm looking at a potentially related issue. @agilgur5 can you point me in the right direction for enabling persistence when developing locally? |
|
Thanks @Joibel, I'm refering to workflow persistence. I'm running the TestArtifactServer test suite and the logs are indicating
Minio working just fine. |
I think I resolved this - need to supply a PROFILE which is not "minimal" in make. As usual, I skipped right over this in the docs: https://argoproj.github.io/argo-workflows/running-locally/#developing-locally |
Yeah, sorry, I meant you get the basics for storage and the config is there for artifacts - I was hoping that would be enough to show you the way forward. If you'd like to contribute some developer documentation about things like this that would be great. |
Based on the above, I'm assuming that this issue is specific to the workflow archive. This is likely related to changes I made in #11947. Here's my hypothesis: It appears that the workflow archive is running too early. In
The The solution may be to simply add a check in the event listener filter function to trigger when
I'm going to try and get a failing test case for this & see if the above works. @juliev0 tagging you here for feedback & thoughts. EDIT 1 This change had no affect for this particular issue, although I still think it might be important. EDIT 2 Although the details of the solution above aren't quite right, the idea that the workflow archive was running too early was correct. I have fixed this issue in #12402 |
I have the issue reproduced and I am working towards a solution. |
@dmarquez-splunk I'm getting the following link for the artifact icon:
This differs from what you have above:
Not sure why mine (same workflow as what you posted) is different in terms of Can you confirm that's what you're seeing? |
This particular issue seems to be related to UI only. The ArtifactPanel component is not being passed the |
I've confirmed the fix is the missing |
…xes an issue where the UI returns an Internal Server Error. Fixes argoproj#12331 Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
…xes an issue where the UI returns an Internal Server Error. Fixes argoproj#12331 Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
…chivedWorkflow for clarity. Addresses PR comment. Fixes argoproj#12331 Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
…rgoproj#12331 (argoproj#12397) Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
…rgoproj#12331 (argoproj#12397) Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
…rgoproj#12331 (argoproj#12397) Signed-off-by: Garett MacGowan <garettsoftware@gmail.com>
…rgoproj#12331 (argoproj#12397) Signed-off-by: Garett MacGowan <garettsoftware@gmail.com> Signed-off-by: Isitha Subasinghe <isubasinghe@student.unimelb.edu.au>
Pre-requisites
:latest
What happened/what did you expect to happen?
Artifact URLs used in the workflow diagram's artifact icons seem to no longer work once a workflow is archived and deleted from the cluster (Returns Internal Server Error). However, if you click on the node from which the artifact is output from and attempt to download the artifact from the right-hand bar's input/output's menu then the artifact successfully downloads.
Difference in the 2 links:
link from workflow diagram's artifact icon:
https://<argo-host>/artifact-files/<namespace>/workflows/<workflow-name>/<workflow-name>-1855980756/outputs/result_html
link from node's input/output menu:
https://<argo-host>/artifact-files/<namespace>/archived-workflows/f7655950-a426-4fb3-a82d-eb1f53dfb948/<workflow-name>-1855980756/outputs/result_html
As you can see the link in the workflow diagram's artifact icon is still trying to reference the worklow as a non-archived workflow. Whereas the link in the node's input/output menu is now referencing it as an archived-workflow in the API. I suspect this is causing the argo-server to return Internal Server Error when clicking on the link from the workflow diagram's artifact icon.
NOTE: In order to reproduce the workflow and its artifacts must be archived AND deleted from the cluster in order to reproduce
Version
v3.5.2
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Logs from the workflow controller
Logs from in your workflow's wait container
The text was updated successfully, but these errors were encountered: