-
Notifications
You must be signed in to change notification settings - Fork 66
Error in OpenShift Online deployment not reported to user in OpenShift.io if quota exceeded #2629
Comments
This is due to the first 2 apps using up all the quota and not being shut down. We might need to tell them that there quota is full and they need to turn off ones they are not using. This gets to be very bad if they "remove" the app from OSIO but the children are not removed from OSO. They continue to run but now the user can't see them in OSIO. |
Workaround is to reset env on profile page. |
@catrobson once this is confirmed by SD team, we will need some direction in what and how to tell the user. |
@joshuawilson we have a design to warn the user and not allow them to add more deployments (applications) here: https://redhat.invisionapp.com/share/PMDCE3G94 This was not carried into the launch wizard design since the functionality wasn't prioritized for implementation, but we could easily do the same thing in the new visual design. |
I think this also relates to deleting a space, since we leave stuff in OSO but the user might not realize that and then question why they are hitting limits. |
Is there a way in the launcher flow to check for resources available and warn user if its getting "crowded" ? |
@maxandersen We had a solution (linked above) that we had removed this from the design process for launcher since there was no backend support for this capability. If we can support it, we can add that element back into the design for launcher. Please let me know and I'll get designs updated accordingly. |
I think we need to prioritze this. If it weren't for the Env Reset this might be a SEV1. |
After speaking with @joshuawilson we decided this was bigger than just the launcher - this is about informing users throughout the system about quota limitations. I have created the following UXD story to capture the work needed around this: fabric8-ui/fabric8-ux#932 |
The Deployment API could or should provide quota information to inform any component that needs to know if the quota has been maxed out. |
The Deployments API can be queried for quotas of: per environment (run, stage) |
^ for ease of reference: This links to the function that returns the used vs. available (quota) memory for an environment. The other relevant functions are adjacent, within that same class. Worth mentioning that this service was designed with a poll cycle and a push model for subscribers, so Observables returned by those functions do not necessarily issue an immediate HTTP request. If this is going to be reused for other parts of the UI then we may need to make some modifications or expose another function to get access to the same data with an on-demand pulling sort of model, depending on what kind of new UX is going to consume this outside of the Deployments page. |
From March 19 platform meeting, we agreed that:
|
If you want to use the backend API directly to get environment quota/usage, here's an example:
|
I missed the meeting due to a conflict on this point: Will this delete API remove the corresponding resources in OSO (build configs, deployment configs, etc)? Thx! |
Yes, this is the intent. |
Perfect! We will want to make use of that in automated tests. |
I wanted to add a couple of additional data points to this issue as the patterns in which quota-related errors are seen are consistent:
The error is also reported in the Jenkins build log and the Jenkins pod :
|
@ldimaggi @maxandersen @joshuawilson @aslakknutsen @dgutride @jiekang I'm looking for some thoughts/guidance on my requirements doc for the resource quota limits story (link), I have the beginning of a design plan mapped out and want to make sure I'm not missing anything. Please check it out when you get a chance and let me know how it looks! https://docs.google.com/document/d/1zbLVYu5D2_v8jr46_NHW47ILM7e1E9GTulLYlcW2f5c/edit?usp=sharing |
I'm hopeful that between the Launch and Platform teams we can fix this. |
@joshua @mceledonia has the designs for the new starting points we discussed for this issue: https://redhat.invisionapp.com/share/CTGJ6F7V4K9 Can we split this out into a story with two tasks (Launcher and Deployments), and mark that new story as P0 and target it for before Summit? Then the remainder of the work in the original design, with the slide-out resource usage panel and notifications system, can become future work items for after Summit with reduced severity. Those future work things will not be implementable in the next week because they require a fair amount of UI work as well as significant backend support that does not yet exist. |
@andrewazores yes, do it. Please. |
I have created a new user story at #3344 to track the work targeted for before Summit and marked that as P0, removing the P0 on this issue. |
related to openshiftio/openshift.io#2629 related to openshiftio/openshift.io#2529
related to openshiftio/openshift.io#2629 related to openshiftio/openshift.io#2529
related to openshiftio/openshift.io#2629 related to openshiftio/openshift.io#2529
related to openshiftio/openshift.io#2629 related to openshiftio/openshift.io#2529
related to openshiftio/openshift.io#2629 related to openshiftio/openshift.io#2529
related to openshiftio/openshift.io#2629 related to openshiftio/openshift.io#2529
Not a bug. Rather missing functionality. |
Steps to recreate:
Can we add some notification to the user at the point in time when the attempt to deploy to stage or run fails? The error is available in the events for the endpoint's pod in OSO:
The text was updated successfully, but these errors were encountered: