mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix(region): reset guest quorum child index on guest shutdown (#25137)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user