cannot revert a container snapshot on RBD

kifeo

Well-Known Member
Oct 28, 2019
112
13
58
I found that reverting a container snapshot fails and cannot be done.

replication scenario :
- deploy a debian template on proxmox ceph
- snapshot the CT
- touch toto in the vm
- shutdown th CT
- revert (rollback) : rbd snapshot vm-103-disk-0 to 'test' error: Rolling back to snapshot: 0% complete...failed.

Wanted to raise this, maybe I'm doing it wrong ?
 
Hi,

is the cluster healthy?
 
Hi,

I can confirm this is a Bug.
The poststop-hookscripts are not applied and so the rbd image stays mapped.
as a temporary workaround, you can unmap the rbd image manually.

Code:
rbd device unmap <Image>

https://bugzilla.proxmox.com/show_bug.cgi?id=2512
 
Last edited:
Is this bug still an issue?

I have the same problem on a healthy PMX/Ceph Cluster:
When I try to rollback a container on one of my nodes, I get this message
"error: Rolling back to snapshot: 0% complete...failed."
and the conatiner remains locked until unlocking it manually..

Thank You