mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #16179 from zexi/automated-cherry-pick-of-#16177-upstream-master
Automated cherry pick of #16177: fix(scheduler): storage failed reason isn't showed in forecast result
This commit is contained in:
@@ -272,12 +272,12 @@ func (p *StoragePredicate) Execute(ctx context.Context, u *core.Unit, c core.Can
|
||||
req, err := sizeRequest.Get(be, medium)
|
||||
if err != nil {
|
||||
h.Exclude(fmt.Sprintf("get request size by backend %q, medium %q: %v", be, medium, err))
|
||||
break
|
||||
return h.GetResult()
|
||||
}
|
||||
capacity, actualCapacity, err := getStorageCapacity(be, medium, req.GetMax(), req.GetTotal(), useRsvd)
|
||||
if err != nil {
|
||||
h.Exclude(err.Error())
|
||||
continue
|
||||
return h.GetResult()
|
||||
}
|
||||
tmpCap := utils.Min(capacity.capacity, actualCapacity.capacity)
|
||||
if capacity.capacity <= 0 {
|
||||
|
||||
Reference in New Issue
Block a user