feat(deployment): move a zmachine + zmount + rootfs between nodes (tr… - #123
Merged
Conversation
…ansfer/prepare/start) Adds the node-side building blocks to relocate a Grade-1 deployment to another node while preserving zmount data and rootfs changes, over caller-provided presigned S3 URLs (no credentials on nodes): - storage: S3 streaming primitives (DiskUpload/DiskDownload, VolumeUpload/VolumeDownload) on the storage module + zbus stub, with a shared helper (pkg/storagetransfer) that streams seekable bodies with a correct Content-Length (S3 rejects chunked presigned PUTs). Unit tested against an httptest server. - provision engine: `Prepare` (provision network + zmount + rootfs, VM left unbooted) and `Start` (boot the prepared VM) ops, added to the Engine + pkg.Provision interfaces and the zbus stub; contract validation still applies to Prepare. - RMB API (zos_api + zos_api_light): `zos.deployment.transfer` (pause source, upload zmount(s)+rootfs to presigned PUTs) and `zos.deployment.prepare` (provision + pull bytes from presigned GETs, optionally start); routes registered. - client SDK: DeploymentTransfer / DeploymentPrepare. - docs/deployment-move-testing.md: two-node dev runbook; scripts/migration: standalone operator CLI used to exercise the flow (binary gitignored). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ashraffouda
requested review from
Eslam-Nawara,
Omarabdul3ziz,
rawdaGastan and
xmonader
as code owners
August 23, 2026 20:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ansfer/prepare/start)
Adds the node-side building blocks to relocate a Grade-1 deployment to another node while preserving zmount data and rootfs changes, over caller-provided presigned S3 URLs (no credentials on nodes):
Prepare(provision network + zmount + rootfs, VM left unbooted) andStart(boot the prepared VM) ops, added to the Engine + pkg.Provision interfaces and the zbus stub; contract validation still applies to Prepare.zos.deployment.transfer(pause source, upload zmount(s)+rootfs to presigned PUTs) andzos.deployment.prepare(provision + pull bytes from presigned GETs, optionally start); routes registered.Description
Describe the changes introduced by this PR and what does it affect
Changes
List of changes this PR includes
Related Issues
List of related issues
Checklist