Skip to content

Allow to take and then check snapshot status when using pvc #14374

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
wants to merge 4 commits into from

Conversation

sagor999
Copy link
Contributor

@sagor999 sagor999 commented Nov 2, 2022

Description

First part of allowing to take a workspace snapshot that uses PVC.
Second part to make it actually work is for webapp to implement necessary changes.

Related Issue(s)

Related #14159

How to test

Release Notes

none

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@jenting
Copy link
Contributor

jenting commented Nov 3, 2022

@sagor999
Can we use gp snapshot to do the test?
Or do we need the WebApp change to test against this PR?

@sagor999
Copy link
Contributor Author

sagor999 commented Nov 3, 2022

@jenting good idea. I think we can test snapshot creation for sure, not sure if restore would work out of the box or would require some tweaking on webapp side.
will test it tomorrow.

@sagor999
Copy link
Contributor Author

sagor999 commented Nov 3, 2022

@jenting gp snapshot works by calling takeSnapshot on the server (webapp). Which makes sense, so that it follows same code path. But that also means that until webapp implements their part, we cannot directly call TakeSnapshot on wsman via gp snapshot.

@sagor999 sagor999 force-pushed the pavel/pvcsnapshot branch 2 times, most recently from ccc1f2b to 0a9773c Compare November 4, 2022 15:25
@sagor999 sagor999 requested a review from jenting November 4, 2022 15:25
@kylos101
Copy link
Contributor

kylos101 commented Nov 4, 2022

@sagor999 @jenting 👋 a couple other options to consider for testing:

  1. maybe gpctl workspaces snapshot will do?
  2. if not, can we test the endpoint using https://github.com/fullstorydev/grpcurl?

Copy link
Contributor

@jenting jenting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change LGTM

But I need to find a way to verify it so put a hold label

/hold

* allow to take and check snapshot status when using pvc

* [server] snapshots for PVC workspaces

Co-authored-by: Pavel Tumik <[email protected]>
@sagor999 sagor999 requested a review from a team November 9, 2022 17:11
@roboquat roboquat added size/XL and removed size/L labels Nov 9, 2022
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Nov 9, 2022
@roboquat roboquat added size/L and removed size/XL labels Nov 9, 2022
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-pavel-pvcsnapshot.10 because the annotations in the pull request description changed
(with .werft/ from main)

@sagor999
Copy link
Contributor Author

sagor999 commented Nov 9, 2022

Pinged @svenefftinge in slack with info. VolumeSnapshot is not passed into StartWorkspace call when restoring from snapshot. Asked for his help to look from webapp side why so.

@svenefftinge
Copy link
Member

Pinged @svenefftinge in slack with info. VolumeSnapshot is not passed into StartWorkspace call when restoring from snapshot. Asked for his help to look from webapp side why so.

Maybe I'm confused by snapshot names, ids, handles, etc. but I think we need to return the snapshotHandle from ws-amanger's TakeSnapShot and GetVolumeSnapshot. Looks like it is only set on finalize workspace and then passed through the status update atm.

@easyCZ
Copy link
Member

easyCZ commented Nov 16, 2022

Moving this to draft as it:

  1. Needs a rebase
  2. Hasn't seen any activity in the past couple days

@easyCZ easyCZ marked this pull request as draft November 16, 2022 08:18
@sagor999
Copy link
Contributor Author

Thank you @easyCZ
Yes, this PR is paused for now as we are re-thinking our PVC approach a bit.

@stale
Copy link

stale bot commented Nov 26, 2022

This pull request 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 Nov 26, 2022
@stale stale bot closed this Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold do-not-merge/work-in-progress meta: stale This issue/PR is stale and will be closed soon release-note-none size/L team: webapp Issue belongs to the WebApp team team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants