Skip to content
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

StorageError sometimes logged when deleting a DevWorkspace #878

Closed
Tracked by #21503
amisevsk opened this issue Jun 28, 2022 · 1 comment
Closed
Tracked by #21503

StorageError sometimes logged when deleting a DevWorkspace #878

amisevsk opened this issue Jun 28, 2022 · 1 comment
Milestone

Comments

@amisevsk
Copy link
Collaborator

Description

I've noticed on some occasions that DWO logs an error like

# Note: reformatted to yaml from the JSON for readability
level: error
ts: 1656381116.590004
logger: controller-runtime.manager.controller.devworkspace
msg: Reconciler error
reconciler group: workspace.devfile.io
reconciler kind: DevWorkspace
name: theia-next-2
namespace: dw
error: 'Operation cannot be fulfilled on devworkspaces.workspace.devfile.io "theia-next-2":
  StorageError: invalid object, Code: 4, Key: /registry/workspace.devfile.io/devworkspaces/dw/theia-next-2,
  ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition:
  8d45666d-a151-4d72-8f92-0521641d25a7, UID in object meta: '
stacktrace: '[...]'

immediately after the PVC clean up successful; clearing finalizer message

How To Reproduce

Occurs sometimes after deleting a DevWorkspace

Expected behavior

Ideally error should not be logged as it may be confusing (and is not really an error case -- the workspace is gone so we don't care about its status)

Additional context

@amisevsk
Copy link
Collaborator Author

amisevsk commented Jul 5, 2022

Should be fixed by #879, needs to be reopened if not.

@amisevsk amisevsk closed this as completed Jul 5, 2022
@amisevsk amisevsk added this to the v0.15.x milestone Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant