Commit Graph

82 Commits

Author SHA1 Message Date
Qiu Jian
c822b036ca fix: not trauncating task errors 2019-07-25 22:19:00 +08:00
Qiu Jian
927f176d3e fix: clear pending-delete when sched_fail 2019-07-23 23:41:47 +08:00
Qiu Jian
5a272fd330 fix: task usercred should be utf8 charset 2019-07-11 12:07:22 +08:00
Qiu Jian
a6207a8ac7 hotfix: support scope list filter, resolve filter conflict 2019-06-04 23:27:55 +08:00
Jian Qiu
81b9cac556 fix: misc 3level priviliges bugfixes (#1026)
* fix: misc 3level priviliges bugfixes

* misc bugfixes

* misc bugfixes
2019-06-02 08:05:11 +08:00
Qiu Jian
b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +08:00
wanyaoqi
9722654ff4 misc fix:
- fix undeploy backup guest
- fix host service cron job
- task add recover
2019-05-23 18:35:59 +08:00
Qiu Jian
2efc5e641e fix: add keystone initialization procedures 2019-05-17 13:54:29 +08:00
Qiu Jian
d6956095f8 fix: delete servers that has been removed results in delete_failed
status
2019-04-21 00:01:51 +08:00
Yousong Zhou
3b2677acd1 tasks: 改善查询语句
- 索引简化,obj_id的区分度非常高,且在QueryTasksOfObject()等相关的查询中是确定出现的
   - obj_name可认为被obj_id唯一确定
   - created_at若出现可假设被MySQL Index Merge优化
   - stage的值是可枚举的
 - Join taskobjects_tbl时,避免使用子查询查全表
 - 使用Union合并两个查询结果
2019-04-17 14:58:50 +00:00
屈轩
bf7a6a2b30 移除重复代码 (#359) 2019-04-12 16:58:08 +08:00
屈轩
6a5dbbf237 增加判断subtask准确度 (#352) 2019-04-12 14:59:09 +08:00
屈轩
dd7f7c9bf9 避免guest状态出现中间ready的情况 (#296) 2019-04-10 11:20:08 +08:00
Jian Qiu
316335267a improve server-list performance (#193)
* improve server-list performance

FetchCustomizeColumns that fetch extra fields for all rows 3. separate
read and write http request session

* update vendor

* update: optimize multi-column indexes
2019-04-03 20:24:28 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Qiu Jian
8ef19141a2 add more optimization 2019-03-29 00:42:23 +08:00
Yousong Zhou
4c82dae39b Merge remote-tracking branch 'origin/release/2.6.0' into bugfix/yousong-goimports-270 2019-03-13 13:33:51 +00: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
Qiu Jian
4e9eab8ee7 Merge branch 'release/2.6.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20190313-2.7.0
Conflicts:
	pkg/cloudcommon/db/taskman/tasks.go
2019-03-13 16:32:18 +08:00
Qiu Jian
f7c61a9750 fix: 1. usage hide system servers 2. host undo convert shows wrong
status
2019-03-12 13:39:22 +08:00
Qiu Jian
8eb4a74c8b Merge branch 'release/2.7.0' of ssh://git.yunion.io/~qiujian/onecloud into feature/qj-sync-with-lock
Conflicts:
	pkg/compute/guestdrivers/base.go
2019-03-06 01:39:17 +08:00
wanyaoqi
46e85d5249 kvm guest support hotplug cpu mem, fix hmp monitor 2019-03-05 14:29:12 +08:00
Qiu Jian
ef197ca3d0 improvements: autonomously adjust sync interval according to resources in region 2019-03-05 02:35:20 +08:00
Qiu Jian
abb4181871 skip objects that is undergoing a task 2019-03-04 14:08:15 +08:00
邱剑
0edeb53d28 update models with db.Update interface 2019-02-22 12:06:13 +08:00
Qiu Jian
8554d13c4a make fmt 2019-02-16 15:17:31 +08:00
Qiu Jian
066d155a16 fix: logger did not record start time of events 2019-02-16 13:47:18 +08:00
Qiu Jian
df41b7cdcd use separate worker for long running tasks, such as ImageConvertTask,
ImageCheckTask, CloudProviderSyncInfoTask
2018-12-27 16:19:24 +08:00
Qiu Jian
88566645e0 add doc.go && make ParseOptions changes
Conflicts:
	pkg/cloudcommon/options.go
	pkg/compute/service/service.go
	pkg/webconsole/service/service.go
	pkg/yunionconf/service/service.go
2018-12-26 22:59:08 +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
75701657d0 fix bugs 2018-12-07 21:18:52 +08:00
Qiu Jian
1f5ab8750f add task locks 2018-12-07 09:24:12 +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
wanyaoqi
ecc750107b fix conflict 2018-12-01 16:18:11 +08:00
Qiu Jian
e42f1a7744 recode 2018-12-01 12:05:41 +08:00
Qiu Jian
bc02b3b433 1.
取消userCred.IsSystemAdmin(),在使用policy的应用中,通过userCred.IsAdminAllow判断是否是管理员且具备相应的权限。获取token时,需要传入policy.FilterPolicyCredential,将普通userCred转换成支持rbac的userCred
2. 在应用启动时候,必须设置 SetServiceType,否则退出
2018-11-30 23:00:11 +08:00
Qiu Jian
dcbc3daf49 Merge branch 'release/2.4.0' of ssh://git.yunion.io/~qiujian/onecloud into feature/qj-esxi-support-complete 2018-11-25 08:27:09 +08:00
Qiu Jian
94c49ded2e esxi support 2018-11-25 08:21:24 +08:00
邱剑
a087c33c88 Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'c8bc4c0598bb35f4c26245ebd503428f5a72a1e4':
  避免localtask failed时error一直是Task failed due to unknown remote errors
2018-11-23 20:22:07 +08:00
邱剑
c8bc4c0598 Automatic merge from release/2.1.0 -> release/2.2.0
* commit 'be38bf62f3bb8444948a1fdbc267553fc884a8e1':
  避免localtask failed时error一直是Task failed due to unknown remote errors
2018-11-23 20:22:07 +08:00
邱剑
be38bf62f3 Automatic merge from release/2.0.0 -> release/2.1.0
* commit 'b70be6be0f4007fea7b93b039c77d37a6e6f6208':
  避免localtask failed时error一直是Task failed due to unknown remote errors
2018-11-23 20:22:07 +08:00
屈轩
58962cf2d2 避免localtask failed时error一直是Task failed due to unknown remote errors 2018-11-23 19:07:20 +08:00
邱剑
6b2d42d7b9 Automatic merge from release/2.2.0 -> release/2.3.0
* commit '5f79b66ced502b82c999a0437e3fa1db3f196f59':
  改为补一条START日志
  Change workermanager backlog to 1024
  remove old log
  修正:在同步完vm的网络和磁盘信息后,再记录同步的日志
2018-11-23 02:05:09 +08:00
Qiu Jian
7d80c3f250 Change workermanager backlog to 1024 2018-11-23 01:53:29 +08:00
邱剑
5728539c97 Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'e015b4cbd03e9f4cdb50ed793fb55791619eb2d9':
  避免没有objs时数组访问越界
2018-11-22 22:07:31 +08:00
邱剑
e015b4cbd0 Automatic merge from release/2.1.0 -> release/2.2.0
* commit '34da543c4652dc37e13aad2d7d6081ce76c4f333':
  避免没有objs时数组访问越界
2018-11-22 22:07:31 +08:00
邱剑
34da543c46 Automatic merge from release/2.0.0 -> release/2.1.0
* commit 'b5f4c472054d720858e12b9108455545fdae5749':
  避免没有objs时数组访问越界
2018-11-22 22:07:30 +08:00
屈轩
e4b771cb82 避免没有objs时数组访问越界 2018-11-22 22:02:11 +08:00
Qiu Jian
ca0e3977c7 minor fixes 2018-11-15 23:41:04 +08:00