rbd: error: image still has watchers

RobFantini

Famous Member
May 24, 2012
2,042
109
133
Boston,Mass
after testing cli migration on a live kvm - the kvm had disk issues. I could only get a read only root file system.

so I replaced it with a backup.

when I tried to remove the bad kvm this error occurred:
Code:
 [COLOR=#000000][FONT=DejaVu Sans]Removing all snapshots: 100% complete...done.[/FONT][/COLOR]
 [COLOR=#000000][FONT=DejaVu Sans]image has watchers - not removing[/FONT][/COLOR]
 [COLOR=#000000][FONT=DejaVu Sans]Removing image: 0% complete...failed.[/FONT][/COLOR]
 [COLOR=#000000][FONT=DejaVu Sans]rbd: error: image still has watchers[/FONT][/COLOR]
 [COLOR=#000000][FONT=DejaVu Sans]TASK ERROR: rbd rm 'vm-999-disk-1' error: rbd: error: image still has watchers[/FONT][/COLOR]


We use a ceph cluster.

so my questions -

how to deal with the 'watchers' ?

are there limitations on moving kvm's to another system from cli? like it can't be running?




 
  • Like
Reactions: codingspiderfox