Commit Graph
65 Commits
Author SHA1 Message Date
Zexi Li 1fe2bbe0e0 baremetal: host convert failed 2019-02-13 15:10:10 +08:00
Zexi Li 47442d0fb5 scheduler: 修复 host cache desc 缺失 ZoneID 导致 prefer_zone 机制不生效 2019-01-08 23:48:27 +08: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
Qiu Jian d008d47f52 Avoid empty policy rules 2018-12-25 16:31:07 +08:00
Zhang Dongliang 2fd89c4ae6 make fmt 2018-12-24 19:36:31 +08:00
Qiu Jian fdaec75067 在rowsToArray中进行defer rows.Close() 2018-12-21 22:13:39 +08:00
Qiu Jian a6b865e7a2 修正:1. sql.Rows使用后未关闭,导致占用db链接 2.
服务启动后,调用AppDBInit方法设置db连接池上限,避免耗尽mysql连接
3.
app和workmanager增加db属性,用来标示该worker和app是否使用数据库,从而估计需要设置的数据库连接的上限
2018-12-21 17:10:34 +08:00
Qiu Jian 2914e4dd6b make fmt 2018-12-19 01:02:23 +08:00
Zexi Li 93a4085c9e - region: nil spec when prepaid host is not empty
- scheduler: set default resource_type shared
2018-12-14 13:25:59 +08:00
邱剑 17aa485093 Automatic merge from release/2.3.0 -> release/2.4.0
* commit '4ec6a728f9132ed87a3d386afe5bd839c6f6e8b8':
  fix: gpu server not work
2018-12-13 11:54:52 +08:00
Zexi Li 55a8c869f7 fix: gpu server not work 2018-12-13 11:53:54 +08:00
Zexi Li 2c5ed4b360 scheduler: make schedtag prefer and avoid strategy work 2018-12-12 19:56:21 +08:00
Zexi Li 4df0c08db8 fix: scheduler not mark prepaid host dirty 2018-12-08 00:57:23 +08:00
Zexi Li 4e344450c5 scheduler: add resource type filter 2018-12-07 15:45:03 +08:00
Qiu Jian 965e84ea36 update 2018-12-07 02:57:58 +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
邱剑 443e55279e Automatic merge from release/2.3.0 -> release/2.4.0
* commit 'df6f57a5ca5e986e7929b53103a3024214b388c8':
  fix: scheduler nil map panic
2018-11-27 17:34:16 +08:00
Zexi Li 743ff2ef9d fix: scheduler nil map panic 2018-11-27 17:32:10 +08:00
邱剑 00e001d981 Merge pull request #471 in YUNIONIO/onecloud from ~WANYAOQI/onecloud:feature/wyq/guest-disks-backup to release/2.4.0
* commit 'e64b71818b9f32f49ece1accce7adf011d12a4e1':
  region: support create backup guest; scheduler: support backup guest schedule
2018-11-26 13:45:08 +08:00
Zexi Li 87a5c43ef3 scheduler: 兼容 v2 region 的输入 2018-11-26 13:35:22 +08:00
wanyaoqi e64b71818b region: support create backup guest;
scheduler: support backup guest schedule
2018-11-20 21:29:43 +08:00
Zexi Li 8d7360298f schedule k8s local volume 2018-11-15 11:49:19 +08:00
Zexi Li 0ef732ea81 resolve merge conflict 2018-11-13 14:05:39 +08:00
TangBin 4c3ae8f976 Merge branch 'release/2.3.0' into feature/tb-support-aws 2018-11-10 20:03:07 +08:00
TangBin 74e3f9a699 update vendor 2018-11-10 20:00:36 +08:00
李泽玺 bd548462a4 Merge pull request #452 in YUNIONIO/onecloud from ~LIZEXI/onecloud:feature/lzx-scheduler-extender to release/2.3.0
* commit '95f49ead841ef7918c5d7d7a96f05806dc13902f':
  scheduler: k8s scheduler extender
2018-11-10 14:32:43 +08:00
邱剑 492469887b Merge pull request #431 in YUNIONIO/onecloud from ~QUXUAN/onecloud:feature/qx-qcloud to release/2.3.0
* commit 'aab792ffa8ee7f873ab24d5d9ae66bc7ef3ec548':
  添加部分aliyun操作
  支持腾讯云资源导入
2018-11-10 13:35:05 +08:00
Zexi Li 95f49ead84 scheduler: k8s scheduler extender 2018-11-10 13:27:00 +08:00
邱剑 8ce134fc7e Merge pull request #438 in YUNIONIO/onecloud from ~QUXUAN/onecloud:bugfix/qx-secgroup-tenant to release/2.3.0
* commit '77128909aeeece8cca66c7ff11366897b70ab050':
  同步安全组规则时携带项目信息
2018-11-08 20:04:07 +08:00
屈轩 aab792ffa8 添加部分aliyun操作 2018-11-08 15:37:30 +08:00
Zexi Li e9095d4b1b region: no disks created when create container 2018-11-08 11:55:13 +08:00
屈轩 77128909ae Merge branch 'release/2.3.0' of ssh://git.yunion.io/yunionio/onecloud into bugfix/qx-secgroup-tenant 2018-11-08 11:37:17 +08:00
TangBin 05f66d60b4 add aws scheduler api 2018-11-07 18:33:32 +08:00
李泽玺 272b2f0983 Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'a534b14586c3fb83476044fe35460ea079641a66':
  2.0.0: make qunar happy
2018-11-05 16:30:22 +08:00
李泽玺 a534b14586 Automatic merge from release/2.1.0 -> release/2.2.0
* commit 'a5f9d9c6871a2d29b6774cf609c87410e7222c7c':
  2.0.0: make qunar happy
2018-11-05 16:30:22 +08:00
李泽玺 a5f9d9c687 Automatic merge from release/2.0.0 -> release/2.1.0
* commit 'b1dade9701606d505315271a09ef1c88cfc48827':
  2.0.0: make qunar happy
2018-11-05 16:30:22 +08:00
Yousong Zhou 1da2255d4f 2.0.0: make qunar happy 2018-11-05 08:27:14 +00:00
Qiu Jian 630ad7c526 Merge branch 'release/2.2.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20181102-2.3.0
Conflicts:
	pkg/compute/models/secgrouprules.go
2018-11-02 20:42:50 +08:00
屈轩 fe0a36919c 解决冲突 2018-11-02 13:56:54 +08:00
Qiu Jian 33f546aafd 重构代码,将policy从db中分离出来,代码更干净一些 2018-10-30 00:12:19 +08:00
屈轩 2197d918e6 解决冲突 2018-10-29 14:01:10 +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 760862f1a0 govet: unexported field with tag defined
pkg/scheduler/cache/candidate/hosts.go:54: struct field storageTypes has json tag but is not exported
2018-10-22 12:32:00 +00:00
Qiu Jian 125f70fe45 upgrade to go1.11 2018-10-18 21:00:39 +08:00
Qiu Jian fdb2e8132f minor updates 2018-10-18 19:58:08 +08:00
Zexi Li 8180586d0b fix: scheduler cloudprovider ProjectId typo 2018-10-18 18:42:11 +08:00
Qiu Jian 99d20fe900 fix fmt 2018-10-18 18:10:48 +08:00
Zexi Li 4d6fbcdf0c scheduler: dynamicschedtags support 2018-10-18 18:01:31 +08:00