修复 baremetal 创建的一系列问题:

1. dhcp 并发请求冲突
2. 调度 storage 不适配
3. 获取 login info 字段不正确
This commit is contained in:
Zexi Li
2019-03-26 16:08:06 +08:00
parent 871e59c4bb
commit ab0d45a24f
13 changed files with 111 additions and 102 deletions
@@ -50,7 +50,7 @@ func (p *StoragePredicate) Execute(u *core.Unit, c core.Candidater) (bool, []cor
layouts, err := baremetal.CalculateLayout(
schedData.BaremetalDiskConfigs,
candidate.Storages,
candidate.StorageInfo,
)
if err == nil && baremetal.CheckDisksAllocable(layouts, toBaremetalDisks(schedData.Disks)) {