Commit Graph
57 Commits
Author SHA1 Message Date
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
wanyaoqi 24c08ed178 server migrate all
some bugfix
2018-10-31 12:25:40 +08:00
wanyaoqi 6d21c7e0d2 baremetal ops
some bugfix
make dep
2018-10-23 21:01:00 +08:00
Qiu Jian 4d1d4e56fd 修正:worker timeout之后需要从worker
manager中移除,不再占用worker的数量限额,否则timeout之后,并不能解决整个服务被卡住的问题
2018-10-22 01:38:52 +08:00
邱剑 f0e712e8d1 Automatic merge from release/2.0.0 -> release/2.1.0
* commit 'a5dfd52413ab09c3842320a210badfeee56d703b':
  修复parallel task未初始化subtask
2018-10-17 16:58:53 +08:00
邱剑 084d2f1cdd Automatic merge from release/2.1.0 -> release/2.2.0
* commit 'f0e712e8d1c5fcbba2bfdf6491c2ba9c04486755':
  修复parallel task未初始化subtask
2018-10-17 16:58:53 +08:00
屈轩 42176ea948 修复parallel task未初始化subtask 2018-10-17 16:12:35 +08:00
Zexi Li 84ee48335b fix: region task notify not work 2018-10-11 19:04:11 +08:00
Qiu Jian 2ece630d4a Merge branch 'release/2.1.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-2.2.0-20180914
Conflicts:
	pkg/compute/guestdrivers/aliyun.go
2018-09-14 11:26:23 +08:00
Qiu Jian f7769ef1e3 修正:1. 阿里云rebuild root重构 2. 其他一些fix 2018-09-14 01:15:41 +08:00
Qiu Jian 1a30516b0f minor fixes 2018-09-12 01:14:33 +08:00
Qiu Jian f339a0b3b5 Merge branch 'release/2.0.0' of ssh://git.yunion.io/~qiujian/onecloud into bugfix/qj-resolve-conflict-2.1.0-20180825
Conflicts:
	pkg/compute/guestdrivers/aliyun.go
	pkg/compute/models/disks.go
	pkg/compute/tasks/guest_delete_task.go
2018-08-25 17:03:06 +08:00
邱剑 bf06700ee2 Merge pull request #111 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-aliyun-vm-auto-start-fail to release/2.0.0
* commit '122c1d63f298da1dd8800a29e3e83d48b946e021':
  bugfixs for aliyun server create/delete
  remove some debug log
  修正:阿里云主机创建后自动启动失败
2018-08-25 16:04:25 +08:00
Qiu Jian 122c1d63f2 bugfixs for aliyun server create/delete 2018-08-25 16:02:26 +08:00
邱剑 d9ac8f61d2 Automatic merge from release/2.0.0 -> release/2.1.0
* commit '9be6d86e292c036c783190ac53e929717b46806d':
  fix: NotifyParentTaskFailure reason
2018-08-25 14:40:02 +08:00
Zexi Li 2914e880af fix: NotifyParentTaskFailure reason 2018-08-25 14:31:05 +08:00
邱剑 2f7028e8f7 Automatic merge from release/2.0.0 -> release/2.1.0
* commit '6abf1210ab9a7ec6ee292161e3d2548dd3b44b74':
  修正: task 回调不到 stage tailed 的情况
2018-08-25 11:58:19 +08:00
Zexi Li 96d52d1061 修正: task 回调不到 stage tailed 的情况 2018-08-25 11:02:03 +08:00
Zexi cbc0c234f2 - climc: 设置 option 没有 subcommand 的情况下进入交互模式, 代码逻辑变清晰
- make fmt
2018-08-17 12:11:08 +08:00
wanyaoqi 231e94fbd8 1.fix corn run task with empyt context 2018-08-15 21:52:24 +08:00
wanyaoqi baa7b9e093 region: server-rebuid-root and fix bug on disk create and disk create failed 2018-08-14 16:09:35 +08:00
Zexi Li 090a9c5e86 Merge branch 'release/2.0.0' of ssh://git.yunion.io/~lizexi/onecloud into release/2.1.0 2018-08-11 15:11:24 +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
Qiu Jian 6d81914119 Merge branch 'release/2.0.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-release-2.1.0-conflict-resolve-20180810
Conflicts:
	pkg/cloudcommon/db/taskman/subtasks.go
	pkg/compute/models/guests.go
2018-08-10 12:15:04 +08:00
Qiu Jian f0ec8a563e 修正:1. 删除VPC导致hostwire数据不一致问题 2. 阿里云主机无操作系统信息
3. 其他一些BUGfix
2018-08-09 17:49:17 +08:00