fix(region): add log for skiped pending deleted vm (#19050)

This commit is contained in:
屈轩
2023-12-19 13:28:22 +08:00
committed by GitHub
parent f5e837ec75
commit 8955cd8e1d
+3
View File
@@ -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
}
}