diff --git a/pkg/scheduler/cache/candidate/base.go b/pkg/scheduler/cache/candidate/base.go index 9a4406e56f..7f96f9b1dd 100644 --- a/pkg/scheduler/cache/candidate/base.go +++ b/pkg/scheduler/cache/candidate/base.go @@ -377,7 +377,7 @@ func newBaseHostDesc(b *baseBuilder, host *computemodels.SHost, netGetter *netwo return nil, fmt.Errorf("Fill networks error: %v", err) } // only onecloud host should fill onecloud vpc networks - if host.HostType == computeapi.HOST_TYPE_HYPERVISOR { + if sets.NewString(computeapi.HOST_TYPE_HYPERVISOR, computeapi.HOST_TYPE_CONTAINER).Has(host.HostType) { if err := desc.fillOnecloudVpcNetworks(netGetter); err != nil { return nil, fmt.Errorf("Fill onecloud vpc networks error: %v", err) }