Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#13,051 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java

Direzione di ricerca

Inizia riproducendo i passaggi elencati per due snapshot con lo stesso nome su un volume, quindi traccia i percorsi coinvolti nella creazione e nell’eliminazione degli snapshot. Il lavoro è completato quando CloudStack rifiuta il duplicato oppure, in alternativa, mantiene coerenti le voci degli snapshot e i file di secondary-storage quando uno snapshot viene eliminato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

component:primary-storage type:bug
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.

Lingua principale
Java
Stelle
3.1k
Fork
1.4k
Merge medio
6g 20h
PR unite (30g)
27

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/cloudstack

Tutte le issue di apache/cloudstack

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.