Workspace Failing to Start Due To 'metadata.annotations' Too Long
Open
@jimmybrancaccio is already working on this.
Since Jul 25, 2022.
meta: never-stale
team: workspace
type: bug
- Dominant language
- TypeScript
- Stars
- 13.8k
- Forks
- 1.4k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 5
Description
Bug description
I received a support ticket today where a customer was unable to start their workspace. After digging into the logs it seems the workspace cannot start due to metadata.annotations being too long.
cannot mark workspace bf938941-a5a5-43e1-aad9-a1af9836c11a with +gitpod/explicitFail:
github.com/gitpod-io/gitpod/ws-manager/pkg/manager.(*Manager).markWorkspace
github.com/gitpod-io/gitpod/ws-manager/pkg/manager/annotations.go:139
- Pod "ws-bf938941-a5a5-43e1-aad9-a1af9836c11a" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Steps to reproduce
This may be a little difficult, but what I would suggest:
- Create a workspace but then stop it.
- Some how manually manipulate the
metadata.annotationsof the pod so that it's more than 262144 bytes. - Attempt to spin up the workspace again.
- Observe in logs that you get an error about the
metadata.annotationsbeing too long.
Workspace affected
No response
Expected behavior
I am not sure what error message is being displayed to the customer but I can attempt to find this out within the Front conversation.
Depending on the error message or error displayed we should provide more information on why that happened and the next steps a customer can take.
Example repository
No response
Anything else?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.