improve free_image with deactivate_volumes
this is necessary to prevent an error when trying to remove a mapped volume.
This commit is contained in:
committed by
Dietmar Maurer
parent
1cff783277
commit
515ef80bf5
@ -407,6 +407,8 @@ sub free_image {
|
||||
}
|
||||
}
|
||||
|
||||
$class->deactivate_volume($storeid, $scfg, $volname);
|
||||
|
||||
my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'purge', $name);
|
||||
run_rbd_command($cmd, errmsg => "rbd snap purge '$volname' error");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user