apache / apache/cloudstack

Cloudstack allows you to create snapshots with the same name for the same volume

Abierto
#13,051 1 comentario 0 reacciones 0 asignados Ver en GitHub
component:primary-storage type:bug
Lenguaje dominante
Java
Estrellas
3.1k
Forks
1.4k
Merge medio
6 d 19 h
PR fusionados (30 d)
32

Descripción

### problem

Bug report:
CloudStack allows creating multiple snapshots of the same volume with identical names.

Image
These snapshots are treated as separate entities in CloudStack, but they reference the same snapshot file on secondary storage.

Image

The snapshot file on secondary storage is overwritten when a snapshot with the same name is created
Image

When one of these snapshots is deleted via CloudStack. The snapshot file is removed from secondary storage. Other snapshot entries remain in CloudStack but no longer have a corresponding file.

Deleted a snapshot in Cloudstack
Image
The first snapshot was deleted from CloudStack. During the deletion process, CloudStack also removed the snapshot file from secondary storage.

Image

However, a second snapshot entry still remains in the database and references a file on secondary storage that no longer exists.

Image

### versions

ACS: 4.20.2.0
Hypervisor: KVM
Primary Storage: Linstor
Secondary Storage: NFS

### The steps to reproduce the bug

1. Create a volume
2. Create snapshot with name for example "test-snapshot"
3. Create another snapshot with the same name "test-snapshot"
4. Verify that both snapshots exist in CloudStack and only one exists on the secondary storage
5. Delete ONE of the snapshots via CloudStack
6. Check secondary storage — snapshot file is removed
7. Check remaining snapshot in CloudStack

### What to do about it?

Prevent creating snapshots with the same name for the same volume. Deleting one breaks the other.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza reproduciendo los pasos indicados para dos snapshots con el mismo nombre en un volumen y, a continuación, sigue las rutas de creación y eliminación de snapshots implicadas. Se considera completado cuando CloudStack rechaza el duplicado o, de lo contrario, mantiene coherentes las entradas de los snapshots y los archivos de secondary-storage al eliminar uno de ellos.

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
Activo
Claridad
Bastante claro
Aptitud para principiantes
58/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.