apache / apache/cloudstack

VM instance snapshot fails if "Quiesce Instance" snapshot parameter is true

Open
#12,871 11 comments 0 reactions 0 assignees Claimed by @DaanHoogland View on GitHub
component:kvm Severity:Minor type:bug
Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 19h
Merged PRs (30d)
32

Description

### problem

When I try to take a VM instance snapshot setting "Quiesce Instance" to true the snapshot fails with the following error:
Failed to create vm snapshot: [VMSnapshot {"id":20,"name":"i-4-21-VM_VS_20260320122510","uuid":"e9760223-4c3e-4d79-b900-00b01c2f5884","vmId":21}] due to: can't handle quiescevm equal true for volume snapshot

The VM snapshot succeeds only if I disable the "Quiesce Instance" option.
But even if quiescence option is disabled I can see that inside the VM the guest agent fsfreeze and fsthaw hooks are called.
> Mar 20 13:33:21 sonia qemu-ga[11874]: info: guest-fsfreeze called
> Mar 20 13:33:23 sonia qemu-ga[11874]: info: guest-fsthaw called

So it seems that "Quiesce Instance" option is active anyway.

### versions

CloudStack 4.22.0
KVM hypervisor
Ceph storage
Rocky Linux 10

### The steps to reproduce the bug

1. select "Take Instance Snapshot" for a VM
2. set "Quiesce Instance" to true and press OK

### What to do about it?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing linked pull request #13941 and the snapshot path it changes, then reproduce the failure with a KVM VM on Ceph using the "Quiesce Instance" option. Done means the requested snapshot succeeds with quiescence enabled and the observed guest-agent freeze/thaw behavior is covered by the change or its tests.

Written by the indexing model from the issue text.

Assessment

Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.