Skip to content

Commit

Permalink
fix(region): add log for skiped pending deleted vm (#19049)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioito authored Dec 19, 2023
1 parent bc9b101 commit 9c8c505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/compute/models/guests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 9c8c505

Please sign in to comment.