apache / apache/cloudstack

snapshot as Abnormal residue on rbd

Abierto
#12,002 2 comentarios 0 reacciones 1 asignado Reclamado por @Damans227 Ver en GitHub
component:ceph
Lenguaje dominante
Java
Estrellas
3.1k
Forks
1.4k
Merge medio
6 d 19 h
PR fusionados (30 d)
32

Descripción

### problem

when use ceph rbd store to primary store. and turn off [snapshot.backup.to.secondary]
take Instance volume snapshot, and then Destroy Instance and expunge,
the snapshot will Abnormal residue.

because Destroy Instance and expunge, will remove rbd image and its snap. after this the cloudstack job go [ StorpoolSnapshotStrategy] to delete snap, however ,this time the snap is not exit
so cloudstack will hung,and the snapshot whill Abnormal residue in MySQL and UI. and can not delete!

### versions

CloudStack 4.21.0.0

### The steps to reproduce the bug

1.use ceph rbd store to primary store.
2.turn off [snapshot.backup.to.secondary]
3.take a Instance volume snapshot
4.Destroy Instance and expunge,
5. check the snapshot

### What to do about it?

to fix this ,you can fix the msyql snapshot ‘status’ ,fix ‘backedup' to 'CreatedOnPrimary',it may work

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.