Commit Graph

35 Commits

Author SHA1 Message Date
wanyaoqi
f4d86b4fb2 guest add metadata cpu mode
- live migrate if guest cpu mode is qemu, do not check host cpu mode
- disk name generation replace '_' to '-'
2020-03-20 15:04:46 +08:00
Zexi Li
8286d318ac scheduler: refactor network_predicate filter 2019-09-28 18:23:27 +08:00
ioito
6c88755166 fix: private sku sync and delete 2019-08-13 19:39:37 +08:00
yunion-ci-robot
170f010c9a Merge pull request #1384 from wanyaoqi/feature/wyq/live-migrate-filter-cpu-model
feature: live migrate filter cpu model
2019-06-27 16:58:50 +08:00
Zexi Li
439d3fe0d2 Merge pull request #1347 from Zexi/feature/schedule-guestdriver-interface
scheduler: add schedule filter interface to guestdriver
2019-06-26 21:25:36 +08:00
wanyaoqi
fa370a7c6d - live migrate filter cpu model
- fix list export keys
2019-06-26 13:01:11 +08:00
ioito
f94460511d 避免镜像第一次上传时未做缓存 2019-06-25 20:48:39 +08:00
Zexi
fcf600f6b2 scheduler: add schedule filter interface to guestdriver 2019-06-21 17:09:44 +08:00
Zexi
4aa4bafd7b scheduler: add image zone filter 2019-06-20 21:36:38 +08:00
ioito
0e25416215 fix balance permission error 2019-06-14 13:38:13 +08:00
Zexi
06f1303f54 scheduler: add domain filter 2019-06-10 19:41:16 +08:00
Zexi
bef1848357 scheduler: host filter by cloudprovider domain id 2019-06-10 12:17:56 +08:00
Zexi
64cca04a17 scheduler: add pending usage process 2019-05-29 19:57:44 +08:00
Zexi Li
e01c4e590f support network schedtag 2019-04-18 09:48:18 +08:00
Zexi Li
34ddb8ea4b add https://github.com/stretchr/testify to vendor for unit tests (#367) 2019-04-13 10:59:09 +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
2c515a7edd fix: exclude hosts whose cloud provider's status not in
CLOUD_PROVIDER_VALID_STATUS
2019-04-01 21:02:03 +08:00
Qiu Jian
b659789c62 fix: track balance status of cloud account and avoid unhealth account 2019-04-01 21:02:03 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +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
5c0b04973a region: support server import 2019-01-08 21:32:57 +08:00
Zexi Li
c0102d0a32 scheduler: host 的 zone status 为 enable 时才能调度 2019-01-05 17:50:53 +08:00
Zexi Li
2c5ed4b360 scheduler: make schedtag prefer and avoid strategy work 2018-12-12 19:56:21 +08:00
Zexi Li
87a5c43ef3 scheduler: 兼容 v2 region 的输入 2018-11-26 13:35:22 +08:00
Zexi Li
0ef732ea81 resolve merge conflict 2018-11-13 14:05:39 +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
Yousong Zhou
7f0d75cfa1 scheduler: fix wrong import path 2018-08-16 12:50:11 +00:00
Zexi Li
7cad0d54f3 scheduler: network container server_type 2018-08-16 16:19:52 +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
953d77cc8e scheduler: allow run container in kubelet host 2018-08-07 12:09:20 +08:00
Zexi Li
7a8352ce1c scheduler: fix specified network not enough still pass. 2018-07-30 16:33:29 +08:00
Zexi Li
270298fae2 Add scheduler service. 2018-07-30 11:18:02 +08:00