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
Autostop builds of dormant workspaces fail if the workspace template includes agents without a
count = data.coder_workspace.me.start_count
field.
This occurs because workspace_dormant is a separate RBAC resource than regular workspaces, and the Provisioner Daemon subject doesn't have permission to create agents on dormant workspaces. It seems that we (incorrectly) assumed that since dormant workspaces can only be stopped, not started, that we would not need to create agents. However, there is nothing in the data model actually preventing the creation of agents on stop builds, so autostops of dormant workspaces can get into a failure loop.
Activity
fix: allow agents to be created on dormant workspaces
fix: allow agents to be created on dormant workspaces (coder#20909)
fix: allow agents to be created on dormant workspaces (#20909)
fix: allow agents to be created on dormant workspaces (#20909)
fix: allow agents to be created on dormant workspaces (#20909)