Commit Graph
1177 Commits
Author SHA1 Message Date
yunion-ci-robot 392849b6e4 Merge pull request #8007 from rainzm/task/withLang
Fix & Feat of Notify or Lang
2020-09-24 10:43:19 +08:00
Qiu Jian 4a27d49123 fix: scope resource filter by owner 2020-09-23 21:21:07 +08:00
rainzm c5a78a9028 fix: use i18n.Table to handle Chinese-English conversion 2020-09-23 21:20:06 +08:00
rainzm 8eb420e42c feat: log err when sending notification via notifyclient 2020-09-23 21:20:06 +08:00
rainzm e45ddaeb99 feat: inherit lang from ctx fro Task 2020-09-23 21:19:57 +08:00
Yousong Zhou 9fd0f3088f db: IModel: add GetI18N() method 2020-09-21 15:20:46 +08:00
Yousong Zhou 642a90146e opslog: move const to separate file 2020-09-21 15:20:45 +08:00
Yousong Zhou 1c1dcbde45 i18n: move out from httperrors pkg 2020-09-21 10:12:57 +08:00
Zexi Li 1af48dc73d cloudcommon: get joint model should aware fieldname 2020-09-16 20:49:51 +08:00
Zexi Li 0bcaeda09d Merge pull request #7910 from rainzm/notify/ti
Feat & Fix of Notify
2020-09-16 11:32:41 +08:00
Qiu Jian 1a3acbd056 fix: enable generate name caused compability issue 2020-09-16 01:32:03 +08:00
Zexi Li a47553a7a2 cloudcommon: joint model list should add field_name into query 2020-09-14 21:32:31 +08:00
rainzm 54c7069d9e feat: add NotifyError in notifyclient
NotifyError send error message to user from userCred.
2020-09-14 20:31:22 +08:00
rainzm 4b49bcec8f feat: add WithCtx version to notifyclient function 2020-09-14 20:31:17 +08:00
Yousong Zhou 6415de33d3 treewide: DeleteFailReason as an object with translated details 2020-09-07 18:51:29 +08:00
rainzm 6509ed6e99 fix(notify): Replace String() with GetString()
The String() of jsonutils.JSONObject will add a pair of
double quotes around the content. The GetString() will
get a clean content.
2020-09-07 15:09:47 +08:00
Zexi Li 723a8a3547 Merge pull request #7751 from ioito/hotfix/qx-cloudid-optimized
Hotfix/qx cloudid optimized
2020-09-04 10:33:15 +08:00
Qu Xuan ce032ecf17 fix: optimzed sync 2020-09-03 21:10:29 +08:00
Qiu Jian 64f5bc748c fix: search by chs projectname or domainname 2020-09-03 18:36:28 +08:00
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 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
Jian QiuandQiu Jian 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 QiuandQiu Jian 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
屈轩andQu Xuan 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 QiuandQiu Jian 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
屈轩andQu Xuan 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 QiuandQiu Jian 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 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
Jian QiuandQiu Jian 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