Commit 5271f228 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(backend): try and fail if it can't remove KVM volumes

parent 636ba94d
......@@ -238,11 +238,12 @@ sub _vol_remove {
if $@ !~ /libvirt error code: 50,/i;
next;
}
for ( ;; ) {
for ( 1 .. 3 ) {
eval { $vol->delete() };
last if !$@;
sleep 1;
}
die $@ if $@;
eval { $pool->refresh };
warn $@ if $@;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment