Skip to content

Make use of final_backup_complete workspace condition #12387

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

Closed
svenefftinge opened this issue Aug 25, 2022 · 8 comments
Closed

Make use of final_backup_complete workspace condition #12387

svenefftinge opened this issue Aug 25, 2022 · 8 comments

Comments

@svenefftinge
Copy link
Member

As a follow-up to #11453 this is about introducing a clear signal from ws-manager that a workspace hasn't gotten any backup. This is important information to signal to users, because such workspaces are broken and we should also forbid starting them (resulting in):
Screenshot 2022-08-25 at 14 14 39

@svenefftinge
Copy link
Member Author

@sagor999 Is the final_backup_complete WorkspaceCondition always sent when a backup happened? I.e. can we rely on treating workspace instances for which we never received this condition to have no backup?

@sagor999
Copy link
Contributor

Timely issue, thanks Sven!
I had a similar discussion with @geropl about this and we had a plan to introduce condition hasBackup to signal when backup was created.
I was going to work on this today so this is a great reminder to implement this. 😀
More info to follow later today.

@sagor999
Copy link
Contributor

@svenefftinge you are right, we can totally use final_backup_complete condition.
This PR #12408 improved reliability of that condition by making sure it is set to true correctly.
So once that is merged, server instead of this code:

const hasValidBackup = pastInstances.some(
(i) => !!i.status && !!i.status.conditions && !i.status.conditions.failed,
);

Should use something like this:

const hasValidBackup = pastInstances.some( 
     (i) => !!i.status && !!i.status.conditions && i.status.conditions.final_backup_complete, 
 ); 

We should probably either use it only for workspaces created after X timestamp (once #12408 is deployed) or maybe fix DB to ensure final_backup_complete is set correctly for old workspaces? Not sure which approach would be better. Or if there is a better alternative.

@sagor999 sagor999 removed their assignment Aug 25, 2022
@sagor999 sagor999 moved this from In Progress to Awaiting Deployment in 🌌 Workspace Team Aug 25, 2022
@geropl
Copy link
Member

geropl commented Aug 26, 2022

Thank you @sagor999 for letting us now about #12408! From the data I saw I thought it has already been abandoned - good to have it back! 🧘

@svenefftinge svenefftinge changed the title Introduce noBackup workspace condition Make use of final_backup_complete workspace condition Aug 26, 2022
@jenting jenting moved this from Awaiting Deployment to In Validation in 🌌 Workspace Team Sep 8, 2022
@geropl geropl moved this to Scheduled in 🍎 WebApp Team Sep 9, 2022
@kylos101
Copy link
Contributor

@sagor999 looks like webapp has related work Scheduled for this issue, let's leave this In-Validation until that is deployed. 👍

@geropl 🙏 thank you for Scheduling related work! As an FYI, we're tracking this in our In-Validation column, so we'll bump into and check/review it weekly.

@jenting
Copy link
Contributor

jenting commented Sep 16, 2022

Assign to @sagor999 to validate it 🙇‍♂️

@sagor999 sagor999 moved this from In Validation to Done in 🌌 Workspace Team Sep 27, 2022
@sagor999
Copy link
Contributor

I am marking workspace task as Done, since workspace part is complete at this point.

@sagor999 sagor999 removed their assignment Sep 27, 2022
@stale
Copy link

stale bot commented Jan 2, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Jan 2, 2023
@jldec jldec removed the status in 🍎 WebApp Team Jan 9, 2023
@stale stale bot closed this as completed Jun 12, 2023
@github-project-automation github-project-automation bot moved this from Done to Awaiting Deployment in 🌌 Workspace Team Jun 12, 2023
@github-project-automation github-project-automation bot moved this to In Validation in 🍎 WebApp Team Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Validation
Status: Awaiting Deployment
Development

No branches or pull requests

5 participants