Skip to content

[live-migration] deliver structured live migration notifications end to end#2696

Open
rawahars wants to merge 1 commit intomicrosoft:mainfrom
rawahars:lm_event_notifications
Open

[live-migration] deliver structured live migration notifications end to end#2696
rawahars wants to merge 1 commit intomicrosoft:mainfrom
rawahars:lm_event_notifications

Conversation

@rawahars
Copy link
Copy Markdown
Contributor

@rawahars rawahars commented Apr 21, 2026

Summary

Replace the opaque event-data string surfaced from HCS live migration callbacks with a typed notification payload, and propagate that shape through the migration gRPC API so callers can act on migration progress without parsing raw JSON.

  • Add OperationSystemMigrationNotificationInfo to the HCS schema along with MigrationOrigin, MigrationEvent, and MigrationResult enumerations covering the full set of states reported by HCS (setup, blackout, transfer, recovery, completion, failure, etc.).
  • Update the HCS migration callback to unmarshal the JSON event payload into the new struct, drop malformed events with a warning, and deliver typed values over MigrationNotifications() instead of raw strings.
  • Add unit tests for the callback handler covering nil arguments, valid payloads, empty data, malformed JSON, and a full notification channel.

@rawahars rawahars requested a review from a team as a code owner April 21, 2026 08:02
@rawahars rawahars force-pushed the lm_event_notifications branch from 03eca10 to 4c68686 Compare April 21, 2026 08:28
…to-end

Replace the opaque event-data string surfaced from HCS live migration callbacks with a typed notification payload so callers can act on migration progress without parsing raw JSON.
- Add OperationSystemMigrationNotificationInfo to the HCS schema along with MigrationOrigin, MigrationEvent, and MigrationResult enumerations covering the full set of states reported by HCS (setup, blackout, transfer, recovery, completion, failure, etc.).
- Update the HCS migration callback to unmarshal the JSON event payload into the new struct, drop malformed events with a warning, and deliver typed values over MigrationNotifications() instead of raw strings.
- Add unit tests for the callback handler covering nil arguments, valid payloads, empty data, malformed JSON, and a full notification channel.

Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
@rawahars rawahars force-pushed the lm_event_notifications branch from 4c68686 to 747d8e8 Compare April 21, 2026 09:35
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.

1 participant