Skip to content

Conversation

@xmkg
Copy link
Member

@xmkg xmkg commented Jul 2, 2025

Currently, disabling automatic checkpoints causes issues when the VM is not in an appropriate state at the time the constructor is executed. This causes the daemon to crash since the command throws an exception.

Fixes: #4204

MULTI-2061

@xmkg xmkg requested review from Sploder12 and ricab July 2, 2025 07:00
@xmkg xmkg force-pushed the bugfix/hyperv-move-automatic-checkpoint-to-new-vms-only branch from 78200a5 to c71ebcc Compare July 2, 2025 07:04
@codecov
Copy link

codecov bot commented Jul 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.31%. Comparing base (b7a35a3) to head (eab38fd).
⚠️ Report is 404 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4205   +/-   ##
=======================================
  Coverage   89.31%   89.31%           
=======================================
  Files         259      259           
  Lines       15684    15684           
=======================================
  Hits        14008    14008           
  Misses       1676     1676           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Currently, disabling automatic checkpoints causes issues when the VM
is not in an appropriate state at the time the constructor is executed.
This causes the daemon to crash since the command throws an exception.

Fixes: #4204

Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
@xmkg xmkg force-pushed the bugfix/hyperv-move-automatic-checkpoint-to-new-vms-only branch from c71ebcc to eab38fd Compare July 2, 2025 07:55
Copy link
Collaborator

@ricab ricab left a comment

Choose a reason for hiding this comment

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

Looks good and works nicely, thanks Mustafa! I have only a minor comment, but we can even do it as a separate PR, so approving this anyway.

inline static const std::vector<RunSpec> postfix_ctor_runs = {{"Set-VM"}, {"Get-VMCheckpoint"}};
{"Set-VMMemory"},
{"Set-VM"}};
inline static const std::vector<RunSpec> postfix_ctor_runs = {};
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should be able to remove this now, no?

Copy link
Contributor

@Sploder12 Sploder12 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ricab ricab added this pull request to the merge queue Jul 2, 2025
@ricab ricab modified the milestone: 1.16.0 Jul 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 2, 2025
@ricab ricab added this pull request to the merge queue Jul 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 2, 2025
@ricab ricab added this pull request to the merge queue Jul 2, 2025
Merged via the queue into main with commit fcff6e9 Jul 2, 2025
23 checks passed
@ricab ricab deleted the bugfix/hyperv-move-automatic-checkpoint-to-new-vms-only branch July 2, 2025 19:51
ricab added a commit that referenced this pull request Jul 2, 2025
Currently, disabling automatic checkpoints causes issues when the VM is
not in an appropriate state at the time the constructor is executed.
This causes the daemon to crash since the command throws an exception.

Fixes: #4204

MULTI-2061
ricab added a commit to ricab/multipass that referenced this pull request Jul 5, 2025
…cal#4205)

Currently, disabling automatic checkpoints causes issues when the VM is
not in an appropriate state at the time the constructor is executed.
This causes the daemon to crash since the command throws an exception.

Fixes: canonical#4204

MULTI-2061
ricab added a commit to ricab/multipass that referenced this pull request Jul 5, 2025
…cal#4205)

Currently, disabling automatic checkpoints causes issues when the VM is
not in an appropriate state at the time the constructor is executed.
This causes the daemon to crash since the command throws an exception.

Fixes: canonical#4204

MULTI-2061
ricab added a commit to ricab/multipass that referenced this pull request Jul 5, 2025
…cal#4205)

Currently, disabling automatic checkpoints causes issues when the VM is
not in an appropriate state at the time the constructor is executed.
This causes the daemon to crash since the command throws an exception.

Fixes: canonical#4204

MULTI-2061
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.

Daemon fails to start intermittently on Windows

3 participants