You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve UX when there is no corresponding provisioner for a workspace/template #15048
Since more and more of our users are using external provisioners and provisioner tags, especially with Organizations, we should explore ways to improve the UX when a provisioner is not running.
Current state
Create/duplicate template
Template Editor
Screen.Recording.2024-10-12.at.8.24.16.AM.mov
Suggestion: "No provisioners are running with the tag provisioner=missing in the data-science org. Learn more about provisioners in the Coder documentation"
Create workspace
Suggestion: "No provisioners are running with the tag provisioner=missing in the data-science org.
Learn more about provisioners in the Coder documentation"
Desired state
Some meaningful and actionable error. One suggestion:
No provisioners are running with the tag provisioner=missing in the data-science org
Learn more about provisioners in the Coder documentation"
Perhaps a custom troubleshooting URL for users, similar to the agent as the organization/template may have internal docs about provisioners work in their organization.
Here are the mockups for the three different pages with the error messages. I marked the changes with comments. What do you think @BrunoQuaresma@bpmct ?
If there are no matching provisioners currently available.
The problem with that approach is that it requires the user to click 'submit' in order to determine if the job can be even accomplished. As far as I can tell, the proposed UX requires that the user is able to know a priori if the job can be actioned with its current set of tags.
The idea is that you can request this endpoint from the frontend to determine whether any provisioners with the required tags were recently seen. If it returns an empty list, then you can display the error. If it returns any elements at all, then we have confidence that at least one provisioner can accept the and we can therefore allow the user to proceed with the flow.
For provisioning jobs that are already in progress, where we currently display a loading screen, you might have to poll this endpoint occasionally to determine if the error is still applicable. As an optimisation, we could later do this over websocket if we find it necessary.
The definition of "recently seen" would be abstracted by the backend. It would be based on some measure of the heartbeat of the provisioners. To start with probably simply the last seen value as per the database.
Any thoughts or considerations?
I'm building this already, because even if we change the contract there is already some backend work that can be done.
Activity
bpmct commentedon Oct 12, 2024
cc @chrifro @Kira-Pilot
matifali commentedon Oct 12, 2024
Related to #12331
chrifro commentedon Oct 23, 2024
Related/duplicated issue #14845
chrifro commentedon Oct 23, 2024
Here are the mockups for the three different pages with the error messages. I marked the changes with comments. What do you think @BrunoQuaresma @bpmct ?
chrifro commentedon Oct 24, 2024
Ben has approved the new error states. They will look like this



The exact changes are marked in Figma.
SasSwart commentedon Nov 4, 2024
My current understanding of this issue yields the following backend requirements:
Each of these steps will require attention paid to tests, logging, documentation, etc.
1 remaining item
SasSwart commentedon Nov 5, 2024
@johnstcn Makes sense. Instead of a preflight api call, I was thinking of making the current call return this:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
If there are no matching provisioners currently available.
johnstcn commentedon Nov 5, 2024
The problem with that approach is that it requires the user to click 'submit' in order to determine if the job can be even accomplished. As far as I can tell, the proposed UX requires that the user is able to know a priori if the job can be actioned with its current set of tags.
SasSwart commentedon Nov 7, 2024
Proposed API:
The idea is that you can request this endpoint from the frontend to determine whether any provisioners with the required tags were recently seen. If it returns an empty list, then you can display the error. If it returns any elements at all, then we have confidence that at least one provisioner can accept the and we can therefore allow the user to proceed with the flow.
For provisioning jobs that are already in progress, where we currently display a loading screen, you might have to poll this endpoint occasionally to determine if the error is still applicable. As an optimisation, we could later do this over websocket if we find it necessary.
The definition of "recently seen" would be abstracted by the backend. It would be based on some measure of the heartbeat of the provisioners. To start with probably simply the last seen value as per the database.
Any thoughts or considerations?
I'm building this already, because even if we change the contract there is already some backend work that can be done.
cc @BrunoQuaresma @johnstcn
johnstcn commentedon Nov 7, 2024
We could alternatively piggy-back on the existing provisioner daemon endpoint either and allow filtering by tags?
BrunoQuaresma commentedon Nov 8, 2024
Question: When creating a template, how do I know which tags should I use to get this data?
johnstcn commentedon Nov 8, 2024
You actually don't! I'm working on this right now #15087
feat(coderd): update API to allow filtering provisioner daemons by ta…
bpmct commentedon Dec 2, 2024
I see we did this on template-level for v2.18. Looks super nice! @SasSwart
Any plans for workspace-level?
johnstcn commentedon Dec 2, 2024
@bpmct Workspace-level is in progress here:
feat(site): add a provisioner warning to workspace builds (coder#15686)
feat(site): add a provisioner warning to workspace builds (#15686)