Skip to content

[server] snapshots for PVC workspaces #14503

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

Merged
merged 2 commits into from
Nov 9, 2022
Merged

Conversation

svenefftinge
Copy link
Member

@svenefftinge svenefftinge commented Nov 8, 2022

Description

Adds the server part to #14374

Related Issue(s)

contributes to #14159

How to test

  1. Enable PVC
  2. start workspace
  3. take snapshot
  4. start snapshot

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

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-se-pvc-snapshot.1 because the annotations in the pull request description changed
(with .werft/ from main)

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-se-pvc-snapshot.2 because the annotations in the pull request description changed
(with .werft/ from main)

@svenefftinge
Copy link
Member Author

svenefftinge commented Nov 8, 2022

/werft run

👍 started the job as gitpod-build-se-pvc-snapshot.3
(with .werft/ from main)

@svenefftinge svenefftinge marked this pull request as ready for review November 8, 2022 09:51
@svenefftinge svenefftinge requested a review from a team November 8, 2022 09:51
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Nov 8, 2022
@svenefftinge
Copy link
Member Author

@sagor999 Creating a snapshot takes very long (minutes). When trying to start the resulting snapshot an image build was triggered and the workspace then failed:

cannot pull image: rpc error: code = NotFound desc = failed to pull and unpack image "reg.se-pvc-snapshot.preview.gitpod-dev.com:30000/remote/f5e370a1-5c12-4c6c-ad0a-30173bef778b:latest": failed to resolve reference "reg.se-pvc-snapshot.preview.gitpod-dev.com:30000/remote/f5e370a1-5c12-4c6c-ad0a-30173bef778b:latest": reg.se-pvc-snapshot.preview.gitpod-dev.com:30000/remote/f5e370a1-5c12-4c6c-ad0a-30173bef778b:latest: not found

@@ -306,6 +308,33 @@ export class PromisifiedWorkspaceManagerClient implements Disposable {
);
}

public checkVolumeSnapshotIsReady(
Copy link
Member

Choose a reason for hiding this comment

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

[aside] This client would be a good candidate to use the "cleaner generated grpc client" on

@easyCZ
Copy link
Member

easyCZ commented Nov 8, 2022

/hold for dependency on #14374

Copy link
Member

@easyCZ easyCZ left a comment

Choose a reason for hiding this comment

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

LGTM,

In the parent PR, I've raised a Q about the RPC being too property specific, and hard to extend. If we do change the RPC, we'll need to adjust this PR.

@sagor999 sagor999 requested a review from a team November 9, 2022 16:33
@sagor999 sagor999 merged commit 34992c3 into pavel/pvcsnapshot Nov 9, 2022
@sagor999 sagor999 deleted the se/pvc-snapshot branch November 9, 2022 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants