Commit Graph

20 Commits

Author SHA1 Message Date
Yousong Zhou
8ba5986d83 goimports: first run 2019-10-28 06:22:17 +00:00
Zexi Li
e8377a8709 baremetal: add cdrom boot schedule 2019-10-23 11:18:27 +08:00
Qiu Jian
42ed1f7961 feature: baremetal support iso operation 2019-10-21 01:07:49 +08:00
Zexi Li
8286d318ac scheduler: refactor network_predicate filter 2019-09-28 18:23:27 +08:00
Zexi
64cca04a17 scheduler: add pending usage process 2019-05-29 19:57:44 +08:00
Zexi
8c3a1460cd baremetal schedule net bonding check 2019-04-26 00:20:40 +08:00
Zexi Li
886c66bc67 fix: scheduler network predicate not set capability when host filtered (#279) 2019-04-08 22:35:41 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Zexi Li
ab0d45a24f 修复 baremetal 创建的一系列问题:
1. dhcp 并发请求冲突
2. 调度 storage 不适配
3. 获取 login info 字段不正确
2019-03-26 16:08:06 +08:00
Zexi Li
6df6880501 define scheduler apis output and input structs 2019-03-20 12:03:29 +08:00
Zexi Li
19c341c297 scheduler: use compute models 2019-03-20 12:03:29 +08:00
Yousong Zhou
8fe4f2ec98 treewide: group imports with goimports
./goimports -w -local yunion.io/x/onecloud/ -corp yunion.io/x/ $GOPATH/src/yunion.io/x/onecloud/{cmd,pkg}
2019-03-13 10:46:12 +00:00
Zexi Li
2c5ed4b360 scheduler: make schedtag prefer and avoid strategy work 2018-12-12 19:56:21 +08:00
李泽玺
3f3f1701c2 Merge pull request #1 in ~LIZEXI/onecloud from ~WANYAOQI/onecloud:bugfix/wyq/fix-BaremetalSyncAllGuestsStatusTask to bugfix/lzx-baremetal-api
* commit 'ea81fa26dbcb56eefe131387b2fab8c3b731029d':
  fix BaremetalSyncAllGuestsStatusTask
  region: baremetal api compatible
2018-12-04 18:09:07 +08:00
Zexi Li
1b3d33986b region: baremetal api compatible 2018-12-03 20:04:30 +08:00
Yousong Zhou
4f0b4ec7c9 govet: treewide
# yunion.io/x/onecloud/pkg/lbagent/utils
  pkg/lbagent/utils/configdir.go:134: unreachable code
  # yunion.io/x/onecloud/pkg/mcclient/modules
  pkg/mcclient/modules/mod_domains.go:243: Sprintf format %s has arg len(result.Data) of wrong type int
  # yunion.io/x/onecloud/pkg/lbagent/models
  pkg/lbagent/models/reflect.go:68: Errorf call needs 1 arg but has 2 args
  # yunion.io/x/onecloud/pkg/cloudcommon/db
  pkg/cloudcommon/db/db_dispatcher.go:1064: Sprintf call needs 1 arg but has 2 args
  # yunion.io/x/onecloud/pkg/scheduler/core
  pkg/scheduler/core/context.go:579: assignment copies lock value to dataItem.Networks: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/scheduler/data_manager
  pkg/scheduler/data_manager/candidate_manager.go:353: Errorf format %#v reads arg #1, but call has 0 args
  # yunion.io/x/onecloud/pkg/scheduler/algorithm/predicates/baremetal
  pkg/scheduler/algorithm/predicates/baremetal/network_predicate.go:145: call of u.SetFiltedData copies lock value: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/scheduler/algorithm/predicates/guest
  pkg/scheduler/algorithm/predicates/guest/network_predicate.go:207: call of u.SetFiltedData copies lock value: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/cloudcommon/db/lockman
  pkg/cloudcommon/db/lockman/inmemory_test.go:49: loop variable id captured by func literal
  # yunion.io/x/onecloud/pkg/util/seclib2
  pkg/util/seclib2/seclib.go:56: unreachable code
  # yunion.io/x/onecloud/cmd/climc/shell
  cmd/climc/shell/alarmlogs.go:46: result of fmt.Errorf call not used
  # yunion.io/x/onecloud/pkg/util/aliyun
  pkg/util/aliyun/disk.go:267: Errorf format %s has arg size of wrong type int64
  pkg/util/aliyun/image.go:93: Sprintf format %s reads arg #1, but call has 0 args
  # yunion.io/x/onecloud/pkg/compute/models
  pkg/compute/models/cachedimages.go:161: Errorf format %d has arg imgId of wrong type string
  pkg/compute/models/disks.go:1274: Errorln call has possible formatting directive %s
  pkg/compute/models/guests.go:1749: Infof format %s has arg self.IsOwner(userCred) of wrong type bool
  pkg/compute/models/hosts.go:1134: Debugf format %s has arg storage of wrong type *models.SStorage
  pkg/compute/models/hosts.go:1135: Debugf format %s has arg self of wrong type *models.SHost
  # yunion.io/x/onecloud/pkg/util/azure
  pkg/util/azure/instance.go:536: unreachable code
  pkg/util/azure/network.go:128: unreachable code
  pkg/util/azure/storage.go:69: unreachable code
  # yunion.io/x/onecloud/pkg/util/azure/shell
  pkg/util/azure/shell/disk.go:20: unreachable code
  pkg/util/azure/shell/network.go:55: unreachable code
2018-10-22 12:33:41 +00:00
Zexi Li
2ea45a7120 region: spec handler 2018-09-15 01:49:11 +08:00
Zexi Li
e6788bb75e add doc.go for each package 2018-08-11 14:41:38 +08:00
Zexi Li
22411ffb53 path move: github.com/yunionio -> yunion.io/x 2018-08-11 14:28:18 +08:00
Zexi Li
270298fae2 Add scheduler service. 2018-07-30 11:18:02 +08:00