apache / apache/cloudstack

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

未关闭
#12,871 11 条评论 0 个 reaction 已指派 0 人 已被 @DaanHoogland 认领 在 GitHub 查看
component:kvm Severity:Minor type:bug
主要语言
Java
星标
3.1k
派生
1.4k
平均合并
6 天 19 小时
30 天内合并 PR
32

描述

### 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_

贡献指南

打开贡献指南

调研方向

首先检查链接的 pull request #13941 及其修改的 snapshot 路径,然后使用 "Quiesce Instance" 选项在 Ceph 上的 KVM VM 中复现该故障。完成标准是:在启用 quiescence 的情况下,请求的 snapshot 成功,并且观察到的 guest agent freeze/thaw 行为由该更改或其测试覆盖。

由索引模型根据 Issue 内容生成。

评估

领域
cloud, infrastructure
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。