diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 3458548fb..bc8e305fb 100755 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -1764,7 +1764,11 @@ sub rmvm { last; } if ($vol) { - eval { $vol->delete(); }; + eval { + # Need to call get_info() before deleting a volume, without that, delete() will sometimes fail. Issue #455 + $vol->get_info(); + $vol->delete(); + }; if ($@) { xCAT::MsgUtils->trace(0, "e", "kvm: $@"); }