apache / apache/cloudstack

Incorrect error message while creating instance snapshot without memory for a stopped VM

Abierto
#12,999 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Java
Estrellas
3.1k
Forks
1.4k
Merge medio
6 d 19 h
PR fusionados (30 d)
32

Descripción

### problem

Incorrect error message while creating instance snapshot without memory for a stopped VM (ROOT & DATA disk on different PowerFlex pools)

```
2026-04-10 09:43:05,535 DEBUG [c.c.v.s.VMSnapshotManagerImpl] (qtp698741991-25:[ctx-8948ca15, ctx-1e54ecb4]) (logid:ea105dce) Creating a snapshot of a running KVM Instance without memory is not supported
2026-04-10 09:43:05,536 INFO [c.c.a.ApiServer] (qtp698741991-25:[ctx-8948ca15, ctx-1e54ecb4]) (logid:ea105dce) Failed to create Instance Snapshot: Creating a snapshot of a running KVM Instance without memory is not supported
```

Image

### versions

ACS 4.20.3 RC4 + Advanced Zone + KVM hypervisor

Should exist with 4.20.1 & 4.20.2 as well, as per the changes here:
https://github.com/apache/cloudstack/pull/9773/changes#diff-7d772616388f0b97219416327c6db1bcad3c162d0271f245ee903198913aa0d3

### The steps to reproduce the bug

1. Deploy a VM with data disk (ROOT & DATA disk on different PowerFlex pools)
2. Stop the VM
3. Take VM snapshot

### What to do about it?

Expecting correct state of the VM in the error message.

Instance snapshots without memory is supported with PowerFlex volumes when all volumes are on the PowerFlex storage and different pools (this seems broken here: https://github.com/apache/cloudstack/pull/3724/changes#diff-705d7f4f3bd1b9d599a38327738fab759b6f6a925f405cbbb7de7bef9b586be2) - now, it is supported when all the volumes are on the same PowerFlex pool only.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza en VMSnapshotManagerImpl, donde el log informa del mensaje incorrecto sobre la VM en ejecución, y compara el comportamiento con los cambios referenciados en los PRs 9773 y 3724. Reproduce el caso de snapshot de una VM detenida con discos ROOT y DATA en distintos pools de PowerFlex; se considera terminado cuando el error informa del estado real de la VM y la operación compatible funciona correctamente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
cloud, infrastructure
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
52/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.