Commit Graph

947 Commits

Author SHA1 Message Date
Zexi Li
d91086def8 Merge pull request #5559 from rainzm/automated-cherry-pick-of-#5555-upstream-release-2.12
Automated cherry pick of #5555: feat(notify): Compatibility and repair
2020-03-19 10:06:47 +08:00
Rain
e42dc01341 feat(notify): Compatibility and repair 2020-03-18 21:22:47 +08:00
Qu Xuan
e440019097 fix: class action 统一使用keywords包裹 2020-03-17 18:45:15 +08:00
Rain
6869846840 fix: Add 'scope=system' and 'system' for Caches when querying from Keystone.
1. Query 'scope=system' and 'system=true' is neccessary when fetching all users
   or groups from Keystone.
   Without these, users and groups in other domains (non-caller domains),
   as well as system-level users, cannot be detected.
2. Query 'scope=system' is neccessary when fetching all project from Keystone.
2020-03-06 17:18:24 +08:00
Rain
fe2add1563 feature(notify): Add query and return value for contact UPDATE interface
1. Add same return value with contact GET interface when updating
2. Add pull params for query to pull subcontact by mobile number.
   For example, pull user_id from dingtalk throught user's mobile
   number.
3. Add corresponding feature based on above for climc.
4. UserCache will try FetchByName if there is no id matched user when
   fetching users from KeyStone.
2020-03-05 17:11:41 +08:00
Rain
7e4b8c2f54 feature(notify): Validate config 2020-02-24 14:13:00 +08:00
张旭
ea34a7eaf8 update account bucket options 2020-02-12 18:27:00 +08:00
Qiu Jian
f50b15c4ef fix: network-reserve-ip ignores expired reserved ips 2020-01-18 14:26:44 +08:00
Qiu Jian
cf4241894e fix: fail to compile climc 2020-01-05 09:39:18 +08:00
张旭
0c367976e0 add cloud account create&update options 2020-01-05 09:34:50 +08:00
张旭
f5a40c3e02 add cloud account create&update options 2020-01-04 20:25:42 +08:00
Qiu Jian
081f6de5f7 fix: host-update ipmi and host-sync-config support 2019-12-30 16:14:22 +08:00
Qiu Jian
8827d2b15c fix: bucket list objects with marker and limit 2019-12-26 00:50:40 +08:00
Rain
3e3a1381a7 Fix(notify): Unified the api params and fix some bug.
1. Config Verify 和 Contact 的 InitalizeData 写得过于直接了。
会导致正常的数据被覆盖。实际上,数据的Init只需要更换数据
库的时候更新,如何判断数据库要被更新了,就是判断新出现的
column 有没有非零值的,如果有,就说明数据库不是第一次更新。

2. 前端的请求经过yunionapi,最终会调用climc里面注册的ResourceManager,
所以这个地方一定要和后端的参数处理统一。之前因为添加 uname
的支持破坏了这个地方的统一,虽然climc可以调用成功但是前端接口调用会失败。

3. Resend 的bug,会导致任务的阻塞。

4. 为了兼容kapacitor对climc
notify的调用,分成了notify和notify-batch两个命令。
2019-12-20 11:41:59 +08:00
Rain
f4811f3509 fix(notify): Fix the bugs of user cache and some api's params 2019-12-17 17:20:27 +08:00
Qiu Jian
26826e3218 fix: bucket-object-upload not work 2019-12-16 23:13:21 +08:00
Qiu Jian
61e5f5eb74 misc imporvements 2019-12-16 23:09:36 +08:00
Rain
f5cf95fa8b feat(notify): Available uname in api & Unified template management
1. Uname is availbale now in api via adding "uname=true" in query.
So we can use uname in climc which is much more visual and use uid in
web client which avoid time-consuming remote calls that may occur.

2. Previously, the template for the message was managed by the
individual sending components. Now, these templats was managed uniformly
by Notify Service so that we can easily add and remove.

