Skip to content

vmm, vm-migration: add MigrationStateOngoingPhase::Started#178

Merged
phip1611 merged 1 commit into
cyberus-technology:gardenlinuxfrom
phip1611:improve-send-migration-observability
Jul 2, 2026
Merged

vmm, vm-migration: add MigrationStateOngoingPhase::Started#178
phip1611 merged 1 commit into
cyberus-technology:gardenlinuxfrom
phip1611:improve-send-migration-observability

Conversation

@phip1611

@phip1611 phip1611 commented Jul 1, 2026

Copy link
Copy Markdown
Member

My proposed solution for https://github.com/cobaltcore-dev/cobaltcore/issues/598. Needs libvirt patches additionally (https://gitlab.cyberus-technology.de/cyberus/cloud/libvirt/-/merge_requests/251/).

This will help us in libvirt/ch to distinguish short send/receive races
from a real migration startup failure. By being able to check if the
migration has been successfully started (rather than just the migration
worker thread), we can improve the reliablity of the start_migration()
logic in libvirt/ch.

libvirt CI pipeline: https://gitlab.cyberus-technology.de/cyberus/cloud/libvirt/-/merge_requests/251/pipelines

@phip1611 phip1611 self-assigned this Jul 1, 2026
@phip1611 phip1611 force-pushed the improve-send-migration-observability branch 2 times, most recently from 7d8796b to ae2e4f2 Compare July 1, 2026 14:27
@phip1611 phip1611 requested review from arctic-alpaca, olivereanderson and scholzp and removed request for olivereanderson July 1, 2026 14:59
@phip1611 phip1611 marked this pull request as ready for review July 1, 2026 14:59

@arctic-alpaca arctic-alpaca left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The commit referenced in the commit message for vmm, vm-migration: streamline error chain message with upstream should be cloud-hypervisor@2527020, since that is the one in main.

No action required, but just want to point out that I would have preferred to have two PRs, since the changes don't seem related.

Comment thread vm-migration/src/progress.rs Outdated
@phip1611 phip1611 force-pushed the improve-send-migration-observability branch from ae2e4f2 to be02ad7 Compare July 2, 2026 10:22
@phip1611

phip1611 commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

No action required, but just want to point out that I would have preferred to have two PRs, since the changes don't seem related.

thanks - I agree. I already did a split-out nevertheless to keep changes clean

This will help us in libvirt/ch to distinguish short send/receive races
from a real migration startup failure. By being able to check if the
migration has been successfully started (rather than just the migration
worker thread), we can improve the reliability of the start_migration()
logic in libvirt/ch.

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
@phip1611 phip1611 force-pushed the improve-send-migration-observability branch from be02ad7 to 179eb5d Compare July 2, 2026 10:27
@phip1611 phip1611 requested a review from arctic-alpaca July 2, 2026 10:27

@arctic-alpaca arctic-alpaca left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you!

Comment thread vmm/src/lib.rs
// Signal that the migration connection has been established. Management
// software can use this to distinguish short send/receive races from a
// real migration startup failure.
{

@phip1611 phip1611 Jul 2, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

btw @arctic-alpaca I know that this is rather poor design that we have to follow here - it comes from our "pragmatic" impl in the fork. Will (and must) be done much nicer when we upstream it

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I understand 😁

@phip1611 phip1611 merged commit 0582771 into cyberus-technology:gardenlinux Jul 2, 2026
19 checks passed
@phip1611 phip1611 deleted the improve-send-migration-observability branch July 2, 2026 11:20
cyberus-renovate pushed a commit to cyberus-technology/libvirt that referenced this pull request Jul 2, 2026
cloud-hypervisor: 2026-06-29T16:20:34+02:00 -> 2026-07-02T13:20:05+02:00

This includes the new migration phase marker [0] and [1].

[0] cyberus-technology/cloud-hypervisor#178
[1] cyberus-technology/cloud-hypervisor#179

This commit was generated via:
nix run github:phip1611/nixos-configs#flake-update-and-commit

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
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