mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
gpfs
This commit is contained in:
@@ -74,6 +74,10 @@ func (p *DiskSchedtagPredicate) GetResources(c core.Candidater) []ISchedtagCandi
|
||||
|
||||
func (p *DiskSchedtagPredicate) IsResourceFitInput(u *core.Unit, c core.Candidater, res ISchedtagCandidateResource, input ISchedtagCustomer) error {
|
||||
storage := res.(*api.CandidateStorage)
|
||||
if storage.Status == computeapi.STORAGE_OFFLINE || !storage.Enabled {
|
||||
return fmt.Errorf("Storage status is %s, enable is %v", storage.Status, storage.Enabled)
|
||||
}
|
||||
|
||||
d := input.(*diskW)
|
||||
if d.Storage != "" {
|
||||
if storage.Id != d.Storage && storage.Name != d.Storage {
|
||||
|
||||
Reference in New Issue
Block a user