Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#13,051 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
58/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
java
Domínio
cloud, infrastructure

Direção de pesquisa

Comece reproduzindo as etapas listadas para dois snapshots com o mesmo nome em um volume e, em seguida, rastreie os caminhos envolvidos na criação e na exclusão de snapshots. Considera-se concluído quando o CloudStack rejeitar a duplicata ou, caso contrário, mantiver consistentes as entradas dos snapshots e os arquivos de secondary-storage quando um snapshot for excluído.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Java
Estrelas
3.1k
Forks
1.4k
Merge médio
6d 12h
PRs com merge (30d)
26

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de apache/cloudstack

Todas as issues de apache/cloudstack

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.