fix(region): reset guest quorum child index on guest shutdown (#25137)

This commit is contained in:
wanyaoqi
2026-07-14 00:09:37 +08:00
committed by GitHub
parent 86f7be7708
commit 2d57d0c89b

View File

@@ -2750,6 +2750,10 @@ func (self *SGuest) PerformStatus(ctx context.Context, userCred mcclient.TokenCr
return nil, errors.Wrap(err, "reset guest quorum child index")
}
}
} else if input.Status == api.VM_READY && len(self.GetMetadata(ctx, api.QUORUM_CHILD_INDEX, userCred)) > 0 {
if err := self.ResetGuestQuorumChildIndex(ctx, userCred); err != nil {
return nil, errors.Wrap(err, "reset guest quorum child index")
}
}
if input.Status == api.VM_RUNNING && input.BlockJobsCount == 0 {