Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#13,051 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
58/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java

Rechercherichtung

Beginne damit, die aufgeführten Schritte für zwei Snapshots mit demselben Namen auf einem Volume zu reproduzieren, und verfolge anschließend die beteiligten Pfade zur Erstellung und Löschung von Snapshots. Die Aufgabe ist erledigt, wenn CloudStack das Duplikat ablehnt oder andernfalls die Snapshot-Einträge und Dateien im secondary-storage konsistent hält, wenn ein Snapshot gelöscht wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Java
Sterne
3.1k
Forks
1.4k
Ø Merge
6 T. 20 Std.
Gemergte PRs (30 T.)
27

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus apache/cloudstack

Alle Issues in apache/cloudstack

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.