3. Now, failure to send a validation message will trigger a notification
to the user via websocket.
2019-12-16 11:05:45 +08:00
张旭
ac5584caae delete duplicate param brand 2019-12-12 15:26:47 +08:00
张旭
6886e20ba3 add associated_bills & modify meter version 2019-12-12 11:59:58 +08:00
Qiu Jian
940626f02b fix: 1. service-config not support key=value pair 2. sync_purge_removed_resources not working 2019-11-27 20:43:53 +08:00
Zexi Li
20895d9d3a Merge pull request #3885 from swordqiu/automated-cherry-pick-of-#3884-upstream-release-2.12
Automated cherry pick of #3884: fix: error in service config format cause service halt
2019-11-26 15:45:39 +08:00
yunion-ci-robot
6858c0bf42 Merge pull request #3878 from wanyaoqi/automated-cherry-pick-of-#3876-upstream-release-2.12
Automated cherry pick of #3876: misc fix
2019-11-26 13:38:27 +08:00
Qiu Jian
9e2bf1d7e9 fix: error in service config format cause service halt 2019-11-26 02:55:19 +08:00
Qiu Jian
af4e49da15 fix: host-add-netif requires index 2019-11-25 23:47:49 +08:00
wanyaoqi
b99e734ee7 misc fix
- image list filter by uefi
- fix instance sanpshot delete
- guest clean expire server exclude pending deleted servers
- host register abort on network not match
2019-11-25 21:27:18 +08:00
Zexi Li
51f13cb6f1 Merge pull request #3815 from swordqiu/automated-cherry-pick-of-#3809-upstream-release-2.12
Automated cherry pick of #3809: feature: add network-status methods to change status of on-premise network
2019-11-21 00:22:07 +08:00
郑雨
0d82b55f79 fix(region): Add public/private feature for Guest Image
Public/private subimages firstly when do public/private for guest image.
Add cmd "guest-image-public" and "guest-image-private".
2019-11-20 19:10:35 +08:00
Qiu Jian
b9c89511a1 feature: add network-status methods to change status of on-premise network 2019-11-20 19:03:37 +08:00
Zexi Li
918c2e2fdf region: host list filter by cdrom_boot 2019-11-19 01:45:00 +08:00
Qiu Jian
83769d4d58 feature: cloud account share_mode support 2019-11-18 17:45:51 +08:00
Qiu Jian
8361b96ef8 fix: network-delete may fail immidiately after deleting vm 2019-11-15 12:40:44 +08:00
Qiu Jian
5aab6a4672 fix: check password complexity even if password length is zero 2019-11-14 12:55:55 +08:00
yunion-ci-robot
6155e6b83e Merge pull request #3608 from yousong/automated-cherry-pick-of-#3606-upstream-release-2.12
Automated cherry pick of #3606: influxdb: 记录结果中的tags
2019-11-14 00:25:20 +08:00
Yousong Zhou
16d4459c87 climc: 添加lblistener{,rule}-backend-status命令 2019-11-13 02:42:09 +00:00
Qu Xuan
90bfc06ddc fix: 创建数据库时指定账号权限时,避免数据库出现中间状态 2019-11-13 10:23:07 +08:00
yunion-ci-robot
6b33fa643c Merge pull request #3544 from ioito/automated-cherry-pick-of-#3535-upstream-release-2.12
Automated cherry pick of #3535: fix: remove private cloud server sku brand and provider attribute
2019-11-11 21:05:19 +08:00
yunion-ci-robot
81051293b3 Merge pull request #3560 from tb365/automated-cherry-pick-of-#3557-upstream-release-2.12
Automated cherry pick of #3557: redis sync fix
2019-11-11 17:41:17 +08:00
tangbin
93a99771ea redis sync fix 2019-11-11 14:18:37 +08:00
Qiu Jian
38f7cea4de feature: keystone add service config API and allow config services by API 2019-11-10 03:37:28 +08:00
Qu Xuan
2979327e03 fix: remove private cloud server sku brand and provider attribute 2019-11-08 18:20:22 +08:00
Zexi Li
cc3697b5fc climc: k8s api update 2019-11-08 17:54:54 +08:00
Zexi Li
5469b661c3 Merge pull request #3499 from swordqiu/automated-cherry-pick-of-#3498-upstream-release-2.12
Automated cherry pick of #3498: fix: reserve probed ipaddr
2019-11-08 14:55:01 +08:00
Qiu Jian
ae00ae0afa fix: reserve probed ipaddr 2019-11-08 00:46:22 +08:00
Qu Xuan
6c32814d2b fix: 避免因backup删除失败导致删除rds无限失败 2019-11-07 21:34:19 +08:00
yunion-ci-robot
b1dbb1c39e Merge pull request #3482 from rainzm/automated-cherry-pick-of-#3472-upstream-release-2.12
Automated cherry pick of #3472: fix: Add operational restrictions and fix some bugs for guest image
2019-11-06 14:36:15 +08:00
郑雨
7c938846c3 fix: Add operational restrictions and fix some bugs for guest image
1. Support generate_name for guest image
2. Only allow subimage of guest image to update description
3. Add support for creating vm from guest image in fetchDiskInfo(disk.go)
4. Fix the bug vm can't start automatically after build guest image
5. Fix the bug that project of guest image is incorrect
6. Fix the bug about updating guest image
2019-11-06 13:17:54 +08:00
Rain
a6f27d1883 feat & fix: Add batch operator and fix some bugs for instance group
Feature:
1. Add apis: list server by group, list group by server, bind
servers, unbind servers, bind groups, unbind groups.
2. Add climc command and docs corresponding to the above newly added apis
3. Add log about binding and unbinding operator.
4. Support enable and disable instance group.
Fix:
1. Set capacity zeor if there are not enough resource aboue forced
instance group in one host.
2. Change the stage(real delete => pending delete) that guest leave all groups.
2019-11-06 13:15:48 +08:00
Qiu Jian
30b460d1b7 fix: baremetal-event-list support since/until filter 2019-11-05 22:35:04 +08:00
Qiu Jian
9f0aedf129 feature: add api to get all allocated addresses of a network 2019-11-04 09:45:40 +08:00