Skip to content

[live-migration] replace event/error strings with structured MigrationNotification#2697

Merged
rawahars merged 4 commits intomicrosoft:mainfrom
rawahars:lm_events_proto_changes
Apr 22, 2026
Merged

[live-migration] replace event/error strings with structured MigrationNotification#2697
rawahars merged 4 commits intomicrosoft:mainfrom
rawahars:lm_events_proto_changes

Conversation

@rawahars
Copy link
Copy Markdown
Contributor

Summary

Drop the free-form event and error string fields on TransferSandboxResponse in favor of a structured MigrationNotification message that mirrors the HCS OperationSystemMigrationNotificationInfo payload.

The new MigrationNotification carries:

  • MigrationOrigin: source vs. destination side of the migration
  • MigrationEvent: lifecycle event (setup done, blackout started/exited, transfer in progress, migration done/failed, recovery done, etc)
  • MigrationResult: terminal outcome (success, cancelled, guest-initiated cancellation, source/destination failure, recovery failure)
  • AdditionalDetails: google.protobuf.Any for event-specific data

…fication

Drop the free-form `event` and `error` string fields on
TransferSandboxResponse in favor of a structured `MigrationNotification`
message that mirrors the HCS OperationSystemMigrationNotificationInfo
payload.

The new MigrationNotification carries:
  - MigrationOrigin: source vs. destination side of the migration
  - MigrationEvent: lifecycle event (setup done, blackout started/exited,
    transfer in progress, migration done/failed, recovery done, ...)
  - MigrationResult: terminal outcome (success, cancelled, guest-initiated
    cancellation, source/destination failure, recovery failure)
  - AdditionalDetails: google.protobuf.Any for event-specific data

Signed-off-by: Harsh Rawat <[email protected]>
@rawahars rawahars requested a review from a team as a code owner April 21, 2026 08:33
Comment thread pkg/migration/migration_options.proto Outdated
Signed-off-by: Harsh Rawat <[email protected]>
Signed-off-by: Harsh Rawat <[email protected]>
MemoryTransport memory_transport = 1;
// MemoryTransferThrottleParams specifies settings for throttling during memory transfer.
optional MemoryMigrationTransferThrottleParams memory_transfer_throttle_params = 2;
optional MemoryTransferThrottleParams memory_transfer_throttle_params = 2;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's perfectly fine to write 'optional' in front of a message type but just FYI all message types are optional

Signed-off-by: Harsh Rawat <[email protected]>
@rawahars rawahars merged commit 1c0dd8e into microsoft:main Apr 22, 2026
19 checks passed
@rawahars rawahars deleted the lm_events_proto_changes branch April 22, 2026 05:55
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

Successfully merging this pull request may close these issues.

3 participants