epinio: Cannot update source from a failed app
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Attempting to update a source from a failed app is not possible
Expected Behavior
It should be possible to source a failed up and have it into a running state
Steps To Reproduce
- Install latest
epinio-dev
commit (Currently: 23d440198092d8ac60089a7d176e041f2b9b68dd (HEAD -> epinio-dev, origin/epinio-dev) ) - Deploy a faulty app (ie folder with images)
- Try to update to a valid app (ie: source type = file with sample-app.tar.gz)
Observe error:
Environment
- OS: Linux
- Architecture:amd64
- Epinio Version: v1.8.0-20-g912b8964
- Cluster:
- Provider: k3d
- Options:1 node
- Kubernetes Version: v1.25.4+k3s1
Logs
No response
Anything else?
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 26 (22 by maintainers)
@enrichman, I summarize here the reproduction steps for cli error and the later working part
fail: paketo-buildpacks/procfile@5.6.3
):-i 1
:-i 1
Now it is ok:
If this does turn out to be more UI related it might be worth pausing until both https://github.com/rancher/dashboard/pull/8797 and https://github.com/rancher/dashboard/pull/8672 are merged. The first in particular reworks a lot.
@torchiaf @richard-cox
Regarding this issue we need to change the behavior of the
update
endpoint, and the client will need to handle it with a separate API call. This will break a couple of things that will need to be updated.We are going to postpone this for the
1.10.0
since it’s not critical, or maybe we can think about a1.9.1
with just some fixes.Oh! Create and get an error back when it exists. Ok, then the flow as shown makes sense.
https://github.com/epinio/epinio/issues/2363#issuecomment-1576842871
@richard-cox, it does not necessarily need to come from UI; it happens when cli updates from the faulty app with the instance count. Having said this the UI shows the error described initially (unable to update if app is faulty). Let’s check if the UI remains affected after the BE team takes a look.
Note: I made sure this only occurs when the app was in previous faulty state. If you deploy a healthy app with
-i 1
it works.Ah, ok. I didn’t understood that this was happening also with the CLI.
There is probably something weird with the parameters validation. @mmartin24 let’s move this on the BE then. Thank you all.
Thanks @torchiaf for the comment. I checked it and I could reproduce what you pointed out in cli. I asked in slack if we could move the item to BE, but the UI flow seemed unclear.
@enrichman the flow in the UI was basically this:
An error appears while doing this
I am not sure if this clarifies the question about the flow followed