Commit Graph

1158 Commits

Author SHA1 Message Date
yunion-ci-robot
bb68d7f2c2 Merge pull request #7587 from ioito/feature/qx-dns-interface
feature: add dns interface
2020-09-02 18:01:08 +08:00
Qu Xuan
f251559c39 feature: add dns interface 2020-09-02 16:30:05 +08:00
Rain Zheng
1ed65ddd1a Feature & Fix for Notify (#7714)
* feat(notify): Add 'get-types' action for ConfigManager

The List interface is only open to administrators,
because we don't want anyone other than administrators
to see the details of the notify configuration.
To let general user to kown available notification channels,
add 'get-types' actions of ConfigManager.

* feat(notify): Check the availability of contact type before creating notification

Creating notification with unconfigured contact type will fail at
sending message. Now, prevent creation in advance.

* feat(notify): Add workwx for NotifyNormal/Important/Critical

* feat(notify): Add Notify about robot in notifyclient

* fix(notify): Init ParentContactType for SSubContact

1. ParentContactType of SSubContact with webconsole type is empty.
2. ParentContactType of others SSubContact is mobile.

* fix(notify): Unverify SSubContact when ParentContactType match

* fix(notify): When no data is initialized, exit directly
2020-09-02 16:10:06 +08:00
Rain Zheng
e393f3ee21 Fix problem of esxi (#7661)
* fix(esxi): Fetch full templates of datastoreImageCache

Datastore 和 DatastoreImageCache 是一对一的关系。
每一个 Datastore 可能有多个对应的 Host,所以 GetIIMages 里面获取
Templates 的逻辑应该尝试去获取所有 Host 的 Templates。

* fix(host-deployer): Exit correctly after mounting

MountRootfs的返回值为nil时,还是需要Umount的操作来正确退出(比如VDDK)。
VDDK的Mount分为两步,第一步会挂在remote
disk到fuse下,然后挂载fuse/xxx/flat
到块设备上。第一步成功,第二部失败也应该正确退出。

* fix(host-deployer): Kill process

* opt(host-deployer): Increase timeout of waiting mount

* opt(host-deployer): Add debug log print command to mount

* fix(esxi): Support multi agent in different zone
2020-09-01 10:47:39 +08:00
Jian Qiu
3ccf78ae7d fix: server purge may fail (#7696)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-09-01 10:18:37 +08:00
Jian Qiu
34ee80f011 feature: use informer to update endpoint, policy and service configs (#7596)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-08-25 17:45:33 +08:00
Yousong Zhou
c2bca8ab39 Feature/yousong text (#7487)
* notify: log with context info

* region: guests: log with context info

* region: hosts: log with context info

* region: misc: remove redundant log

* region: skus: use NewInternalServerError instead of NewGeneralError

* appsrv: dispatcher: preserve text id

* appsrv: dispatcher: remove commented-out code

* cloudcommon: db_dispatcher: note errors that won't be translated

* cloudcommon: db: rbac: preserve text id

* cloudcommon: caller: preserve text id

* treewide: fix fmt string

* region: guest_actions: preserve text id

* region: guest_actions: fix fmt string

* region: usages: fix fmt string

* mcclient: hosts: remove redundant return value

* cloudcommon: fetch: preserve text id

* region: guest_template: preserve text id

* cloudcommon: db: db_dispatcher: preserve text id

* region: guest_actions: preserve text id

* httperrors: add funcs for wrap lang tag into context

* vendor: golang.org/x/text

* httperrors: error with context

* httperrors: HTTPError

* treewide: fix typo

* treewide: use en in source code

* locales: initial version
2020-08-25 15:26:31 +08:00
Qiu Jian
3762df8087 fix: GetDefaultClient always return a new http client instance 2020-08-22 20:07:09 +08:00
Jian Qiu
777059648b fix: opslog filter by owner_project_ids and owner_domain_ids (#7600)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-08-21 10:57:23 +08:00
屈轩
a23a94714c fix: member user only can get user & domain resource (#7597)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2020-08-20 20:53:17 +08:00
Zexi Li
86253534d7 only notify watched resource (#7592) 2020-08-19 12:52:26 +08:00
Qiu Jian
016b65a4b1 fix: dns record create ignore is_public field 2020-08-18 01:06:08 +08:00
Zexi Li
c672521ce2 cloudcommon: remove query for fetchitem when not GET (#7551) 2020-08-11 19:46:44 +08:00
Zexi Li
9af25a2aa9 cloudcommon: remove unnecessary joint interface (#7524) 2020-08-10 16:16:46 +08:00
Jian Qiu
1ba9715ec2 feature: add is_auto_alloc flag to networks (#7473)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-08-03 11:58:02 +08:00
Qiu Jian
9bdf2c75e1 fix: avoid generated codes having duplicate PerformSetScope methods 2020-08-01 17:34:54 +08:00
屈轩
1244c170b7 fix: 避免glance metadata-list project scope无权限 (#7402)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2020-07-31 18:01:27 +08:00
Qu Xuan
6477e0e140 fix: avoid nil pointer 2020-07-30 11:23:36 +08:00
Jian Qiu
f0f406c243 fix: adjust API input field names according to spec (#7382)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-07-30 10:51:00 +08:00
Jian Qiu
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
Jian Qiu
984bfeb6e8 fix: change owner should check required domain list (#7375)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-07-29 17:32:01 +08:00
Zexi Li
d5f8855cc2 Merge pull request #7143 from wanyaoqi/feature/wyq/kvm-misc
auto switch to backup server
2020-07-24 10:48:02 +08:00
Qiu Jian
8d8acab903 fix: domain resource domain share to system when
non_default_domain_projects off
2020-07-23 16:51:02 +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
Qiu Jian
ce3d0906b0 fix: quota usage not updated after disk resizing 2020-07-19 13:16:07 +08:00
Qu Xuan
34aa551141 fix: 修复cloudid get权限问题 2020-07-15 11:07:04 +08:00
Zexi Li
fc7f0f2423 Merge pull request #7166 from ioito/hotfix/qx-cloudid-fix
Hotfix/qx cloudid fix
2020-07-15 10:35:49 +08:00
Qu Xuan
4cd67270a1 fix: azure 支持权限 2020-07-14 21:22:15 +08:00
Zexi Li
c777793d96 db_dispatcher: pass query for fetchItem 2020-07-14 17:46:42 +08:00
Qu Xuan
dccf685f66 fix: 修复cloudid用户列表权限问题 2020-07-14 17:43:52 +08:00
wanyaoqi
e2043d6bcc - fix local storage init local man
- fix rbd set storage info
2020-07-10 14:41:59 +08:00
Zexi Li
dd90c7c145 Merge pull request #7102 from swordqiu/hotfix/qj-opslog-show-operators-log-only
fix: opslog show the owners operation logs only
2020-07-09 14:18:34 +08:00
Qiu Jian
d59bff3361 fix: opslog show the owners operation logs only 2020-07-09 11:20:04 +08:00
Qu Xuan
4b0bfa7342 fix: cloudid 异常修复 2020-07-08 20:57:35 +08:00
Zexi Li
9ab1caee86 Merge pull request #7017 from ioito/hotfix/qx-cloudid-sync
fix: 修复cloudid同步问题
2020-07-03 11:39:00 +08:00
Qu Xuan
02bf5b76d7 fix: 公有云子账号加域属性 2020-07-03 11:11:37 +08:00
Zexi Li
7aa3c9ddec monitor: suggestsysalert add ignore action 2020-07-02 21:19:14 +08:00
Zexi Li
df5e61ee7b Merge pull request #6998 from ioito/hotfix/qx-filter-by-external-id
fix: manager_id资源隔离获取
2020-07-02 20:20:00 +08:00
Qu Xuan
9bb4eb5d44 fix: manager_id资源隔离获取 2020-07-02 10:17:38 +08:00
Zexi Li
7a9662c6f5 monitor: support suggest rule alert config and add snapshot_unused
driver
2020-07-01 19:31:50 +08:00
Zexi Li
cc65e9c5da Merge pull request #6942 from yousong/bugfix/yousong-log
Bugfix/yousong log
2020-06-30 12:10:07 +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
Zexi Li
29cbe29ede Merge pull request #6947 from swordqiu/hotfix/qj-disable-domain-shareing-if-non-default-domain-project-turned-off
fix: disable domain sharing if non_default_domain_projects turned off
2020-06-30 10:48:03 +08:00
Yousong Zhou
4fc35f92cb cloudcommon: tablespec: informer: use %#v to log bad obj
Fixes 145c88f79b ("cloudcommon: tablespec: informer: log obj type")
2020-06-29 14:44:59 +08:00
Yousong Zhou
08cd41b60d cloudcommon: taskman: SetModelManager 2020-06-29 14:44:59 +08:00
Yousong Zhou
2eeb45deda cloudcommon: etcd: quash low-value debug log lines 2020-06-28 14:49:38 +08:00
Qiu Jian
e796437a3c fix: disable domain sharing if non_default_domain_projects turned off 2020-06-28 13:02:25 +08:00
Qiu Jian
f3fa6f82b6 fix: sort quota list result by usage rate 2020-06-23 22:04:38 +08:00
Zexi Li
8d81393c03 Merge pull request #6893 from yousong/bugfix/yousong-keystone-cpu
Bugfix/yousong keystone cpu
2020-06-22 09:14:49 +08:00
Yousong Zhou
29a3171a3a cloudcommon: policy: fix interval and oneshot sync
Reduce CPU utilization caused by queued time.AfterFunc calls
2020-06-21 18:33:08 +08:00