-
Notifications
You must be signed in to change notification settings - Fork 3
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
[UI] Binding to app within service creation fails for some services #289
Comments
This looks like a timeout issue in the UI, because when the service takes too long then the UI will warn you with this error. Possible fixes:
|
At the moment we wait for a service There's a comment in ui code I tried not waiting at all, having a 2 second gap and also waiting for the resource to be returned via the API, and all give the same 404 response to @enrichman Can we add a new Edit: In case someone else picks this up it's in |
As @richard-cox in CLI if no wait is placed in between svc creation and binding, indeed an error appears not finding the svc:
However, please note that in the UI this works for Now, if we add just a couple of seconds in between this works:
|
@richard-cox that's strange because as @mmartin24 tested it should work with just a few seconds wait from the async creation. The service resource should be there and we should be able to bind it. |
@enrichman It seems a bit of a workaround to add a wait, which would be susceptible to cluster performance. Would there be a large impact to adding a |
It is a workaround. The service should be created as soon the This should work:
if not it's strange. You can avoid the wait with a get, to check for the service:
otherwise the most appropriate way on doing this would be probably have a flag to do this in one API request. This would be an enhancement. |
The current flow is synchronous
I tested the above with just waiting for the fetch service to return something. Then also if that state is not-ready. Both still fail. I've created a PR wait for not-ready....and also to then wait 2 seconds. This isn't great, but resolves the issue. Edit - Might be worth noting i'm seeing really slow response times for service related network requests. Could be many things, but warrants some investigation |
Now it behaves differently but still not OK. The service creation with bind usually works fine when the app is freshly deployed but if you delete the service and try to create/bind another service to the same app the action does fail on |
@thehejik from what i can tell this might be an api issue (epinio/epinio#2551). Separately I spotted edit service is broken and will be fixed by #340 |
This looks ok to me.
I checked them first here and rechecked again today with So looks ok in my opinion. @thehejik , ok with closing this issue? |
Describe the bug
On Epinio v1.9.0 when trying to deploy a new service and binding it to an existing app (in one step) over UI the binding fails. The service itself is deployed.
@mmartin24 found out that it depends on used service catalog as it works ok with
postgres
andmongo
but doesn't withredis
,mysql
andrabbitmq
. It seems that more resource hungry services are unable to bind. Also he was unable to reproduce this issue on Epinio v1.8.1.I was unable to reproduce that over CLI when trying emulate the UI by:
To Reproduce
Create
and see errorExpected behavior
The service is created and bound to the app
The text was updated successfully, but these errors were encountered: