mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): add log for skiped pending deleted vm (#19050)
This commit is contained in:
@@ -5553,6 +5553,9 @@ func (manager *SGuestManager) CleanPendingDeleteServers(ctx context.Context, use
|
||||
if len(guests[i].GetExternalId()) > 0 {
|
||||
iVm, err := guests[i].GetIVM(ctx)
|
||||
if err == nil && iVm.GetStatus() == api.VM_RUNNING {
|
||||
if guests[i].Status != api.VM_DELETE_FAIL {
|
||||
guests[i].SetStatus(userCred, api.VM_DELETE_FAIL, "vm status is running")
|
||||
}
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user