Commit Graph
111 Commits
Author SHA1 Message Date
wanyaoqi 3f7e134fbf fix(worker): policy and task worker count configurable (#14958) 2023-01-05 22:36:50 +08:00
Jian QiuandQiu Jian 21716cefb5 fix: remove mutual dependency of cloudmux on onecloud (#15621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 01:21:26 +08:00
屈轩 079be4492d fix(region): task panic (#15345) 2022-11-11 19:51:37 +08:00
Jian QiuandQiu Jian 94319b514c fix: add CreateByInsertOrUpdate flag (#14442)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-13 02:27:22 +08:00
wanyaoqi f163690191 feat(host,region): suport live change disk storage (#14342)
Guest start drive mirror job to copy full disk to target, after drive
mirror job ready, guest reopen target disk to replace source disk.
Qemu must support block reopen image feature.

Supported storage: local, ceph

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-06-03 01:47:48 +08:00
rainzm f5d58cdee9 feat(cloudcommon): notify when the checksum of db table record test fail
1. remove pkg/cloudcommon/db dependency on pkg/cloudcommon
2. init db notifier in pkg/cloudcommon.InitDB
3. move interface 'IStartable' to pkg/util/logclient package which alone references above interface
2022-04-01 18:50:40 +08:00
ioito 6f32a0281a fix(notify): add panic notify 2022-03-01 17:17:29 +08:00
rainzm 3c2b1a45d1 fix(cloudcommon): splice notifyurl correctly 2022-01-19 11:35:30 +08:00
Qiu Jian 84a9ae95f6 feature: policy support tags 2021-12-02 07:43:10 +08:00
Qiu Jian 97a3ab12a2 support sqlite 2021-11-17 07:25:00 +08:00
Qu Xuan 8ba5393ae5 fix(region): optimized validate delete condition query 2021-09-23 09:58:54 +08:00
Qu Xuan 7b845d17c7 fix(common): dump task info when stucking 2021-04-26 10:45:38 +08:00
rainzm 520fae50a6 fix(region): use special localtask to run time-consuming provider synchronization task
CloudProviderSyncInfoTask will local cloudprovider. Make locaktask run
time-consuming task can avoid holding locks for a long time.
2021-04-23 17:01:12 +08:00
rainzm f7add55303 feat(cloudcommon): set TaskNotifyUrl in GetTaskRequestHeader
To support cross-service task callbacks, you must set TaskNotifyUrl,
which is automatically added to TaskRequestHeader here
2021-04-07 17:01:08 +08:00
Qu Xuan 74eeb43e4d fix(region): avoid worker discarded after state unchanged 2021-01-27 14:57:27 +08:00
Qiu Jian 4043cd8342 fix(taskman): use admin token if task userCred token expired
Use admin credential token if task cached userCred token expired
2020-12-20 00:43:34 +08:00
Yousong Zhou da4c2dcaa4 fix(taskman): SSubTask: set model manager 2020-11-30 23:09:55 +08:00
Qu Xuan 5cba23d8cf fix: add panic log for worker task 2020-11-27 19:36:44 +08:00
Qiu Jian 4431acde83 fix:
1. server generate name should be historically unique
2. ipaddr of a batch of server is in the same order as generated name
2020-11-05 00:21:12 +08:00
rainzm e45ddaeb99 feat: inherit lang from ctx fro Task 2020-09-23 21:19:57 +08:00
Jian QiuandQiu Jian 3ccf78ae7d fix: server purge may fail (#7696)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-09-01 10:18:37 +08:00
Qu Xuan 6477e0e140 fix: avoid nil pointer 2020-07-30 11:23:36 +08:00
Jian QiuandQiu Jian ba292dfedc fix: use json to store task error message (#7351)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-07-30 10:34:32 +08:00
wanyaoqi a677f24351 - add precheck for perform action
- auto switch to backup

- add sync cleand schedule cache

- add reconcile with backup

- add manual reconcile backup
2020-07-22 20:38:36 +08:00
Yousong Zhou de1e1b1008 cloudcommon: taskman: fix table insert
Fix the following error

	run error: reflect: NumField of non-struct type *taskman.STask

Fixes 08cd41b60d ("cloudcommon: taskman: SetModelManager")

Reported-by: Qu Xuan <quxuan@yunionyun.com>
2020-06-30 11:54:41 +08:00
Yousong Zhou 08cd41b60d cloudcommon: taskman: SetModelManager 2020-06-29 14:44:59 +08:00
Zexi Li 9f4d4a450e refactor ITableSpec signature with context 2020-06-08 11:31:00 +08:00
Qiu Jian bdfa99b0b6 fix: server change config failed due to quota recode 2019-12-16 21:03:52 +08:00
Qiu Jian 3dba5360d7 quota recode 2019-12-12 11:31:41 +08:00
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