VM snapshot merge on KVM can leave volume.path in DB pointing to a file that no longer exists (multi-disk VMs)
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- cloud, infrastructure
Direção de pesquisa
Comece rastreando o caminho de exclusão de snapshots do KVM para mesclagens de vários discos e como seu resultado agregado atualiza os caminhos dos volumes; a issue não fornece nomes de arquivos ou testes. Reproduza uma falha de mesclagem parcial e, em seguida, verifique se os discos concluídos mantêm caminhos de banco de dados válidos e se a VM pode ser iniciada sem reparo manual do banco de dados.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary:
When deleting a VM snapshot on KVM for a VM with more than one disk, each disk's data gets folded back into its real file one at a time, but CloudStack only gets a single "succeeded or failed" answer for the whole set. If an earlier disk's fold finishes for real but a later disk's then fails or times out, the whole thing is reported as failed, so CloudStack never updates its record for the disk that actually finished. Its database is left pointing to a file that no longer exists, with nothing to catch or fix this later. The VM then fails to start with "Can't find volume:", and the only current fix is to manually correct the database to match the real file.
Steps to reproduce:
- Create a VM with two or more disks on KVM.
- Take a VM snapshot, then delete it while the VM has enough disk activity that the merge takes a while (or induce a timeout/communication failure partway through the multi-disk merge).
- If one disk's merge completes on the host before another disk's merge fails/times out, the completed disk's volumes.path is left stale.
- Attempt to start the VM. It fails looking for the old file.
Environment where this was observed: KVM, disk-only VM snapshots, VM with 2 disks (ROOT + DATA), primary storage on NFS.
- Linguagem predominante
- Java
- Estrelas
- 3.1k
- Forks
- 1.4k
- Merge médio
- 7d 5h
- PRs com merge (30d)
- 28
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de apache/cloudstack
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
apache/cloudstack#14222 ·
-
create-kubernetes-binaries-iso.sh builds the ISO without setting a volume ID on EL8 based os's Abertabug component:kubernetes
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
apache/cloudstack#14180 ·
-
bug component:projects component:UI
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
apache/cloudstack#14070 · 5 comentários ·
-
component:backup
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
apache/cloudstack#14013 ·
-
KVM agent fails to connect to Ceph RBD storage pool after upgrading Ceph client to Tentacle 20.2.4 Abertabug component:ceph
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
apache/cloudstack#13989 · 3 comentários ·
Todas as issues de apache/cloudstack
Issues semelhantes
-
[BUG]茶杯方块在取茶时会引发崩溃 Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
-
Cannot differ own consent and managed consents in My Consents view and detailed consent view. Aberta1.0.0-alpha2 Type/Improvement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
wso2/dpdp-accelerator#272 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100