Skip to content

Commit

Permalink
[#478] retries if storage busy
Browse files Browse the repository at this point in the history
Fixes #478
  • Loading branch information
frankiejol committed Nov 20, 2017
1 parent f6dd983 commit 27fc2d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Ravada/VM/KVM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,12 @@ sub search_volume_re($self,$pattern,$refresh=0) {

sub _refresh_storage_pools($self) {
for my $pool ($self->vm->list_storage_pools) {
$pool->refresh();
for (;;) {
eval { $pool->refresh() };
last if !$@;
warn $@ if $@ !~ /pool .* has asynchronous jobs running/;
sleep 1;
}
}
}

Expand Down

0 comments on commit 27fc2d1

Please sign in to comment.