Compare commits

...

1746 Commits

Author SHA1 Message Date
Zexi Li
93879980f5 Merge pull request #9720 from swordqiu/automated-cherry-pick-of-#9719-upstream-release-3.6
Automated cherry pick of #9719: fix(cloudcommon): splitable may not initialize underlying table
2020-12-29 21:17:17 +08:00
Zexi Li
5bb13e48b7 Merge pull request #9716 from wanyaoqi/automated-cherry-pick-of-#9711-upstream-release-3.6
Automated cherry pick of #9711: fix(region,host,host-deployer): sync status chekc block jobs
2020-12-29 20:43:37 +08:00
Zexi Li
64fcdea2b0 Merge pull request #9712 from rainzm/automated-cherry-pick-of-#9693-upstream-release-3.6
Automated cherry pick of #9693: Solve the permission problem of notify to create receiver
2020-12-29 20:41:44 +08:00
Zexi Li
57fa6361fc Merge pull request #9708 from rainzm/automated-cherry-pick-of-#9706-upstream-release-3.6
Automated cherry pick of #9706: feat(region): multilingual timer description
2020-12-29 20:39:31 +08:00
Qiu Jian
732159137b fix(cloudcommon): splitable may not initialize underlying table 2020-12-29 18:54:26 +08:00
wanyaoqi
d2ec564ccc fix(region,host): sync status check block jobs 2020-12-29 15:31:54 +08:00
wanyaoqi
a4323eab43 fix(host-deployer): add log line on blkid failed 2020-12-29 15:31:54 +08:00
wanyaoqi
7335875ef1 fix(climc): host add netif add params bridge/interface 2020-12-29 15:31:54 +08:00
rainzm
8d98218f06 feat(region): multilingual timer description 2020-12-29 15:23:45 +08:00
rainzm
af274d7ad2 feat(db): progressive inspection when determining the required scope 2020-12-29 15:04:28 +08:00
rainzm
25baa6f509 fix(notify): inject domain info in ReceiverManager.FetchOwnerId 2020-12-29 15:04:28 +08:00
Zexi Li
4cb9304d4c Merge pull request #9702 from swordqiu/automated-cherry-pick-of-#9701-upstream-release-3.6
Automated cherry pick of #9701: fix(region): omit vpc quota check if vpc created by owner
2020-12-29 09:35:53 +08:00
Zexi Li
db198f06d6 Merge pull request #9700 from zhaoxiangchun/automated-cherry-pick-of-#9698-upstream-release-3.6
Automated cherry pick of #9698: fix(monitor): sore reture info:resourceType,measurement
2020-12-29 09:35:02 +08:00
Qiu Jian
e38ea05c21 fix(region): omit vpc quota check if vpc created by owner
Vpc quota check is omitted if vpc is create by owner user
2020-12-29 01:18:44 +08:00
--global
ba22334382 fix(monitor): sore reture info:resourceType,measurement
1.对资源类型和对应的measurement进行排序输出
2020-12-28 21:44:04 +08:00
Zexi Li
4020c6dd9e Merge pull request #9695 from zhaoxiangchun/automated-cherry-pick-of-#9694-upstream-release-3.6
Automated cherry pick of #9694: fix(monitor): add resType   filter
2020-12-28 21:22:27 +08:00
--global
ccf0653581 fix(monitor): add resType filter
1.修复资源类型过滤失效的问题
2020-12-28 17:21:01 +08:00
Zexi Li
5f566f517c Merge pull request #9541 from ioito/automated-cherry-pick-of-#9540-upstream-release-3.6
Automated cherry pick of #9540: fix(region): openstack network is regional
2020-12-28 10:20:30 +08:00
Zexi Li
787a0a61d0 Merge pull request #9683 from rainzm/automated-cherry-pick-of-#9681-upstream-release-3.6
Automated cherry pick of #9681: feat(region): make DeleteSnapshotExpiredRelease applies to postpaid vm
2020-12-27 21:06:12 +08:00
Zexi Li
60392d84aa Merge pull request #9679 from ioito/automated-cherry-pick-of-#9677-upstream-release-3.6
Automated cherry pick of #9677: optimized(region): qcloud bucket policy set and get operation
2020-12-26 20:01:08 +08:00
rainzm
be042a0758 feat(region): make DeleteSnapshotExpiredRelease applies to postpaid vm 2020-12-26 18:43:10 +08:00
Zexi Li
ea3bdba3c6 Merge pull request #9588 from tb365/automated-cherry-pick-of-#9587-upstream-release-3.6
Automated cherry pick of #9587: fix(region): cloudregion&zone add namei18n
2020-12-26 18:42:58 +08:00
Qu Xuan
c0bcfa9a53 optimized(region): qcloud bucket policy set and get operation 2020-12-26 17:42:49 +08:00
TangBin
e289553015 fix(region): remove i18n fix & zone &region name support i18n 2020-12-26 17:34:55 +08:00
TangBin
834f5a97de fix(region): aws sync vpc access mode bugfix 2020-12-26 17:34:55 +08:00
TangBin
2a4a762f24 fix(region): cloudregion&zone add namei18n 2020-12-26 17:34:54 +08:00
Zexi Li
eae0c59eb3 Merge pull request #9662 from rainzm/automated-cherry-pick-of-#9660-upstream-release-3.6
Automated cherry pick of #9660: feat(region): add options DeleteSnapshotExpiredRelease
2020-12-26 15:12:32 +08:00
Zexi Li
5368888dd8 Merge pull request #9650 from ioito/automated-cherry-pick-of-#9627-upstream-release-3.6
Automated cherry pick of #9627: fix(region): support rds secgroup operation
2020-12-26 12:20:10 +08:00
Zexi Li
85c2ea5ccc Merge pull request #9649 from lvyangyang/automated-cherry-pick-of-#9636-upstream-release-3.6
Automated cherry pick of #9636: fix(region): aws lb create tags param
2020-12-26 12:18:29 +08:00
Zexi Li
f9da623770 Merge pull request #9641 from ioito/automated-cherry-pick-of-#9640-upstream-release-3.6
Automated cherry pick of #9640: fix(region): purge private cloud sku
2020-12-26 12:15:08 +08:00
Zexi Li
4a2ef4163e Merge pull request #9643 from ioito/automated-cherry-pick-of-#9642-upstream-release-3.6
Automated cherry pick of #9642: fix(region): apsara optimized
2020-12-26 12:13:51 +08:00
Zexi Li
a192d40495 Merge pull request #9645 from swordqiu/automated-cherry-pick-of-#9644-upstream-release-3.6
Automated cherry pick of #9644: feature(climc): policy save data into file
2020-12-26 12:09:23 +08:00
Zexi Li
1ab4b68080 Merge pull request #9655 from ioito/automated-cherry-pick-of-#9654-upstream-release-3.6
Automated cherry pick of #9654: fix(region): optimized azure rebuild root
2020-12-26 12:06:41 +08:00
Zexi Li
c829c02325 Merge pull request #9653 from swordqiu/automated-cherry-pick-of-#9652-upstream-release-3.6
Automated cherry pick of #9652: fix(cloudevent): adjust cloudevents resource scope
2020-12-26 12:04:56 +08:00
rainzm
e4efbdc336 feat(region): add options DeleteSnapshotExpiredRelease 2020-12-26 11:09:19 +08:00
yunion-ci-robot
22e318b6c1 Merge pull request #9658 from zhaoxiangchun/automated-cherry-pick-of-#9657-upstream-release-3.6
Automated cherry pick of #9657: fix(monitor): monitor notify international and 3.6 bugfix
2020-12-26 11:06:58 +08:00
--global
ab14706ff5 fix(monitor): monitor notify international and 3.6 bugfix
1.修复项目下无法查看报警记录
2.修复报警策略切换所属范围signature失败
3.国际化问题处理
2020-12-26 09:54:08 +08:00
Qu Xuan
0252c00efc fix(region): optimized azure rebuild root 2020-12-25 20:56:29 +08:00
Qiu Jian
540af1a3af fix(cloudevent): adjust cloudevents resource scope
Change cloudevents resource scope from system to project.
2020-12-25 20:41:57 +08:00
Qu Xuan
c5a974e744 fix(region): support rds secgroup operation 2020-12-25 19:13:11 +08:00
lvyangyang
4cb9c936cd fix(region): aws lb create tags param 2020-12-25 18:24:41 +08:00
Zexi Li
22d31a39c1 Merge pull request #9638 from ioito/automated-cherry-pick-of-#9637-upstream-release-3.6
Automated cherry pick of #9637: fix(cloudid): optimized system policy sync
2020-12-25 17:24:07 +08:00
Qiu Jian
94dd5c5777 feature(climc): policy save data into file
Allow saveing policy data into file
2020-12-25 17:02:02 +08:00
Qu Xuan
8a5e682b06 fix(cloudid): optimized system policy sync 2020-12-25 15:04:17 +08:00
Qu Xuan
38a0b76a58 fix(region): apsara optimized 2020-12-25 14:21:35 +08:00
Qu Xuan
a2b15c596c fix(region): purge private cloud sku 2020-12-25 11:23:46 +08:00
Zexi Li
64ed1d4e88 Merge pull request #9634 from ioito/automated-cherry-pick-of-#9633-upstream-release-3.6
Automated cherry pick of #9633: fix(region): sku.meta use global proxy
2020-12-25 01:26:21 +08:00
Zexi Li
f8e228502f Merge pull request #9630 from ioito/automated-cherry-pick-of-#9629-upstream-release-3.6
Automated cherry pick of #9629: fix(region): optimized disk allocate sched failed log
2020-12-24 17:47:59 +08:00
Zexi Li
a0cecc801e Merge pull request #9623 from ioito/automated-cherry-pick-of-#9622-upstream-release-3.6
Automated cherry pick of #9622: fix(region): avoid openstack change config error
2020-12-24 17:42:14 +08:00
Zexi Li
916692b992 Merge pull request #9626 from ioito/automated-cherry-pick-of-#9593-upstream-release-3.6
Automated cherry pick of #9593: fix(region): private cloud sku create
2020-12-24 17:41:15 +08:00
Zexi Li
244a63aa24 Merge pull request #9620 from ioito/automated-cherry-pick-of-#9619-upstream-release-3.6
Automated cherry pick of #9619: fix(region): avolid panic when list role's policies
2020-12-24 17:35:18 +08:00
Zexi Li
1f6e01592e Merge pull request #9610 from wanyaoqi/automated-cherry-pick-of-#9609-upstream-release-3.6
Automated cherry pick of #9609: fix(glance): list image by os arch use startwith
2020-12-24 17:34:32 +08:00
Qu Xuan
14bdbea3e2 fix(region): sku.meta use global proxy 2020-12-24 17:24:38 +08:00
Qu Xuan
27a2d36ff5 fix(region): optimized disk allocate sched failed log 2020-12-24 16:59:09 +08:00
Qu Xuan
1aec7ab259 fix(region): private cloud sku create 2020-12-24 15:33:03 +08:00
Qu Xuan
059cd75273 fix(region): avolid panic when list role's policies 2020-12-24 15:31:26 +08:00
Zexi Li
4c97c6ad3b Merge pull request #9618 from lvyangyang/automated-cherry-pick-of-#9596-upstream-release-3.6
Automated cherry pick of #9596: feat(region): azure tags
2020-12-24 14:33:14 +08:00
Qu Xuan
b60d18c060 fix(region): avoid openstack change config error 2020-12-24 11:52:05 +08:00
lvyangyang
950e75f8b0 feat(region): azure tags 2020-12-24 10:18:10 +08:00
Zexi Li
65781bfe06 Merge pull request #9617 from swordqiu/automated-cherry-pick-of-#9616-upstream-release-3.6
Automated cherry pick of #9616: fix(keystone): add i18n description for policy and role
2020-12-24 02:14:11 +08:00
Qiu Jian
334b347eb9 fix(keystone): add i18n description for policy and role
Add i18n support for descriptions of system policy and role
2020-12-23 23:34:58 +08:00
Zexi Li
d9c38a8550 Merge pull request #9595 from wanyaoqi/automated-cherry-pick-of-#9594-upstream-release-3.6
Automated cherry pick of #9594: chore(util): update centos build version to 1.1-3
2020-12-23 22:15:26 +08:00
Zexi Li
35cc29f86c Merge pull request #9604 from rainzm/automated-cherry-pick-of-#9603-upstream-release-3.6
Automated cherry pick of #9603: feat(webhook): send webhook notification when c/d loadbalancerlisterrule
2020-12-23 22:15:01 +08:00
Zexi Li
50d83a75e5 Merge pull request #9598 from zhaoxiangchun/automated-cherry-pick-of-#9597-upstream-release-3.6
Automated cherry pick of #9597: fix(cloudmon): deal cannot get  azure metric
2020-12-23 22:14:29 +08:00
Zexi Li
2ef96a9b26 Merge pull request #9600 from yousong/automated-cherry-pick-of-#9599-upstream-release-3.6
Automated cherry pick of #9599: Bugfix/yousong climc ssh
2020-12-23 22:13:27 +08:00
Zexi Li
daabb5b411 Merge pull request #9607 from zhaoxiangchun/automated-cherry-pick-of-#9605-upstream-release-3.6
Automated cherry pick of #9605: fix(monitor): fix nodata alertresource list
2020-12-23 22:10:15 +08:00
Zexi Li
9dd09504cd Merge pull request #9614 from rainzm/automated-cherry-pick-of-#9613-upstream-release-3.6
Automated cherry pick of #9613: fix(notify): fit correctly when send notification via contact
2020-12-23 22:03:29 +08:00
Zexi Li
b9560c6765 Merge pull request #9612 from rainzm/automated-cherry-pick-of-#9611-upstream-release-3.6
Automated cherry pick of #9611: feat(cloudcommon): determine the notification template based on the user’s language preference
2020-12-23 20:32:36 +08:00
rainzm
cdf7825379 fix(notify): fit correctly when send notification via contact 2020-12-23 17:50:45 +08:00
rainzm
7d75620d6d feat(cloudcommon): determine the notification template based on the user’s language preference 2020-12-23 17:44:07 +08:00
wanyaoqi
f3404f678c fix(glance): list image by os arch use startwith 2020-12-23 16:25:39 +08:00
--global
cdcfc79232 fix(monitor): fix nodata alertresource list
1.修复nodata报警资源列表无法根据nodata策略正确刷新和删除
2020-12-23 14:52:26 +08:00
rainzm
24f4a684a5 feat(webhook): send webhook notification when c/d loadbalancerlisterrule 2020-12-23 14:51:41 +08:00
Yousong Zhou
8a4c1a0bbe fix(mcclient): options: webconsole: fix passing ssh port 2020-12-23 13:31:40 +08:00
Yousong Zhou
ce00a17614 refactor(climc): webconsole: use helper methods of response struct 2020-12-23 13:31:40 +08:00
Yousong Zhou
8e9b4aed2f refactor(webconsole): api: add helper methods for response struct 2020-12-23 13:31:40 +08:00
Yousong Zhou
5959a204f7 refactor(webconsole): use structured response 2020-12-23 13:31:40 +08:00
--global
d2459a5cc0 fix(cloudmon): deal cannot get azure metric
1.azure重构代码导致监控uri路径出错
2020-12-23 13:17:42 +08:00
wanyaoqi
d980604920 chore(util): update centos build version to 1.1-3 2020-12-23 11:15:15 +08:00
Zexi Li
c5c370d6a2 Merge pull request #9550 from tb365/automated-cherry-pick-of-#9548-upstream-release-3.6
Automated cherry pick of #9548: Bugfix/tb bugfix 121801
2020-12-23 09:48:07 +08:00
Zexi Li
d442f842f2 Merge pull request #9578 from zhaoxiangchun/automated-cherry-pick-of-#9577-upstream-release-3.6
Automated cherry pick of #9577: feat(monitor): add global alertrecord
2020-12-23 09:46:02 +08:00
Zexi Li
347e2f0828 Merge pull request #9571 from ioito/automated-cherry-pick-of-#9570-upstream-release-3.6
Automated cherry pick of #9570: fix(region): 避免从云上同步下来的主机,创建相同配置时network_id为空
2020-12-23 09:41:49 +08:00
Zexi Li
9fe732619d Merge pull request #9574 from ioito/automated-cherry-pick-of-#9573-upstream-release-3.6
Automated cherry pick of #9573: fix(region): add huawei gpssd desc
2020-12-23 09:37:05 +08:00
Zexi Li
540b21cfd4 Merge pull request #9582 from zhaoxiangchun/automated-cherry-pick-of-#9579-upstream-release-3.6
Automated cherry pick of #9579: fix(monitor): other servier create alert add used_by param as a agreement
2020-12-23 09:35:20 +08:00
Zexi Li
7fd9b0f47e Merge pull request #9585 from rainzm/automated-cherry-pick-of-#9584-upstream-release-3.6
Automated cherry pick of #9584: more convenient debugging and role isolation
2020-12-23 09:09:48 +08:00
Zexi Li
60724356ec Merge pull request #9590 from swordqiu/automated-cherry-pick-of-#9589-upstream-release-3.6
Automated cherry pick of #9589: fix(cloudevent,devtool): missing metadata table
2020-12-23 09:06:48 +08:00
Qiu Jian
5d298e71bb fix(cloudevent,devtool): missing metadata table 2020-12-23 03:12:10 +08:00
rainzm
deb3758bfa feat: download the role to tmpdir not system role dir 2020-12-22 20:21:38 +08:00
rainzm
1eaf2eaff0 feat: add keep_tmpdir options
Setting 'keep_tmpdir' as true will keep tmpdir as used by executing
ansible playbook for debugging
2020-12-22 20:21:38 +08:00
Qu Xuan
ea41bb4f18 fix(region): openstack network is regional 2020-12-22 16:26:36 +08:00
--global
e2ca41a5f5 feat(monitor): add global alertrecord
1.支持时间、资源类型、报警级别、报警状态的过滤
2.报警记录删除时,删除关联的报警记录
2020-12-22 16:22:50 +08:00
--global
2ba98e7cee fix(monitor): other servier create alert add used_by param as a agreement
1.解决notify,meter中创建的对应的策略也展示在统一报警策略页面。通过used_by
  进行区分
2020-12-22 16:18:21 +08:00
Qu Xuan
a9c6579b6a fix(region): add huawei gpssd desc 2020-12-22 11:33:03 +08:00
Qu Xuan
f150da6d98 fix(region): 避免从云上同步下来的主机,创建相同配置时network_id为空 2020-12-22 11:18:32 +08:00
Zexi Li
dcf2a3f66c Merge pull request #9499 from wanyaoqi/automated-cherry-pick-of-#9498-upstream-release-3.6
Automated cherry pick of #9498: server migrate misc fix
2020-12-22 10:06:11 +08:00
yunion-ci-robot
eb2f782fd2 Merge pull request #9565 from zexi/automated-cherry-pick-of-#9564-upstream-release-3.6
Automated cherry pick of #9564: Hotfix/baremetal pxe net alloc
2020-12-21 23:50:49 +08:00
Zexi Li
f86e26fec2 Merge pull request #9545 from yousong/automated-cherry-pick-of-#9544-upstream-release-3.6
Automated cherry pick of #9544: fix(region): lbbackend: better error reporting for finding influxdb info
2020-12-21 21:08:35 +08:00
Zexi Li
3effc3ea38 Merge pull request #9556 from ioito/automated-cherry-pick-of-#9555-upstream-release-3.6
Automated cherry pick of #9555: fix(region): fix openstack instance os type
2020-12-21 21:02:06 +08:00
Zexi Li
b023c24250 Merge pull request #9560 from rainzm/automated-cherry-pick-of-#9559-upstream-release-3.6
Automated cherry pick of #9559: feat(scripts): add export DOCKER_BUILDKIT=1
2020-12-21 21:00:26 +08:00
Zexi Li
5d1d8dc145 Merge pull request #9562 from ioito/automated-cherry-pick-of-#9561-upstream-release-3.6
Automated cherry pick of #9561: fix(cloudid): add <br> for notify templete
2020-12-21 20:59:24 +08:00
Zexi Li
9f2b137f08 fix(region,baremetal): choose candidate network not according by types 2020-12-21 20:48:31 +08:00
Zexi Li
829faa1ab6 fix(region,baremetal): pxe net reuse converted server access ip 2020-12-21 20:48:31 +08:00
Qu Xuan
2faead462b fix(cloudid): add <br> for notify templete 2020-12-21 20:42:31 +08:00
rainzm
4135e62f6f feat(scripts): add export DOCKER_BUILDKIT=1 2020-12-21 19:56:39 +08:00
Qu Xuan
9c0ce58a06 fix(region): fix openstack instance os type 2020-12-21 19:49:56 +08:00
TangBin
5a10db10cd fix(region): lbacl &lbcert default share scope 2020-12-21 17:33:21 +08:00
TangBin
0c3a1986f6 fix(region): elb acl validate create data fix 2020-12-21 17:33:21 +08:00
TangBin
1a4faf4101 fix(region): aliyun elb listener&lbbg sync project 2020-12-21 17:33:21 +08:00
TangBin
c4eda6b5af fix(region): cert&acl cache delete condition check 2020-12-21 17:33:21 +08:00
Yousong Zhou
48f1cf12ae fix(region): lbbackend: better error reporting for finding influxdb info 2020-12-21 16:51:44 +08:00
Zexi Li
74d050292f Merge pull request #9370 from ioito/automated-cherry-pick-of-#9360-upstream-release-3.6
Automated cherry pick of #9360: fix(region): sync servers
2020-12-21 10:40:39 +08:00
Zexi Li
db9b653b29 Merge pull request #9539 from swordqiu/automated-cherry-pick-of-#9538-upstream-release-3.6
Automated cherry pick of #9538: fix(cloudcommon): query string may be modified in listItemQuery
2020-12-21 01:32:00 +08:00
Zexi Li
7726efa305 Merge pull request #9537 from swordqiu/automated-cherry-pick-of-#9536-upstream-release-3.6
Automated cherry pick of #9536: fix(keystone): ignore deleted policies when matching policies
2020-12-21 01:30:40 +08:00
Qiu Jian
41b694ad3e fix(cloudcommon): query filter ineffective for splitable
query string may be modified in listItemQuery routine, which cause some query
filter is removed and hence ineffective when query over splitable
2020-12-20 20:31:43 +08:00
Qiu Jian
86476c22a9 fix(keystone): ignore deleted policies when matching policies
ignore deleted policies when matching policies
2020-12-20 14:18:59 +08:00
Zexi Li
495a0283ce Merge pull request #9535 from swordqiu/automated-cherry-pick-of-#9534-upstream-release-3.6
Automated cherry pick of #9534: fix(cloudcommon): add rbac_policy_refresh_internval_seconds option
2020-12-20 02:08:37 +08:00
Zexi Li
f6329cbc71 Merge pull request #9528 from swordqiu/automated-cherry-pick-of-#9527-upstream-release-3.6
Automated cherry pick of #9527: fix(cloudcommon): panic when query a splitable model manager
2020-12-20 02:07:56 +08:00
Zexi Li
742ac46cab Merge pull request #9530 from swordqiu/automated-cherry-pick-of-#9529-upstream-release-3.6
Automated cherry pick of #9529: fix(taskman): use admin token if task userCred token expired
2020-12-20 02:05:55 +08:00
Qiu Jian
6caec234a9 fix(cloudcommon): add rbac_policy_refresh_internval_seconds option
Add new option rbac_policy_refresh_interval_seconds to control the
valid duration of a policy cache. The option is introduced at 3.6.
Replace option rbac_policy_sync_period_seconds.
2020-12-20 01:34:33 +08:00
Qiu Jian
b3c90a8049 fix(taskman): use admin token if task userCred token expired
Use admin credential token if task cached userCred token expired
2020-12-20 01:21:40 +08:00
Qiu Jian
ba8754687a fix(cloudcommon): panic when query an empty splitable model manager
fix panic when querying an empty splitable model manager, e.g. action-show
2020-12-20 00:25:49 +08:00
yunion-ci-robot
5c5178985e Merge pull request #9524 from zexi/automated-cherry-pick-of-#9521-upstream-release-3.6
Automated cherry pick of #9521: Storage actual size filter
2020-12-19 23:56:03 +08:00
Zexi Li
47e739d612 Merge pull request #9495 from wanyaoqi/automated-cherry-pick-of-#9494-upstream-release-3.6
Automated cherry pick of #9494: fix(region): guest to create input keep billing info
2020-12-19 20:06:10 +08:00
Zexi Li
b70ab17dcb Merge pull request #9506 from ioito/automated-cherry-pick-of-#9159-upstream-release-3.6
Automated cherry pick of #9159: feat(region): add instance storage capability
2020-12-19 20:04:27 +08:00
Zexi Li
5010a9154d Merge pull request #9510 from ioito/automated-cherry-pick-of-#9509-upstream-release-3.6
Automated cherry pick of #9509: fix(region): azure async task
2020-12-19 20:02:37 +08:00
Zexi Li
0ac658c2ca Merge pull request #9513 from ioito/automated-cherry-pick-of-#9512-upstream-release-3.6
Automated cherry pick of #9512: fix(region): azure secgroup rule not allow with same priority and dir…
2020-12-19 20:01:01 +08:00
Zexi Li
e7dd6bba0c fix(scheduler): storage predicate add actualCapacity filter 2020-12-19 19:58:10 +08:00
Zexi Li
7a3ad28fd6 Merge pull request #9517 from swordqiu/automated-cherry-pick-of-#9515-upstream-release-3.6
Automated cherry pick of #9515: fix(host): telegraf listen on local ipv4 address explicitly
2020-12-19 18:11:49 +08:00
Zexi Li
bd212de4f7 Merge pull request #9516 from swordqiu/automated-cherry-pick-of-#9501-upstream-release-3.6
Automated cherry pick of #9501: feature(keystone): user add language attribute
2020-12-19 18:11:39 +08:00
Qiu Jian
4606458719 fix(host): telegraf listen on local ipv4 address explicitly
Ensure telegraf listen on local IPv4 address explicityly and host send
metrics to telegraf local IPv4 address explicityly.
2020-12-19 15:37:03 +08:00
Qiu Jian
768c88d28d feature(keystone): user add language attribute
User add language attribute, notify and alarm will use this attribute to
send message in proper language
2020-12-19 15:36:37 +08:00
Qu Xuan
2b0e8afe0f fix(region): azure secgroup rule not allow with same priority and direction 2020-12-19 14:48:57 +08:00
Qu Xuan
09adc5f60f fix(region): azure async task 2020-12-19 14:02:15 +08:00
Qu Xuan
8779895298 feat(region): add instance storage capability 2020-12-19 11:14:58 +08:00
Qu Xuan
d2d96b1229 fix(region): sync servers 2020-12-19 10:26:10 +08:00
Zexi Li
3e74921627 Merge pull request #9503 from swordqiu/automated-cherry-pick-of-#9502-upstream-release-3.6
Automated cherry pick of #9502: fix(keystone): always upload&refresh service config whenever service …
2020-12-19 09:32:47 +08:00
Qiu Jian
97eb6e7bc7 fix(keystone): always upload&refresh service config whenever service restart
Always upload&refresh service config whenever service restart
2020-12-19 00:53:14 +08:00
yunion-ci-robot
54337fe93b Merge pull request #9491 from zexi/automated-cherry-pick-of-#9490-upstream-release-3.6
Automated cherry pick of #9490: Hotfix/baremetal pd makegood
2020-12-18 20:49:19 +08:00
Zexi Li
c8a007d9b3 Merge pull request #9484 from rainzm/automated-cherry-pick-of-#9483-upstream-release-3.6
Automated cherry pick of #9483: Webhook better describe the life cycle of the guest
2020-12-18 20:37:51 +08:00
wanyaoqi
6c96e6d1f8 fix(host): add print migrate progress info 2020-12-18 18:29:36 +08:00
wanyaoqi
e26fb5cc1d fix(region): do not change disk status on migrating 2020-12-18 18:29:36 +08:00
Zexi Li
547df8a171 Merge pull request #9489 from tb365/automated-cherry-pick-of-#9488-upstream-release-3.6
Automated cherry pick of #9488: Bugfix/tb bugfix 121702
2020-12-18 16:36:20 +08:00
Zexi Li
7da3869e24 Merge pull request #9466 from zhaoxiangchun/automated-cherry-pick-of-#9459-upstream-release-3.6
Automated cherry pick of #9459: feat(monitor): add alert slience time and modify scoperesource FetchUniqValues func
2020-12-18 16:33:48 +08:00
Zexi Li
012a84d187 Merge pull request #9487 from wanyaoqi/automated-cherry-pick-of-#9486-upstream-release-3.6
Automated cherry pick of #9486: fix(region): fix change config forecast
2020-12-18 16:31:15 +08:00
Zexi Li
adc27a53f3 Merge pull request #9482 from wanyaoqi/automated-cherry-pick-of-#9481-upstream-release-3.6
Automated cherry pick of #9481: fix(keystone): service config ignore deploy server socket path
2020-12-18 16:29:29 +08:00
wanyaoqi
f8c4c008f8 fix(region): guest to create input keep billing info 2020-12-18 16:18:27 +08:00
Zexi Li
f6bf3050fa fix(baremetal): clear jbod disks do PDMakeGood 2020-12-18 15:50:15 +08:00
TangBin
e4f372ba55 fix(region): remove unnecessary vpc validate create date error wrap 2020-12-18 15:19:54 +08:00
TangBin
755f4a93a3 fix(region): network create mask length validate 2020-12-18 15:19:54 +08:00
TangBin
ad39e790d9 fix(region): vpc create data cird validate 2020-12-18 15:19:54 +08:00
TangBin
bc3fdb890f fix(region): ctyun delete server bugfix
6642
2020-12-18 15:19:54 +08:00
TangBin
2e401b5664 fix(region): create vm with eip task fix 2020-12-18 15:19:53 +08:00
wanyaoqi
52f0afda00 fix(region): fix change config forecast 2020-12-18 14:58:57 +08:00
--global
1a1df0f075 feat(monitor): add alert slience time and modify scoperesource FetchUniqValues func
1.增加报警静默时间
2.后端修改 scoperesource FetchUniqValues :回显scope 属性
2020-12-18 14:40:46 +08:00
rainzm
79eacb5b45 feat(region): send webhook server_create when canceling pending delete 2020-12-18 13:10:21 +08:00
rainzm
0c72872330 feat(region): distinguish between pending delete and delete notification 2020-12-18 13:10:21 +08:00
wanyaoqi
8287f3767e fix(keystone): service config ignore deploy server socket path 2020-12-18 12:52:52 +08:00
Zexi Li
3ab9d15bf0 Merge pull request #9478 from yousong/automated-cherry-pick-of-#9458-upstream-release-3.6
Automated cherry pick of #9458: Bugfix/yousong eip ipaddr
2020-12-18 12:51:32 +08:00
Zexi Li
854d160875 Merge pull request #9473 from yousong/automated-cherry-pick-of-#9472-upstream-release-3.6
Automated cherry pick of #9472: Bugfix/yousong host mtu
2020-12-18 00:19:22 +08:00
Zexi Li
bb23fc8ae9 Merge pull request #9477 from wanyaoqi/automated-cherry-pick-of-#9476-upstream-release-3.6
Automated cherry pick of #9476: fix(host-deployer): probe image info umount rootfs first
2020-12-18 00:17:39 +08:00
Yousong Zhou
bb0568d18a fix(region): eip_allocate_task: set eip status allocate_fail on task failure 2020-12-17 22:01:02 +08:00
Yousong Zhou
baff004838 fix(region,climc): eips: rename arg name for requested eip addr 2020-12-17 22:01:02 +08:00
Yousong Zhou
6e449c123b fix(region): guestnetworks: use net calculated mtu 2020-12-17 21:51:23 +08:00
Yousong Zhou
80efc97c69 feat(region): networks: add getMtu method 2020-12-17 21:51:23 +08:00
Yousong Zhou
aaec97470b feat(apis): add const VPC_OVN_ENCAP_COST 2020-12-17 21:51:22 +08:00
Yousong Zhou
206ae7f9e8 feat(host): startvm: set vpc nic mtu
Windows DHCP client does not respect DHCP MTU option
2020-12-17 21:51:22 +08:00
Yousong Zhou
005fad402c feat(host): startvm: add nic_mtu shell func 2020-12-17 21:51:22 +08:00
Yousong Zhou
c2d173ae1c refactor(host): startvm: for compat
QEMU 2.12 outputs device help on stderr in the following style

```
virtio-net-pci.speed=int32
```

QEMU 5.2.0 outputs it to stdout and in the following format

```
  speed=<int32>          -  (default: -1)
```
2020-12-17 21:51:22 +08:00
Yousong Zhou
38492014b5 refactor(host): startvm: nic_speed: use raw string 2020-12-17 21:51:22 +08:00
Yousong Zhou
4cf3565b29 refactor(host): startvm: add QEMU_CMD_KVM_ARG 2020-12-17 21:51:22 +08:00
wanyaoqi
7ed96af338 fix(host-deployer): probe image info umount rootfs first 2020-12-17 20:34:07 +08:00
Zexi Li
7fcd0fc28a Merge pull request #9471 from ioito/automated-cherry-pick-of-#9470-upstream-release-3.6
Automated cherry pick of #9470: fix(region): apsara metrics fix
2020-12-17 16:03:31 +08:00
Qu Xuan
a67b096686 fix(region): apsara metrics fix 2020-12-17 16:01:58 +08:00
Zexi Li
b2e6c1bd55 Merge pull request #9464 from rainzm/automated-cherry-pick-of-#9463-upstream-release-3.6
Automated cherry pick of #9463: fix(region): exclude network recommended for host when suggesting net…
2020-12-17 11:22:03 +08:00
Zexi Li
fb181a47a1 Merge pull request #9469 from tb365/automated-cherry-pick-of-#9467-upstream-release-3.6
Automated cherry pick of #9467: fix(region): skus add cloudenv
2020-12-17 11:17:46 +08:00
TangBin
f17593d3f4 fix(region): skus add cloudenv 2020-12-17 11:05:14 +08:00
rainzm
930c643153 fix(region): exclude network recommended for host when suggesting network for guest 2020-12-17 10:12:42 +08:00
Zexi Li
6f44812520 Merge pull request #9442 from wanyaoqi/automated-cherry-pick-of-#9441-upstream-release-3.6
Automated cherry pick of #9441: bugfix(region): server change config rebase to sched task
2020-12-17 09:50:45 +08:00
Zexi Li
347857f40e Merge pull request #9455 from zexi/automated-cherry-pick-of-#9454-upstream-release-3.6
Automated cherry pick of #9454: fix(scheduler): fetch input network when specified
2020-12-16 18:24:38 +08:00
wanyaoqi
5314ce98b0 bugfix(region): server change config rebase to sched task 2020-12-16 18:07:50 +08:00
Zexi Li
9644513728 Merge pull request #9453 from swordqiu/automated-cherry-pick-of-#9452-upstream-release-3.6
Automated cherry pick of #9452: fix(keystone): panic if request with an invalid token
2020-12-16 17:57:31 +08:00
Zexi Li
5cfd7f0401 fix(scheduler): fetch input network when specified 2020-12-16 17:50:25 +08:00
Qiu Jian
5a71931982 fix(keystone): panic if request with an invalid token
service report nil pointer panic if request with an invalid token string
2020-12-16 16:47:03 +08:00
Zexi Li
e877b081ea Merge pull request #9445 from tb365/automated-cherry-pick-of-#9443-upstream-release-3.6
Automated cherry pick of #9443: Bugfix/tb bugfix 121501
2020-12-16 12:25:50 +08:00
Zexi Li
5de1f1c3ff Merge pull request #9419 from zexi/automated-cherry-pick-of-#9418-upstream-release-3.6
Automated cherry pick of #9418: fix(region): baremetal post update related server
2020-12-16 10:40:55 +08:00
Zexi Li
f65b3499d9 Merge pull request #9448 from swordqiu/automated-cherry-pick-of-#9447-upstream-release-3.6
Automated cherry pick of #9447: fix(log): fail to submit action log
2020-12-16 09:32:56 +08:00
Zexi Li
903367ce61 Merge pull request #9440 from zhaoxiangchun/automated-cherry-pick-of-#9439-upstream-release-3.6
Automated cherry pick of #9439: feat(monitor): support create nodata alert from web
2020-12-16 09:27:18 +08:00
Qiu Jian
1a2a40a811 fix(log): fail to submit action log
Because splitable not implement InsertOrMethod method, fail to submit
action log
2020-12-16 00:25:58 +08:00
TangBin
eee13a549b fix(awscli): instance-rebuild-root fix 2020-12-15 21:05:06 +08:00
TangBin
cef3d52f08 fix(region): vpc sync external access mode fix 2020-12-15 20:57:39 +08:00
TangBin
596b376d85 fix(region): vpc usable fix 2020-12-15 20:57:39 +08:00
TangBin
efb4368716 fix(region): aws create vpc with igw add defaultroute 2020-12-15 20:57:38 +08:00
TangBin
ac89394947 fix(region): aws delete vpc skipped delete main route table 2020-12-15 20:57:38 +08:00
TangBin
5ff27734bc fix(region): aws vpc delete skip delete default secgroup 2020-12-15 20:57:38 +08:00
TangBin
9f52afdf94 fix(region): aws vpc delete related route table & internet gateway 2020-12-15 20:57:38 +08:00
TangBin
72153ecf58 fix(region): sku list query print missing error info 2020-12-15 20:57:38 +08:00
TangBin
9218c9e0b6 fix(region): aws create storage type fix 2020-12-15 20:57:37 +08:00
TangBin
68a2111bfd fix(region): aws create root device name fix 2020-12-15 20:56:57 +08:00
TangBin
b46d51d1e3 fix(region): vpc create validate cidr mask length 2020-12-15 20:56:57 +08:00
TangBin
da82328076 fix(region): aws detach igw before delete vpc 2020-12-15 20:56:57 +08:00
TangBin
b30a40d707 fix(region): vpc list usable fix 2020-12-15 20:56:57 +08:00
TangBin
8a1d15eba1 feat(region): server list add parameter eip_associable 2020-12-15 20:56:57 +08:00
yunion-ci-robot
007ad2cdc7 Merge pull request #9436 from wanyaoqi/automated-cherry-pick-of-#9435-upstream-release-3.6
Automated cherry pick of #9435: fix(host): fix set windows password with escape charater
2020-12-15 20:51:19 +08:00
zhaoxiangchun
c2b8f6a832 feat(monitor): support create nodata alert from web
1.支持从前端页面创建nodata报警策略,对于nodata的情况给出对应的resource
2020-12-15 18:21:37 +08:00
wanyaoqi
539baf7ba1 fix(host): fix set windows password with escape charater 2020-12-15 16:57:08 +08:00
Zexi Li
5f610498e8 Merge pull request #9416 from swordqiu/automated-cherry-pick-of-#9415-upstream-release-3.6
Automated cherry pick of #9415: fix(keystone): update user attributes whenever user login
2020-12-15 11:54:59 +08:00
Zexi Li
cd798b9094 Merge pull request #9432 from zexi/automated-cherry-pick-of-#9431-upstream-release-3.6
Automated cherry pick of #9431: Fix/climc server create desc
2020-12-15 11:51:56 +08:00
Zexi Li
d86d91dfcc Merge pull request #9427 from yousong/automated-cherry-pick-of-#9426-upstream-release-3.6
Automated cherry pick of #9426: fix(vpcagent): ovn: stable dns A record value
2020-12-15 11:44:49 +08:00
Zexi Li
df45ced78b fix(climc): server-create --desc not work 2020-12-15 11:36:01 +08:00
Yousong Zhou
b3e196950e fix(vpcagent): ovn: stable dns A record value 2020-12-15 10:47:16 +08:00
Zexi Li
d1f09e0799 Merge pull request #9420 from wanyaoqi/automated-cherry-pick-of-#9417-upstream-release-3.6
Automated cherry pick of #9417: fix(region,host): fix hot remove nic
2020-12-15 00:08:57 +08:00
Zexi Li
d001e0ec8f fix(region): baremetal post update related server 2020-12-14 19:16:44 +08:00
wanyaoqi
7c1923abf0 fix(region,host): fix hot remove nic
- region: check is hot remove nic enable
- host: del qemu device after del netdev
2020-12-14 19:01:14 +08:00
wanyaoqi
fbd53b4934 fix(host): fix check hugepage enabled 2020-12-14 19:01:14 +08:00
Qiu Jian
a4b4a1d16e fix(keystone): update user attributes whenever user login
update user attribtues whenever user login
2020-12-14 18:19:46 +08:00
Zexi Li
0210763ca0 Merge pull request #9412 from zexi/automated-cherry-pick-of-#9411-upstream-release-3.6
Automated cherry pick of #9411: fix(scheduler): sku filter check zone if only prefer region specified
2020-12-14 17:56:40 +08:00
yunion-ci-robot
fddf03a3ba Merge pull request #9410 from wanyaoqi/automated-cherry-pick-of-#9409-upstream-release-3.6
Automated cherry pick of #9409: feat(region): export user tags support virtual resources
2020-12-14 17:55:05 +08:00
Zexi Li
019c034133 fix(scheduler): sku filter check zone if only prefer region specified 2020-12-14 17:26:17 +08:00
Zexi Li
b1f2d7f379 Merge pull request #9407 from zexi/automated-cherry-pick-of-#9405-upstream-release-3.6
Automated cherry pick of #9405: Hotfix/webconsole trim url
2020-12-14 17:21:29 +08:00
Zexi Li
db9799c7f5 Merge pull request #9374 from rainzm/automated-cherry-pick-of-#9373-upstream-release-3.6
Automated cherry pick of #9373: feat(region): larger suggest network and more complete vlanid
2020-12-14 15:57:59 +08:00
wanyaoqi
d76915893d feat(region): export user tags support virtual resources 2020-12-14 15:56:46 +08:00
Zexi Li
64f94bd928 Merge pull request #9395 from zexi/automated-cherry-pick-of-#9394-upstream-release-3.6
Automated cherry pick of #9394: fix(scheduler): get candidates error more info
2020-12-14 15:52:27 +08:00
Zexi Li
f6713aab33 Merge pull request #9404 from wanyaoqi/automated-cherry-pick-of-#9403-upstream-release-3.6
Automated cherry pick of #9403: fix(region,glance): list by os arch adapt to empty strings
2020-12-14 15:50:56 +08:00
Zexi Li
1236a03269 fix(webconsole): trim api_server url if end with slashes 2020-12-14 15:47:53 +08:00
Zexi Li
4ef482dbc9 Merge pull request #9400 from rainzm/automated-cherry-pick-of-#9399-upstream-release-3.6
Automated cherry pick of #9399: fix(notify): avoid deadlock
2020-12-14 15:45:34 +08:00
wanyaoqi
027a9439cd fix(region,glance): list by os arch adapt to empty strings 2020-12-14 15:15:26 +08:00
rainzm
b1abb353a9 fix(notify): avoid deadlock 2020-12-14 15:05:46 +08:00
Zexi Li
01124b3128 fix(scheduler): get candidates error more info 2020-12-14 14:40:44 +08:00
rainzm
ae94914a7e feat(region): add test for CloudaccountManger.PerformPrepareNets 2020-12-14 14:17:58 +08:00
rainzm
cc26752697 feat(region): larger suggest network and more complete vlanid
1. 抓取标准 PortGroup 的 vlanid,以前只有分布式 PortGroup 的 vlanid
2. 提供的建议网络会尽可能的大
2020-12-14 14:17:58 +08:00
Zexi Li
d1a4a52915 Merge pull request #9389 from tb365/automated-cherry-pick-of-#9386-upstream-release-3.6
Automated cherry pick of #9386: feat(region): support sync skus by cloudregion
2020-12-13 13:51:46 +08:00
Zexi Li
7837a760b5 Merge pull request #9379 from ioito/automated-cherry-pick-of-#9351-upstream-release-3.6
Automated cherry pick of #9351: feat(cloudid): support aliyun saml auth
2020-12-13 12:13:53 +08:00
Zexi Li
08b436e90d Merge pull request #9385 from ioito/automated-cherry-pick-of-#9384-upstream-release-3.6
Automated cherry pick of #9384: fix(region): optimized server stop code
2020-12-13 12:12:28 +08:00
Zexi Li
5ca9493a55 Merge pull request #9391 from swordqiu/automated-cherry-pick-of-#9390-upstream-release-3.6
Automated cherry pick of #9390: fix(region): network reserved ip count not consider expiration of reserved ips
2020-12-13 12:09:22 +08:00
Qiu Jian
d8684ea5a0 fix(region): network reserved ip count not consider expiration of reserved ips
network reserved ip count not consider expiration of reserved ips
2020-12-12 19:42:05 +08:00
TangBin
d86f9a2009 feat(region): support sync skus by cloudregion 2020-12-12 19:11:21 +08:00
Qu Xuan
0a8348a364 fix(region): optimized server stop code 2020-12-12 18:54:27 +08:00
Zexi Li
9b5f8ae892 Merge pull request #9378 from tb365/automated-cherry-pick-of-#9359-upstream-release-3.6
Automated cherry pick of #9359: Bugfix/tb bugfix cmb 1210
2020-12-12 18:29:02 +08:00
Qu Xuan
592ae29d7e feat(cloudid): support aliyun saml auth 2020-12-12 18:06:54 +08:00
TangBin
86838db6d3 feat(region): support sync skus by cloudregion 2020-12-12 17:48:04 +08:00
TangBin
f20ca8b9c9 fix(region): server login info& keypair import input parameter trimspace 2020-12-12 17:48:04 +08:00
Zexi Li
474831d983 Merge pull request #9314 from zhaoxiangchun/automated-cherry-pick-of-#9313-upstream-release-3.6
Automated cherry pick of #9313: feat(monitor): add metric description
2020-12-12 00:17:54 +08:00
Zexi Li
84c89654ef Merge pull request #9364 from swordqiu/automated-cherry-pick-of-#9361-upstream-release-3.6
Automated cherry pick of #9361: fix(keystone): allow unlink a domain from an IDP
2020-12-12 00:16:36 +08:00
Zexi Li
d6735144c6 Merge pull request #9363 from swordqiu/automated-cherry-pick-of-#9362-upstream-release-3.6
Automated cherry pick of #9362: fix(util): update vendor for log
2020-12-12 00:15:02 +08:00
Zexi Li
6aeb3a77cb Merge pull request #9367 from swordqiu/automated-cherry-pick-of-#9366-upstream-release-3.6
Automated cherry pick of #9366: fix(keystone): ignore service config update without changes
2020-12-12 00:13:46 +08:00
Qiu Jian
e817076c6c fix(keystone): ignore service config update without changes
ignore service config updates that no changes happen. prevent service
config change infomrer messages from flushing the log.
2020-12-11 22:21:51 +08:00
Qiu Jian
253fba47f5 fix(keystone): allow unlink a domain from an IDP
allow unlink a domain from an IDP
2020-12-11 21:50:53 +08:00
Qiu Jian
b4d5400e65 update vendor 2020-12-11 20:50:50 +08:00
zhaoxiangchun
09660da0a9 feat(monitor): add metric description
1.添加oss、rds、redis、vm_netio metric description
2.修改hostmetrics vm_netio 指标:
  bits_sent ==> bps_sent
  bits_recv ==> bps_recv
3.对metric中field进行排序

https://bug.yunion.io/zentao/task-view-2358.html
2020-12-11 20:17:13 +08:00
Zexi Li
6748a36e0c Merge pull request #9357 from ioito/automated-cherry-pick-of-#9356-upstream-release-3.6
Automated cherry pick of #9356: fix(region): sku enabled
2020-12-11 19:37:15 +08:00
Zexi Li
6c57580a8e Merge pull request #9297 from swordqiu/automated-cherry-pick-of-#9160-upstream-release-3.6
Automated cherry pick of #9160: feature(cloudcommon): split opslog table
2020-12-11 19:31:12 +08:00
Qu Xuan
92fee001e8 fix(region): sku enabled 2020-12-11 17:08:50 +08:00
yunion-ci-robot
ce247ab817 Merge pull request #9336 from zexi/automated-cherry-pick-of-#9335-upstream-release-3.6
Automated cherry pick of #9335: Hotfix/baremetal convert host
2020-12-11 13:32:15 +08:00
Zexi Li
8e964f3c3c Merge pull request #9343 from ioito/automated-cherry-pick-of-#9339-upstream-release-3.6
Automated cherry pick of #9339: fix(region,yunionapi,glance): using global proxy
2020-12-11 11:40:48 +08:00
Zexi Li
1f23060475 Merge pull request #9353 from zexi/automated-cherry-pick-of-#9352-upstream-release-3.6
Automated cherry pick of #9352: Bugfix/scheduler SKU net
2020-12-11 09:18:22 +08:00
Zexi Li
24fdb6e84e fix(scheduler): sku by region and fill onecloud vpc networks 2020-12-10 21:13:51 +08:00
Zexi Li
d06c049cd9 Merge pull request #9332 from ioito/automated-cherry-pick-of-#9331-upstream-release-3.6
Automated cherry pick of #9331: fix(region): openstack hosts sync
2020-12-10 20:40:07 +08:00
Zexi Li
1f5916fd7f Merge pull request #9348 from swordqiu/automated-cherry-pick-of-#9347-upstream-release-3.6
Automated cherry pick of #9347: fix(cloudcommon): perform public should check the sharing scope of
2020-12-10 20:38:02 +08:00
Zexi Li
8114d1a292 Merge pull request #9341 from ioito/automated-cherry-pick-of-#9340-upstream-release-3.6
Automated cherry pick of #9340: fix(region): import rule error hint
2020-12-10 20:33:28 +08:00
Zexi Li
ff1b6a1de0 Merge pull request #9346 from wanyaoqi/automated-cherry-pick-of-#9345-upstream-release-3.6
Automated cherry pick of #9345: fix(region): gpu server change config use reserved resources
2020-12-10 20:32:31 +08:00
Qiu Jian
de47e4a69b fix(cloudcommon): perform public should check the sharing scope of resource
perform public should check the sharing scope of resource
2020-12-10 19:15:24 +08:00
wanyaoqi
b07387b57a fix(region): gpu server change config use reserved resources 2020-12-10 18:40:59 +08:00
Qu Xuan
c1ecb63309 fix(region,yunionapi,glance): using global proxy 2020-12-10 18:33:40 +08:00
Qu Xuan
a8116b5252 fix(region): import rule error hint 2020-12-10 18:29:34 +08:00
Zexi Li
24a5cf7a7c Merge pull request #9330 from ioito/automated-cherry-pick-of-#9329-upstream-release-3.6
Automated cherry pick of #9329: fix(region): aws default account
2020-12-10 17:23:38 +08:00
Zexi Li
1e15c450c8 Merge pull request #9326 from rainzm/automated-cherry-pick-of-#9325-upstream-release-3.6
Automated cherry pick of #9325: Try to repull contacts when changing notify config
2020-12-10 17:22:17 +08:00
Zexi Li
1f63971f77 Merge pull request #9299 from ioito/automated-cherry-pick-of-#9298-upstream-release-3.6
Automated cherry pick of #9298: fix(region): support openstack subnet allocation pools
2020-12-10 17:17:53 +08:00
Zexi Li
504feb9504 Merge pull request #9321 from swordqiu/automated-cherry-pick-of-#9320-upstream-release-3.6
Automated cherry pick of #9320: fix(cloudcommon): disable quota check by default
2020-12-10 17:08:39 +08:00
Zexi Li
eb857594f2 fix(baremetal): convert to host failed
- convert schedule should include converting status
- auto register name should lowercase
- finish convert set host name by guest
2020-12-10 16:58:42 +08:00
Qu Xuan
8692498cbd fix(region): openstack hosts sync 2020-12-10 16:55:41 +08:00
Qu Xuan
97eab67f0a fix(region): aws default account 2020-12-10 16:24:48 +08:00
rainzm
c5acc1b482 fix(notify): repull subcontact after changing config 2020-12-10 10:26:09 +08:00
rainzm
6591ccedc5 fix(notify): check for changes before updating config 2020-12-10 10:26:09 +08:00
rainzm
8d6defe227 refactor(notify): add StartSubcontactPullTask for receiver 2020-12-10 10:26:09 +08:00
Qiu Jian
6f7a3cf8a5 fix(cloudcommon): disable quota check by default
1. add enable_quota_check common option
2. disable quota check by default
3. specify scope of quota limit in OutOfQuota error message
2020-12-10 01:23:36 +08:00
Qiu Jian
93ceb707b7 update vendor 2020-12-09 23:05:49 +08:00
Qiu Jian
ec14f9a6bb feature(cloudcommon): split opslog table
automatically split opslog table, so as to delete obsolete event logs
2020-12-09 23:05:49 +08:00
Zexi Li
8570eec751 Merge pull request #9296 from swordqiu/automated-cherry-pick-of-#9295-upstream-release-3.6
Automated cherry pick of #9295: fix(cloudcommon): supplement i18n translations
2020-12-09 20:44:22 +08:00
Zexi Li
689b622066 Merge pull request #9293 from rainzm/automated-cherry-pick-of-#9292-upstream-release-3.6
Automated cherry pick of #9292: feat(notify): add intellij-get for receiver
2020-12-09 20:43:26 +08:00
Zexi Li
c901acb721 Merge pull request #9236 from wanyaoqi/automated-cherry-pick-of-#8848-upstream-release-3.6
Automated cherry pick of #8848: host-deployer: add deploy driver libguestfs
2020-12-09 20:41:37 +08:00
Zexi Li
81ca10b5f7 Merge pull request #9260 from wanyaoqi/automated-cherry-pick-of-#9259-upstream-release-3.6
Automated cherry pick of #9259: fix(region): attach network on register baremetal server
2020-12-09 20:40:06 +08:00
Zexi Li
5a0432fbc9 Merge pull request #9303 from ioito/automated-cherry-pick-of-#9302-upstream-release-3.6
Automated cherry pick of #9302: fix(region): optimized qcloud prepaid instance delete
2020-12-09 20:37:31 +08:00
Zexi Li
d8d6ca8611 Merge pull request #9307 from ioito/automated-cherry-pick-of-#9305-upstream-release-3.6
Automated cherry pick of #9305: fix(region): optimized openstack change config
2020-12-09 20:36:33 +08:00
Zexi Li
27fb34c3d4 Merge pull request #9309 from yousong/automated-cherry-pick-of-#9308-upstream-release-3.6
Automated cherry pick of #9308: Bugfix/yousong eip chargetype
2020-12-09 20:35:00 +08:00
Zexi Li
2ee09e4581 Merge pull request #9316 from wanyaoqi/automated-cherry-pick-of-#9315-upstream-release-3.6
Automated cherry pick of #9315: fix(host): check lease living on restart etcd session
2020-12-09 20:33:35 +08:00
rainzm
e17768fbc2 feat(notify): user cmdline helpler for climc notify-receiver-xxx 2020-12-09 17:03:36 +08:00
rainzm
75b0889c30 feat(notify): add intellij-get for receiver 2020-12-09 17:03:36 +08:00
wanyaoqi
1611ddfcdf fix(host): check lease living on restart etcd session 2020-12-09 16:55:53 +08:00
Yousong Zhou
a28fa3cf40 refactor(apis): compute: remove EIP_CHARGE_TYPE_DEFAULT
The default is now cloud provider specific
2020-12-09 12:16:49 +08:00
Yousong Zhou
14d6c9d6ed fix(region): sanitize eip charge type on all callsites 2020-12-09 12:16:49 +08:00
Yousong Zhou
8d7d240b30 feat(region): regiondriver: add methods on eip charge type 2020-12-09 12:16:49 +08:00
Qu Xuan
0d32c5d8e2 fix(region): optimized openstack change config 2020-12-09 11:51:47 +08:00
Qu Xuan
b5b7e89c6a fix(region): optimized qcloud prepaid instance delete 2020-12-09 11:48:57 +08:00
Qu Xuan
edcff8045f fix(region): support openstack subnet allocation pools 2020-12-09 10:29:52 +08:00
Qiu Jian
83a5f95b0e fix(cloudcommon): supplement i18n translations 2020-12-09 00:57:03 +08:00
Zexi Li
5878ce8bf5 Merge pull request #9254 from ioito/automated-cherry-pick-of-#9253-upstream-release-3.6
Automated cherry pick of #9253: fix(region): temp url sign wrong
2020-12-08 21:39:45 +08:00
Zexi Li
b63a1a0811 Merge pull request #9264 from ioito/automated-cherry-pick-of-#9263-upstream-release-3.6
Automated cherry pick of #9263: fix(region): azure instance data disk storage type
2020-12-08 21:38:49 +08:00
Zexi Li
f99acd1aeb Merge pull request #9276 from ioito/automated-cherry-pick-of-#9266-upstream-release-3.6
Automated cherry pick of #9266: fix(region): openstack available zones
2020-12-08 21:37:30 +08:00
Zexi Li
6cb5b3314d Merge pull request #9278 from wanyaoqi/automated-cherry-pick-of-#9277-upstream-release-3.6
Automated cherry pick of #9277: fix(region): validate isolated devices on migrate
2020-12-08 21:35:59 +08:00
Zexi Li
bb3ed50e5d Merge pull request #9283 from ioito/automated-cherry-pick-of-#9282-upstream-release-3.6
Automated cherry pick of #9282: fix(region): restore password validate condition
2020-12-08 21:35:11 +08:00
Zexi Li
7120df1e22 Merge pull request #9286 from ioito/automated-cherry-pick-of-#9285-upstream-release-3.6
Automated cherry pick of #9285: fix(region): sync account id
2020-12-08 21:34:16 +08:00
Zexi Li
38d561dee8 Merge pull request #9291 from zhasm/automated-cherry-pick-of-#9288-upstream-release-3.6
Automated cherry pick of #9288: fix(git,make): 更新获取 git branch 的规则
2020-12-08 18:11:44 +08:00
Zhang Dongliang
e8376f9981 fix(git,make): 更新获取 git branch 的规则 2020-12-08 18:01:15 +08:00
Qu Xuan
e540e6561a fix(region): sync account id 2020-12-08 17:58:43 +08:00
wanyaoqi
cfa1a4ee4f feat(host-deployer): add deploy driver libguestfs
Add drvier libguestfs to support deploy more operator system,
you can use it by edit host config file add 'image_deploy_driver: libguestfs'.
By the default host-deploy support run three guestfish at the same time.
And host deployer will recycle free guestfish every ten minitues.

cherrypick: release/3.6
2020-12-08 17:50:39 +08:00
Qu Xuan
acedb4a4f4 fix(region): restore password validate condition 2020-12-08 17:45:42 +08:00
yunion-ci-robot
3851497bad Merge pull request #9273 from wanyaoqi/automated-cherry-pick-of-#9272-upstream-release-3.6
Automated cherry pick of #9272: fix(host-deployer): cancel rename centos vgname
2020-12-08 17:07:39 +08:00
wanyaoqi
78e8d2f35e fix(region): validate isolated devices on migrate 2020-12-08 16:51:12 +08:00
Qu Xuan
7abd40c545 fix(region): openstack available zones 2020-12-08 16:47:17 +08:00
Zexi Li
1a2ed75cfa Merge pull request #9269 from zhasm/automated-cherry-pick-of-#9268-upstream-release-3.6
Automated cherry pick of #9268: fix(git,make): git branch 获取方式优化
2020-12-08 16:35:33 +08:00
wanyaoqi
41631ec09d fix(host-deployer): cancel rename centos vgname 2020-12-08 16:29:40 +08:00
wanyaoqi
dcd8936927 fix(region): attach network on register baremetal server 2020-12-08 16:08:19 +08:00
Zhang Dongliang
d7d4e6bf6e fix(git,make): git branch 获取方式优化 2020-12-08 15:51:43 +08:00
Qu Xuan
3633baaa2b fix(region): azure instance data disk storage type 2020-12-08 15:03:00 +08:00
Zexi Li
71c4b03644 Merge pull request #9258 from zhasm/automated-cherry-pick-of-#9230-upstream-release-3.6
Automated cherry pick of #9230: fix(git,make): 修正 gitbranch 变量的获取方式,解决自动升级版本 tag 不统一的问题
2020-12-08 12:51:01 +08:00
Zhang Dongliang
b0a95cbbe6 fix(git,make): 修正 gitbranch 变量的获取方式,允许外部传入,解决自动升级版本 tag 不统一的问题 2020-12-08 11:51:34 +08:00
Qu Xuan
c6a7a87014 fix(region): temp url sign wrong 2020-12-08 11:36:14 +08:00
Zexi Li
db0eda7986 Merge pull request #9148 from ioito/automated-cherry-pick-of-#9146-upstream-release-3.6
Automated cherry pick of #9146: fix(keystone): allow refresh scope resource
2020-12-08 09:40:20 +08:00
Zexi Li
9cac40775a Merge pull request #9247 from wanyaoqi/automated-cherry-pick-of-#9246-upstream-release-3.6
Automated cherry pick of #9246: fix(region): fix backup server start task
2020-12-08 09:35:26 +08:00
Zexi Li
3158a5c06b Merge pull request #9252 from swordqiu/automated-cherry-pick-of-#9251-upstream-release-3.6
Automated cherry pick of #9251: fix(keystone): rolepolicies list panic if filter by domain scope
2020-12-08 09:34:23 +08:00
Zexi Li
e8bdb396e9 Merge pull request #9249 from swordqiu/automated-cherry-pick-of-#9248-upstream-release-3.6
Automated cherry pick of #9248: fix(keystone): oidc driver turn on debug mode if log-level is debug
2020-12-08 09:29:00 +08:00
Qiu Jian
695075a853 fix(keystone): rolepolicies list panic if filter by domain scope
rolepolicies list panic if filter by scope=domain
2020-12-08 03:15:56 +08:00
Qiu Jian
e826239abf fix(keystone): oidc driver turn on debug mode if log-level is debug
oidc driver turn on debug mode if log-level is debug
2020-12-08 02:55:36 +08:00
Zexi Li
690efe5ec1 Merge pull request #9244 from ioito/automated-cherry-pick-of-#9243-upstream-release-3.6
Automated cherry pick of #9243: fix(region): azure reset windows os password
2020-12-07 22:18:57 +08:00
wanyaoqi
735f10a508 fix(region): fix backup server start task 2020-12-07 21:08:03 +08:00
Zexi Li
0d537a1dbb Merge pull request #9241 from ioito/automated-cherry-pick-of-#9240-upstream-release-3.6
Automated cherry pick of #9240: fix(region): avoid timeout for waiting azure async task
2020-12-07 20:41:15 +08:00
Zexi Li
b3f4b135ec Merge pull request #9226 from tb365/automated-cherry-pick-of-#9224-upstream-release-3.6
Automated cherry pick of #9224: Bugfix/tb bugfix 1207
2020-12-07 20:37:52 +08:00
Qu Xuan
81b31b2fe1 fix(region): azure reset windows os password 2020-12-07 20:20:01 +08:00
Zexi Li
03c4a66beb Merge pull request #9221 from ioito/automated-cherry-pick-of-#9220-upstream-release-3.6
Automated cherry pick of #9220: fix(region): region qcloud secgroup project id
2020-12-07 20:18:18 +08:00
Zexi Li
923c03e530 Merge pull request #9228 from ioito/automated-cherry-pick-of-#9227-upstream-release-3.6
Automated cherry pick of #9227: fix(region): avoid resize azure disk error
2020-12-07 20:16:49 +08:00
Zexi Li
23faa02b07 Merge pull request #9232 from wanyaoqi/automated-cherry-pick-of-#9231-upstream-release-3.6
Automated cherry pick of #9231: fix(host): update telegraf conf adapter to container environment
2020-12-07 19:59:21 +08:00
Zexi Li
81d37b74dd Merge pull request #9238 from rainzm/automated-cherry-pick-of-#9237-upstream-release-3.6
Automated cherry pick of #9237: feat(notify): add webconsole in enabled contact types
2020-12-07 19:57:48 +08:00
Qu Xuan
f22fe4fe36 fix(region): avoid timeout for waiting azure async task 2020-12-07 19:50:41 +08:00
rainzm
bce332272c feat(notify): add webconsole in enabled contact types 2020-12-07 19:13:59 +08:00
TangBin
7b96d2593d fix(region): lbcert&lbacl releated listener count bugfix 2020-12-07 17:37:38 +08:00
TangBin
08dda723b4 fix(region): lb listener filter by acl_id 2020-12-07 17:37:38 +08:00
TangBin
76eb124896 fix(region): redis master zone empty fix 2020-12-07 17:37:38 +08:00
TangBin
8bdcc83a8f fix(region): elastic cache name is empty fix
#6527
2020-12-07 17:37:38 +08:00
wanyaoqi
cbc2859248 fix(host): update telegraf conf adapter to container environment 2020-12-07 17:14:36 +08:00
Qu Xuan
0bfa488acd fix(region): avoid resize azure disk error 2020-12-07 15:25:59 +08:00
Zexi Li
23c5ba2b68 Merge pull request #9208 from ioito/automated-cherry-pick-of-#9205-upstream-release-3.6
Automated cherry pick of #9205: fix(region): validate invalid character for password
2020-12-07 10:52:09 +08:00
Qu Xuan
3e7d3c829a fix(keystone): allow refresh scope resource 2020-12-07 10:48:06 +08:00
Qu Xuan
45a3ce82da fix(region): region qcloud secgroup project id 2020-12-07 10:27:36 +08:00
Zexi Li
ca8e69c981 Merge pull request #9203 from tb365/automated-cherry-pick-of-#9202-upstream-release-3.6
Automated cherry pick of #9202: Bugfix/tb bugfix 1204
2020-12-07 10:23:59 +08:00
Qu Xuan
35544a7c2f fix(region): validate invalid character for password 2020-12-07 10:07:58 +08:00
TangBin
133ba01e94 fix(region): change dbinstance sku sync info log to warn 2020-12-07 10:01:08 +08:00
TangBin
7be898fbca fix(region): dbinstance skus sync log level fix 2020-12-07 10:01:08 +08:00
TangBin
d39b3e820a fix(region): server skus add cloud_env 2020-12-07 10:01:08 +08:00
Zexi Li
43522bbe97 Merge pull request #9218 from ioito/automated-cherry-pick-of-#9217-upstream-release-3.6
Automated cherry pick of #9217: fix(region): optimized qcloud secgroup sync, only redis need secgroup be in same project
2020-12-04 20:31:33 +08:00
Zexi Li
e33c96c2f7 Merge pull request #9216 from zhaoxiangchun/automated-cherry-pick-of-#9215-upstream-release-3.6
Automated cherry pick of #9215: chore(monitor): delete suggestion files
2020-12-04 20:27:26 +08:00
Qu Xuan
a84ed01f2f fix(region): optimized qcloud secgroup sync, only redis need secgroup be in same project 2020-12-04 19:43:45 +08:00
zhaoxiangchun
83e899d9a9 chore(monitor): delete suggestion files
1. 移除优化建议相关内容
2. mcclient中新增baseManager:SuggestionManager,修改优化建议相关的manager
2020-12-04 19:28:45 +08:00
Zexi Li
c2b0c57454 Merge pull request #9214 from zexi/automated-cherry-pick-of-#9213-upstream-release-3.6
Automated cherry pick of #9213: refactor(scheduler): remove unused k8s predicates code
2020-12-04 18:01:36 +08:00
Zexi Li
89f110f635 Merge pull request #9211 from ioito/automated-cherry-pick-of-#9210-upstream-release-3.6
Automated cherry pick of #9210: fix(region): azure metric request path
2020-12-04 18:00:53 +08:00
Zexi Li
2a2867daac refactor(scheduler): remove unused k8s predicates code 2020-12-04 17:25:12 +08:00
Qu Xuan
a79a61c417 fix(region): azure metric request path 2020-12-04 17:14:18 +08:00
Zexi Li
8c78bf5ca0 Merge pull request #9207 from zexi/automated-cherry-pick-of-#9204-upstream-release-3.6
Automated cherry pick of #9204: Hotfix/remove kubernetes depend
2020-12-04 17:02:53 +08:00
Zexi Li
8675c7b4f0 Merge pull request #9200 from lvyangyang/automated-cherry-pick-of-#9196-upstream-release-3.6
Automated cherry pick of #9196: feat(region): add bucket cloud tags support
2020-12-04 16:57:53 +08:00
Zexi Li
734be7c147 fix(go.mod): remove k8s.io/kubernetes dependency 2020-12-04 16:50:01 +08:00
Zexi Li
aab59e899b Merge pull request #9067 from rainzm/automated-cherry-pick-of-#9066-upstream-release-3.6
Automated cherry pick of #9066: feat(region): add wire level for preparing network
2020-12-04 14:53:10 +08:00
lvyangyang
66412faf96 feat(region): add bucket cloud tags support 2020-12-04 14:38:38 +08:00
lvyangyang
de67ee5a26 fix(region): fix modify tags log 2020-12-04 14:38:38 +08:00
rainzm
67788b1790 feat(climc): add cloud-account-preparenets-vmware command 2020-12-04 14:32:19 +08:00
rainzm
aad9aba489 feat(region): allow prepare nets for existed cloudaccounts
纳管云账号 -> 合并网段 -> 为vmware集群添加新的宿主机 ->
如何获取网络信息?

如果重新纳管,那么合并网段的工作又得做一次,很不方便。
最好的方法是,preparenets 接口支持已经存在的 cloudaccount,这样
就可以根据推荐的网络手动设置新设备的网络。
2020-12-04 14:32:19 +08:00
rainzm
5a186dbb3c feat(region): add wire level for preparing network
There are three wire level for vmware: vcenter, datacenter and cluster.
According to different wire levels, the recommended network has a different structure.
2020-12-04 14:32:19 +08:00
Zexi Li
64b9355954 Merge pull request #9190 from rainzm/automated-cherry-pick-of-#9189-upstream-release-3.6
Automated cherry pick of #9189: fix(region): remove default value of diskConfig.Medium
2020-12-04 10:41:27 +08:00
Zexi Li
ef8de3f8ac Merge pull request #9173 from ioito/automated-cherry-pick-of-#9134-upstream-release-3.6
Automated cherry pick of #9134: fix(region): azure win os defualt user
2020-12-04 10:24:31 +08:00
Zexi Li
a3b8f9e1c4 Merge pull request #9145 from yousong/automated-cherry-pick-of-#9144-upstream-release-3.6
Automated cherry pick of #9144: Feature/yousong vpc md
2020-12-04 10:23:34 +08:00
Zexi Li
e93a047b43 Merge pull request #9185 from rainzm/automated-cherry-pick-of-#9183-upstream-release-3.6
Automated cherry pick of #9183: fix(region): inspect invalid guest template
2020-12-04 10:21:09 +08:00
Zexi Li
ca2bfb6f16 Merge pull request #9182 from tb365/automated-cherry-pick-of-#9180-upstream-release-3.6
Automated cherry pick of #9180: Bugfix/tb bugfix 1203
2020-12-04 10:18:48 +08:00
Zexi Li
477edc200b Merge pull request #9193 from swordqiu/automated-cherry-pick-of-#9192-upstream-release-3.6
Automated cherry pick of #9192: fix(apigateway): allow logout by get method
2020-12-04 10:16:33 +08:00
Zexi Li
e1c61f0aae Merge pull request #9187 from zexi/automated-cherry-pick-of-#9184-upstream-release-3.6
Automated cherry pick of #9184: Hotfix/scheduler tag nil
2020-12-04 10:15:37 +08:00
rainzm
216e11f291 fix(region): remove default value of diskConfig.Medium
#8830 中,对调度器增加了通过请求磁盘的介质类型过滤存储的功能。

如果使用 climc 创建虚拟机且不要求磁盘有固定的介质类型,将
只能分配到 hybrid 的存储;进一步,如果没有 hybrid 的存储,将会调度失败。
2020-12-04 09:59:07 +08:00
Qiu Jian
ff24d4a3e3 fix(apigateway): allow logout by get method
All visit logout URL by GET method
2020-12-04 01:13:08 +08:00
Zexi Li
66eee7f72f fix(scheduler): check candidate tag resource is nil 2020-12-03 20:43:50 +08:00
rainzm
5602db8f5e fix(region): inspect invalid guest template
The glance service hangs and other external reasons may cause the guest template to be judged as invalid.
Therefore, health inspection should be performed on time for invalid guest templates.
2020-12-03 20:42:39 +08:00
TangBin
8db56d90f3 fix(region): huawei vnc protocal fix 2020-12-03 20:01:25 +08:00
TangBin
6e0acab93b feat(webconsole): add huawei vnc support 2020-12-03 20:01:25 +08:00
TangBin
69fa370b04 fix(region): elb cached acl sync 2020-12-03 20:01:25 +08:00
Zexi Li
a24d3c478b Merge pull request #9178 from zexi/automated-cherry-pick-of-#9176-upstream-release-3.6
Automated cherry pick of #9176: fix(scheduler): select resource unordered
2020-12-03 19:55:31 +08:00
Zexi Li
4a0aadae45 Merge pull request #9170 from lvyangyang/automated-cherry-pick-of-#9147-upstream-release-3.6
Automated cherry pick of #9147: feat(region): 多云 bucket  website.cors,referer 配置
2020-12-03 19:00:19 +08:00
Zexi Li
5b170650f8 fix(scheduler): select resource unordered 2020-12-03 18:43:16 +08:00
Qu Xuan
a823273884 fix(region): azure win os defualt user 2020-12-03 16:31:43 +08:00
lvyangyang
c9185a43c7 feat(region): 多云 bucket website.cors,referer 配置 2020-12-03 15:22:58 +08:00
Zexi Li
edd10faaf8 Merge pull request #9136 from ioito/automated-cherry-pick-of-#9135-upstream-release-3.6
Automated cherry pick of #9135: feat(cloudid): notify clouduser created
2020-12-03 15:17:11 +08:00
Zexi Li
ced5217f55 Merge pull request #9162 from ioito/automated-cherry-pick-of-#9161-upstream-release-3.6
Automated cherry pick of #9161: feat(region): huawei recovery new rds
2020-12-03 14:44:18 +08:00
Zexi Li
f23fa030ed Merge pull request #9164 from wanyaoqi/automated-cherry-pick-of-#9163-upstream-release-3.6
Automated cherry pick of #9163: bugfix(region): fix list by srever type normal
2020-12-03 14:43:15 +08:00
Zexi Li
ac64afa6b3 Merge pull request #9139 from zhaoxiangchun/automated-cherry-pick-of-#9138-upstream-release-3.6
Automated cherry pick of #9138: fix(monitor): modify influxdbSuggestDriver query err
2020-12-03 14:42:12 +08:00
zhaoxiangchun
96d0f0e63c fix(monitor): modify influxdbSuggestDriver query err
1.修复influxdb相关的建议规则查询数据失败的问题
2020-12-03 13:01:13 +08:00
wanyaoqi
3756993c98 bugfix(region): fix list by srever type normal
server list by normal shouldn't contains gpu and backup servers

cherrypick: release/3.4
2020-12-03 12:06:30 +08:00
Qu Xuan
551aa2f91f feat(region): huawei recovery new rds 2020-12-03 10:51:52 +08:00
Zexi Li
fb2a68bdb1 Merge pull request #9155 from wanyaoqi/automated-cherry-pick-of-#9154-upstream-release-3.6
Automated cherry pick of #9154: feat(region): add list filter server type
2020-12-03 09:33:24 +08:00
Zexi Li
311bc0f4d6 Merge pull request #9151 from ioito/automated-cherry-pick-of-#9150-upstream-release-3.6
Automated cherry pick of #9150: fix(region): avoid qcloud sync local disk error
2020-12-02 21:05:14 +08:00
wanyaoqi
6c4ba17371 feat(region): add list filter server type
list server by specific server type: normal, gpu, backup

cherrypick: release/3.4
2020-12-02 20:30:41 +08:00
Qu Xuan
0c7adedaad fix(region): avoid qcloud sync local disk error 2020-12-02 20:27:07 +08:00
Yousong Zhou
7d0828410a feat(appsrv): Application: add Stop method for shutdown behaviour 2020-12-02 18:04:58 +08:00
Yousong Zhou
6a2136f6c2 refactor(hostman): metadata: eliminate import of guestman 2020-12-02 18:04:58 +08:00
Yousong Zhou
de7eb162fc refactor(hostman): use metadata.DescGetterFunc 2020-12-02 18:04:58 +08:00
Yousong Zhou
0f1fc0fa58 refactor(host): metadata: eliminate ref of guestNic 2020-12-02 18:04:58 +08:00
Yousong Zhou
8f1f1f55c6 feat(host): metadata: make vpc aware metadata handler 2020-12-02 18:04:58 +08:00
Yousong Zhou
9288c2fd81 feat(vpcagent): export subnet mac gen funcs 2020-12-02 18:04:58 +08:00
Zexi Li
45dbd119a4 Merge pull request #9141 from swordqiu/automated-cherry-pick-of-#9140-upstream-release-3.6
Automated cherry pick of #9140: fix(keystone): not allow to disable sql driver
2020-12-02 17:08:37 +08:00
Qiu Jian
695aa81f70 fix(keystone): not allow to disable sql driver
not allow to disable default SQL identity_provider driver
2020-12-02 16:40:21 +08:00
Zexi Li
d8d4cbbdc7 Merge pull request #9062 from zhaoxiangchun/automated-cherry-pick-of-#9061-upstream-release-3.6
Automated cherry pick of #9061: fix(monitor): delete suggestConfig auto init data
2020-12-02 14:52:03 +08:00
Qu Xuan
618d07f456 feat(cloudid): notify clouduser created 2020-12-02 14:46:23 +08:00
zhaoxiangchun
815e16eca0 fix(monitor): delete suggestConfig auto init data
1.删除忽略列表之前逻辑初始化生成的配置config
2.忽略列表默认查询ignore=true的数据
3.修复建议列表 忽略一类建议不生效的问题
2020-12-02 11:19:19 +08:00
Zexi Li
266aa51044 Merge pull request #9132 from ioito/automated-cherry-pick-of-#9131-upstream-release-3.6
Automated cherry pick of #9131: fix(cloudid): sync qcloud collaborators user
2020-12-01 21:08:00 +08:00
Zexi Li
58da48eb52 Merge pull request #9092 from tb365/automated-cherry-pick-of-#9091-upstream-release-3.6
Automated cherry pick of #9091: fix(region): reserved name checking while create redis account
2020-12-01 21:06:10 +08:00
Zexi Li
afa183c026 Merge pull request #9124 from ioito/automated-cherry-pick-of-#9123-upstream-release-3.6
Automated cherry pick of #9123: fix(region): allow delete resource which status is unknown
2020-12-01 21:04:56 +08:00
Zexi Li
c8ddc63b39 Merge pull request #9105 from rainzm/automated-cherry-pick-of-#9104-upstream-release-3.6
Automated cherry pick of #9104: fix(notify): return the result of the second attempt to execute the rpc call
2020-12-01 21:03:16 +08:00
Qu Xuan
82dc179074 fix(cloudid): sync qcloud collaborators user 2020-12-01 20:36:20 +08:00
Zexi Li
c2201a031f Merge pull request #9110 from yousong/automated-cherry-pick-of-#9109-upstream-release-3.6
Automated cherry pick of #9109: fix(host): make sure it won't match vpc guests by accident
2020-12-01 20:13:32 +08:00
Zexi Li
0785c58286 Merge pull request #9121 from ioito/automated-cherry-pick-of-#9120-upstream-release-3.6
Automated cherry pick of #9120: fix(region): allow update rds account and database desc
2020-12-01 19:33:04 +08:00
Zexi Li
1cd298ba6a Merge pull request #9117 from rainzm/automated-cherry-pick-of-#9116-upstream-release-3.6
Automated cherry pick of #9116: fix(region): delete guest without 'purge' in GuestDetachScalingGroupTask
2020-12-01 19:32:04 +08:00
rainzm
b1ef8865b8 fix(notify): return the result of the second attempt to execute the rpc call 2020-12-01 18:23:22 +08:00
Qu Xuan
f35be97569 fix(region): allow delete resource which status is unknown 2020-12-01 17:17:12 +08:00
Qu Xuan
e483d1901e fix(region): allow update rds account and database desc 2020-12-01 16:38:59 +08:00
rainzm
0edec40b22 fix(region): delete guest without 'purge' in GuestDetachScalingGroupTask 2020-12-01 16:02:16 +08:00
Yousong Zhou
428e3ab1f5 fix(host): make sure it won't match vpc guests by accident 2020-12-01 15:32:53 +08:00
yunion-ci-robot
9013ab785a Merge pull request #9101 from yousong/automated-cherry-pick-of-#9100-upstream-release-3.6
Automated cherry pick of #9100: Bugfix/yousong qcloud nic
2020-12-01 12:57:57 +08:00
Zexi Li
fb94e7fd28 Merge pull request #9103 from ioito/automated-cherry-pick-of-#9102-upstream-release-3.6
Automated cherry pick of #9102: fix(region): code gen api error
2020-12-01 11:59:41 +08:00
Qu Xuan
b6ace002d7 fix(region): code gen api error 2020-12-01 11:27:00 +08:00
Yousong Zhou
e8ef92ad23 multicloud: qcloud: fix instancenic 2020-12-01 11:17:13 +08:00
Yousong Zhou
5f1fd6c7f9 multicloud: qcloud: add ptr deref func 2020-12-01 11:17:13 +08:00
Yousong Zhou
0e0f8bfa94 multicloud: qcloud: add apiDomainByRegion 2020-12-01 11:17:13 +08:00
Yousong Zhou
1ab4d40497 multicloud: qcloud: add getVpcClient 2020-12-01 11:17:13 +08:00
Yousong Zhou
9dcd0d2db1 multicloud: qcloud: add getSdkClient 2020-12-01 11:17:13 +08:00
Yousong Zhou
4a45ca59df vendor: add tencentcloud-sdk-go vpc 2020-12-01 11:17:13 +08:00
Zexi Li
fef43d3567 Merge pull request #9097 from yousong/automated-cherry-pick-of-#9096-upstream-release-3.6
Automated cherry pick of #9096: Bugfix/yousong informer
2020-12-01 09:34:02 +08:00
Yousong Zhou
a51a0845b4 fix(taskman): SSubTask: set model manager 2020-11-30 23:12:25 +08:00
Yousong Zhou
73f434e034 fix(region): secgrouprule: set model manager 2020-11-30 23:12:25 +08:00
Zexi Li
a4575fa51d Merge pull request #9073 from ioito/automated-cherry-pick-of-#9072-upstream-release-3.6
Automated cherry pick of #9072: fix(cloudid): huawei saml provider create issue
2020-11-30 21:56:22 +08:00
Zexi Li
3fa0f9d37c Merge pull request #9016 from tb365/automated-cherry-pick-of-#9015-upstream-release-3.6
Automated cherry pick of #9015: fix(region): huawei sync storages bugfix
2020-11-30 21:54:53 +08:00
Zexi Li
2a1d1a1cbc Merge pull request #9065 from ioito/automated-cherry-pick-of-#9064-upstream-release-3.6
Automated cherry pick of #9064: fix(region): apsara is private cloud
2020-11-30 21:53:25 +08:00
Zexi Li
f9080330e1 Merge pull request #9085 from yousong/automated-cherry-pick-of-#9084-upstream-release-3.6
Automated cherry pick of #9084: feat(region): networkaddresses: filter by guest ids
2020-11-30 21:52:45 +08:00
Zexi Li
7230c65f8d Merge pull request #9077 from rainzm/automated-cherry-pick-of-#9076-upstream-release-3.6
Automated cherry pick of #9076: Notify via contact skip receiver
2020-11-30 21:50:18 +08:00
Zexi Li
3226f99a33 Merge pull request #9080 from yousong/automated-cherry-pick-of-#9079-upstream-release-3.6
Automated cherry pick of #9079: feat(region): options: allow setting default vpc external access mode
2020-11-30 21:49:31 +08:00
Zexi Li
e62d3fb0be Merge pull request #9088 from rainzm/automated-cherry-pick-of-#9086-upstream-release-3.6
Automated cherry pick of #9086: fix(region): sort excludedNets correctly
2020-11-30 21:47:35 +08:00
yunion-ci-robot
0900860ca0 Merge pull request #9094 from ioito/automated-cherry-pick-of-#9075-upstream-release-3.6
Automated cherry pick of #9075: fix(region): optimized rds backup create
2020-11-30 21:30:08 +08:00
Qu Xuan
2a6421258a fix(region): optimized rds backup create 2020-11-30 20:00:24 +08:00
rainzm
474bd1440f feat(cloudcommon): add NotifyWithContact 2020-11-30 19:59:38 +08:00
rainzm
cff5b8b656 feat(cloudcommon): allways send webconsole notification via contacts
For notification with webconsole type, receiverId is same with contacts.
2020-11-30 19:59:38 +08:00
rainzm
cb663f460f feat(notify): permit admin sending notification via contact
In this way, you can easily send notification to non-existent receiver.
2020-11-30 19:59:38 +08:00
TangBin
a924c9552b fix(region): reserved name checking while create redis account 2020-11-30 19:17:15 +08:00
rainzm
c1d95bc313 fix(region): sort excludedNets correctly
之前,excludedNets 内部表示起始 IP 的字段是 string 类型,直接使用 <
比较是错误的。
现在,把 excludedNets 表示起始 IP 的字段改为了
netutils.IPV4Addr,这样就可以正确地进行比较排序了。
2020-11-30 19:05:19 +08:00
Yousong Zhou
b46d50ae3a feat(region): networkaddresses: filter by guest ids 2020-11-30 19:02:55 +08:00
Yousong Zhou
05c95295b3 feat(region): options: allow setting default vpc external access mode 2020-11-30 18:29:55 +08:00
Yousong Zhou
d2e304bae0 fix(region): pass up error from InitializeData 2020-11-30 18:29:55 +08:00
Qu Xuan
b460a73b0d fix(cloudid): huawei saml provider create issue 2020-11-30 16:31:09 +08:00
Zexi Li
c8d4a33f45 Merge pull request #8996 from ioito/automated-cherry-pick-of-#8995-upstream-release-3.6
Automated cherry pick of #8995: fix(cloudid): avoid new public account sync system policy delay 1 day
2020-11-30 14:13:42 +08:00
Qu Xuan
21d9edcfa6 fix(region): apsara is private cloud 2020-11-30 10:40:52 +08:00
Zexi Li
e2833b0760 Merge pull request #9059 from ioito/automated-cherry-pick-of-#8434-upstream-release-3.6
Automated cherry pick of #8434: fix: add panic log for worker task
2020-11-27 20:41:33 +08:00
Zexi Li
012b0f2c6a Merge pull request #8969 from yousong/automated-cherry-pick-of-#8575-upstream-release-3.6
Automated cherry pick of #8575: vendor: bump yunion.io/x/sqlchemy
2020-11-27 20:18:33 +08:00
Qu Xuan
f05fc18941 fix(cloudid): avoid new public account sync system policy delay 1 day 2020-11-27 20:17:42 +08:00
Zexi Li
74ca7830aa Merge pull request #9029 from ioito/automated-cherry-pick-of-#9021-upstream-release-3.6
Automated cherry pick of #9021: fix(region): auto sync cloudaccount resources
2020-11-27 20:13:55 +08:00
Zexi Li
bd101e19eb Merge pull request #9037 from yousong/automated-cherry-pick-of-#9036-upstream-release-3.6
Automated cherry pick of #9036: feat(region): search server by substr of ip or mac
2020-11-27 20:09:08 +08:00
Zexi Li
1d7e1938e6 Merge pull request #9055 from zhaoxiangchun/automated-cherry-pick-of-#9054-upstream-release-3.6
Automated cherry pick of #9054: fix(monitor): modify monitor nodata alert matching onecloud host func
2020-11-27 20:07:27 +08:00
Qu Xuan
e97cd02b5b fix: add panic log for worker task 2020-11-27 20:05:07 +08:00
Zexi Li
727c526d3d Merge pull request #9058 from lvyangyang/automated-cherry-pick-of-#9056-upstream-release-3.6
Automated cherry pick of #9056: fix(region): bucket get referer fix
2020-11-27 20:04:03 +08:00
lvyangyang
0174e686df fix(region): bucket get referer fix 2020-11-27 19:44:13 +08:00
zhaoxiangchun
2564f3c060 fix(monitor): modify monitor nodata alert matching onecloud host func 2020-11-27 19:07:12 +08:00
Zexi Li
b5dd92f042 Merge pull request #9050 from wanyaoqi/automated-cherry-pick-of-#9049-upstream-release-3.6
Automated cherry pick of #9049: fix(region,scheduler): fix netwrok predicate
2020-11-27 18:43:37 +08:00
wanyaoqi
c8ca855cbc fix(region,scheduler): fix netwrok predicate
1. Guest config to schedule input should include network exit propertites.
2. Guest migrate and create backup server should not check network count,
because of migrate and create backup server will not allocate new network to guest.

cherrypick: release/3.5
2020-11-27 18:17:15 +08:00
yunion-ci-robot
1e59cd4b84 Merge pull request #9047 from rainzm/automated-cherry-pick-of-#9046-upstream-release-3.6
Automated cherry pick of #9046: fix(region): get provider name via GetProviderName
2020-11-27 18:05:54 +08:00
rainzm
843534c298 fix(region): get provider name via GetProviderName 2020-11-27 17:34:47 +08:00
rainzm
1c475b0912 fix(region): get provider name via GetProviderName 2020-11-27 17:34:47 +08:00
Zexi Li
4ab73f0b1c Merge pull request #9035 from lvyangyang/automated-cherry-pick-of-#9033-upstream-release-3.6
Automated cherry pick of #9033: fix(region): fix set bucket referer
2020-11-27 16:29:56 +08:00
Yousong Zhou
ca21bcf564 feat(region): search server by substr of ip or mac 2020-11-27 15:16:08 +08:00
lvyangyang
9872a05be9 feat(region): set qcloud bucket policy 2020-11-27 14:50:17 +08:00
lvyangyang
6f3cabda6e fix(region): fix set bucket referer 2020-11-27 14:50:17 +08:00
yunion-ci-robot
23c4abedbb Merge pull request #9025 from ioito/automated-cherry-pick-of-#9024-upstream-release-3.6
Automated cherry pick of #9024: fix(cloudid): avoid use invalid character for role name
2020-11-27 09:51:35 +08:00
Qu Xuan
e056bb1028 fix(region): auto sync cloudaccount resources 2020-11-27 09:38:25 +08:00
yunion-ci-robot
5de39adaf7 Merge pull request #9023 from swordqiu/automated-cherry-pick-of-#9022-upstream-release-3.6
Automated cherry pick of #9022: fix(cloudcommon): adjust policy refresh to default 30 seconds
2020-11-26 21:58:32 +08:00
Zexi Li
3bfc6d928a Merge pull request #8999 from ioito/automated-cherry-pick-of-#8998-upstream-release-3.6
Automated cherry pick of #8998: fix(region): allow member user get saml auth addr
2020-11-26 21:39:43 +08:00
Qu Xuan
fd948b8cc5 fix(cloudid): avoid use invalid character for role name 2020-11-26 21:38:50 +08:00
Zexi Li
c64d98f769 Merge pull request #9019 from ioito/automated-cherry-pick-of-#9018-upstream-release-3.6
Automated cherry pick of #9018: fix(cloudid): auto update saml provider metadata
2020-11-26 21:38:21 +08:00
Zexi Li
22e2c2e3ef Merge pull request #9003 from ioito/automated-cherry-pick-of-#9002-upstream-release-3.6
Automated cherry pick of #9002: fix(region): avolid aliyun fin bucket list objects error
2020-11-26 21:36:38 +08:00
Qiu Jian
b9d30c08a2 fix(cloudcommon): adjust policy refresh to default 30 seconds
Cache policy check result for 30 seconds by default
2020-11-26 21:33:15 +08:00
Zexi Li
7a2c8722d5 Merge pull request #9013 from ioito/automated-cherry-pick-of-#9012-upstream-release-3.6
Automated cherry pick of #9012: fix(region): qcloud request retry
2020-11-26 21:31:51 +08:00
Zexi Li
de624a5af9 Merge pull request #9006 from yousong/automated-cherry-pick-of-#9005-upstream-release-3.6
Automated cherry pick of #9005: Feature/yousong ovn encap ip
2020-11-26 21:29:50 +08:00
Zexi Li
fefbd436e0 Merge pull request #9010 from ioito/automated-cherry-pick-of-#9009-upstream-release-3.6
Automated cherry pick of #9009: fix(climc): replace ' -> "
2020-11-26 21:26:59 +08:00
Yousong Zhou
c3b4edae1b vpcagent: ovn: make aware of sub ips 2020-11-26 21:20:01 +08:00
Yousong Zhou
314f9fcc0f vpcagent: models: join network addresses 2020-11-26 21:20:01 +08:00
Yousong Zhou
f699f7cb55 vpcagent: apihelper: filter by cloud_env=onpremise 2020-11-26 21:20:01 +08:00
Yousong Zhou
a3d6a039ac multicloud: aliyun: instancenic: handle InvalidOperation.Ipv4CountExceeded 2020-11-26 21:20:01 +08:00
Yousong Zhou
eec81e73e7 networkaddresses: handle cloudprovider.ErrAddressCountExceed 2020-11-26 21:20:01 +08:00
Yousong Zhou
444e666472 cloudprovider: add ErrAddressCountExceed 2020-11-26 21:20:01 +08:00
Yousong Zhou
159453eceb networkaddresses: do server sync for on premise servers 2020-11-26 21:20:01 +08:00
Yousong Zhou
05984b49a7 networkaddresses: disallow batch create for external resources 2020-11-26 21:20:01 +08:00
Yousong Zhou
7343be04b1 networkaddresses: cloudprovider support 2020-11-26 21:20:01 +08:00
Yousong Zhou
1b6275f803 multicloud: aws: subaddress management 2020-11-26 21:20:01 +08:00
Yousong Zhou
3159f6d6d7 multicloud: aws: instancenic: add interface id attribute 2020-11-26 21:20:01 +08:00
Yousong Zhou
0fe90abea8 multicloud: aliyun: instancenic: secondary address management 2020-11-26 21:20:01 +08:00
Yousong Zhou
47a2d07634 vendor: bump alibaba-cloud-sdk-go to v1.61.684
For commit [1]

 [1] 6313cc407e
2020-11-26 21:20:01 +08:00
Yousong Zhou
edbddb38b6 vendor: add github.com/aliyun/alibaba-cloud-sdk-go/services/ecs 2020-11-26 21:20:01 +08:00
Yousong Zhou
9840d7cf77 cloudprovider: ICloudNic: add methods for secondary addresses 2020-11-26 21:20:01 +08:00
Yousong Zhou
2afa068d71 multicloud: ICloudNic: add GetId() 2020-11-26 21:20:01 +08:00
Yousong Zhou
956bc945a9 multicloud: ICloudNic: fix GetMAC() 2020-11-26 21:20:01 +08:00
Yousong Zhou
adb998ff55 hostman: metadata: add handler for /local-sub-ipv4s 2020-11-26 21:20:01 +08:00
Yousong Zhou
0c8d8358e6 networkaddresses: add to nics field of guest desc 2020-11-26 21:20:01 +08:00
Yousong Zhou
87ed4e9a55 networkaddresses: add parent_type guestnetwork 2020-11-26 21:20:01 +08:00
Yousong Zhou
8ed18fbf34 networks: usedAddressQuery: rename with baseq, ownerq, retq 2020-11-26 21:20:01 +08:00
Yousong Zhou
1609496f9c networks: split getUsedAddressQuery as method of each manager 2020-11-26 21:20:01 +08:00
Yousong Zhou
f54de809b2 networks: fix typo in log 2020-11-26 21:20:01 +08:00
Yousong Zhou
c389aaaeb7 db_dispatcher: allow batch create for models without name 2020-11-26 21:20:01 +08:00
Yousong Zhou
ed1999efaf db: interface: manager: add HasName() method 2020-11-26 21:20:01 +08:00
Yousong Zhou
c8ad511744 db: standalone_anon: empty result for name query 2020-11-26 21:20:01 +08:00
Yousong Zhou
c45550ef63 db: add standalone_anon 2020-11-26 21:20:00 +08:00
Yousong Zhou
b79915d407 schedtags: add ListItemExportKeys 2020-11-26 21:20:00 +08:00
Yousong Zhou
d8ab874ef2 db: add manager methods appliers 2020-11-26 21:20:00 +08:00
Yousong Zhou
f62dddda51 db_dispatcher: delay compute to where needed 2020-11-26 21:20:00 +08:00
Yousong Zhou
0c8ab90f7e db_dispatcher: remove unused GetExtraDetails call 2020-11-26 21:20:00 +08:00
Yousong Zhou
79120f3de3 db: virtualjoint: add FilterById on RowId 2020-11-26 21:20:00 +08:00
Yousong Zhou
0e0a394907 db: modelbase: BatchCreateValidateCreateData: return orig data 2020-11-26 21:20:00 +08:00
Yousong Zhou
3b32ce56cc db: check funcs required by dispatcher 2020-11-26 21:20:00 +08:00
Yousong Zhou
d8cfba9217 region: networks: attach func use struct args 2020-11-26 21:20:00 +08:00
Yousong Zhou
f87d094580 region: networkresource: fix signature of GetExtraDetails 2020-11-26 21:20:00 +08:00
Yousong Zhou
9072a69aec multicloud: aliyun: make getSdkClient proxy aware 2020-11-26 21:20:00 +08:00
Yousong Zhou
91fab12172 climc: helper: add BatchCreate helper 2020-11-26 21:20:00 +08:00
Yousong Zhou
f6f4fc125a climc: helper: create call as a standalone method 2020-11-26 21:20:00 +08:00
Yousong Zhou
9228b17928 climc: s/Keyworkd/Keyword/ 2020-11-26 21:20:00 +08:00
Yousong Zhou
46088408bc vendor: bump yunion.io/x/pkg 2020-11-26 21:20:00 +08:00
Yousong Zhou
f0fba9aa20 vendor: bump yunion.io/x/sqlchemy 2020-11-26 21:20:00 +08:00
Qu Xuan
61d21d2b46 fix(cloudid): auto update saml provider metadata 2020-11-26 20:20:02 +08:00
TangBin
d5973135d2 fix(region): huawei sync storages bugfix 2020-11-26 19:34:49 +08:00
Qu Xuan
e52fb3260f fix(region): qcloud request retry 2020-11-26 19:03:39 +08:00
Qu Xuan
cb594298d4 fix(climc): replace ' -> " 2020-11-26 17:36:48 +08:00
Yousong Zhou
8db93257d6 feat(host): add option OvnEncapIpDetectionMethod can-reach:xx 2020-11-26 17:11:38 +08:00
Yousong Zhou
e53bdd5f94 feat(netutils2): add MyIPTo 2020-11-26 17:11:38 +08:00
yunion-ci-robot
28ff7c29b2 Merge pull request #9001 from wanyaoqi/automated-cherry-pick-of-#8828-upstream-release-3.6
Automated cherry pick of #8828: feature: update cpu arch apis
2020-11-26 16:37:34 +08:00
Qu Xuan
061c5d6dd9 fix(region): avolid aliyun fin bucket list objects error 2020-11-26 16:17:42 +08:00
wanyaoqi
59102f2dda feat(region/glance): update cpu arch apis
add multi arch resourcebase manager
update multi arch resource list apis

cherrypick: release/3.6
2020-11-26 15:33:40 +08:00
Qu Xuan
dea1f29aa1 fix(region): allow member user get saml auth addr 2020-11-26 15:02:49 +08:00
Zexi Li
b479f23a4f Merge pull request #8984 from swordqiu/automated-cherry-pick-of-#8968-upstream-release-3.6
Automated cherry pick of #8968: fix(region,esxiagent): allow host behind a nat
2020-11-26 12:11:09 +08:00
yunion-ci-robot
d974440dec Merge pull request #8992 from zexi/automated-cherry-pick-of-#8991-upstream-release-3.6
Automated cherry pick of #8991: fix(scheduler): clean expire cache before schedule
2020-11-26 11:44:39 +08:00
Zexi Li
bcfb050193 fix(region): wire get vpc releated hosts is empty 2020-11-26 11:03:07 +08:00
Zexi Li
3c85ed11b9 fix(region): network clean schedule cache after real deleted 2020-11-26 11:03:07 +08:00
Zexi Li
a16899c9bf fix(scheduler): clean expire cache before schedule 2020-11-26 11:03:07 +08:00
yunion-ci-robot
761874423f Merge pull request #8931 from tb365/automated-cherry-pick-of-#8779-upstream-release-3.6
Automated cherry pick of #8779: 负载均衡ACL&证书增加项目和共享
2020-11-26 10:47:34 +08:00
TangBin
4d4c84801f fix(region): climc add base projects options 2020-11-26 10:33:36 +08:00
TangBin
670a06d53d 负载均衡ACL&证书增加项目和共享 2020-11-26 10:33:36 +08:00
Zexi Li
8f9015475b Merge pull request #8938 from yousong/automated-cherry-pick-of-#8937-upstream-release-3.6
Automated cherry pick of #8937: fix(treewide): fix task error recording
2020-11-26 09:25:07 +08:00
Zexi Li
4891f16959 Merge pull request #8940 from rainzm/automated-cherry-pick-of-#8925-upstream-release-3.6
Automated cherry pick of #8925: feat(region): add SCloudregionResourceBase for SInstanceSnapshot
2020-11-25 22:04:33 +08:00
Zexi Li
3b7ef422ee Merge pull request #8967 from zhaoxiangchun/automated-cherry-pick-of-#8902-upstream-release-3.6
Automated cherry pick of #8902: feat(monitor): add nodata alert policy
2020-11-25 22:02:38 +08:00
Zexi Li
2e7d107232 Merge pull request #8976 from tb365/automated-cherry-pick-of-#8955-upstream-release-3.6
Automated cherry pick of #8955: fix(region): allow reset huawei system disk
2020-11-25 22:01:48 +08:00
Zexi Li
0676b48513 Merge pull request #8962 from ioito/automated-cherry-pick-of-#8961-upstream-release-3.6
Automated cherry pick of #8961: fix(region): valid qcloud hssd for system disk
2020-11-25 21:59:30 +08:00
Zexi Li
84da1058b2 Merge pull request #8983 from zhaoxiangchun/automated-cherry-pick-of-#8977-upstream-release-3.6
Automated cherry pick of #8977: fix(monitor): modify monitor serviceType in StartService()
2020-11-25 21:57:21 +08:00
Zexi Li
a62d51a681 Merge pull request #8988 from rainzm/automated-cherry-pick-of-#8987-upstream-release-3.6
Automated cherry pick of #8987: fix(region): allow delete storagecachedimage with 'cache_failed' status
2020-11-25 21:55:42 +08:00
rainzm
ed2a867748 fix(region): allow delete storagecachedimage with 'cache_failed' status
Having status 'cache_failed' means this storagecachedimage does not actually exist.
2020-11-25 20:47:10 +08:00
zhaoxiangchun
db565fe0cd fix(monitor): modify monitor serviceType in StartService()
1.修改monitor服务在service代码中注册的serviceType:
   alerter ===> monitor
2020-11-25 20:30:29 +08:00
Qiu Jian
197049dcb7 fix(region,esxiagent): allow host behind a nat
check host by ip may fail if host is behind a nat. ignore this case.
2020-11-25 20:14:09 +08:00
Zexi Li
ec803b3681 Merge pull request #8966 from zhaoxiangchun/automated-cherry-pick-of-#8965-upstream-release-3.6
Automated cherry pick of #8965: fix(monitor): suggestalert ignore throw err
2020-11-25 19:46:46 +08:00
Zexi Li
8e7b812e4f Merge pull request #8974 from ioito/automated-cherry-pick-of-#8973-upstream-release-3.6
Automated cherry pick of #8973: fix(region): set qcloud instance del timeout to 20m
2020-11-25 19:37:46 +08:00
rainzm
4d13956bc6 fix(region): ignore params.Disks when cloning vm from snapshot 2020-11-25 18:26:30 +08:00
rainzm
6ea550d012 fix(region): add size and storageType for VMware InstanceSnapshot 2020-11-25 18:26:30 +08:00
rainzm
eb3da9369d fix(esxiagent): add humanized tips when searching vm failed 2020-11-25 18:26:29 +08:00
rainzm
727b89db5d fix(region): make project of instance snapshot be consistent with the instance 2020-11-25 18:26:29 +08:00
rainzm
6d2e914391 fix(region): save when canceling pendingUsage 2020-11-25 18:26:29 +08:00
rainzm
8627818e14 feat(region): set pendingUsage before creating instance snapshots 2020-11-25 18:26:29 +08:00
rainzm
23b1a2b143 feat(region): add instance_snapshot for regionquota 2020-11-25 18:26:29 +08:00
rainzm
1561d65395 fix(region): purge all instance snapshots when purging guest 2020-11-25 18:26:29 +08:00
rainzm
35fc62bbad feat(region): add SCloudregionResourceBase for SInstanceSnapshot
理论上,可以通过
SInstanceSnapshot->SGuest->SHost->SZone->SCloudregionResourceBase
拿到 cloudregion_id, 但是这样的效率太低了
2020-11-25 18:26:29 +08:00
TangBin
25eb67b373 fix(region): update translations 2020-11-25 18:18:49 +08:00
TangBin
3ed59afae4 fix(region): allow reset huawei system disk 2020-11-25 18:18:49 +08:00
Qu Xuan
2d7cdad8f2 fix(region): set qcloud instance del timeout to 20m 2020-11-25 17:17:06 +08:00
Zexi Li
726a0817ac Merge pull request #8971 from ioito/automated-cherry-pick-of-#8970-upstream-release-3.6
Automated cherry pick of #8970: fix(cloudid): avoid empty auth url
2020-11-25 17:16:50 +08:00
Qu Xuan
869740775c fix(cloudid): avoid empty auth url 2020-11-25 17:07:09 +08:00
Zexi Li
5c448811eb Merge pull request #8959 from ioito/automated-cherry-pick-of-#8958-upstream-release-3.6
Automated cherry pick of #8958: fix(region): validate cloudaccount saml auth params
2020-11-25 16:06:52 +08:00
zhaoxiangchun
7661189370 feat(monitor): add nodata alert policy
1.add queryConditon子类:nodataQueryCondition处理nodata类型策略
2.遍历Onecloud类型宿主机,得到nodata宿主机信息
2020-11-25 12:18:40 +08:00
zhaoxiangchun
81e4463abc fix(monitor): suggestalert ignore throw err
1.修复优化建议忽略操作报错
2020-11-25 12:03:42 +08:00
Qu Xuan
8281411680 fix(region): valid qcloud hssd for system disk 2020-11-25 11:52:04 +08:00
Qu Xuan
a9ef8a1e37 fix(region): validate cloudaccount saml auth params 2020-11-25 11:35:05 +08:00
Zexi Li
f0abdb9e77 Merge pull request #8952 from ioito/automated-cherry-pick-of-#8895-upstream-release-3.6
Automated cherry pick of #8895: fix(region): 避免OneCloud密码校验通过,公有云厂商密码校验不通过
2020-11-25 10:06:10 +08:00
Qu Xuan
782372c35e fix(region): 避免OneCloud密码校验通过,公有云厂商密码校验不通过 2020-11-25 09:54:51 +08:00
Zexi Li
da53fe1cf7 Merge pull request #8948 from yousong/automated-cherry-pick-of-#8947-upstream-release-3.6
Automated cherry pick of #8947: fix(region): change_ipaddr: retain eip_id on detach and attach
2020-11-25 09:28:05 +08:00
yunion-ci-robot
452d8e9caa Merge pull request #8943 from yousong/automated-cherry-pick-of-#8942-upstream-release-3.6
Automated cherry pick of #8942: feat(cloudcommon): db: jointbase: add list:"user" for RowId
2020-11-25 09:18:16 +08:00
Yousong Zhou
f33b9c7164 fix(region): change_ipaddr: retain eip_id on detach and attach 2020-11-24 21:58:57 +08:00
Yousong Zhou
d1f1eda985 fix(vpcagent): models: guestnetworks: accomodate change_ipaddr
change_ipaddr does detach, then attach of network.  It's not solely an
update of ipaddr, but a combination of deletion then creation.
2020-11-24 21:55:30 +08:00
Yousong Zhou
53125e6ed1 feat(cloudcommon): db: jointbase: add list:"user" for RowId 2020-11-24 21:55:30 +08:00
yunion-ci-robot
978677cc02 Merge pull request #8939 from zexi/automated-cherry-pick-of-#8930-upstream-release-3.6
Automated cherry pick of #8930: feat(region/schedtag): schedtag support set multi resources
2020-11-24 21:33:30 +08:00
yunion-ci-robot
20d0cfb95e Merge pull request #8941 from zhaoxiangchun/automated-cherry-pick-of-#8926-upstream-release-3.6
Automated cherry pick of #8926: fix(monitor): modify suggestrule process influxdb data
2020-11-24 21:29:15 +08:00
zhaoxiangchun
ed13fe9e14 fix(monitor): modify suggestrule process influxdb data
1. 调整与监控相关的时间范围的判断逻辑:不再要求时间范围内必须都有数据
2020-11-24 21:13:52 +08:00
Yousong Zhou
d868347773 fix(treewide): fix task error recording 2020-11-24 20:38:20 +08:00
yunion-ci-robot
0a4ddb861e Merge pull request #8934 from ioito/automated-cherry-pick-of-#8933-upstream-release-3.6
Automated cherry pick of #8933: fix(region): avoid public ip bandwidth is zero
2020-11-24 20:25:31 +08:00
Zexi Li
a16b048f96 feat(region/schedtag): schedtag support set multi resources 2020-11-24 20:25:10 +08:00
Qu Xuan
5dea11952f fix(region): avoid public ip bandwidth is zero 2020-11-24 18:10:52 +08:00
yunion-ci-robot
3192b9a06f Merge pull request #8913 from tb365/feature/tb-support-aliyun-finance
feat(region): support aliyun finance cloud
2020-11-24 09:47:59 +08:00
Zexi Li
b394040657 Merge pull request #8920 from zhaoxiangchun/bugfix/zxc-commonalert
fix(monitor): modify notify alertInfo and alertOk detach resource
2020-11-24 09:33:41 +08:00
TangBin
85324cadf3 fix(region): aliyun zone name fix 2020-11-24 09:30:21 +08:00
TangBin
bb091a3cb8 fix(region): aliyun region name 2020-11-24 09:30:21 +08:00
TangBin
8682c71d94 fix(region): aliyun sync region fix 2020-11-24 09:30:21 +08:00
TangBin
2a1f9ecbcc feat(region): support aliyun finance cloud 2020-11-24 09:27:21 +08:00
zhaoxiangchun
68dfa8a8c8 fix(monitor): modify notify alertInfo and alertOk detach resource
1.修复报警信息中>等被转义的问题
2.针对:host_raid.adapter和smart_device.exit_status
  只能出现alerting和nodata
两种报警状态。在queryCondition的查询逻辑下,nodata情况也进行detach操作
3.修复报警记录中报警策略翻译异常的问题
2020-11-23 21:32:15 +08:00
Zexi Li
af6482576e Merge pull request #8917 from ioito/hotfix/qx-classic-vpc-name
fix(region): set classic vpc name to "-"
2020-11-23 21:25:13 +08:00
Zexi Li
0d537d158a Merge pull request #8912 from ioito/hotfix/qx-capability-saml-auth
fix(region): add saml auth for capability
2020-11-23 21:23:59 +08:00
Qu Xuan
db00c83555 fix(region): set classic vpc name to "-" 2020-11-23 17:42:34 +08:00
Zexi Li
8e50c94614 Merge pull request #8904 from ioito/hotfix/qx-azure-host-storage
fix(region): azure host with storage
2020-11-23 16:46:17 +08:00
Zexi Li
d8d486236c Merge pull request #8903 from ioito/hotfix/qx-capability-account
fix(region): add instance capability info(default account)
2020-11-23 16:45:36 +08:00
Qu Xuan
90709ab704 fix(region): add saml auth for capability 2020-11-23 16:25:55 +08:00
Zexi Li
d9f432c5c6 Merge pull request #8906 from swordqiu/feature/qj-filter-domain-user-by-idp-entity-id
feat(keystone): filter domain/user by idp_entity_id
2020-11-23 16:12:26 +08:00
Zexi Li
bc88082a21 Merge pull request #8911 from ioito/hotfix/qx-apsara-fix
fix(region): apsara account fix
2020-11-23 16:11:20 +08:00
Qu Xuan
ab58f0335f fix(region): apsara account fix 2020-11-23 15:42:13 +08:00
Zexi Li
7853ce4fa1 Merge pull request #8889 from wanyaoqi/bugfix/wyq/put-host-offline-util-success
bugfix: wait put host offline success
2020-11-23 13:04:48 +08:00
Qiu Jian
b27b086cce feat(keystone): filter domain/user by idp_entity_id
filter domain/user by idp_entity_id
2020-11-23 12:19:37 +08:00
Qu Xuan
8207a9c997 fix(region): azure host with storage 2020-11-23 11:26:20 +08:00
Qu Xuan
cfd7c5bd90 fix(region): add instance capability info(default account) 2020-11-23 10:05:19 +08:00
wanyaoqi
83c1073f68 fix(host): wait put host offline success
Unregister host wait for host offline success,
in case region is in upgrading.

cherrypick: release/3.4
2020-11-22 15:29:45 +08:00
Zexi Li
415ab23f9d Merge pull request #8896 from swordqiu/hotfix/qj-oidc-get-data-from-body
fix: oidc data may be encapuslated in data field
2020-11-22 12:05:30 +08:00
Qiu Jian
95db19f104 fix(keystone): oidc data may be encapuslated in data field
兼容一些oidc实现,返回数据包裹在data字段里
2020-11-22 11:51:01 +08:00
Zexi Li
40db9ca0dd Merge pull request #8740 from lvyangyang/inter_vpcs_network
inter vpc network
2020-11-22 11:23:53 +08:00
Zexi Li
ec09ff6b49 Merge pull request #8892 from yousong/bugfix/yousong-i18n
Bugfix/yousong i18n
2020-11-22 10:59:55 +08:00
yunion-ci-robot
c2a2aebaf2 Merge pull request #8865 from swordqiu/hotfix/qj-allow-disk-attach-to-multiple-servers
fix: allow disk attach to multiple guests
2020-11-21 19:25:00 +08:00
Yousong Zhou
ab7ba83225 fix(region): elasticcache_instances: fix error fmt 2020-11-21 17:28:38 +08:00
Yousong Zhou
65571cc5e4 fix(locales): fix translation text 2020-11-21 17:28:38 +08:00
Zexi Li
0402f925bf Merge pull request #8887 from tb365/bugfix/tb-bugfix-1120
Bugfix/tb bugfix 1120
2020-11-20 19:56:39 +08:00
Zexi Li
8f19bc430d Merge pull request #8125 from ioito/feature/qx-apsara-sync
feature: add apsara support
2020-11-20 19:54:45 +08:00
TangBin
6391ef84d8 fix(region): create/update aliyun account bugfix 2020-11-20 18:38:42 +08:00
TangBin
96d2e24034 fix(region): purge account bugfix
忽略由于证书缓存与负载均衡监听关联导致purge账号失败的问题
2020-11-20 17:43:49 +08:00
spike.lv
eb91e8fcd1 feat(region): inter vpc network 2020-11-20 17:35:12 +08:00
TangBin
767e06a1d0 fix(region): checking cloudenv while create/update aliyun cloud account
#6389
2020-11-20 17:24:44 +08:00
Zexi Li
56b038cd0e Merge pull request #8884 from ioito/hotfix/qx-aliyunfi-oss
fix(region): compatible aliyun fin oss
2020-11-20 16:35:44 +08:00
TangBin
c18d1f0e77 fix(region): create redis validate network and sku zone match 2020-11-20 16:15:22 +08:00
Qu Xuan
0feddb13af fix(region): compatible aliyun fin oss 2020-11-20 16:05:31 +08:00
TangBin
e5289f8a4c fix(region): delete aliyun account bugfix 2020-11-20 15:45:10 +08:00
TangBin
0bbba6d3f8 fix(region): redis create account add name validate
公有云redis不允许创建名为root的账号

#6398
2020-11-20 14:24:34 +08:00
Zexi Li
0344d7e4b2 Merge pull request #8881 from lvyangyang/fix/qcloud-bucket-cdn-domain
fix(region): get qcloud bucket cdn-domain
2020-11-20 11:17:41 +08:00
TangBin
4e811240e4 fix(region): ignore classic vpc checkout while add lb backend
阿里云公网EL属于经典网络,在添加后端服务器时,不需要LB VPC和服务器的vpc 完全匹配

#6040
#6404
2020-11-20 11:08:47 +08:00
lvyangyang
b5d50fdfcf fix(region): get qcloud bucket cdn-domain 2020-11-20 10:34:23 +08:00
Zexi Li
39bc3037d6 Merge pull request #8877 from ioito/hotfix/qx-huawei-rds-password
fix: 自动生成华为云rds密码
2020-11-20 10:05:11 +08:00
Zexi Li
00bbc57bd0 Merge pull request #8873 from ioito/hotfix/qx-guest-undeploy
optimized: server delete log and wait time
2020-11-20 10:04:18 +08:00
Zexi Li
a2081832ed Merge pull request #8876 from ioito/feat/qx-rds-create-by-backup
feat: rds recovery new instance from backup supported
2020-11-19 20:52:52 +08:00
Qu Xuan
fd4b544fbc feat: rds recovery new instance from backup supported 2020-11-19 20:06:36 +08:00
Qu Xuan
a08fb0044f fix: 自动生成华为云rds密码 2020-11-19 19:53:04 +08:00
Qu Xuan
1e160821e6 optimized: server delete log and wait time 2020-11-19 16:25:37 +08:00
Qu Xuan
b195f95bdf feature: add apsara support 2020-11-19 15:41:30 +08:00
yunion-ci-robot
c2446eab26 Merge pull request #8869 from lvyangyang/lyy/cdn_domain_enable
fix(region): qcloud bucket set cors
2020-11-19 15:03:12 +08:00
Zexi Li
7f799a1835 Merge pull request #7869 from ioito/hotfix/qx-cloudevent-doamin-filter
fix: 支持公有云域过滤操作日志
2020-11-19 14:44:31 +08:00
lvyangyang
f1b428be07 fix(region): qcloud bucket set cors 2020-11-19 14:36:55 +08:00
Zexi Li
36cc3d7399 Merge pull request #8856 from tb365/bugfix/tb-bugfix-111701
add redis and redis skus slave zone info & huawei aws supported stora…
2020-11-19 14:33:00 +08:00
Qiu Jian
0718da3d70 fix: allow disk attach to multiple guests 2020-11-19 13:21:28 +08:00
Zexi Li
4c8bacea0f Merge pull request #8838 from zhaoxiangchun/bugfix/zxc-commonalert
suggestAlert feature:
2020-11-19 12:55:16 +08:00
Zexi Li
ebd9a7517a Merge pull request #8531 from wanyaoqi/feature/wyq/check-block-replication-is-support
host: drive mirror check block replication is support
2020-11-19 12:53:55 +08:00
Zexi Li
24bbbb4b0a Merge pull request #8847 from wanyaoqi/bugfix/wyq/fix-order-init-host-service
host: fix order init host srevice
2020-11-19 12:50:07 +08:00
Zexi Li
7391c6e1f6 Merge pull request #8569 from ioito/hotfix/qx-azure-list
fix: 优化azure资源同步
2020-11-19 12:46:46 +08:00
Qu Xuan
06581ad1a5 fix: optimized jsonRequest 2020-11-19 12:02:55 +08:00
TangBin
1afaa2950a add getStorageType err log 2020-11-19 12:02:50 +08:00
Qu Xuan
0d85df52bf fix: 优化azure资源同步 2020-11-19 12:01:04 +08:00
Zexi Li
ec45faf972 Merge pull request #8841 from ioito/hotfix/qx-server-stop
fix: 支持关机不收费
2020-11-19 11:56:40 +08:00
Zexi Li
ce53dd01d0 Merge pull request #8792 from rainzm/esxi/storagetype
feat(esxi): use more specific storage types
2020-11-19 11:52:24 +08:00
zhaoxiangchun
2bae6c0bb6 suggestAlert feature:
1.支持由建议列表忽略一类建议信息
2.建议列表和忽略列表,展示名称的处理。同时后端返回资源名称。
3.优化建议规则的修改。后端支持climc修改周期period和时间范围配置
4.优化建议规则返回describe信息
5.去掉了后端自动对忽略列表的init动作

影响范围: 优化建议规则的展示;建议列表的展示
2020-11-19 11:22:31 +08:00
Zexi Li
7ee1655123 Merge pull request #8860 from swordqiu/hotfix/qj-add-cpu-total-memory-total-usage
fix: add host.memoty.total and host.cpu.total usage stats
2020-11-19 11:03:09 +08:00
Zexi Li
d745acc798 Merge pull request #8863 from ioito/hotfix/qx-saml-api-addr
fix: cloudid api addr
2020-11-19 11:02:11 +08:00
Qu Xuan
4592299ffa fix: cloudid api addr 2020-11-19 10:23:35 +08:00
Qiu Jian
bc5c74b1bd fix: add host.memoty.total and host.cpu.total usage stats 2020-11-19 01:23:05 +08:00
Zexi Li
6ff5653fa4 Merge pull request #8832 from wanyaoqi/feature/wyq/custom-cloudroot-home-dir
host-deployer: customize user cloudroot home dir
2020-11-18 23:50:22 +08:00
Zexi Li
7b1d35b50b Merge pull request #8844 from zhaoxiangchun/feature/zxc-alertdisable
detach AlertResource on alertDisable
2020-11-18 21:16:29 +08:00
Zexi Li
84f9591127 Merge pull request #8850 from swordqiu/hotfix/qj-add-host-joint-domain-resources
fix: add host-joint resources into domain level resources
2020-11-18 21:15:15 +08:00
Zexi Li
359c5a1221 Merge pull request #8858 from rainzm/fix/disk_resize
fix(hostdeployer): umount rootfs before resize partition
2020-11-18 21:13:33 +08:00
rainzm
27378f2c85 fix(hostdeployer): umount rootfs before resize partition 2020-11-18 18:26:26 +08:00
yunion-ci-robot
f502c6722a Merge pull request #8849 from zhasm/feature/rex-cross-docker-buildx
docker 交叉编译规则更新
2020-11-18 16:35:09 +08:00
TangBin
2d15a7b977 add redis and redis skus slave zone info & huawei aws supported storage type update 2020-11-18 16:16:51 +08:00
Zhang Dongliang
c9ec30b5b3 docker 交叉编译规则更新 2020-11-18 15:55:39 +08:00
Qiu Jian
7fbe72ce5d fix: add host-joint resources into domain level resources 2020-11-18 15:19:50 +08:00
wanyaoqi
cbb801753b host: fix order init host srevice 2020-11-18 12:20:57 +08:00
zhaoxiangchun
357dd4e698 detach AlertResource on alertDisable
1. 报警规则禁用时,detach 关联的报警资源

影响范围:报警规则的禁用;logger日志服务i18n的日志展示
2020-11-18 12:19:34 +08:00
yunion-ci-robot
d3b892d728 Merge pull request #8697 from ioito/feature/qx-saml-support
feature: saml for cloudid
2020-11-18 11:21:08 +08:00
Qu Xuan
11c3f6a6ef fix: 支持关机不收费 2020-11-17 20:44:16 +08:00
Zexi Li
63d1d27069 Merge pull request #8842 from lvyangyang/lyy/bucket_cdn_domain
add:get bucket cdn domain
2020-11-17 20:40:53 +08:00
yunion-ci-robot
23a12c5484 Merge pull request #8836 from ioito/hotfix/qx-secgroup-rule-import
fix: support import rules for secgroups
2020-11-17 18:30:08 +08:00
lvyangyang
9b627c10fb add:get bucket cdn domain 2020-11-17 18:24:04 +08:00
Qu Xuan
d4edbbb610 feature: saml for cloudid 2020-11-17 18:02:37 +08:00
Zexi Li
c75130fc44 Merge pull request #8827 from rainzm/fix/notifyRobot
Fixs of Notify
2020-11-17 17:51:57 +08:00
yunion-ci-robot
03c10e15b1 Merge pull request #8726 from rainzm/esxi/resizefs
Try to resizefs after resizing esxi disk
2020-11-17 16:44:09 +08:00
rainzm
36dec7baa0 fix: add err handler for notifyRobot 2020-11-17 16:34:12 +08:00
rainzm
a4dc42e69a feat(notify): enable watching user in keystone 2020-11-17 16:34:08 +08:00
rainzm
7ed99506a5 fix(notify): be compatible with keystone's UsersV3.GetById
Fill UsersV3.GetById with user's name, it will return user's info.
2020-11-17 16:15:06 +08:00
Qu Xuan
cece2852aa fix: support import rules for secgroups 2020-11-17 15:31:09 +08:00
Zexi Li
3130e61a29 Merge pull request #8793 from rainzm/fix/esxi_snapshot
fix(region): chooseHostStorage
2020-11-17 15:21:17 +08:00
Zexi Li
9bbb738020 Merge pull request #8823 from ioito/hotfix/qx-aliyun-rds-backup
optimized: aliyun create rds backup
2020-11-17 14:52:15 +08:00
Zexi Li
920e257907 Merge pull request #8816 from zhaoxiangchun/bugfix/zxc-commonalert
modify  alertResource ws info
2020-11-17 14:51:20 +08:00
rainzm
8c17cdd5e2 feat(region): add RequestResizeDiskOnHost to SESXiHostDriver 2020-11-17 14:48:29 +08:00
rainzm
a1bc77a40e feat(esxiagent): try to resize partition after resizing disk 2020-11-17 14:48:29 +08:00
rainzm
22cec0964e feat(hostdeployer): support resizefs for esxi disk 2020-11-17 14:48:26 +08:00
Zexi Li
d15881355d Merge pull request #8803 from wanyaoqi/bugfix/wyq/host-reconnect-etcd
host: restart etcd session on keepalive failed
2020-11-17 14:20:11 +08:00
yunion-ci-robot
b237f36408 Merge pull request #8820 from tb365/bugfix/tb-qcloud-create-single-zone-elb-bugfix
qcloud create single zone elb bugfix
2020-11-17 10:02:06 +08:00
yunion-ci-robot
a683ea6ef2 Merge pull request #8830 from rainzm/scheduler/storagetype
feat(scheduler): support filtering storage via medium
2020-11-16 23:02:13 +08:00
yunion-ci-robot
c516faee7e Merge pull request #8817 from ioito/hotfix/qx-error-cause
fix: add error cause
2020-11-16 21:41:12 +08:00
wanyaoqi
6e66a129d6 host-deployer: customize user cloudroot home dir 2020-11-16 21:12:35 +08:00
rainzm
bf30c48eea feat(scheduler): support filtering storage via medium 2020-11-16 20:46:31 +08:00
Qu Xuan
aa5cbd0b0e optimized: aliyun create rds backup 2020-11-16 20:12:43 +08:00
yunion-ci-robot
a3f1f77496 Merge pull request #8795 from lvyangyang/lyy/bucket_task
qcloud bucket task
2020-11-16 16:44:05 +08:00
lvyangyang
8c29c53961 add:bucket ops const i18n 2020-11-16 15:28:37 +08:00
TangBin
63eddd2194 qcloud create single zone elb bugfix 2020-11-16 15:12:21 +08:00
Qu Xuan
83f5ce4316 fix: add error cause 2020-11-16 14:54:03 +08:00
zhaoxiangchun
d02db0e401 modify alertResource ws info
ignore_alert:ture 前端不再进行弹窗提示
2020-11-16 14:27:17 +08:00
yunion-ci-robot
2a54a139dc Merge pull request #8814 from swordqiu/hotfix/qj-qcloud-create-bucket-missing-appid
fix: qcloud create bucket without appId
2020-11-16 13:21:06 +08:00
Qiu Jian
38018080cc fix: qcloud create bucket without appId 2020-11-16 12:57:54 +08:00
lvyangyang
da4150e5ca qcloud bucket task 2020-11-16 12:06:32 +08:00
yunion-ci-robot
b11b5a2b45 Merge pull request #8774 from rainzm/fix/esxisp
Fix for esxi instance snapshot
2020-11-16 11:02:03 +08:00
rainzm
7818709539 fix: creating esxi guest from instance snapshot 2020-11-16 10:39:12 +08:00
rainzm
a14b556f27 fix(region): start vm when 'auto_start' is true 2020-11-16 10:38:29 +08:00
rainzm
8ef1af0dbc fix: set isp's status as 'instance_snapshot_reset' when reseting guest from isp 2020-11-16 10:38:26 +08:00
Zexi Li
448ce6379e Merge pull request #8783 from tb365/bugfix/tb-aliyunfin-region-name
aliyun finance cloud region add suffix
2020-11-15 08:00:20 +08:00
Zexi Li
b81f658d49 Merge pull request #8780 from swordqiu/hotfix/qj-keystone-init-empty-catalogy-panic
fix: mcclient panic when keystone init empty service catalog
2020-11-15 07:59:01 +08:00
Zexi Li
61d37663ca Merge pull request #8806 from zhaoxiangchun/bugfix/zxc-commonalert
commonalert bugfix:
2020-11-15 07:54:59 +08:00
Zexi Li
2112926934 Merge pull request #8809 from swordqiu/hotfix/qj-baremetal-usage-exclude-converted-baremetal
fix: baremetal usage should exclude converted hypervisor
2020-11-15 07:52:06 +08:00
Qiu Jian
8fcc85745d fix: baremetal usage should exclude converted hypervisor 2020-11-15 01:39:42 +08:00
zhaoxiangchun
c39540d5ca commonalert bugfix:
1.修改消息模版内容:对matches信息进行聚合只返回对应的name信息。解决body消息超过限制
2.报警资源:每次以策略匹配的最新matches为标准。进行updateOrCreate 和
  delete操作。

影响范围:消息模版、报警资源数量
2020-11-14 18:18:25 +08:00
wanyaoqi
7dc8f906c9 host: restart etcd session on keepalive failed 2020-11-14 15:24:40 +08:00
yunion-ci-robot
a525fabe47 Merge pull request #8800 from swordqiu/hotfix/qj-host-memory-usage-stats-incorrecct
fix: host memory usage status not correct
2020-11-14 11:22:04 +08:00
Qiu Jian
2a1b5f8a75 fix: mcclient panic when keystone init empty service catalog 2020-11-14 00:17:18 +08:00
yunion-ci-robot
75861efc77 Merge pull request #8796 from yousong/bugfix/yousong-jsonutils
vendor: update yunion.io/x/jsonutils
2020-11-14 00:10:02 +08:00
Qiu Jian
157fb1e488 fix: host memory usage status not correct 2020-11-13 23:55:33 +08:00
Yousong Zhou
854ff4079a vendor: update yunion.io/x/jsonutils
See yunionio/onecloud#8357
2020-11-13 18:44:12 +08:00
Zexi Li
353343072d Merge pull request #8790 from tb365/feature/tb-huawei-vm-support-vnc
huawei vm support vnc
2020-11-13 17:45:35 +08:00
rainzm
cfc58a3566 fix(region): chooseHostStorage
Setting options.Options.LockStorageFromCachedimage will trigger this bug.
2020-11-13 17:11:18 +08:00
rainzm
bb6af1e222 feat(esxi): use more specific storage types
Replace 'nas' with some specific types such as 'vsan', 'nfs' and 'cifs'.
2020-11-13 15:35:02 +08:00
Zexi Li
a2ffb6f33b Merge pull request #8786 from swordqiu/hotfix/qj-keystone-init-empty-catalog
fix: keystone init empty catalogy cause panic
2020-11-13 15:23:44 +08:00
TangBin
6b23c5c8fc huawei vm support vnc 2020-11-13 15:03:16 +08:00
Qiu Jian
b84f237961 fix: keystone init empty catalogy cause panic 2020-11-13 14:50:13 +08:00
TangBin
576120f153 aliyun finance cloud zone add suffix 2020-11-13 14:43:41 +08:00
TangBin
7360c544ff aliyun finance cloud region add suffix 2020-11-13 14:37:22 +08:00
Zexi Li
aa6a599c8f Merge pull request #8771 from swordqiu/feature/qj-allow-join-project-across-domain
feature: allow join project across domain
2020-11-13 10:39:38 +08:00
Zexi Li
45dc4bbd41 Merge pull request #8776 from zhaoxiangchun/bugfix/zxc-commonalert
suggestalet bugfix
2020-11-13 10:38:39 +08:00
zhaoxiangchun
922874936f suggestalet bugfix
1.安全组规则的in规则为全开放的主机 筛选逻辑修改
2.修复无法正确过滤用户所属资源的bug
2020-11-12 21:31:54 +08:00
yunion-ci-robot
bcc857ab88 Merge pull request #8737 from lvyangyang/lyy/fix/sync_aws_lb_tag
add:aws lb tag
2020-11-12 21:01:01 +08:00
Qiu Jian
f10267b0fe feature: allow join project across domain 2020-11-12 19:40:23 +08:00
yunion-ci-robot
bb6882fb99 Merge pull request #8758 from ioito/hotfix/qx-server-create-params
fix: public ip and duration for create params
2020-11-12 19:34:02 +08:00
Zexi Li
83e97c11c9 Merge pull request #8760 from ioito/hotfix/qx-huawei-object-acl
fix: avoid panic
2020-11-12 19:31:18 +08:00
Zexi Li
7b77196054 Merge pull request #8756 from ioito/hotfix/qx-low-memeory-sku-create
fix: support create 512mb server sku
2020-11-12 18:52:11 +08:00
Zexi Li
bf3af4d717 Merge pull request #8764 from ioito/hotfix/qx-qcloud-hssd-disk
fix: support resize qcloud hssd disk
2020-11-12 18:51:22 +08:00
Qu Xuan
b8410be115 fix: support resize qcloud hssd disk 2020-11-12 16:46:15 +08:00
Qu Xuan
7a60225617 fix: avoid panic 2020-11-12 16:18:59 +08:00
Qu Xuan
d7ab5fdd14 fix: public ip and duration for create params 2020-11-12 16:00:35 +08:00
Qu Xuan
c7a6ec8e9d fix: support create 512mb server sku 2020-11-12 14:02:10 +08:00
yunion-ci-robot
49823078b1 Merge pull request #8753 from rainzm/fix/syncsdisk
fix(region): prevent infinite recursion
2020-11-12 11:53:04 +08:00
rainzm
d2ed191752 fix(region): prevent infinite recursion
When weekDays is [1,2,3,4,5,6,7] and timePoints is [0], It will recurse infinitely.
2020-11-12 11:38:23 +08:00
Zexi Li
4fe47fe405 Merge pull request #8747 from ioito/hotfix/qx-account-prob-log
fix: avoid check region log every time when account status is unknown
2020-11-12 00:51:05 +08:00
Zexi Li
c78636910e Merge pull request #8749 from ioito/hotfix/qx-rds-renew
fix: renew rds
2020-11-12 00:49:39 +08:00
Qu Xuan
98d20725aa fix: renew rds 2020-11-11 19:05:15 +08:00
Qu Xuan
c2c9edd9c6 fix: avoid check region log every time when account status is unknown 2020-11-11 15:25:37 +08:00
Zexi Li
7123a8fc28 Merge pull request #8744 from ioito/hotfix/qx-cron-job-ctx
fix: avoid lock reentry
2020-11-11 12:04:23 +08:00
Zexi Li
623d905900 Merge pull request #8743 from wanyaoqi/feature/wyq/qemu-arm-fix-cdrom-params
qemu-arm: fix cdrom params
2020-11-11 12:03:45 +08:00
Zexi Li
dbbbcee08f Merge pull request #8741 from swordqiu/hotfix/qj-role-policy-set-update
fix: role-set-policies support update only operation
2020-11-11 11:58:14 +08:00
Zexi Li
c5b60916af Merge pull request #8723 from tb365/bugfix/tb-bugfix-20111001
batch user create bugifx
2020-11-11 11:56:16 +08:00
Zexi Li
3bb643cc52 Merge pull request #8722 from wanyaoqi/feature/wyq/misc-1110
misc bugfix: add log note, show reserved memory, specific bash start guest
2020-11-11 11:55:39 +08:00
Zexi Li
5f926f2865 Merge pull request #8719 from tb365/bugfix/tb-bugfix-201110
huawei create disk bugfix
2020-11-11 11:54:01 +08:00
Qu Xuan
cfebba2557 fix: avoid lock reentry 2020-11-10 21:13:55 +08:00
wanyaoqi
cc7542cc6f qemu-arm: fix cdrom params 2020-11-10 20:55:41 +08:00
Qiu Jian
f1be0adf6e allow delete role-policy-binding 2020-11-10 20:30:27 +08:00
lvyangyang
910bec329b add:aws lb tag 2020-11-10 19:49:10 +08:00
Qiu Jian
d66ee1fd4b fix: role-set-policies support update only operation 2020-11-10 19:05:55 +08:00
Zexi Li
df82c0808f Merge pull request #8738 from ioito/hotfix/qx-rds-renew
fix: qcloud rds set renew flag
2020-11-10 19:05:18 +08:00
屈轩
c56ebfd043 fix: qcloud rds set renew flag 2020-11-10 18:56:27 +08:00
Zexi Li
b091a7d2ba Merge pull request #8735 from tb365/bugfix/tb-bugfix-20111003
redis set autorenew bugfix
2020-11-10 18:41:25 +08:00
TangBin
6ce5b1d509 redis set autorenew bugfix 2020-11-10 18:35:06 +08:00
Zexi Li
9a8bb46ff0 Merge pull request #8730 from ioito/hotfix/qx-rds-task
fix: rds task fix
2020-11-10 18:02:14 +08:00
Qu Xuan
0272c76950 fix: rds task fix 2020-11-10 18:00:00 +08:00
Zexi Li
097d1af288 Merge pull request #8728 from tb365/bugfix/tb-bugfix-20111002
redis set autorenew bugfix
2020-11-10 17:46:28 +08:00
TangBin
fe07cda1a9 redis set autorenew bugfix 2020-11-10 17:43:17 +08:00
TangBin
3ceec3aa1e batch user create bugifx 2020-11-10 16:46:40 +08:00
wanyaoqi
aa45e62cbd host: specifie bash for start guest 2020-11-10 16:06:48 +08:00
wanyaoqi
0b11854a8b usage: host show isolated dev reserved memory 2020-11-10 16:03:13 +08:00
TangBin
4e3e5b01a5 huawei create disk bugfix 2020-11-10 15:45:51 +08:00
yunion-ci-robot
e6de534916 Merge pull request #8709 from rainzm/esxi/snapshot
Esxi Instance snapshot
2020-11-10 15:37:20 +08:00
rainzm
f077f06021 feat(region): support automatic start vm after reseting isp 2020-11-10 15:19:30 +08:00
rainzm
bb109953df feat(region): add SExternalizedResourceBase, SManagedResourceBase to SInstanceSnapshot 2020-11-10 15:19:30 +08:00
rainzm
1e297dca12 feat: update locales 2020-11-10 15:19:30 +08:00
rainzm
6f6ea9e38f feat: support creating vm from instance snapshot 2020-11-10 15:19:26 +08:00
rainzm
2ed4534f48 feat: creat, delete, revert and sync operator for esxi instance snapshots 2020-11-10 15:17:57 +08:00
Zexi Li
338e1cb570 Merge pull request #8713 from ioito/hotfix/qx-rds-auto-renew
fix: support rds set auto renew
2020-11-10 12:55:19 +08:00
Zexi Li
aaa4dccea8 Merge pull request #8715 from ioito/hotfix/qx-aws-secgroup-rule
fix: aws secgroup out rule is deny any
2020-11-10 12:54:23 +08:00
Zexi Li
1ff8798698 Merge pull request #8711 from tb365/bugfix/tb-bugfix-201109
redis prepaid create autorenew bugfix
2020-11-10 12:53:18 +08:00
wanyaoqi
f464a904d1 add success note on guest start and stop 2020-11-10 11:50:03 +08:00
Qu Xuan
bc28c8bdfb fix: aws secgroup out rule is deny any 2020-11-10 11:03:49 +08:00
TangBin
dd2eb4b446 redis create bugfix 2020-11-10 10:56:36 +08:00
Qu Xuan
a7e832488e fix: support rds set auto renew 2020-11-09 20:12:07 +08:00
TangBin
3a44985557 redis prepaid create autorenew bugfix 2020-11-09 19:31:03 +08:00
Zexi Li
f344228b91 Merge pull request #8692 from swordqiu/hotfix/qj-scoped-policy-system-level
fix: change level of scopedpolicy to system
2020-11-09 18:20:33 +08:00
yunion-ci-robot
48849d044f Merge pull request #8698 from rainzm/build/faster_docker_build
Faster docker build
2020-11-09 14:23:37 +08:00
yunion-ci-robot
ef90b52498 Merge pull request #8649 from rainzm/network/filter_via_storage
feat(region): filter network via storage
2020-11-09 14:22:22 +08:00
rainzm
e11011ddb7 feat: add ICloudInstanceSnapshot & modify ICloudVM 2020-11-09 13:54:48 +08:00
rainzm
7bdcf95524 feat: support snapshot of esxi 2020-11-09 13:54:45 +08:00
yunion-ci-robot
ed75370e24 Merge pull request #8707 from tb365/feature/tb-qcloud-redis-support-autorenew
qcloud redis secgroup sync fix & qcloud add renew& auto_renew
2020-11-09 11:30:21 +08:00
Qiu Jian
79ad3c188f fix: change level of scopedpolicy to system 2020-11-09 11:11:03 +08:00
Zexi Li
6889061a7c Merge pull request #8705 from swordqiu/hotfix/qj-scoped-policy-binding-search-by-name
fix: search by name and order by scopedpolicy for scopedpolicybindings
2020-11-09 10:45:42 +08:00
Zexi Li
f28a196ac4 Merge pull request #8703 from zhaoxiangchun/bugfix/zxc-commonalert
commonalert bugfix:
2020-11-09 10:44:20 +08:00
Qiu Jian
73e117c6e4 fix: search by name and order by scopedpolicy for scopedpolicybindings 2020-11-09 00:22:26 +08:00
zhaoxiangchun
a9c3c5bfdc commonalert bugfix:
1. 报警消息中过滤onecloud信息
2. 报警记录中报警恢复match 信息根据alertingMatches进行过滤处理
2020-11-08 17:09:17 +08:00
Zexi Li
2920f44c70 Merge pull request #8694 from lvyangyang/lyy/fix/dns_recordname_check
fix:修复dns record name校验的问题
2020-11-07 18:40:31 +08:00
Zexi Li
c46e1f2346 Merge pull request #8700 from ioito/hotfix/qx-rds-dirty-data
fix: sync remove dirty rds accounts
2020-11-07 18:26:56 +08:00
TangBin
09145c3c1d qcloud redis secgroup sync fix & qcloud add renew& auto_renew 2020-11-06 22:32:04 +08:00
Qu Xuan
008fd554c6 fix: sync remove dirty rds accounts 2020-11-06 20:36:33 +08:00
rainzm
5ab362d05f feat(build): add DOCKER_BUILDKIT in docker_push.sh 2020-11-06 20:12:58 +08:00
rainzm
2b5014b847 feat(build): add .dockerignore 2020-11-06 20:12:31 +08:00
lvyangyang
089aea99d8 fix:修复dns record name校验的问题 2020-11-06 19:42:46 +08:00
yunion-ci-robot
4653e46ec9 Merge pull request #8689 from swordqiu/hotfix/qj-change-owner-update-quota-usages
fix: change owner should update quota usages
2020-11-06 15:11:19 +08:00
yunion-ci-robot
0ecff3e65e Merge pull request #8686 from rainzm/fix/GetIImageById
Fix for Esxi and GetIImage
2020-11-06 15:07:17 +08:00
yunion-ci-robot
a0a3394eb4 Merge pull request #8683 from ioito/hotfix/qx-aliyun-eip-api
fix: aliyun eip api
2020-11-06 15:04:20 +08:00
yunion-ci-robot
54b59d74d4 Merge pull request #8676 from lvyangyang/lyy/qcloud_routetable
add:qcloud routetable
2020-11-06 15:03:19 +08:00
Qiu Jian
1bd4b85bf5 fix: change owner should update quota usages 2020-11-06 14:32:04 +08:00
Zexi Li
74b129073f Merge pull request #8680 from ioito/hotfix/qx-server-sku-filter
fix: 支持多内存过滤套餐
2020-11-06 13:49:53 +08:00
Zexi Li
9290797435 Merge pull request #8677 from swordqiu/hotfix/qj-fix-order-by-extra-fields-missing-columns-error
fix: missing column error when order by extra fields
2020-11-06 13:49:28 +08:00
Zexi Li
bb4dc2f2ee Merge pull request #8672 from zexi/hotfix/scheduler-ignore-non-running
scheduler: ignore non running guests only exclude ready status
2020-11-06 13:48:05 +08:00
rainzm
be0e8d73b7 fix(esxi): don't specify spec.Identity when osName is empty 2020-11-06 11:46:36 +08:00
rainzm
7aa5b28b37 fix(esxi): add device after cloning vm 2020-11-06 11:45:54 +08:00
rainzm
936ea00406 refactor(region): faster GetIImageById 2020-11-06 11:44:46 +08:00
rainzm
42309b8a7b refactor(region): faster sync CapacityUsed for Storage
1. replace cronjob SyncCapacityUsedForStorage with
SyncCapacityUsedForEsxiStorage
2. do not sync capacityUsed for storage when deleting and creating vm
for now because of performance issues。
2020-11-06 11:41:29 +08:00
rainzm
dfc246ca5b feat(region): add option NoCheckOsTypeForCachedImage 2020-11-06 11:36:59 +08:00
Qu Xuan
cdead1c476 fix: aliyun eip api 2020-11-06 11:08:54 +08:00
lvyangyang
4569326322 add:qcloud routetable 2020-11-06 10:34:18 +08:00
Qu Xuan
25aed0a7ee fix: 支持多内存过滤套餐 2020-11-06 10:30:38 +08:00
Qiu Jian
03d17e6fba fix: missing column error when order by extra fields 2020-11-05 23:51:03 +08:00
yunion-ci-robot
c7a119e85a Merge pull request #8670 from swordqiu/feature/qj-name-pattern-offset
feature: allow specify offset in name pattern
2020-11-05 18:31:30 +08:00
yunion-ci-robot
86ed0a308a Merge pull request #8668 from zhaoxiangchun/feature/zxc-alert-resource-filter
add resource type
2020-11-05 18:28:12 +08:00
Zexi Li
b47b0dc863 scheduler: ignore non running guests only exclude ready status 2020-11-05 18:05:49 +08:00
Qiu Jian
0beee87db3 feature: allow specify offset in name pattern 2020-11-05 16:48:43 +08:00
Zexi Li
a8d17e9cb8 Merge pull request #8667 from tb365/bugfix/tb-bugfix-201105
qcloud release prepaid resource bugfix
2020-11-05 15:08:42 +08:00
Zexi Li
728c576ea7 Merge pull request #8654 from swordqiu/hotfix/qj-sso-status-in-cookie
fix: save sso login status in cookie
2020-11-05 13:10:51 +08:00
Zexi Li
93b4b7008c Merge pull request #8664 from swordqiu/hotfix/qj-update-vendor-jsonutils-20201104
update vendor for jsonutils
2020-11-05 13:10:22 +08:00
TangBin
3b7c925212 qcloud release prepaid resource bugfix 2020-11-05 12:00:08 +08:00
zhaoxiangchun
0a0b73406d add resource type
1.支持前端通过资源类型进行过滤分类
2020-11-05 11:46:14 +08:00
Qiu Jian
ca0e79effb update vendor for jsonutils 2020-11-05 11:28:37 +08:00
Zexi Li
97682f1716 Merge pull request #8661 from zexi/hotfix/scheduler-forecast-with-candidates
scheduler: forecast api with candidates result
2020-11-05 00:39:17 +08:00
Zexi Li
b60e19b1b0 Merge pull request #8662 from swordqiu/hotfix/qj-server-name-historically-unique
server generate name should be historically unique
2020-11-05 00:38:08 +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
Zexi Li
543770694c Merge branch 'master' into hotfix/scheduler-forecast-with-candidates 2020-11-04 23:02:20 +08:00
Zexi Li
56cf88ec76 Merge pull request #8659 from zhaoxiangchun/bugfix/zxc-commonalert
commonalert bugfix
2020-11-04 23:01:44 +08:00
yunion-ci-robot
64bebb97e8 Merge pull request #8652 from yousong/feature/yousong-bgptype
Feature/yousong filter by bgptype
2020-11-04 21:11:10 +08:00
Zexi Li
0ed41b09e1 scheduler: forecast api with candidates result 2020-11-04 21:10:07 +08:00
yunion-ci-robot
d96f0486a0 Merge pull request #8658 from lshmouse/typo
Fix a typo: ProviderFactor -> ProviderFactory
2020-11-04 20:54:12 +08:00
yunion-ci-robot
d67ecae75e Merge pull request #8655 from lvyangyang/lyy/dns_record_name_validate
fix:域名正则校验dnsrecord name,同步中文域名取punycode
2020-11-04 18:41:09 +08:00
zhaoxiangchun
97ed340387 commonalert bugfix 2020-11-04 18:17:26 +08:00
Shaohui Liu
47d358ecb1 Fix a typo: ProviderFactor -> ProviderFactory 2020-11-04 18:10:03 +08:00
rainzm
f03d5af31f feat(region): filter network via storage 2020-11-04 17:17:55 +08:00
lvyangyang
73d750e1c7 fix:域名正则校验dnsrecord name,同步中文域名取punycode 2020-11-04 17:16:11 +08:00
Yousong Zhou
6464597c97 climc: network-list with multiple --bgp-type args 2020-11-04 16:48:22 +08:00
Yousong Zhou
51dafd29e7 networks: make filter by bgp types available 2020-11-04 16:48:22 +08:00
Yousong Zhou
d4469ffde4 networks: list: make bgp_type available 2020-11-04 16:48:22 +08:00
Qiu Jian
ae327021db fix: save sso login status in cookie 2020-11-04 16:40:57 +08:00
Zexi Li
45d8281e6e Merge pull request #8553 from swordqiu/feature/qj-keystone-sso-create-domain
feature: auto create domain for sso idp
2020-11-04 16:31:56 +08:00
Zexi Li
93d05ebd77 Merge pull request #8627 from lvyangyang/lyy/add_route
vpcPeeringConnection  add route
2020-11-04 16:26:20 +08:00
Zexi Li
5b334bfbe4 Merge pull request #8651 from swordqiu/hotfix/qj-policy-permission-data-incorrect
fix: auth permission result incorrect
2020-11-04 16:13:12 +08:00
lvyangyang
321e3c2f7c add route 2020-11-04 15:40:04 +08:00
Qiu Jian
4349cc7f98 fix: auth permission result incorrect 2020-11-04 12:04:45 +08:00
Zexi Li
e3a87410c5 Merge pull request #8647 from ioito/hotfix/qx-qcloud-rds-status-and-expired-time
fix: add rds status and expired time
2020-11-04 11:22:40 +08:00
Zexi Li
8631ca1a97 Merge pull request #8637 from tb365/bugfix/tb-qcloud-redis-bugfix-20201103
Bugfix/tb qcloud redis bugfix 20201103
2020-11-04 11:21:28 +08:00
Zexi Li
ab9e0ba184 Merge pull request #8633 from tb365/bugfix/tb-bugfix-20110201
Bugfix/tb bugfix 20110201
2020-11-04 11:19:42 +08:00
Zexi Li
37ee7fcf4e Merge pull request #8631 from zhaoxiangchun/bugfix/zxc-commonalert
modify monitor querycondition:
2020-11-04 11:07:50 +08:00
Zexi Li
5f163f64db Merge pull request #8628 from swordqiu/hotfix/qj-scoped-policy-filter-at-scope-project
fix: scopedpolicybindings filter by scope project
2020-11-04 10:59:27 +08:00
Zexi Li
b398ad99fc Merge pull request #8640 from rainzm/verify/template
fix(notify): customize the title of the verification email based on the copyright
2020-11-04 10:58:18 +08:00
yunion-ci-robot
acff2f6a09 Merge pull request #8643 from swordqiu/hotfix/qj-elasticcache-quota
fix: elasticcache quota not take effect
2020-11-04 10:54:46 +08:00
Qu Xuan
f47f2c51e4 fix: add rds status and expired time 2020-11-04 10:46:55 +08:00
zhaoxiangchun
d45c096390 modify monitor querycondition:
1.对于策略可以返回多个field value。供策略进行使用
2. 对于1种情况需要在commonalert种设置metadata属性
3. 修改alertresource get driver的判断逻辑
4. 针对host 相关的measurement 默认增加res_type 过滤filter
2020-11-04 10:43:47 +08:00
TangBin
c5a88b80b5 add option PrepaidDeleteExpireCheck 2020-11-04 09:57:30 +08:00
Qiu Jian
9f122f7452 fix: elasticcache quota not take effect 2020-11-04 00:56:28 +08:00
Qiu Jian
32fe10b001 fix: scopedpolicybindings filter by scope project 2020-11-03 23:12:30 +08:00
Zexi Li
6269097b3b Merge pull request #8636 from ioito/hotfix/qx-qcloud-sku-storage
fix: add qcloud hssd
2020-11-03 20:41:45 +08:00
rainzm
d3aae00092 fix(notify): customize the title of the verification email based on the copyright 2020-11-03 20:24:00 +08:00
Qu Xuan
5b4efddec6 fix: add qcloud hssd 2020-11-03 19:57:19 +08:00
TangBin
bbe362be2f qcloud delete prepaid redis bugfix 2020-11-03 19:33:41 +08:00
TangBin
4be09cfc0d qcloud create prepaid redis bugfix 2020-11-03 19:12:31 +08:00
TangBin
2f7781d152 lbcert cache delete bugfix 2020-11-03 17:55:43 +08:00
TangBin
0bf274f125 aws create bugfix 2020-11-03 17:55:43 +08:00
Yousong Zhou
f127253e3f Merge pull request #8629 from zhaoxiangchun/feature/zxc-commonalert-dashboard
modify go test error
2020-11-03 17:00:20 +08:00
yunion-ci-robot
4c3a251dd3 Merge pull request #8532 from zexi/feature/cloudresources-schedtag
feature: support cloudprovider, cloudregion and zone schedtag
2020-11-03 16:54:46 +08:00
zhaoxiangchun
72b9f2ec77 modify go test error 2020-11-03 15:22:26 +08:00
yunion-ci-robot
aa1a511c0f Merge pull request #8586 from zhaoxiangchun/feature/zxc-commonalert-dashboard
modify monitor dashboard save:
2020-11-03 14:28:46 +08:00
Zexi Li
3a29fda075 Merge pull request #8621 from rainzm/webhook/domain
NotifyWebhook for domain
2020-11-03 11:49:41 +08:00
Zexi Li
8f3cb2de67 Merge pull request #8625 from ioito/hotfix/qx-qcloud-rds-ro
fix: avoid not found cdbro- mysql instance
2020-11-03 11:48:54 +08:00
Qu Xuan
dc59a08721 fix: avoid not found cdbro- mysql instance 2020-11-03 11:05:50 +08:00
Zexi Li
dad884d481 Merge pull request #8619 from wanyaoqi/bugfix/wyq/fix-stream-disk
host: fix stream disk on add disk from snapshot
2020-11-03 10:39:36 +08:00
Zexi Li
2c070f8f9e Merge pull request #8616 from rainzm/fix/disksize
Fix for DiskSize of ESXi
2020-11-03 10:38:40 +08:00
Zexi Li
165abd4e6c Merge pull request #8618 from swordqiu/hotfix/qj-scopedpolicybinding-filter-error
fix: scopedpolicybinding filter by category sql error
2020-11-02 20:29:01 +08:00
rainzm
5a07858e1a feat(region): use NotifyWebhook when operating dnszone 2020-11-02 19:49:50 +08:00
rainzm
fd360b071e feat(region): add CloudCaches in DnsZoneDetails with GET 2020-11-02 19:25:31 +08:00
rainzm
6efb3fc12a fix(region): add SDnsZoneCache to DnsZoneCacheDetails 2020-11-02 19:22:03 +08:00
yunion-ci-robot
b727119845 Merge pull request #8613 from ioito/hotfix/qx-rds-zone-sync
optimized: rds zone sync
2020-11-02 19:07:46 +08:00
Qiu Jian
10a4d86d25 fix: scopedpolicybinding filter by category sql error 2020-11-02 18:21:01 +08:00
wanyaoqi
4a2613a66a fix stream disk on add disk from snapshot 2020-11-02 17:58:18 +08:00
Qu Xuan
d207d982e8 optimized: rds zone sync 2020-11-02 16:47:34 +08:00
rainzm
d01b6e1502 fix(esxi): return sumsize of disks fo template 2020-11-02 16:15:55 +08:00
rainzm
46e42724b7 fix(region): allow resize system disk of esxi 2020-11-02 16:15:32 +08:00
Zexi Li
c1c2b42145 Merge pull request #8599 from tb365/bugfix/tb-bugfix-20103001
qcloud create project not match bugfix
2020-11-02 15:51:11 +08:00
tangbin
bf1d8eccf5 goimport fix 2020-11-02 15:38:19 +08:00
Qiu Jian
178e1ab8fc feature: auto create domain for sso idp 2020-11-02 13:59:50 +08:00
yunion-ci-robot
b16e08f315 Merge pull request #8611 from zhaoxiangchun/bugfix/zxc-commonalert
deal return error info: tsdb
2020-11-02 10:25:47 +08:00
yunion-ci-robot
67f9e1c45e Merge pull request #8603 from rainzm/fix/snapshotsync
fix(region): compute NextSyncTime for snapshotpolicydisk
2020-11-02 01:42:45 +08:00
yunion-ci-robot
c2675d1547 Merge pull request #8608 from swordqiu/hotfix/qj-service-config-misc-bugfixes
fix: save service config changes may send invalid action log
2020-11-01 11:48:48 +08:00
Zexi Li
624759eb4f Merge pull request #8604 from zexi/hotfix/monitor-query-signature
monitor: query with signature
2020-11-01 11:48:09 +08:00
zhaoxiangchun
8df8e6ca26 deal return error info: tsdb 2020-10-31 23:29:18 +08:00
TangBin
f87c0e3972 clean duplicate cached certificated at initial 2020-10-31 23:29:09 +08:00
TangBin
9a43bb667d qcloud create project not match bugfix 2020-10-31 23:08:21 +08:00
Qiu Jian
354bcd9f07 fix: save service config changes may send invalid action log 2020-10-31 18:57:52 +08:00
Zexi Li
3a5bde4a3b monitor: query with signature and support measurement without database 2020-10-31 17:17:24 +08:00
Rain Zheng
97f93e6a12 fix(region): compute NextSyncTime for snapshotpolicydisk
1. 如果计算出来的 NextSyncTime 和 base 相等,可以将 base 加1一个小时递归处理。
2. 对于 retentionday 有效的快照策略,比如某一个 snaphsotpolicy
是每周一生效,并且打的快照自动保留 3 天,那么,就应该在每周一(打快照)
和每周四(释放快照)进行快照的同步。
2020-10-31 15:48:56 +08:00
yunion-ci-robot
2994dbf915 Merge pull request #8601 from zexi/hotfix/apigateway-remove-influxdb-query-proxy
apigateway: disable influxdb service query proxy
2020-10-31 15:19:44 +08:00
Zexi Li
81da6c5775 apigateway: disable influxdb service query proxy 2020-10-31 12:44:53 +08:00
yunion-ci-robot
d7621317f2 Merge pull request #8596 from tb365/bugfix/tb-bugfix-201030
qcloud cert bugfix
2020-10-31 11:52:43 +08:00
yunion-ci-robot
850c37ab60 Merge pull request #8598 from swordqiu/hotfix/qj-scoped-policy-binding-filter-by-multiple-categories
fix: filter scopedpolicybindings with multiple categories
2020-10-30 19:39:45 +08:00
yunion-ci-robot
308896a29d Merge pull request #8593 from rainzm/fix/autosyncsnapshot
Detach snapshotpolicy when deletding disk
2020-10-30 19:38:46 +08:00
yunion-ci-robot
2caa1c2c5a Merge pull request #8590 from ioito/hotfix/qx-secgroup-cache-tenant-id
fix: secgroup cache tenant_id
2020-10-30 19:34:51 +08:00
yunion-ci-robot
a8e77968bd Merge pull request #8589 from swordqiu/hotfix/qj-enforce-response-charset
fix: enforce response charset
2020-10-30 19:33:44 +08:00
yunion-ci-robot
395c26ab04 Merge pull request #8567 from yousong/feature/yousong-guest-bgptype
Feature/yousong guest bgptype
2020-10-30 19:30:44 +08:00
Qiu Jian
56e5b177d0 fix: filter scopedpolicybindings with multiple categories 2020-10-30 17:20:15 +08:00
TangBin
6343e3f4ba qcloud certificate sync bugfix 2020-10-30 15:56:00 +08:00
TangBin
d6677d86d7 qcloud cert bugfix 2020-10-30 15:50:09 +08:00
rainzm
7582ead4c1 fix(region): clear dirty data of snapshotpolicydisks when start up 2020-10-30 15:20:48 +08:00
rainzm
e660946d25 fix(region): detach all snapshotpolicy when realdeleting disk 2020-10-30 14:47:44 +08:00
Qu Xuan
373166c506 fix: secgroup cache tenant_id 2020-10-30 14:37:02 +08:00
yunion-ci-robot
8628145762 Merge pull request #8587 from ioito/hotfix/qx-rds-vpc
fix: sync rds class vpc
2020-10-30 13:01:42 +08:00
Qiu Jian
9073461f99 fix: enforce response charset 2020-10-30 12:50:23 +08:00
屈轩
d9e72f78e7 fix: sync rds class vpc 2020-10-30 12:49:15 +08:00
zhaoxiangchun
d519be9ab1 modify monitor dashboard save:
1.panel和dashboard继承scoperesource。通过joint进行关联
2.dashboade 通过details
  参数控制是否返回所关联的panel信息。penel新建时需要此逻辑
3.依据scoperesource属性实现查询,创建的逻辑
2020-10-30 12:11:33 +08:00
yunion-ci-robot
6da9e1bb81 Merge pull request #8584 from ioito/hotfix/qx-rds-classic-vpc
fix: classic vpc for rds
2020-10-30 12:02:44 +08:00
rainzm
c6864e4ae6 fix(region): prevent dirty data when syncing snapshot 2020-10-30 11:58:43 +08:00
Zexi Li
17d90dccdc Merge pull request #8583 from zexi/hotfix/climc-k8s-machine-list
climc: k8s machine show resource_id
2020-10-30 11:37:49 +08:00
Qu Xuan
0f4114449f fix: classic vpc for rds 2020-10-30 11:12:46 +08:00
yunion-ci-robot
7bc24a357c Merge pull request #8580 from swordqiu/hotfix/qj-scoped-policy-binding-doc-keywords
fix: scopedpolicies and scopedpolicybindings swagger resource name
2020-10-30 11:12:42 +08:00
Zexi Li
0f25214872 climc: k8s machine show resource_id 2020-10-30 11:03:51 +08:00
Zexi Li
cc32bb39ef feature: support cloudprovider, cloudregion and zone schedtag 2020-10-30 10:58:34 +08:00
yunion-ci-robot
1de5147bf2 Merge pull request #8581 from swordqiu/hotfix/qj-support-qcloud-zonal-bucket
fix: compatible with qcloud zonal bucket
2020-10-30 09:12:42 +08:00
yunion-ci-robot
a89ca20f72 Merge pull request #8576 from rainzm/snapshotpolicy/fix
fix(region): sync automatically snapshot for external disk
2020-10-30 08:49:42 +08:00
yunion-ci-robot
7eea4105ae Merge pull request #8558 from zexi/hotfix/informer-context-cancelled
informer: ignore outside context cancel when worker run
2020-10-30 00:36:43 +08:00
Qiu Jian
3f568a63d1 fix: compatible with qcloud zonal bucket 2020-10-30 00:14:12 +08:00
yunion-ci-robot
7850511b6e Merge pull request #8573 from tb365/bugfix/tb-bugfix-2010293
qcloud elb cert duplicate fix
2020-10-29 23:28:43 +08:00
Qiu Jian
46fe31cbd8 fix: scopedpolicies and scopedpolicybindings swagger resource name 2020-10-29 22:55:15 +08:00
rainzm
f13c12d0c2 fix(region): sync automatically snapshot for external disk 2020-10-29 22:28:56 +08:00
TangBin
46e65d9e02 qcloud elb cert duplicate fix 2020-10-29 22:23:39 +08:00
yunion-ci-robot
b66497ac03 Merge pull request #8570 from tb365/bugfix/tb-bugfix-20102902
qcloud redis create missing project id bugfix
2020-10-29 20:58:47 +08:00
Zexi Li
ff53671a18 informer: ignore outside context cancel when worker run 2020-10-29 20:53:17 +08:00
TangBin
babed456d5 qcloud redis create missing project id bugfix 2020-10-29 20:46:12 +08:00
yunion-ci-robot
d1282ae516 Merge pull request #8564 from rainzm/cachedimage/vendor
update vendor
2020-10-29 20:08:43 +08:00
rainzm
e48616cdc0 update vendor 2020-10-29 17:22:19 +08:00
yunion-ci-robot
85f76fb8ed Merge pull request #8559 from tb365/bugfix/tb-bugfix-20102901
qcloud lb sync project bugfix
2020-10-29 17:18:42 +08:00
Yousong Zhou
4d895d6587 climc: servers: create with eip bgp type 2020-10-29 17:12:57 +08:00
Yousong Zhou
6bbf090494 guests: add bgp_type arg when create guest 2020-10-29 17:12:57 +08:00
Yousong Zhou
f514950480 elasticips: NewEipForVMOnHost: make args a struct 2020-10-29 17:12:57 +08:00
Yousong Zhou
774cfcbfaf regiondrivers: kvm: exact match bgp_type 2020-10-29 17:12:57 +08:00
yunion-ci-robot
61fd7e0e52 Merge pull request #8540 from swordqiu/hotfix/qj-set-customized-private-prefixes
fix: allow set customized private prefixes
2020-10-29 17:00:45 +08:00
yunion-ci-robot
c875ed5c7a Merge pull request #8544 from swordqiu/hotfix/qj-scheduler-option-manager
fix: use option manager for scheduler
2020-10-29 16:55:42 +08:00
yunion-ci-robot
295a46894d Merge pull request #8554 from tb365/bugfix/tb-bugfix-201029
Bugfix/tb bugfix 201029
2020-10-29 16:44:42 +08:00
TangBin
8589d67ac3 qcloud lb sync project bugfix 2020-10-29 16:43:20 +08:00
yunion-ci-robot
24af7a4b47 Merge pull request #8556 from wanyaoqi/bugfix/wyq/fix-generate-ifname
bugfix: retry generate ifname from random string
2020-10-29 15:14:49 +08:00
wanyaoqi
f71def645e retry generate ifname from random string 2020-10-29 14:56:01 +08:00
TangBin
02d0902d94 redis 2.8 reset password bugfix 2020-10-29 14:28:12 +08:00
TangBin
0a695c2dca add redis capabilty & lb purge 2020-10-29 14:07:05 +08:00
Yousong Zhou
5da75ae45b Merge pull request #8548 from swordqiu/hotfix/qj-fail-delete-public-ip
fix: fail to delete public_ip eip
2020-10-29 10:18:37 +08:00
yunion-ci-robot
18ca8e986d Merge pull request #8541 from ioito/hotfix/qx-rds-sync
fix: avoid sync part of rds
2020-10-29 00:55:44 +08:00
yunion-ci-robot
b51b13f801 Merge pull request #8551 from swordqiu/hotfix/qj-go-vet-error-20201028
fix: make test go vet error
2020-10-29 00:52:43 +08:00
yunion-ci-robot
eb59b41223 Merge pull request #8543 from tb365/bugfix/tb-qcloud-redis-bugfix-1028
Bugfix/tb qcloud redis bugfix 1028
2020-10-29 00:04:42 +08:00
yunion-ci-robot
5ae7003a30 Merge pull request #8545 from rainzm/wehook/lbrdsredis
Notify via webhook
2020-10-28 23:57:41 +08:00
Qiu Jian
08bb11db66 fix: make test go vet error 2020-10-28 23:53:11 +08:00
Qiu Jian
554ec88734 fix: fail to delete public_ip eip 2020-10-28 23:40:52 +08:00
tangbin
ac03debc97 redis delete bugfix 2020-10-28 22:13:35 +08:00
TangBin
ea497d077d qcloud elb auth mode bugfix 2020-10-28 21:57:52 +08:00
Qiu Jian
dcc689cc17 fix: allow set customized private prefixes 2020-10-28 21:50:19 +08:00
wanyaoqi
0389ec8048 ha guest misc fix 2020-10-28 21:14:57 +08:00
yunion-ci-robot
b9628c9421 Merge pull request #8538 from lvyangyang/lyy/qcloud_redis_tags
qcloud redis tags
2020-10-28 21:11:54 +08:00
rainzm
ce0c88d790 feat(region): call NotifyWebhook in when sonme tasks complete
dbinstace: create, delete, change_config;

elasticcache: create, delete, change_config;

loadbalancer, loadbalancer_backend_group,
loadbalancer_listener, loadbalancer_backend: create, delete
2020-10-28 21:08:37 +08:00
rainzm
0d36b3b749 refactor(region): remove return value of NotifyWebhook 2020-10-28 21:07:34 +08:00
Qiu Jian
8f2c514699 fix: use option manager for scheduler 2020-10-28 21:04:51 +08:00
Qu Xuan
a01cd0a81b fix: avoid sync part of rds 2020-10-28 20:21:08 +08:00
yunion-ci-robot
f7ee989c6b Merge pull request #8535 from rainzm/cachedimage/fasterlistpro
refactor(region): faster list for cachedimage
2020-10-28 17:58:43 +08:00
rainzm
de4f1579dd refactor(region): faster list for cachedimage
Pro version of #8440 with checking the necessity of id filtering
2020-10-28 15:21:23 +08:00
lvyangyang
cfbe92ed91 qcloud redis tags 2020-10-28 14:58:21 +08:00
yunion-ci-robot
ebfa86d45b Merge pull request #8533 from tb365/bugfix/tb-bugfix-20102701
Bugfix/tb bugfix 20102701
2020-10-28 12:37:41 +08:00
tangbin
399539b92d elb sync bugfix 2020-10-28 12:13:03 +08:00
wanyaoqi
980396f151 dirve mirror check block replication is support 2020-10-28 10:51:33 +08:00
yunion-ci-robot
b6cbf86d3b Merge pull request #8521 from swordqiu/hotfix/qj-adjust-default-policy-quota
fix: adjust default identity quota
2020-10-28 10:36:44 +08:00
tangbin
1eaf06d051 sync elb support classic vpc 2020-10-28 07:56:49 +08:00
yunion-ci-robot
62db4e8440 Merge pull request #8523 from tb365/feature/tb-qcloud-redis-support
qcloud redis support
2020-10-28 01:06:40 +08:00
yunion-ci-robot
57cacd0cd7 Merge pull request #8525 from rainzm/fix/esxi_saveimage
Fix for saving image in ESXi
2020-10-28 00:57:41 +08:00
yunion-ci-robot
de533cab6b Merge pull request #8512 from ioito/hotfix/qx-qcloud-project-sync
fix: avoid sync project panic
2020-10-28 00:46:42 +08:00
yunion-ci-robot
6b91b9ff86 Merge pull request #8443 from rainzm/cachedimage/fr
Respect multiple disks in VMware Template
2020-10-28 00:17:42 +08:00
yunion-ci-robot
d401bfcb62 Merge pull request #8509 from wanyaoqi/bugfix/wyq/fix-host-archs-capabilities
bugfix: fix get host archs capability
2020-10-28 00:12:43 +08:00
rainzm
26b1050b31 fix(esxi): filter vmdk item in lease.info 2020-10-27 21:25:32 +08:00
rainzm
6afa803050 fix(esxi): use correct device index
1. Sort devices via their Key.
2. There is no relationship between vdisk index and vnics length.
2020-10-27 21:20:58 +08:00
rainzm
d616b40044 fix(esxi): no callback in uploadHandler 2020-10-27 21:19:40 +08:00
TangBin
d7894776f3 qcloud redis support 2020-10-27 20:33:28 +08:00
yunion-ci-robot
81df94b277 Merge pull request #8435 from swordqiu/feature/qj-scoped-policy-manager
Feature/qj scoped policy manager
2020-10-27 18:19:40 +08:00
yunion-ci-robot
dd2a68496f Merge pull request #8510 from ioito/hotfix/qx-cloudaccount-climc
fix: optimized cloudaccount climc
2020-10-27 17:33:41 +08:00
Zexi Li
bfffcfecde Merge pull request #8517 from ioito/hotfix/qx-secgroup-status
fix: set secgroup status
2020-10-27 17:28:22 +08:00
yunion-ci-robot
e686a0aa49 Merge pull request #8505 from ioito/hotfix/qx-lb-lock
add: DisableDelete for lb
2020-10-27 17:05:40 +08:00
Qiu Jian
4d04059bcb fix: adjust default identity quota 2020-10-27 16:38:28 +08:00
yunion-ci-robot
099bc4a8ea Merge pull request #8504 from ioito/hotfix/qx-qcloud-instance-create
fix: qcloud server create
2020-10-27 16:19:41 +08:00
Qu Xuan
b6016939cb fix: set secgroup status 2020-10-27 16:16:54 +08:00
Qu Xuan
6ee94ab41c fix: avoid sync project panic 2020-10-27 16:11:20 +08:00
Qu Xuan
64740ff0fd fix: optimized cloudaccount climc 2020-10-27 15:27:44 +08:00
wanyaoqi
8d07a6308f fix get host archs capability 2020-10-27 12:12:03 +08:00
Qu Xuan
0e5835ffac fix: qcloud server create 2020-10-27 10:49:13 +08:00
Qiu Jian
1805be4d2f list support scope filter 2020-10-27 00:46:03 +08:00
Qiu Jian
48e40fa5a9 update api models 2020-10-26 23:58:02 +08:00
Qiu Jian
01d4c2a1c7 feature: support scoped policy that manage ui policies for
domains&projects
2020-10-26 23:58:02 +08:00
Qu Xuan
73e8080d42 add: DisableDelete for lb 2020-10-26 21:51:37 +08:00
yunion-ci-robot
f41ff021c7 Merge pull request #8499 from yousong/bugfix/yousong-lockman-test
lockman: test: add prefix setting
2020-10-26 21:22:39 +08:00
Yousong Zhou
cd5163eebb lockman: test: add prefix setting 2020-10-26 20:26:42 +08:00
yunion-ci-robot
42f3ad00fa Merge pull request #8496 from zhaoxiangchun/bugfix/zxc-commonalert
commalertUpdateInput increat param:
2020-10-26 19:55:48 +08:00
rainzm
5251304a47 feat(esxi): expand disk config from subimages when creating vm 2020-10-26 19:47:04 +08:00
rainzm
a174c32eae feat: respect params.Disks when cloning vm 2020-10-26 19:46:57 +08:00
rainzm
564c6cf45f feat: add SubImages in Image 2020-10-26 19:06:22 +08:00
zhaoxiangchun
10b273938d commalertUpdateInput increat param:
1.处理operator对alertType == system的报警策略的update请求
2020-10-26 18:40:47 +08:00
yunion-ci-robot
85862c7f19 Merge pull request #8493 from rainzm/fix/cachedimagelist
fix(region): roll back the optimization of cachedimage list
2020-10-26 18:16:40 +08:00
rainzm
eef90b58e7 fix(region): roll back the optimization of cachedimage list 2020-10-26 17:34:54 +08:00
Zexi Li
2e4a06e77a Merge pull request #8492 from zexi/feature/k8s-fedres-update
Feature/k8s fedres update
2020-10-26 17:12:19 +08:00
Zexi Li
b0f73311d7 Merge pull request #8464 from wanyaoqi/bugfix/wyq/check-disk-is-in-reset-before-delete-snapshot
bugfix:check disk is in reset before delete snapshot
2020-10-26 17:03:00 +08:00
yunion-ci-robot
9d7a82401d Merge pull request #8487 from ioito/hotfix/qx-eip-sync
fix: avoid delete public ip when sync eip list
2020-10-26 17:02:41 +08:00
Zexi Li
ddf483bc0e climc: add k8s federated resource update subcommand 2020-10-26 16:57:06 +08:00
Qu Xuan
d60dee6a97 fix: avoid delete public ip when sync eip list 2020-10-26 16:17:15 +08:00
yunion-ci-robot
128173d320 Merge pull request #7620 from wanyaoqi/feature/wyq/arm-v2
feature: arm support
2020-10-26 15:50:40 +08:00
yunion-ci-robot
ca6c5ef3aa Merge pull request #8120 from swordqiu/feature/qj-policy-group-3.5
feature: policy group support
2020-10-25 20:17:42 +08:00
yunion-ci-robot
deb720d793 Merge pull request #8483 from swordqiu/hotfix/qj-vpc-create-climc-no-region
fix: climc vpc-create missing cloudregion_id
2020-10-25 10:53:38 +08:00
yunion-ci-robot
ec6f90ac4c Merge pull request #8484 from swordqiu/hotfix/qj-vm-usage-stats-not-correct
fix: server usage status not correct
2020-10-25 10:52:42 +08:00
Qiu Jian
ce06e078f0 fix: server usage status not correct 2020-10-25 08:34:51 +08:00
Qiu Jian
2d39cb4cb0 feature: policy group support 2020-10-24 22:46:46 +08:00
Qiu Jian
588fff60fc fix: climc vpc-create missing cloudregion_id 2020-10-24 22:40:39 +08:00
Zexi Li
167c672194 Merge pull request #8481 from ioito/hotfix/qx-qcloud-rds-create
fix: 避免参数异常
2020-10-24 13:11:17 +08:00
Zexi Li
107f7588cb Merge pull request #8470 from wanyaoqi/bugfix/wyq/fix-stream-disk-complete
bugfix: fix on stream disk complete snapshots refcount not update
2020-10-24 13:09:25 +08:00
Zexi Li
d011cbfc87 Merge pull request #8474 from zexi/hotfix/monitor-datasource-ep
monitor: set default influxdb datasource by endpoint type
2020-10-24 13:06:55 +08:00
Qu Xuan
9821f7fe9e fix: 避免参数异常 2020-10-24 12:58:59 +08:00
Zexi Li
2cdb173036 Merge pull request #8415 from ioito/hotfix/qx-rds-secgroup
fix: rds 支持多安全组
2020-10-24 12:10:31 +08:00
Qu Xuan
5cd26b297e fix: 支持多安全组 2020-10-24 11:44:31 +08:00
yunion-ci-robot
fd7348c7f0 Merge pull request #8460 from lvyangyang/lyy/create_with_tag
qcloud create lb,mysql with tags
2020-10-23 21:09:16 +08:00
yunion-ci-robot
ce178b01d7 Merge pull request #8478 from tb365/bugfix/tb-bugfix-20102301
Bugfix/tb bugfix 20102301
2020-10-23 21:00:15 +08:00
TangBin
44b40599a5 qcloud zone sync fix 2020-10-23 20:44:27 +08:00
TangBin
541a2d4e0d loadbalancer support batch create 2020-10-23 20:30:53 +08:00
yunion-ci-robot
8ea168a6e8 Merge pull request #8468 from ioito/hotfix/qx-rds-fix
fix: qcloud 5.5 single zone
2020-10-23 20:18:17 +08:00
Zexi Li
409c67e24b monitor: set default influxdb datasource by endpoint type 2020-10-23 20:07:15 +08:00
Qu Xuan
9a03bf17ce fix: 支持批量创建rds 2020-10-23 19:38:04 +08:00
wanyaoqi
4efbe27abc fix on stream disk complete snapshots refcount not update 2020-10-23 19:09:38 +08:00
Qu Xuan
cdd652c1ee fix: qcloud 5.5 single zone 2020-10-23 18:55:16 +08:00
yunion-ci-robot
9822abac3a Merge pull request #8412 from zhaoxiangchun/bugfix/zxc-commonalert
bugfix:commalert
2020-10-23 18:35:17 +08:00
yunion-ci-robot
a4e3ddf78e Merge pull request #8461 from rainzm/guestimage/public
fix(glance): allow public and private operations of guestimage
2020-10-23 18:28:16 +08:00
wanyaoqi
e7ce3fd9d8 check disk is in reset before delete snapshot 2020-10-23 18:23:18 +08:00
yunion-ci-robot
3dba8ad4f4 Merge pull request #8450 from wanyaoqi/bugfix/wyq/misc-host-fix
host increase cpu mem max size
2020-10-23 18:18:19 +08:00
yunion-ci-robot
ceac46fdbd Merge pull request #8456 from rainzm/esxi/disksize
fix(esxi): resize root disk after cloning vm
2020-10-23 18:16:16 +08:00
yunion-ci-robot
110102c603 Merge pull request #8449 from tb365/bugfix/tb-bugfix-201023
Bugfix/tb bugfix 201023
2020-10-23 18:15:15 +08:00
yunion-ci-robot
5810e1d06f Merge pull request #8454 from rainzm/esix/disksizecreate
fix(esxi): resize root disk after creating vm
2020-10-23 18:14:15 +08:00
lvyangyang
2c043454a5 create with tags 2020-10-23 18:13:54 +08:00
Zexi Li
21e1ab4b00 Merge pull request #8447 from ioito/hotfix/qx-rds-fix
fix: sync rds account host info
2020-10-23 18:04:05 +08:00
zhaoxiangchun
b4a83dc15e bugfix:
1.资源报警增加websocket 消息通知:admin用户
2.统一influxdb中查询到的tag展示
2020-10-23 17:57:20 +08:00
rainzm
5824b7add0 fix(glance): allow public and private operations of guestimage
The public and private operations of the guest image depends on these operations of the subimage.
2020-10-23 17:46:49 +08:00
Qu Xuan
f159c73186 fix: add duration match 2020-10-23 17:15:40 +08:00
rainzm
bd014a6adf fix(esxi): resize root disk after cloning vm
The root disk size set when the machine is cloned does not take effect,
so set the root disk size after the machine is cloned.
2020-10-23 17:02:33 +08:00
rainzm
9daef7d97c fix(esxi): resize root disk after creating vm
The root disk size set when the machine is created does not take effect,
so set the root disk size after the machine is created.
2020-10-23 16:39:53 +08:00
TangBin
6f2a9d8b7c elb salve zone 1 external id bugfix 2020-10-23 16:22:42 +08:00
TangBin
94d3fa82af elb sync zone bugfix 2020-10-23 16:12:00 +08:00
Qu Xuan
fb7d22f675 fix: sync rds account host info 2020-10-23 15:44:39 +08:00
wanyaoqi
6b7a525734 host increase cpu mem max size 2020-10-23 15:13:17 +08:00
TangBin
1f17dcf680 add qcloud elb zone1 details 2020-10-23 12:04:22 +08:00
yunion-ci-robot
13f179d0b3 Merge pull request #8445 from swordqiu/lvyangyang-lyy/resource_tag
resource tags
2020-10-22 22:43:16 +08:00
lvyangyang
58737942ad resource tags 2020-10-22 22:20:53 +08:00
yunion-ci-robot
ae9d1b6ba6 Merge pull request #8440 from rainzm/cachedimage/fasterlist
refactor(region): faster list for cachedimage
2020-10-22 21:24:14 +08:00
yunion-ci-robot
963287b563 Merge pull request #8444 from yousong/bugfix/yousong-eip-varchar
Bugfix/yousong eip varchar
2020-10-22 21:16:18 +08:00
Yousong Zhou
4537cc3dba elasticips: charge_type: make it varchar column 2020-10-22 20:58:12 +08:00
Yousong Zhou
e61a85b7c1 elasticips: bgp_type: make the db column nullable
It's nullable previously, and alter table NOT NULL will error out on
NULL column value
2020-10-22 20:56:35 +08:00
yunion-ci-robot
7cc0ea74a9 Merge pull request #8410 from rainzm/esxi/copy_disk
feat(esxi): copy disk from image when creating vm
2020-10-22 20:33:15 +08:00
yunion-ci-robot
abeddc49cc Merge pull request #8426 from ioito/hotfix/qx-rds-expired-sync
fix: 避免冲掉设置的到期释放时间
2020-10-22 20:13:25 +08:00
yunion-ci-robot
3e1599b4dc Merge pull request #8416 from lvyangyang/fix/qcloud_dns_all_project
fix:get all project dns resource
2020-10-22 20:11:16 +08:00
yunion-ci-robot
e4be550a86 Merge pull request #8430 from tb365/feature/tb-qcloud-elb-support-multi-zones
Feature/tb qcloud elb support multi zones
2020-10-22 20:10:16 +08:00
yunion-ci-robot
ffcca38512 Merge pull request #8437 from rainzm/fix/snapshotpolicylist
SnapshotPolicy Display and Sync
2020-10-22 20:07:18 +08:00
rainzm
bd4851c9f9 refactor(region): faster list for cachedimage
修改之前:
诸如provider, zone, host_schedtag_id, valid
等过滤条件,是通过过滤出符合条件的 storagecachedimage 然后使用 cachedimage_id 来过滤 cachedimge,
问题是,每一个过滤条件都会独立的去执行上面的过程,这样同样的查询可能要经过很多次,并且如果遇到
弱的过滤条件,比如 valid ,过滤出来的 storagecachedimage
非常之多,然后在使用 cachedimage_id 去过滤 cachedimage,会非常慢。

修改之后:
过滤条件的相似的逻辑合并起来,只需要向 subQuery 中添加 filter,使用 subQuery 一次把 storagecachedimage
过滤出来,然后使用 cachedimage_id 过滤 cachedimage。
2020-10-22 20:05:49 +08:00
rainzm
213d495a3d fix: don't update NextSyncTime when snapshots that should be added has not 2020-10-22 19:35:19 +08:00
rainzm
a2d221685e fix(region): init NextSyncTimeiwhen create snapshotpolicydisks 2020-10-22 19:34:45 +08:00
rainzm
92d862b17d fix(region): add suffix 'display' for time_points and repeat_weekdays
TimePoints and RepeatWeekdays in SnapshotPolicyDetails is duplicated
with thess in SnapshotPolicy, which result in the fault of reponse for
request GET.
2020-10-22 19:33:55 +08:00
TangBin
f86dc52e90 qcloud elb supplort multi zones 2020-10-22 16:01:42 +08:00
TangBin
69e0ae9ded climc lb-create add parameter zone1 2020-10-22 15:51:32 +08:00
TangBin
e6af8ad2c4 qcloud elb support multi zones 2020-10-22 15:38:48 +08:00
Qu Xuan
98bd229b33 fix: 避免冲掉设置的到期释放时间 2020-10-22 15:37:54 +08:00
yunion-ci-robot
0d272fab28 Merge pull request #8407 from wanyaoqi/bugfix/wyq/fix-informer-backend
bugfix: fix informer set backend
2020-10-22 15:04:16 +08:00
yunion-ci-robot
45058b338c Merge pull request #8417 from ioito/hotfix/qx-secgroup-quota
fix: secgroup quota support
2020-10-22 14:56:13 +08:00
yunion-ci-robot
cbc967c965 Merge pull request #8419 from ioito/hotfix/qx-lb-quota
fix: add lb quota check
2020-10-22 14:45:14 +08:00
yunion-ci-robot
e7676f103b Merge pull request #8420 from ioito/hotfix/qx-rds-quota
fix: add rds quota check
2020-10-22 14:42:13 +08:00
yunion-ci-robot
23a69e36a7 Merge pull request #8423 from ioito/hotfix/qx-aliyun-region
fix: add aliyun new region
2020-10-22 14:31:17 +08:00
Qu Xuan
80b0ed3ccd fix: add aliyun new region 2020-10-22 11:50:53 +08:00
Qu Xuan
adcce7538d fix: secgroup quota support 2020-10-21 21:29:11 +08:00
Qu Xuan
f74e345b02 fix: add rds quota check 2020-10-21 21:24:50 +08:00
Qu Xuan
5e4cc33146 fix: add lb quota check 2020-10-21 21:18:29 +08:00
lvyangyang
efa5a8495a fix:get all project dns resource 2020-10-21 18:16:44 +08:00
rainzm
937bf4513b feat(esxi): copy disk from image when creating vm
Before, we use delta disk based on vmdk in image_cache when creating vm.
In theory, creating a machine like this is faster and occupies less storage.
However, it may also affect performance and definitely cannot change the
size of the system disk.

Now, we copy disk from vmdk in image_cache to solve above questions.
2020-10-21 14:14:24 +08:00
yunion-ci-robot
4e1e4e29fd Merge pull request #8404 from rainzm/notify/client
Verified webconsole and IntelliNotify
2020-10-21 10:51:14 +08:00
yunion-ci-robot
642ddcaba6 Merge pull request #8349 from ioito/hotfix/qx-huawei-clirc
fix: huawei clirc region not correct
2020-10-21 01:01:13 +08:00
rainzm
c12b276ea1 feat(notify): add IntelliNotify
IntelliNotify will try to create receiver nonexistent if createReceiver is set to true
2020-10-20 20:34:35 +08:00
rainzm
fbc951330c fix(notify): add AllOkContactTypes in where permanently enabled and verified ContactType 2020-10-20 20:29:21 +08:00
yunion-ci-robot
418e3e5990 Merge pull request #8193 from ioito/feature/qx-qcloud-rds
feature: add qcloud rds support
2020-10-20 18:58:12 +08:00
Zexi Li
135b080631 Merge pull request #8400 from wanyaoqi/bugfix/wyq/fix-fetch-customize-columns
bugfix: fix fetch customize columns
2020-10-20 18:52:29 +08:00
wanyaoqi
cb45349ec4 fix fetch customize columns 2020-10-20 18:42:39 +08:00
wanyaoqi
128ec17741 fix informer backend 2020-10-20 17:45:25 +08:00
Qu Xuan
f776054187 feature: add qcloud rds support 2020-10-20 17:40:53 +08:00
Zexi Li
1b967e9595 Merge pull request #8338 from tb365/feature/tb-add-aliyun-finance-env
add aliyun finance environment
2020-10-20 13:31:43 +08:00
yunion-ci-robot
bff1066744 Merge pull request #8258 from rainzm/snapshot/sync
feat: add a retry mechanism to AutoSyncExtDiskSnapshot
2020-10-20 13:31:13 +08:00
Zexi Li
a5872c0ab3 Merge pull request #8395 from tb365/bugfix/tb-bugfix-201020
lbcert delete bugfix
2020-10-20 13:28:21 +08:00
Zexi Li
9ec68e0b8d Merge pull request #8397 from zexi/hotfix/alert-resource
fix: monitor commonalert not detach alert resource
2020-10-20 13:26:38 +08:00
Zexi Li
06a30edcf8 fix: monitor commonalert not detach alert resource 2020-10-20 13:19:49 +08:00
Zexi Li
95bba5df0b Merge pull request #8392 from rainzm/fix/snapshotpolicy2
Fix of snapshotpolicy
2020-10-20 11:49:24 +08:00
rainzm
f6844e3c6d feat: use details data to cover obj data in FetchCustomizeColumns 2020-10-20 11:19:44 +08:00
TangBin
05f1900a26 lbcert delete bugfix 2020-10-20 11:19:41 +08:00
yunion-ci-robot
2bc39203ea Merge pull request #8227 from yousong/feature/yousong-eip-isp
Feature/yousong eip bgp type
2020-10-20 11:00:16 +08:00
yunion-ci-robot
e36936c4f5 Merge pull request #8381 from lvyangyang/lyy/update_metadata
set resource tags
2020-10-20 10:57:12 +08:00
lvyangyang
3a73eb9e30 resource tags 2020-10-20 10:16:38 +08:00
rainzm
2f6678f9a7 fix(region): compute binded disk count when deleting snapshotpolicy 2020-10-20 09:56:45 +08:00
yunion-ci-robot
bb1cc41b24 Merge pull request #8390 from zhaoxiangchun/bugfix/zxc-commonalert
bugfix: commonalert
2020-10-19 23:18:12 +08:00
zhaoxiangchun
444ff1901d bugfix: commonalert
1.报警消息中取消返回sql信息
2.commonalert 中支持top bottom 结构influxdb 查询
2020-10-19 23:05:27 +08:00
yunion-ci-robot
018881d6c2 Merge pull request #8357 from zhaoxiangchun/bugfix/zxc-qcloud-pullmetric
bugfix: qcloud pull metric
2020-10-19 22:36:12 +08:00
yunion-ci-robot
14f5b471ba Merge pull request #8346 from zexi/feature/alert-resource
monitor: add alert resource
2020-10-19 22:12:12 +08:00
zhaoxiangchun
26965521f2 bugfix: qcloud pull metric
get请求中增加region参数
2020-10-19 22:10:33 +08:00
yunion-ci-robot
85d79721c8 Merge pull request #8379 from yousong/feature/yousong-logger-action
Feature/yousong logger action
2020-10-19 22:06:12 +08:00
Zexi Li
31cf935dac monitor: add alert resource 2020-10-19 22:05:39 +08:00
Zexi Li
6fcdc49832 Merge pull request #8388 from wanyaoqi/bugfix/wyq/remove-try-set-informer-backend
bugfix: remove try set informer backend
2020-10-19 22:02:35 +08:00
wanyaoqi
917a62c142 remove try set informer backend 2020-10-19 21:32:26 +08:00
Zexi Li
32cacf0f34 Merge pull request #8385 from wanyaoqi/bugfix/wyq/update-raid-state-to-lower-case
telegraf-raid-plugin: update raid state to lower case
2020-10-19 20:59:56 +08:00
yunion-ci-robot
6e6ebae520 Merge pull request #8383 from wanyaoqi/bugfix/wyq/keystone-init-etcd-backend
bugfix: keystone init etcd backend
2020-10-19 20:58:14 +08:00
yunion-ci-robot
06152cb590 Merge pull request #8382 from lvyangyang/fix/vpc_peer_error_wrap
fix:qcloud vpc peer  error  wrap
2020-10-19 20:10:11 +08:00
wanyaoqi
de03ab9397 telegraf-raid-plugin: update raid state to lower case 2020-10-19 20:09:46 +08:00
wanyaoqi
5f5090038b keystone init etcd backend 2020-10-19 20:03:02 +08:00
rainzm
5e82a7e506 feat: add a retry mechanism to AutoSyncExtDiskSnapshot 2020-10-19 20:01:51 +08:00
yunion-ci-robot
72ef0c5476 Merge pull request #8344 from rainzm/notify/webhook
Notify/webhook
2020-10-19 18:24:12 +08:00
Zexi Li
6526122f08 Merge pull request #8337 from swordqiu/hotfix/qj-cancel-pending-delete-should-add-quota-usages
fix: cancel pending-delete should increase resource quota usages
2020-10-19 17:43:55 +08:00
lvyangyang
bb4e09aee7 fix:qcloud vpc peer error wrap 2020-10-19 17:24:48 +08:00
yunion-ci-robot
53df123d4c Merge pull request #8340 from rainzm/fix/valid_cachedimage
feat: add valid filter for cachedimage list
2020-10-19 17:12:11 +08:00
rainzm
18fdfad79e feat: add valid filter for cachedimage list
Use the 'valid' switch to control whether to filter out
the cachedimage corresponding to invalid storage
2020-10-19 16:26:03 +08:00
Yousong Zhou
e4cef880a3 logger: actionlog: i18n for distinct-field 2020-10-19 16:21:36 +08:00
Yousong Zhou
c1468105f8 cloudcommon: db: GET: i18n for result of get property calls 2020-10-19 16:21:36 +08:00
Yousong Zhou
d639b0a84c cloudcommon: db: add man.GetI18N 2020-10-19 16:21:36 +08:00
Yousong Zhou
d6243fbc6a cloudcommon: db: modelbase: distinct-field: readability change 2020-10-19 16:21:36 +08:00
Yousong Zhou
d8887266ae logger: actionlog: readability change 2020-10-19 16:21:36 +08:00
Qiu Jian
2486aa3071 fix: cancel pending-delete should increase resource quota usages 2020-10-19 16:02:50 +08:00
rainzm
541128d37b feat(region): call NotifyWebhook in the life cycle of guests 2020-10-19 16:00:16 +08:00
rainzm
264b9ef39f feat: add NotifyWebhook in notifyclient 2020-10-19 16:00:12 +08:00
yunion-ci-robot
0ffda5712a Merge pull request #8361 from swordqiu/hotfix/qj-not-lock-guest-after-lock-eip
fix: do not lock guest after lock eip, to prevent possible dead lock
2020-10-19 15:20:12 +08:00
yunion-ci-robot
785283e3f3 Merge pull request #8353 from swordqiu/hotfix/qj-reduce-change-config-logs
fix: reduce change config logs
2020-10-19 15:19:16 +08:00
yunion-ci-robot
cb93bdcb95 Merge pull request #8347 from swordqiu/hotfix/qj-remote-update-metadata-loop
fix: remote update metadata may cause metadata update loop
2020-10-19 15:18:18 +08:00
yunion-ci-robot
3b2f7ee30d Merge pull request #8350 from swordqiu/hotfix/qj-missing-authenticate-log
fix: missing authenticate action log for user web login
2020-10-19 15:17:12 +08:00
Zexi Li
c954f8223d Merge pull request #8366 from ioito/hotfix/qx-rds-usage
fix: add rds cpu and memory usage
2020-10-19 15:11:46 +08:00
Zexi Li
96e7c75746 Merge pull request #8373 from ioito/hotfix/qx-google-storage
fix: 新增google存储类型
2020-10-19 15:11:03 +08:00
Zexi Li
f6ce91c681 Merge pull request #8369 from ioito/hotfix/qx-worker-fix
fix: use correct worker
2020-10-19 15:09:52 +08:00
Qu Xuan
f7b16c592f fix: 新增google存储类型 2020-10-19 12:05:18 +08:00
yunion-ci-robot
93d682503e Merge pull request #8355 from wanyaoqi/feature/wyq/fix-sync-storage-info-duration
host: fix sync storage info duration'
2020-10-19 11:57:12 +08:00
rainzm
2e094a310a feat(notify): allow empty receivers for robot or webhook contact type 2020-10-19 11:56:50 +08:00
Qiu Jian
adbf513167 fix: missing authenticate action log for user web login 2020-10-19 11:53:26 +08:00
Qiu Jian
d681a148df fix: reduce change config logs 2020-10-19 11:51:04 +08:00
Qiu Jian
20f3feaabc fix: remote update metadata may cause metadata update loop 2020-10-19 11:45:44 +08:00
Qiu Jian
0466b2c805 fix: do not lock guest after lock eip, to prevent possible dead lock 2020-10-19 11:42:28 +08:00
Qu Xuan
dc8086b3c2 fix: use correct worker 2020-10-19 11:41:25 +08:00
Qu Xuan
d7ae0eaa8d fix: add rds cpu and memory usage 2020-10-19 11:22:06 +08:00
Yousong Zhou
bc898e9e3b climc: eip ops by bgp type 2020-10-19 10:53:17 +08:00
Yousong Zhou
59dd8a0e29 eip: create by BgpType 2020-10-19 10:53:17 +08:00
Yousong Zhou
258ceb7ba8 networks: add field BgpType 2020-10-19 10:53:17 +08:00
Yousong Zhou
b7c3959e04 vendor: update yunion.io/x/sqlchemy 2020-10-19 10:53:17 +08:00
yunion-ci-robot
db9872e9fa Merge pull request #8358 from yousong/bugfix/yousong-build
.circleci: build: make with parallel level 2
2020-10-19 10:50:17 +08:00
Yousong Zhou
47fd7fb27e .circleci: build: make with parallel level 2 2020-10-19 10:27:55 +08:00
wanyaoqi
4b09751f56 host: fix sync storage info duration' 2020-10-18 01:01:00 +08:00
Qu Xuan
3d70213220 fix: huawei clirc region not correct 2020-10-17 18:56:36 +08:00
yunion-ci-robot
fe2ecd15ca Merge pull request #8332 from rainzm/esxi/lockstorage
Feats for ESXi
2020-10-17 18:22:10 +08:00
rainzm
012d9b1588 feat(notify): support webhook contact type 2020-10-17 18:03:19 +08:00
rainzm
2679294529 refactor: find the most suitable storage 2020-10-17 17:38:39 +08:00
rainzm
93df31a97f feat(esxiagent): try to customize vm if deployfs failed 2020-10-17 17:38:39 +08:00
rainzm
10f0f07bdb feat: support lock storage from selected cachedimage 2020-10-17 17:38:37 +08:00
TangBin
2032e5f1d1 add aliyun finance environment 2020-10-17 17:22:35 +08:00
yunion-ci-robot
b43c3780b8 Merge pull request #8325 from wanyaoqi/feature/wyq/report-raid-info
telegraf raid plugin
2020-10-17 13:49:47 +08:00
wanyaoqi
225f3b21c1 telegraf raid plugin 2020-10-17 10:59:19 +08:00
Zexi Li
928f6c9c0b Merge pull request #8304 from swordqiu/feature/qj-qcloud-update-metadata-name
Feature/qj qcloud update metadata name
2020-10-16 23:43:53 +08:00
Qiu Jian
e967dd7d6a feature: remote update qcloud instance metadata and name 2020-10-16 21:40:35 +08:00
Qiu Jian
38abe9b45d feature: qcloud create VM with tags 2020-10-16 21:37:28 +08:00
yunion-ci-robot
d7d90af6b5 Merge pull request #8334 from rainzm/cachedimage/filter
fix(compute): filter cachedimage with health storage
2020-10-16 19:42:47 +08:00
rainzm
625bf23569 fix(compute): filter cachedimage with health storage 2020-10-16 18:29:02 +08:00
Zexi Li
50ee78cf6a Merge pull request #8330 from ioito/hotfix/qx-instance-hostname
fix: hostname for instance
2020-10-16 17:43:12 +08:00
Qu Xuan
65582cab95 fix: hostname for instance 2020-10-16 17:12:17 +08:00
yunion-ci-robot
cfbb8458ee Merge pull request #8323 from zhasm/hotfix/rex-clean-alpine-build-cache
remove alpine build cache before make image
2020-10-16 15:13:44 +08:00
yunion-ci-robot
d6734576a9 Merge pull request #8326 from zexi/hotfix/images-distinct-field
fix: get images distinct field
2020-10-16 14:31:34 +08:00
yunion-ci-robot
6be508b701 Merge pull request #8321 from ioito/hotfix/qx-dnszone-sync-records
fix: sync dns records after sync vpcs
2020-10-16 12:53:31 +08:00
Zhang Dongliang
0619d3566f remove alpine build cache before make image 2020-10-16 11:59:33 +08:00
Zexi Li
f14ec60a76 fix: get images distinct field 2020-10-16 11:59:23 +08:00
yunion-ci-robot
99dc8ce1fe Merge pull request #8319 from swordqiu/hotfix/qj-resolve-with-meta-filter-conflict
fix: resolve with_meta filter conflict
2020-10-16 11:38:32 +08:00
Qu Xuan
914b76069f fix: sync dns records after sync vpcs 2020-10-16 10:40:18 +08:00
yunion-ci-robot
70c755068c Merge pull request #8314 from rainzm/esxi/joindvpg
feat(esxi): do not specify portkey in NewVNIC
2020-10-16 10:38:35 +08:00
Qiu Jian
cc7423d558 fix: resolve with_meta filter conflict 2020-10-16 10:30:02 +08:00
rainzm
8553f90248 feat(esxi): do not specify portkey in NewVNIC 2020-10-16 08:22:05 +08:00
yunion-ci-robot
f9be2999c6 Merge pull request #8312 from swordqiu/feature/qj-filter-storage-by-image
feature: filter storages by image
2020-10-15 23:08:34 +08:00
yunion-ci-robot
ae005ea860 Merge pull request #8308 from ioito/hotfix/qx-secgroup-rule-sync
fix: 避免并发同步安全组导致规则混乱
2020-10-15 22:59:34 +08:00
Qiu Jian
6abd9b0e92 feature: filter storages by image 2020-10-15 22:51:56 +08:00
Qu Xuan
0e3f781003 fix: 避免并发同步安全组导致规则混乱 2020-10-15 22:26:23 +08:00
yunion-ci-robot
17ea4ddafe Merge pull request #8305 from zexi/hotfix/remove-utf8-stringutils
stringutils2: add RemoveUtf8Strings func
2020-10-15 21:44:32 +08:00
Zexi Li
f0cc1d3d1a stringutils2: add RemoveUtf8Strings func 2020-10-15 19:33:18 +08:00
Zexi Li
fc15772ab6 Merge pull request #8302 from swordqiu/hotfix/qj-filter-resource-by-metadata
fix: allwo filter resource by with-meta and with-user-meta filter
2020-10-15 15:17:02 +08:00
Zexi Li
8cfc2f32f1 Merge pull request #8299 from ioito/hotfix/qx-rds-sku-filter-by-provider
fix: support filter rds sku by provider
2020-10-15 15:15:54 +08:00
Qiu Jian
c4d30371ef fix: allwo filter resource by with-meta and with-user-meta filter 2020-10-15 14:46:08 +08:00
Qu Xuan
0dc485d589 fix: support filter rds sku by provider 2020-10-15 14:28:52 +08:00
yunion-ci-robot
ac6a7a9685 Merge pull request #8297 from swordqiu/hotfix/qj-filter-role-assignment-with-project-domains
fix: filter role assignments by project domains id or name
2020-10-15 14:25:33 +08:00
yunion-ci-robot
39ead9fb61 Merge pull request #8294 from ioito/hotfix/qx-huawei-disk-v2-api
fix: use new api
2020-10-15 14:24:34 +08:00
yunion-ci-robot
0c34fb9939 Merge pull request #8289 from lvyangyang/fix/openstack_lbb_backend
fix:openstack lb 后端ip无法映射到主机的异常处理
2020-10-15 14:22:37 +08:00
yunion-ci-robot
97fe7be808 Merge pull request #8265 from rainzm/esxi/template_hack
sync and use of ESXi template
2020-10-15 13:13:30 +08:00
Qiu Jian
e2e186a754 fix: filter project role with system=true 2020-10-15 13:06:45 +08:00
Qiu Jian
b2add97a0d fix: filter role assignments by project domains id or name 2020-10-15 13:01:00 +08:00
Qu Xuan
db6846aab0 fix: use new api 2020-10-15 11:30:27 +08:00
rainzm
7ab4decab3 feat: add 'vlan_id' param when creating network 2020-10-15 10:48:36 +08:00
rainzm
335c8eecc0 feat: change templateid as <providerId>/<uuid> in esxi 2020-10-15 10:48:36 +08:00
Rain
281d1c45df fix: support fake tempalte when searching template vm 2020-10-15 10:48:00 +08:00
yunion-ci-robot
02d97f652b Merge pull request #8290 from ioito/hotfix/qx-qcloud-secgroup
fix: 优化安全组规则同步
2020-10-15 09:09:30 +08:00
Qu Xuan
efa5978cf6 fix: 优化安全组规则同步 2020-10-14 21:04:18 +08:00
lvyangyang
415ef08661 fix:openstack lb 后端ip无法映射到主机的异常处理 2020-10-14 18:24:01 +08:00
yunion-ci-robot
f898079c11 Merge pull request #8284 from swordqiu/feature/qj-qcloud-creae-vm-with-tags
feature: qcloud create VM with tags
2020-10-14 17:50:29 +08:00
yunion-ci-robot
0816bb0fc4 Merge pull request #8287 from wanyaoqi/bugfix/wyq/distinguish-between-float32-and-float64-on-json-marshal
fix: replace NewFloat by NewFloat64 and NewFloat32
2020-10-14 16:52:32 +08:00
Qiu Jian
ddefc2ab34 feature: qcloud create VM with tags 2020-10-14 15:21:21 +08:00
wanyaoqi
1cfee7cf6c replace NewFloat by NewFloat64 and NewFloat32 2020-10-14 11:54:30 +08:00
wanyaoqi
63887337fd make mode 2020-10-14 11:39:04 +08:00
yunion-ci-robot
41542b7c98 Merge pull request #8281 from ioito/hotfix/qx-bucket-sync-project
fix: sync huawei bucket project info
2020-10-14 10:51:31 +08:00
yunion-ci-robot
5a969fcae3 Merge pull request #8264 from ioito/hotfix/qx-instance-public-ip
fix: support public ip create
2020-10-14 10:50:30 +08:00
yunion-ci-robot
454e453359 Merge pull request #8275 from lvyangyang/fix/aliyun_timeout_retry
fix:aliyun jsonRequest 增加i/o timeout retry
2020-10-14 10:47:29 +08:00
yunion-ci-robot
502bf73105 Merge pull request #8253 from ioito/hotfix/qx-qcloud-bandwidth
fix: qcloud eip with bandwidth attr
2020-10-14 10:44:30 +08:00
yunion-ci-robot
0d66d35ad2 Merge pull request #8231 from wanyaoqi/feature/wyq/add-interface-freeze-virtual-resource
region: add interface freeze virtual resource
2020-10-14 10:42:30 +08:00
Qu Xuan
4b1d914b83 fix: sync huawei bucket project info 2020-10-13 20:47:08 +08:00
Qu Xuan
02ec88ccc6 fix: support public ip create 2020-10-13 20:00:00 +08:00
Zexi Li
243f4af95f Merge pull request #8270 from ioito/hotfix/qx-qcloud-bandwidth-user
fix: 支持带宽包用户
2020-10-13 17:34:20 +08:00
Zexi Li
dd2ab45d11 Merge pull request #8267 from ioito/hotfix/qx-google-new-region
fix: trans google new region name
2020-10-13 17:34:02 +08:00
yunion-ci-robot
90b1d0a524 Merge pull request #8278 from wanyaoqi/bugfix/wyq/fix-host-deployer-base-image
update host-deployer base image
2020-10-13 17:09:30 +08:00
yunion-ci-robot
27a38b6c74 Merge pull request #8276 from zhasm/hotfix/rex-docker-push-mkdir
在 docker push 脚本里创建_output 目录,以便容错
2020-10-13 17:01:30 +08:00
wanyaoqi
bc26bdb8fb fix host-deployer base image 2020-10-13 16:57:48 +08:00
lvyangyang
93365de62e fix:aliyun jsonRequest 增加i/o timeout retry 2020-10-13 16:55:31 +08:00
Zhang Dongliang
4be578fc2f 在 docker push 脚本里创建_output 目录,以便容错 2020-10-13 16:46:29 +08:00
yunion-ci-robot
833e57bf95 Merge pull request #8273 from zhasm/hotfix/rex-rex-fix-root-ownership-dockerpush
在 docker push 脚本里创建_output 目录,以便容错
2020-10-13 16:18:30 +08:00
Zhang Dongliang
1f7988ecd7 在 docker push 脚本里创建_output 目录,以便容错 2020-10-13 15:36:27 +08:00
Qu Xuan
f3c819299f fix: 支持带宽包用户 2020-10-13 15:32:40 +08:00
Qu Xuan
17ff08282b fix: trans google new region name 2020-10-13 14:14:05 +08:00
rainzm
e43c86586b fix(esxiagent): check whether regexp is nil 2020-10-13 13:02:17 +08:00
rainzm
d618f61c16 feat(esxiagent): keep data disks when cloning vm 2020-10-13 13:01:14 +08:00
Qu Xuan
b32c54f7cf fix: qcloud eip with bandwidth attr 2020-10-13 10:41:31 +08:00
yunion-ci-robot
8855dff371 Merge pull request #8188 from ioito/hotfix/qx-qcloud-secgroup-name
fix: avoid qcloud secgroup cache name not sync
2020-10-13 10:35:28 +08:00
Zexi Li
e8442294f4 Merge pull request #8228 from yousong/bugfix/yousong-eip-opslog
Bugfix/yousong eip opslog
2020-10-13 10:13:26 +08:00
yunion-ci-robot
db55ef3e04 Merge pull request #8242 from zexi/hotfix/baremetal-pxe-filter-network
baremetal: fix pxe filter network by guest_dhcp
2020-10-13 10:12:29 +08:00
Zexi Li
5018b091fb Merge pull request #8232 from rainzm/esxi/template_fix1
Fix for ESXi Template
2020-10-13 10:06:06 +08:00
Zexi Li
6c8505a736 Merge pull request #8210 from ioito/hotfix/qx-secgroup-purge
fix: validate secgroup purge condition
2020-10-13 10:02:54 +08:00
Zexi Li
ea62a72232 Merge pull request #8234 from swordqiu/feature/qj-session-level-auth-cookie
feature: allow session level yunion_auth cookie
2020-10-13 10:01:51 +08:00
Zexi Li
8035ea0d77 Merge pull request #8246 from swordqiu/hotfix/qj-output-details-wrong-project-id
fix: project_id in resource details not correct
2020-10-13 10:00:06 +08:00
Zexi Li
54f75d3890 Merge pull request #8248 from ioito/hotfix/qx-qcloud-instance-bandwidth
fix: qcloud instance with max bandwidth
2020-10-13 09:57:12 +08:00
yunion-ci-robot
9dd48de668 Merge pull request #8256 from zhasm/hotfix/rex-fix-root-ownership
解决编译之后 output 的 owerner 问题
2020-10-12 19:22:27 +08:00
Yousong Zhou
b44ac491c1 eip: NewEipForVMOnHost: add opslog 2020-10-12 18:23:20 +08:00
Yousong Zhou
83f5a38c2a eip: construct a pointer type 2020-10-12 18:23:20 +08:00
Zhang Dongliang
54f86817d1 解决编译之后 output 的 owerner 问题 2020-10-12 18:11:21 +08:00
rainzm
bffa601dc4 fix(esxi): use system disk of template only when cloning vm
1. Create a driver if necessary.
2. After cloning the virtual machine, remove all data disks.
3. Create new data disks.
2020-10-12 17:30:46 +08:00
rainzm
d4c9e6e562 fix(esxi): search template from whole vCenter 2020-10-12 17:30:46 +08:00
Qu Xuan
bb62c03923 fix: qcloud instance with max bandwidth 2020-10-12 16:28:57 +08:00
yunion-ci-robot
8e9617ac8c Merge pull request #8252 from lvyangyang/fix/vpc_peering_httperror
fix: vpc peering http error params
2020-10-12 16:24:27 +08:00
yunion-ci-robot
749dabc7ca Merge pull request #8237 from swordqiu/hotfix/qj-pass-make-test-20201011
fix: format errors that block make test
2020-10-12 16:09:23 +08:00
lvyangyang
db7d32cd17 fix: vpc peering http error params 2020-10-12 15:22:53 +08:00
yunion-ci-robot
11a56c10ff Merge pull request #8235 from swordqiu/hotfix/qj-clean-pending-domain-usage
fix: not clean pending domain usage
2020-10-12 15:04:21 +08:00
yunion-ci-robot
a8eb402687 Merge pull request #8126 from rainzm/esxi/ip
Feats for ESXi Manage
2020-10-12 15:01:18 +08:00
rainzm
a4527aec5d feat: add vlanId for suggested network 2020-10-12 14:24:24 +08:00
yunion-ci-robot
26b54923b9 Merge pull request #7952 from lvyangyang/vpc-peering-connection
Vpc peering connection
2020-10-12 14:21:18 +08:00
Qiu Jian
187dee690e fix: project_id in resource details not correct 2020-10-12 14:18:02 +08:00
yunion-ci-robot
95cd5d5d3a Merge pull request #8238 from swordqiu/hotfix/qj-ldap-sync-not-update-email-phone
fix: ldap sync not update user's phone and email
2020-10-12 11:54:19 +08:00
Zexi Li
129001dfb4 baremetal: fix pxe filter network by guest_dhcp 2020-10-12 11:34:30 +08:00
lvyangyang
bd22eb0b16 add: vpc peering connection 2020-10-12 10:34:23 +08:00
rainzm
48940c77ae feat(esxi): support fake template vm via regex filter 2020-10-12 10:12:58 +08:00
rainzm
e0aa673575 feat: filter esxi ip by CIDR 2020-10-12 10:12:55 +08:00
Qiu Jian
13fa3c2999 fix: ldap sync not update user's phone and email 2020-10-11 05:42:51 +08:00
Qiu Jian
5e5b0613f8 fix: format errors that block make test 2020-10-11 05:12:34 +08:00
Qiu Jian
624c4db06f fix: not clean pending domain usage 2020-10-11 04:33:08 +08:00
Qiu Jian
2a6445c31b feature: allow session level yunion_auth cookie 2020-10-11 03:09:11 +08:00
rainzm
fc6a30b209 feat(region): make address recommendations more precise
1. 虚拟机的网络推荐不再是一整个C段网络,而是存在的连续IP组成的网段,
这样更准确,用户可以根据自己的需要,合并或者扩充建议的网段
2. 使用 DefaultNetworkGatewayAddressEsxi 来配置子网默认的网关地址。
2020-10-10 20:48:23 +08:00
rainzm
4b860cb43e feat: add 'ip-list' for esxicli 2020-10-10 20:48:20 +08:00
wanyaoqi
e64fe802e0 genreate api models 2020-10-10 20:07:22 +08:00
wanyaoqi
dcdf45d184 add interface freeze virtual resource 2020-10-10 20:07:11 +08:00
yunion-ci-robot
4e901bda63 Merge pull request #8194 from rainzm/esxiagent/fix_nil
fix(esxi): check nil value when NewVirtualMachine
2020-10-10 19:03:48 +08:00
yunion-ci-robot
ed522b4c8b Merge pull request #8214 from tb365/bugfix/tb-bugfix-101001
remove aws lbbg cache metedata
2020-10-10 18:54:19 +08:00
yunion-ci-robot
91a7e10e88 Merge pull request #8213 from zhaoxiangchun/bugfix/zxc-commonalert
Bugfix/zxc commonalert
2020-10-10 17:11:18 +08:00
yunion-ci-robot
d4b70586c2 Merge pull request #8225 from zhasm/hotfix/rex-esxi-agent-arm64-patch
esxi-agent 编译方式兼容 arm64
2020-10-10 16:20:46 +08:00
rex zhasm
343b718b5b Merge branch 'master' into hotfix/rex-esxi-agent-arm64-patch 2020-10-10 16:10:03 +08:00
yunion-ci-robot
7bebf9007a Merge pull request #8218 from yousong/bugfix/yousong-webconsole-ssh-compat
Bugfix/yousong webconsole ssh compat
2020-10-10 15:34:51 +08:00
Zhang Dongliang
eda8be1be8 esxi-agent 编译方式兼容 arm64 2020-10-10 14:56:59 +08:00
zhaoxiangchun
3d9923a7c0 Add web url to alarm template 2020-10-10 14:50:00 +08:00
zhaoxiangchun
c0eae040a8 bugfix:scoperesource FilterByOwner
1.调度标签 和 优化建议 FilterByOwner 逻辑调整
2020-10-10 14:50:00 +08:00
Yousong Zhou
aa6e45e4d9 webconsole: ssh: add keyboard-interactive as an option
For ESXi 6.0

  Authentications that can continue: publickey,keyboard-interactive
2020-10-10 14:39:02 +08:00
Yousong Zhou
cce2af5010 webconsole: ssh: each argument on its own line 2020-10-10 14:39:02 +08:00
TangBin
1ce5db7695 remove aws lbbg cache metedata 2020-10-10 14:17:19 +08:00
yunion-ci-robot
046e4e3d6c Merge pull request #8199 from rainzm/cloudaccount/pn_fix
Fix for cloudaccount PrepareNets
2020-10-10 13:44:11 +08:00
yunion-ci-robot
0fb262783d Merge pull request #8189 from wanyaoqi/feature/wyq/support-list-macs
region: guest detail add field macs
2020-10-10 12:15:08 +08:00
yunion-ci-robot
8b0217051d Merge pull request #8207 from ioito/hotfix/qx-instance-hostname
fix: qcloud set hostname for instance
2020-10-10 12:05:07 +08:00
yunion-ci-robot
970523ee15 Merge pull request #8183 from yousong/bugfix/yousong-ovn-dhcp-time
vpcagent: ovn: increase dhcp lease, renew, rebind time
2020-10-10 11:54:09 +08:00
Qu Xuan
6f23593290 fix: validate secgroup purge condition 2020-10-10 11:53:40 +08:00
rainzm
e010c5c1f6 fix: avoid slice out of bounds 2020-10-10 11:50:04 +08:00
Qu Xuan
aa7495c9a6 fix: qcloud set hostname for instance 2020-10-10 11:37:41 +08:00
yunion-ci-robot
1867c15d7b Merge pull request #8205 from swordqiu/hotfix/qj-cached-image-filter-by-host-schedtag
fix: filter cached images with host schedtag
2020-10-10 11:35:09 +08:00
yunion-ci-robot
3dc572ff56 Merge pull request #8202 from swordqiu/hotfix/qj-auto-index-start-from-1
fix: server name auto index should start from 1
2020-10-10 11:35:04 +08:00
rainzm
01ba4b9524 fix(esxi): check nil value when NewVirtualMachine 2020-10-10 11:19:24 +08:00
rainzm
e4217074c3 fix(esxi): filter linkLocalAddress 2020-10-10 10:31:30 +08:00
rainzm
3c59d7fece fix(esxi): check whether some fields of vm are nil 2020-10-10 10:31:25 +08:00
Qiu Jian
1c0c66fd41 fix: filter cached images with host schedtag 2020-10-10 06:54:05 +08:00
Qiu Jian
a08a779edf fix: server name auto index should start from 1 2020-10-10 06:21:09 +08:00
yunion-ci-robot
b11e472706 Merge pull request #8152 from zhasm/hotfix/rex-host-arm64-alpine-base-image
multi-arch 的镜像使用支持 arm64
2020-10-09 12:59:01 +08:00
wanyaoqi
54275ddcf5 region: guest detail add field macs 2020-10-09 11:46:03 +08:00
Qu Xuan
35e57a8336 fix: avoid qcloud secgroup cache name not sync 2020-10-09 10:46:59 +08:00
rex zhasm
86f28388bf Merge branch 'master' into hotfix/rex-host-arm64-alpine-base-image 2020-10-09 10:43:08 +08:00
yunion-ci-robot
65cfd4108f Merge pull request #8176 from zhaoxiangchun/bugfix/zxc-commonalert
modify suggest rule cli
2020-10-09 10:33:59 +08:00
Yousong Zhou
39f979398b vpcagent: ovn: increase dhcp lease, renew, rebind time 2020-10-09 10:07:18 +08:00
yunion-ci-robot
d6d4724e2c Merge pull request #8178 from swordqiu/hotfix/qj-bucket-not-found-error
fix: error code of external bucket not found error should be 404
2020-10-09 09:11:59 +08:00
yunion-ci-robot
1892c37dd7 Merge pull request #8181 from swordqiu/hotfix/qj-network-merge-no-continuous
hotfix: 1. allow merge networks without continuous addresses 2. filter guest_ip_start and guest_ip_end with contains operator
2020-10-09 09:09:00 +08:00
Qiu Jian
6a55acafaf hotfix: 1. allow merge networks without continuous addresses 2. filter
guest_ip_start and guest_ip_end with contains operator
2020-10-07 23:28:12 +08:00
Qiu Jian
6a5fdc5d0d fix: error code of external bucket not found error should be 404 2020-09-30 17:39:55 +08:00
zhaoxiangchun
af9e911fd0 modify suggest rule cli
1.增加perform config方法,方便修改默认规则:执行周期,扫描窗口的属性
2020-09-30 17:15:28 +08:00
yunion-ci-robot
bc16b008c4 Merge pull request #8173 from yousong/bugfix/yousong-dns-strict-sub
dns: isMyDomain: match only strict subdomain of dns_domain
2020-09-30 16:32:48 +08:00
yunion-ci-robot
b43fa14f8e Merge pull request #8153 from lvyangyang/bugfix/dnsrecord_cname_dup
fix:允许cname record通过policy创建多值
2020-09-30 16:31:50 +08:00
yunion-ci-robot
ad56d53eaf Merge pull request #8168 from swordqiu/hotfix/qj-wire-sync-shared-info
fix: emulated wire not sync vpc shared info
2020-09-30 16:17:47 +08:00
Yousong Zhou
a67026dec0 dns: isMyDomain: match only strict subdomain of dns_domain 2020-09-30 16:14:23 +08:00
yunion-ci-robot
040efbc82d Merge pull request #8171 from ioito/hotfix/qx-dnszone-cache-policy
fix: 允许域管理员可以看到共享的dns zone cache列表
2020-09-30 16:13:47 +08:00
Qu Xuan
24fcccf5f5 fix: 允许域管理员可以看到共享的dns zone cache列表 2020-09-30 15:55:37 +08:00
Qiu Jian
c5cfceeb97 fix: emulated wire not sync vpc shared info 2020-09-30 15:52:05 +08:00
lvyangyang
68283ceedb fix:允许cname record通过policy多值 2020-09-30 12:17:38 +08:00
yunion-ci-robot
c379ab7615 Merge pull request #8163 from swordqiu/hotfix/qj-oidc-auth-response-user-info
fix: oidc response user's info
2020-09-30 12:11:47 +08:00
yunion-ci-robot
906909c0ac Merge pull request #8165 from swordqiu/hotfix/qj-revert-scoped-resource-filter-by-owner
fix: revert filter-by-owner changes of scoped resource
2020-09-30 12:07:51 +08:00
Qiu Jian
be4a76b253 fix: oidc response user's info 2020-09-30 11:54:57 +08:00
Qiu Jian
4e4ea5e6b5 fix: revert filter-by-owner changes of scoped resource 2020-09-30 11:32:06 +08:00
yunion-ci-robot
7b632e0105 Merge pull request #8159 from tb365/bugfix/tb-bugfix-092901
aliyun public elb region fix
2020-09-29 23:28:50 +08:00
yunion-ci-robot
47b2ae9435 Merge pull request #8151 from swordqiu/hotfix/qj-mcclient-readme-sample
add mcclient sample
2020-09-29 20:22:33 +08:00
yunion-ci-robot
fd95290d55 Merge pull request #8145 from lvyangyang/bugfix/public_domain_name_validate
fix:forbid top level public domain name
2020-09-29 20:19:09 +08:00
TangBin
44e9cf0491 aliyun public elb region fix 2020-09-29 20:01:55 +08:00
yunion-ci-robot
8fcc4f12f3 Merge pull request #8076 from zhaoxiangchun/bugfix/zxc-commonalert
bugfix:commonalert
2020-09-29 19:17:34 +08:00
Zhang Dongliang
0b3afa9ebe multi-arch 的镜像使用使用支持 arm64 2020-09-29 19:15:17 +08:00
Zexi Li
c0eb02fb1c Merge pull request #8154 from tb365/bugfix/tb-bugfix-092901
aliyun public elb brand fix
2020-09-29 18:19:25 +08:00
zhaoxiangchun
1c7deaf7b6 bugfix commalert 3.4
1.后端先隐藏rds,redis,oss等相关信息
2.报警通知中规则描述增加单位信息
3.调整优化建议规则相关逻辑
2020-09-29 18:07:59 +08:00
TangBin
d71a1f8670 aliyun public elb brand fix 2020-09-29 16:18:46 +08:00
Zhang Dongliang
65e3900ea4 multi-arch 的镜像使用使用支持 arm64 2020-09-29 14:37:25 +08:00
Qiu Jian
a4bedc7e2e add mcclient sample 2020-09-29 14:24:23 +08:00
yunion-ci-robot
ccb174bd2f Merge pull request #8149 from ioito/hotfix/qx-dns-record-list
fix: allow domain admin view shared dns zone records
2020-09-29 12:23:34 +08:00
yunion-ci-robot
827ba932f1 Merge pull request #8146 from ioito/hotfix/qx-dns-zone-cache-status
fix: avoid sync dns zone cache status is init
2020-09-29 12:20:33 +08:00
Qu Xuan
d45d48806b fix: allow domain admin view shared dns zone records 2020-09-29 11:19:49 +08:00
lvyangyang
4435255f44 fix:forbid top level public domain name 2020-09-29 11:02:39 +08:00
yunion-ci-robot
341ad0c19f Merge pull request #8101 from rainzm/cloudaccount/fix1
fix(region): set ownerId as userCred when can't FetchOwnerId
2020-09-29 10:41:39 +08:00
Qu Xuan
9d76c3e029 fix: avoid sync dns zone cache status is init 2020-09-29 10:38:18 +08:00
yunion-ci-robot
7be60e3314 Merge pull request #8143 from zexi/hotfix/k8s-fed-rolebinding-joint
mcclient modules: fix k8s fed rolebinding joint wrong resource manager
2020-09-29 10:35:36 +08:00
Zexi Li
c7e8287c67 mcclient modules: fix k8s fed rolebinding joint wrong resource manager 2020-09-29 08:25:48 +08:00
yunion-ci-robot
22013a0f36 Merge pull request #8141 from swordqiu/hotfix/qj-filter-storage-by-host-schedtag
fix: filter storages by host schedtag
2020-09-29 01:20:35 +08:00
Qiu Jian
69561b40f5 fix: filter storages by host schedtag 2020-09-29 00:14:06 +08:00
zhaoxiangchun
342706eb74 Merge branch 'master' of https://github.com/yunionio/onecloud into bugfix/zxc-commonalert 2020-09-28 19:05:14 +08:00
yunion-ci-robot
586ed7a4fe Merge pull request #8139 from zhaoxiangchun/bugfix/zxc-esxi-vm-mon
bugfix :esxi 多机器环境下拉取监控超时
2020-09-28 18:27:33 +08:00
zhaoxiangchun
dd6167a1a4 Merge branch 'master' of https://github.com/yunionio/onecloud into bugfix/zxc-commonalert 2020-09-28 18:17:26 +08:00
zhaoxiangchun
6154f46a64 bugfix :esxi 多机器环境下拉取监控超时
1.简化mo.virtualMachine 实体中的属性
2.批量获取cloudprovider下所有的虚拟机的监控信息
2020-09-28 18:07:22 +08:00
Zexi Li
0d6c825ee8 Merge pull request #8137 from zexi/hotfix/host-spec-model
region: host specs replace space char to '_'
2020-09-28 17:46:51 +08:00
Zexi Li
eb093a3459 region: host specs replace space char to '_' 2020-09-28 17:37:18 +08:00
Zexi Li
ed148ce20e Merge pull request #8135 from zexi/hotfix/spec-query-escape
specs: fix specKey url not escape
2020-09-28 17:01:40 +08:00
Zexi Li
bf682f5659 specs: fix specKey url not escape 2020-09-28 16:50:42 +08:00
yunion-ci-robot
459421efb5 Merge pull request #8133 from rainzm/scheduler/fix/instance_group
fix(scheduler): filter InstanceGroup whose enabled is false
2020-09-28 16:40:35 +08:00
yunion-ci-robot
bf90c7900d Merge pull request #8123 from rainzm/notifyclient/fix/template_cache_lang
fix: suffix template cache key
2020-09-28 16:30:33 +08:00
yunion-ci-robot
369dd17ff2 Merge pull request #8086 from lvyangyang/dns_recordset_fix
fix:/dnsrecordset 增加CNAME检查,dnsrecord update的重复检查
2020-09-28 16:28:34 +08:00
Zexi Li
f2b2a13ac0 Merge pull request #8129 from tb365/bugfix/tb-bugfix-092801
aliyun create public lb fix
2020-09-28 16:24:16 +08:00
Rain
ca58fb8d21 fix(scheduler): filter InstanceGroup whose enabled is false 2020-09-28 15:54:12 +08:00
TangBin
2de610a3a6 aliyun create public lb fix 2020-09-28 11:58:54 +08:00
yunion-ci-robot
b4c58ed9a1 Merge pull request #8121 from zexi/hotfix/spec-resource-include-details
region: fix query object by spec not include details
2020-09-27 22:10:37 +08:00
rainzm
5f10a9a39c fix: suffix template cache key 2020-09-27 21:07:11 +08:00
yunion-ci-robot
87fc96e01a Merge pull request #8116 from wanyaoqi/bugfix/wyq/host-storage
bugfix: nfs storage umount on detach
2020-09-27 21:03:36 +08:00
Zexi Li
88514a9fc2 region: fix query object by spec not include details 2020-09-27 20:46:56 +08:00
lvyangyang
ed99a69811 fix:/dnsrecordset重复检查,dnszonevpc数量 2020-09-27 20:21:54 +08:00
yunion-ci-robot
4617602e54 Merge pull request #8114 from swordqiu/hotfix/qj-filter-by-host-schedtag-id
fix: filter cloudprovider/network by host-schedtag-id
2020-09-27 19:56:37 +08:00
wanyaoqi
4ec1727d72 increase rbd check timeout 2020-09-27 18:30:53 +08:00
wanyaoqi
24eaf51210 umount nfs on detach storage 2020-09-27 18:30:17 +08:00
Qiu Jian
23a18a81f4 fix: filter cloudprovider/network by host-schedtag-id 2020-09-27 17:58:25 +08:00
Qu Xuan
ef3d74f4ea fix: 支持公有云域过滤操作日志 2020-09-27 16:53:02 +08:00
yunion-ci-robot
d7585cfdfe Merge pull request #8110 from ioito/hotfix/qx-dns-zonecache-owner
fix: dns zone cache owner info
2020-09-27 16:51:34 +08:00
yunion-ci-robot
41b028f047 Merge pull request #8087 from tb365/bugfix/tb-bugfix-092401
Bugfix/tb bugfix 092401
2020-09-27 15:09:32 +08:00
Zexi Li
d9ef31e424 Merge pull request #8084 from ioito/hotfix/qx-openstack-zone-emulate
fix: openstack zone not emulated
2020-09-27 14:46:49 +08:00
yunion-ci-robot
dbff0300b0 Merge pull request #8109 from swordqiu/hotfix/qj-vpc-schedtag-set-user-metadata
fix: add climc support vpc/schedtag user metadata
2020-09-27 14:46:32 +08:00
Zexi Li
e1793b4a7f Merge pull request #8088 from wanyaoqi/bugfix/wyq/set-stagefail-on-cleanfail
bugfix: set stagefail on clean  snapshot fail
2020-09-27 14:45:51 +08:00
yunion-ci-robot
be109073e6 Merge pull request #8099 from rainzm/esxi/fix5
Fix of Syncing Schedtag
2020-09-27 14:45:33 +08:00
yunion-ci-robot
a7330d1355 Merge pull request #8107 from ioito/hotfix/qx-disk-create-prefer-manager
fix: allow create disk prefer manager
2020-09-27 14:44:35 +08:00
Qu Xuan
a14b4e590e fix: dns zone cache owner info 2020-09-27 14:29:16 +08:00
Qu Xuan
74cb19cd88 fix: allow create disk prefer manager 2020-09-27 14:18:21 +08:00
Qiu Jian
bd122a01fd fix: add climc support vpc/schedtag user metadata 2020-09-27 12:00:23 +08:00
yunion-ci-robot
9c1c21e875 Merge pull request #8059 from ioito/hotfix/qx-batch-create-guest
fix: avoid serial vm creation
2020-09-26 23:18:33 +08:00
yunion-ci-robot
66c5fd4971 Merge pull request #8104 from zexi/hotfix/schedtag-remove-resoruce
region: fix schedtag joint resource master/slave field wrong order
2020-09-26 08:48:31 +08:00
Zexi Li
e3b25201ad Merge pull request #8095 from ioito/hotfix/qx-avoid-clean-storage
fix: avoid purge storages
2020-09-25 20:54:37 +08:00
Zexi Li
0113ec40c2 region: fix schedtag joint resource master/slave field wrong order 2020-09-25 20:49:05 +08:00
rainzm
dbb1d80729 fix(region): set ownerId as userCred when can't FetchOwnerId 2020-09-25 20:33:44 +08:00
rainzm
fc9b61c2a9 fix:(region) correct syncSchedtags
1.把extTagName存到metadata里面,这样就算修改tag的name,也能在metadata里面拿到。
2.已经创建的schedtag就不要重复创建了。
2020-09-25 20:26:46 +08:00
rainzm
370e7723ba fix(esxi): Guarantee the uniqueness of the schedtag for esxi host
Replace 'cluster:<clustername>' with
'cluster:/<cloudprovidername>/<dcname>/<clustername>'.
2020-09-25 20:26:46 +08:00
Qu Xuan
a8996ec9d1 fix: avoid purge storages 2020-09-25 19:14:59 +08:00
wanyaoqi
d13cc99495 set stagefail on clean fail 2020-09-25 18:38:54 +08:00
Zexi Li
96ecfde984 Merge pull request #8075 from ioito/upstream/qx-cross-domain-resource-sync
fix: allow cross doamin resource sync
2020-09-25 16:56:23 +08:00
ioito
a31339f687 fix: openstack zone not emulated 2020-09-25 16:14:12 +08:00
ioito
eaef5a7575 fix: allow cross doamin resource sync 2020-09-25 15:48:54 +08:00
Zexi Li
a88e2f8573 Merge pull request #8077 from ioito/hotfix/qx-account-delete
fix: avoid account delete failed
2020-09-25 12:11:32 +08:00
Zexi Li
f7bb7be6cb Merge pull request #8017 from rainzm/esix/sta
Statistics AutualCapacityUsed for Storage
2020-09-25 12:08:25 +08:00
Zexi Li
e97a4b9e34 Merge pull request #8080 from zexi/hotfix/climc-k8s-sync
climc: add k8s fed resource sync action
2020-09-25 12:06:07 +08:00
TangBin
1d044f7126 huawei client request add throttling control 2020-09-25 12:05:59 +08:00
Zexi Li
594d2f434a Merge pull request #8002 from lvyangyang/openstack_vm_deleted_status
fix: disk delete error
2020-09-25 11:14:51 +08:00
yunion-ci-robot
aaab5c1bb5 Merge pull request #8054 from rainzm/esxi/cluster
Sync cluster for ESXi Host
2020-09-25 11:04:26 +08:00
ioito
8c0776c2ae fix: avoid account delete failed 2020-09-25 10:51:44 +08:00
zhaoxiangchun
6037c84a58 bugfix:commonalert
1.suggestrule cli 调整
2020-09-25 10:41:45 +08:00
rainzm
390cc11e7a feat(region): sync capacityUsed for storage after deploying or deleting guest 2020-09-25 10:33:45 +08:00
rainzm
0bd75b7bc0 feat(region): sync schedtags when syncing host 2020-09-25 10:28:57 +08:00
Zexi Li
1569422ed5 Merge pull request #8056 from ioito/hotfix/qx-google-attach-disk
fix: 仅在可用区故障时可强制挂载磁盘
2020-09-25 01:40:44 +08:00
Zexi Li
df08ea35fc Merge pull request #8013 from lvyangyang/error-info-fix
fix: dns 错误信息补全
2020-09-25 01:39:47 +08:00
Zexi Li
6830851925 Merge pull request #8068 from ioito/hotfix/qx-openstack-keypair
fix: avoid compare err with cloudprovider.ErrNotFound direct
2020-09-25 01:38:15 +08:00
Zexi Li
7561938c1c Merge pull request #8063 from rainzm/cloudaccount/fix/preparenet
fix(region): fetch correct ownerId in PerformPrepareNets
2020-09-24 21:21:37 +08:00
Zexi Li
09f742438f Merge pull request #8071 from ioito/hotfix/qx-sql-err
fix: sql err
2020-09-24 21:19:08 +08:00
ioito
1b91060323 fix: sql err 2020-09-24 20:20:14 +08:00
ioito
cb919f2880 fix: avoid compare err with cloudprovider.ErrNotFound direct 2020-09-24 20:13:44 +08:00
TangBin
d8832a1670 huawei elb get params log 2020-09-24 20:10:40 +08:00
rainzm
0bda9e7514 feat(region): sync CapacityUsed for Storage 2020-09-24 19:55:24 +08:00
rainzm
fd14e7b6c8 feat: add GetCapacityUsedMB for ICloudStorage 2020-09-24 19:55:24 +08:00
rainzm
56d24dfa99 refactor(region): replace 'ActualCapacity' with 'ActualCapacityUsed' 2020-09-24 19:55:24 +08:00
TangBin
35d1553362 qcloud elb create listener fix 2020-09-24 18:31:21 +08:00
Zexi Li
037fa814ff climc: add k8s fed resource sync action 2020-09-24 18:12:21 +08:00
rainzm
60490c75de fix(region): fetch correct ownerId in PerformPrepareNets 2020-09-24 17:22:22 +08:00
TangBin
faeb294d56 huawei snapshot delete fix 2020-09-24 17:02:24 +08:00
ioito
f7010a6d7b fix: avoid serial vm creation 2020-09-24 16:39:56 +08:00
ioito
0a4bd281de fix: 仅在可用区故障时可强制挂载磁盘 2020-09-24 15:31:54 +08:00
rainzm
1cb286080a feat(esxi): add GetSchedtags implementation for esxi.SHost 2020-09-24 15:18:57 +08:00
rainzm
c9039f9478 feat: add GetSchedtags for ICloudHost 2020-09-24 15:17:36 +08:00
yunion-ci-robot
9a7eae6e03 Merge pull request #8049 from zexi/hotfix/climc-k8s-opt
climc: refactor k8s sub command
2020-09-24 10:58:17 +08:00
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
yunion-ci-robot
20009e74bc Merge pull request #8051 from zhaoxiangchun/bugfix/zxc-commonalert
commonalert bugfix 3.4
2020-09-24 10:24:19 +08:00
lvyangyang
13823d41e1 wait deleted 2020-09-24 09:54:55 +08:00
Zexi Li
732a0a39f9 Merge pull request #8029 from ioito/hotfix/qx-account-delete
fix: avoid account delete failed
2020-09-23 23:51:18 +08:00
Zexi Li
f518d8e702 Merge pull request #8048 from swordqiu/hotfix/qj-scope-resource-filter-by-owner
fix: scope resource filter by owner
2020-09-23 23:49:17 +08:00
Zexi Li
e2604d5311 climc: refactor k8s sub command 2020-09-23 23:43:12 +08:00
yunion-ci-robot
b42280f4bf Merge pull request #8031 from wanyaoqi/feature/wyq/support-mutli-params
apigateway: support mutli params
2020-09-23 23:13:23 +08:00
zhaoxiangchun
475c81c58c commonalert bugfix 3.4 2020-09-23 21:41:13 +08:00
yunion-ci-robot
d3eb0666c6 Merge pull request #8024 from swordqiu/feature/qj-apigateway-userinfo-include-project-metadata
fix: apigateway userinfo includes project metadata
2020-09-23 21:22:22 +08:00
yunion-ci-robot
28a5043d6d Merge pull request #8014 from wanyaoqi/feature/wyq/support-search-ip
feature: search eip
2020-09-23 21:21: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
43d45a1b4d fix(region): split brand as 'YunionCloud' and '云联壹云' when notify server event 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
Zexi Li
08475105ae Merge pull request #8034 from swordqiu/hotfix/qj-role-assignment-filter-group-user
fix: role assignment filter by users not working for effective users in groups
2020-09-23 21:16:04 +08:00
Zexi Li
d8b21ef86d Merge pull request #8011 from ioito/hotfix/qx-cloud-user-sync
fix: 避免添加新账号后长时间未同步iam用户
2020-09-23 21:10:23 +08:00
yunion-ci-robot
92259b8895 Merge pull request #8030 from yousong/feature/yousong-i18n-monitor
Feature/yousong i18n monitor
2020-09-23 21:08:20 +08:00
yunion-ci-robot
365f92160a Merge pull request #8044 from lvyangyang/dnszone_zone_cache_fail
fix: error 值重叠
2020-09-23 21:05:18 +08:00
ioito
8be3cfd223 fix: avoid account delete failed 2020-09-23 20:58:07 +08:00
yunion-ci-robot
96ed797869 Merge pull request #8036 from rainzm/scalinggroup/panicfix
fix(region): add GetSlaveFieldName for ScalingGroupGuestManager
2020-09-23 20:51:31 +08:00
yunion-ci-robot
c32811920f Merge pull request #8026 from ioito/hotfix/qx-qcloud-network-interface
fix: 避免腾讯云同步虚拟机ip异常
2020-09-23 20:50:19 +08:00
yunion-ci-robot
bcb1d143a3 Merge pull request #8041 from zhaoxiangchun/bugfix/zxc-tk-vmware-master
bugfix:esxi collect metric
2020-09-23 20:42:21 +08:00
yunion-ci-robot
44482df710 Merge pull request #8039 from zhasm/hotfix/rex-fix-esxi-agent-dockerfile-typo
fix esxi-agent dockerfile typo
2020-09-23 20:41:21 +08:00
lvyangyang
9b54d58a3d fix: error 值重叠 2020-09-23 20:05:30 +08:00
zhaoxiangchun
418540c79d bugfix:esxi collect metric 2020-09-23 19:45:46 +08:00
Zhang Dongliang
5db1fa686e fix esxi-agent dockerfile typo 2020-09-23 18:55:24 +08:00
Yousong Zhou
0ecdb5cd96 locales: monitor: add translations 2020-09-23 18:42:53 +08:00
Yousong Zhou
50eafd957d monitor: error fmt 2020-09-23 18:42:53 +08:00
rainzm
36f43fba93 fix(region): add GetSlaveFieldName for ScalingGroupGuest 2020-09-23 18:36:57 +08:00
Qiu Jian
6cbd811810 fix: role assignment filter by users not working for effective users in
groups
2020-09-23 17:53:58 +08:00
ioito
1466830595 fix: 避免腾讯云同步虚拟机ip异常 2020-09-23 17:37:35 +08:00
yunion-ci-robot
02446a2659 Merge pull request #8021 from yousong/bugfix/yousong-eip-autoalloc
elasticips: fix calling FilterByOwner
2020-09-23 17:27:18 +08:00
yunion-ci-robot
5480ecd4aa Merge pull request #8019 from zhasm/feature/make-with-arch
make with ARCH argument
2020-09-23 16:39:17 +08:00
Yousong Zhou
63c4818b8a elasticips: error when we have no usable eip network 2020-09-23 16:21:43 +08:00
Qiu Jian
06c1de7c1d fix: apigateway userinfo includes project metadata 2020-09-23 16:03:14 +08:00
Zhang Dongliang
bc6ac93cef make with ARCH argument 2020-09-23 15:49:37 +08:00
Yousong Zhou
382f628287 elasticips: fix calling FilterByOwner 2020-09-23 15:48:56 +08:00
lvyangyang
8f7a59894a fix: dns 错误信息补全 2020-09-23 15:32:25 +08:00
wanyaoqi
6d6e318134 support search ip 2020-09-23 14:24:50 +08:00
ioito
fadb52044c fix: 避免添加新账号后长时间未同步iam用户 2020-09-23 10:32:54 +08:00
yunion-ci-robot
651e12a2de Merge pull request #8009 from ioito/optimized/qx-clouduser-login-info
fix: 优化提取显示主账号名
2020-09-23 10:32:21 +08:00
ioito
9240536857 fix: 优化提取显示主账号名 2020-09-22 21:23:05 +08:00
yunion-ci-robot
9c53c7bf29 Merge pull request #8003 from tb365/bugfix/tb-bugfix-092201
regional network filter bugfix
2020-09-22 21:18:23 +08:00
yunion-ci-robot
12ce2ded4a Merge pull request #7990 from ioito/hotfix/qx-google-not-found
fix: avoid not reture cloudprovider.ErrNotFound error
2020-09-22 21:13:25 +08:00
yunion-ci-robot
ce37cef67a Merge pull request #7998 from ioito/hotfix/qx-eip-create-optimized
optimized: create eip params
2020-09-22 21:10:20 +08:00
rainzm
0879278714 fix(notify): modify name of notification to avoid duplication 2020-09-22 20:17:39 +08:00
rainzm
e47f8a8960 fix(notify): clean verifyNote when mark verified 2020-09-22 20:13:12 +08:00
rainzm
c522b45242 fix(notify): return correct value when sortContactType 2020-09-22 20:13:11 +08:00
TangBin
c8c022733c regional network filter bugfix 2020-09-22 19:58:49 +08:00
yunion-ci-robot
6ccfdfaf74 Merge pull request #7986 from zhaoxiangchun/bugfix/zxc-commonalert
common alert bugfix/3.4
2020-09-22 14:38:19 +08:00
Qu Xuan
17cf23b804 optimized: create eip params 2020-09-22 14:33:43 +08:00
yunion-ci-robot
51a4d9c255 Merge pull request #7991 from zhaoxiangchun/bugfix/zxc-tk-vmware-master
bugfix: collect esxi metric timout
2020-09-22 14:16:22 +08:00
yunion-ci-robot
258c100b5c Merge pull request #7994 from tb365/bugfix/tb-bugfix-0922
ctyun sync secgroup fix & cloudaccount delete fix
2020-09-22 14:07:16 +08:00
TangBin
95e058d062 ctyun sync secgroup fix & cloudaccount delete fix 2020-09-22 13:50:13 +08:00
zhaoxiangchun
f58bca93db common alert bugfix/3.4 2020-09-22 11:36:17 +08:00
zhaoxiangchun
ec3b5c09bd bugfix: collect esxi metric timout
1.增加批量获取esxi中metric的接口
2020-09-22 11:08:52 +08:00
Qu Xuan
37b87d1a50 fix: avoid not reture cloudprovider.ErrNotFound error 2020-09-22 10:41:32 +08:00
yunion-ci-robot
b398456ee6 Merge pull request #7916 from swordqiu/hotfix/qj-keystone-skip-nil-extra-fields
fix: keystone initialize data skip nil extra fields
2020-09-21 19:52:14 +08:00
yunion-ci-robot
378af3b7fa Merge pull request #7918 from swordqiu/hotfix/qj-lock-unlock-cleanup-20200915
fix: lock/unlock cleanup
2020-09-21 19:48:12 +08:00
yunion-ci-robot
cf1b5fb675 Merge pull request #7988 from wanyaoqi/bugfix/wyq/fix=host-deployer-base-image
bugfix: fix host deployer base image
2020-09-21 18:33:16 +08:00
wanyaoqi
1fc5bac7fa fix host deployer base image 2020-09-21 17:28:50 +08:00
yunion-ci-robot
ab388287aa Merge pull request #7980 from yousong/bugfix/yousong-opslog
Bugfix/yousong actionlog
2020-09-21 16:39:11 +08:00
Yousong Zhou
202ded8c9f logger: actionlog: add GetI18N 2020-09-21 15:20:46 +08:00
Yousong Zhou
fb28d96d5a logger: actionlog: remove redundant comments 2020-09-21 15:20:46 +08:00
Yousong Zhou
9fd0f3088f db: IModel: add GetI18N() method 2020-09-21 15:20:46 +08:00
Yousong Zhou
ca8fcb3364 logclient: i18n: en for const 2020-09-21 15:20:46 +08:00
Yousong Zhou
08ef1728d6 logclient: i18n: cn for const 2020-09-21 15:20:46 +08:00
Yousong Zhou
31cea0a736 logclient: convert const val to use latin chars 2020-09-21 15:20:46 +08:00
Yousong Zhou
7f90da555e logclient: move ws list to separate file 2020-09-21 15:20:45 +08:00
Yousong Zhou
ee7b9e2877 logclient: separate lines 2020-09-21 15:20:45 +08:00
Yousong Zhou
642a90146e opslog: move const to separate file 2020-09-21 15:20:45 +08:00
Yousong Zhou
449c96ad5d i18n: add ITable 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
Yousong Zhou
b075447f95 locales: update translation 2020-09-21 10:12:57 +08:00
Yousong Zhou
152eaa8c50 treewide: avoid variable fmt str 2020-09-21 10:12:57 +08:00
Yousong Zhou
ad52aae79a treewide: fmt error 2020-09-21 10:12:57 +08:00
Yousong Zhou
d21c262c14 httputils: preserve format val types 2020-09-21 10:12:57 +08:00
yunion-ci-robot
e805d0be45 Merge pull request #7975 from swordqiu/hotfix/qj-dell-idrac-jnlp-revisit
fix: get jnlp xml from dell idrac6,7,9
2020-09-21 10:12:18 +08:00
yunion-ci-robot
75ae3f5c87 Merge pull request #7978 from swordqiu/hotfix/qj-user-reset-password
fix: reset user password without check
2020-09-21 10:11:13 +08:00
yunion-ci-robot
a109f68834 Merge pull request #7984 from swordqiu/hotfix/qj-scheduler-token-policy-support
fix: scheduler token not support policy
2020-09-21 10:09:13 +08:00
yunion-ci-robot
57c1b7ead1 Merge pull request #7982 from yousong/bugfix/yousong-i18n
locales: update translations
2020-09-20 00:22:15 +08:00
Yousong Zhou
69c7af840a locales: update translations 2020-09-19 23:41:42 +08:00
Qiu Jian
c516525dbb fix: scheduler token not support policy 2020-09-19 23:39:54 +08:00
Qiu Jian
b5f01171dd fix: reset user password without check 2020-09-19 00:48:53 +08:00
Qiu Jian
eea88ffbe6 fix: get jnlp xml from dell idrac6,7,9 2020-09-18 23:45:24 +08:00
yunion-ci-robot
d8bc3b35f5 Merge pull request #7970 from swordqiu/hotfix/qj-esxilci-vmrc-webmks-cmds
fix: add esxicli vmrc/webmks command
2020-09-18 21:06:40 +08:00
Zexi Li
076ec479cd Merge pull request #7966 from tb365/bugfix/tb-ctyun-0916
ctyun add region cn-bj1
2020-09-18 21:04:42 +08:00
yunion-ci-robot
d5daa20d9a Merge pull request #7973 from rainzm/notify/fix5
fix(notify): allow normal user create their receiver
2020-09-18 21:02:43 +08:00
rainzm
5bfc3128c3 fix(notify): allow normal user create their receiver 2020-09-18 17:14:21 +08:00
yunion-ci-robot
3583cb2763 Merge pull request #7927 from wanyaoqi/feature/wyq/host-sync-storage-size
feature: host sync storage actual size
2020-09-18 16:53:48 +08:00
Qiu Jian
5a8ee9d91c fix: add esxicli vmrc/webmks command 2020-09-18 14:35:33 +08:00
TangBin
4a36f82f73 ctyun add region cn-bj1 2020-09-18 14:15:54 +08:00
Zexi Li
c114a85d18 Merge pull request #7961 from zexi/hotfix/network-delete-schedtag
region: fix network schedtag not cleanup when network deleted
2020-09-18 10:43:00 +08:00
Zexi Li
b859f3ba3e region: fix network schedtag not cleanup when network deleted 2020-09-18 10:31:26 +08:00
wanyaoqi
f4c1a3ea59 support mutli params 2020-09-17 23:18:12 +08:00
Zexi Li
6e288c20f4 Merge pull request #7959 from zexi/feature/k8s-federated
climc: add k8s federated resource cmd
2020-09-17 15:39:22 +08:00
yunion-ci-robot
aba008bc75 Merge pull request #7954 from zexi/hotfix/joint-model-get
cloudcommon: get joint model should aware fieldname
2020-09-16 22:07:14 +08:00
yunion-ci-robot
0800ee7b90 Merge pull request #7941 from zhaoxiangchun/feature/zxc-suggest-3.4
suggest rule modify:
2020-09-16 21:42:20 +08:00
Zexi Li
3f80593611 Merge pull request #7953 from wanyaoqi/bugfix/wyq/host-cach-image
bugfix: fix set host image cache properties
2020-09-16 21:37:55 +08:00
Zexi Li
ffbbbb18ee Merge pull request #7912 from ioito/hotfix/qx-project-auto-rename
fix: 支持自动根据云上项目修改本地项目名称
2020-09-16 21:34:56 +08:00
Zexi Li
742e455717 climc: add k8s federated resource cmd 2020-09-16 21:30:43 +08:00
yunion-ci-robot
1bce1bab64 Merge pull request #7945 from wanyaoqi/bugfix/wyq/scheduler-isolated-device-fix
scheduler: fix fillter isolated device
2020-09-16 21:04:52 +08:00
yunion-ci-robot
40893c09a0 Merge pull request #7943 from lvyangyang/dns-duprecord
dup record process
2020-09-16 20:59:09 +08:00
yunion-ci-robot
9ecebc1671 Merge pull request #7948 from wanyaoqi/bugfix/wyq/update-image-status
glance: fix update image status after save failed
2020-09-16 20:56:11 +08:00
wanyaoqi
c6eecebed0 fix set host image cache properties 2020-09-16 20:50:12 +08:00
Zexi Li
1af48dc73d cloudcommon: get joint model should aware fieldname 2020-09-16 20:49:51 +08:00
Qu Xuan
466d961355 fix: feature: vpc peering connection support 2020-09-16 19:41:01 +08:00
wanyaoqi
686b639979 fix update image status after save failed 2020-09-16 19:00:31 +08:00
wanyaoqi
1f51af3a61 scheduler: fix fillter isolated device 2020-09-16 18:30:38 +08:00
lvyangyang
ff4bde696c dup record process 2020-09-16 18:13:33 +08:00
wanyaoqi
50a85b73ee host sync storage size 2020-09-16 17:53:32 +08:00
zhaoxiangchun
9a2267230d suggest rule modify:
1.规则由后端初始化,默认禁用
2.规则period默认为12h,扫描范围timeFrom默认为14d
3.增加notify相关的模版文件
4.更改消息重复发送的问题
2020-09-16 12:08:03 +08:00
Zexi Li
5e0a26eaa2 Merge pull request #7938 from zhaoxiangchun/bugfix/zxc-esxi-vm-mon
bugfix vmware monitor
2020-09-16 11:34:56 +08:00
Zexi Li
1185082f3b Merge pull request #7935 from swordqiu/hotfix/qj-disable-qcloud-verifyAppId
fix: disable qcloud verifyAppId temporarily
2020-09-16 11:33:48 +08:00
Zexi Li
240913649b Merge pull request #7909 from ioito/hotfix/qx-qcloud-doc
fix: add doc for qcloud
2020-09-16 11:33:03 +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
Zexi Li
44a2cf1c16 Merge pull request #7925 from ioito/hotfix/qx-cloudgroup-dup-name
fix: 避免名称重复
2020-09-16 11:31:47 +08:00
Zexi Li
5d929e3a61 Merge pull request #7931 from swordqiu/hotfix/qj-omit-empty-fail-reason
fix: omit empty fail reason
2020-09-16 11:31:11 +08:00
yunion-ci-robot
eb8d62e6f3 Merge pull request #7929 from swordqiu/hotfix/qj-enable-generate-name-revisited
fix: enable generate name caused compability issue
2020-09-16 11:30:09 +08:00
Zexi Li
e689c561a4 Merge pull request #7921 from ioito/hotfix/qx-bucket-object-count
fix: bucket object cnt fix
2020-09-16 11:29:53 +08:00
zhaoxiangchun
0842b6f5f7 bugfix vmware monitor 2020-09-16 10:25:04 +08:00
Qiu Jian
01fe002dd7 fix: disable qcloud verifyAppId temporarily 2020-09-16 02:17:34 +08:00
Qiu Jian
b80fa64b6a fix: keystone initialize data skip nil extra fields 2020-09-16 01:58:52 +08:00
Qiu Jian
5a91ae8863 fix: omit empty fail reason 2020-09-16 01:53:29 +08:00
Qiu Jian
1a3acbd056 fix: enable generate name caused compability issue 2020-09-16 01:32:03 +08:00
Qu Xuan
1b3d3310dc fix: 避免名称重复 2020-09-15 19:27:03 +08:00
Qu Xuan
cbd08138b4 fix: bucket object cnt fix 2020-09-15 17:39:29 +08:00
Qiu Jian
41f932e381 fix: lock/unlock cleanup 2020-09-15 12:22:38 +08:00
yunion-ci-robot
e197ff815a Merge pull request #7915 from zexi/hotfix/joint-model-list
cloudcommon: joint model list should add field_name into query
2020-09-15 10:27:12 +08:00
yunion-ci-robot
bf0434804b Merge pull request #7905 from wanyaoqi/bugfix/wyq/webconsole-zombie-killer
webconsole: fix defer order to release zombie process
2020-09-15 10:26:10 +08:00
Zexi Li
a47553a7a2 cloudcommon: joint model list should add field_name into query 2020-09-14 21:32:31 +08:00
Qu Xuan
e86509a884 fix: 支持自动根据云上项目修改本地项目名称 2020-09-14 21:11:08 +08:00
rainzm
77bbb2cfd0 feat(notify): sort the returned contact type array 2020-09-14 20:33:42 +08:00
rainzm
acf1f12790 feat: notify user when failing to change config 2020-09-14 20:31:22 +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
Qu Xuan
3c29402c10 fix: add doc for qcloud 2020-09-14 19:25:20 +08:00
wanyaoqi
4f8b80fcc1 webconsole: fix defer order to release zombie process 2020-09-14 18:19:30 +08:00
Zexi Li
4705eba9b3 Merge pull request #7902 from rainzm/cloudaccount/opt_fix
fix(esxi): return when host.Vm is empty
2020-09-14 16:27:59 +08:00
rainzm
08041d55d1 fix(esxi): return when host.Vm is empty 2020-09-14 16:24:31 +08:00
rainzm
ac438282a5 feat(region): divide notify templates into Chinese and English versions
Chinese version: content@cn, title@cn
English version: content@en, title@en
2020-09-14 15:30:20 +08:00
rainzm
654c517240 feat(region): replace 虚拟机 with 主机 or 云主机 2020-09-14 15:16:03 +08:00
yunion-ci-robot
ec769082ea Merge pull request #7899 from ioito/hotfix/qx-qcloud-cos-proxy
fix: cos use proxy
2020-09-14 14:01:08 +08:00
Zexi Li
58d2336a36 Merge pull request #7895 from wanyaoqi/bugfix/wyq/fix-guestdisk-renew
disk: check disk is need renew on guest set renew
2020-09-14 13:01:56 +08:00
Zexi Li
bebf3392d3 Merge pull request #7893 from swordqiu/hotfix/qj-host-assignable-revisited
fix: check host sharing status when considering whether a host is ass…
2020-09-14 13:01:45 +08:00
Zexi Li
2b90620ce1 Merge pull request #7887 from yousong/bugfix/yousong-eip-autoalloc
elasticips: filter by owner when doing auto allocation
2020-09-14 13:00:51 +08:00
Qu Xuan
bb7ad07c20 fix: cos use proxy 2020-09-14 13:00:02 +08:00
wanyaoqi
3ac63f537e disk: check disk is need renew on guest set renew 2020-09-14 12:05:58 +08:00
yunion-ci-robot
bb8ceb4451 Merge pull request #7890 from swordqiu/hotfix/qj-disable-webkms-for-esxi-older-than-6.5
fix: disable webkms for esxi older than 6.5
2020-09-12 23:55:15 +08:00
Qiu Jian
04f036ce2e fix: check host sharing status when considering whether a host is assignable 2020-09-12 19:21:41 +08:00
yunion-ci-robot
be55e9e8cd Merge pull request #7885 from zexi/hotfix/scheduler-specify-net
scheduler: ignore network type when specified
2020-09-12 17:29:01 +08:00
Yousong Zhou
5afbe831d9 elasticips: filter by owner when doing auto allocation 2020-09-12 17:10:19 +08:00
Qiu Jian
239797e33c fix: disable webkms for esxi older than 6.5 2020-09-12 17:05:49 +08:00
Zexi Li
e129d580bd scheduler: ignore network type when specified 2020-09-12 15:56:40 +08:00
Zexi Li
33a5422aed Merge pull request #7883 from rainzm/schedulertask/name
feat(region): change fomat 'id' to 'name(id)' in scheduledtasks' log
2020-09-11 21:06:31 +08:00
yunion-ci-robot
e51e2deaea Merge pull request #7876 from ioito/hotfix/qx-secgroup-optimized
fix: 默认不自动合并安全组
2020-09-11 21:05:58 +08:00
Zexi Li
fee902bb21 Merge pull request #7879 from ioito/hotfix/qx-resource-sync
fix: avoid sync natgateway eip panic
2020-09-11 21:03:31 +08:00
Zexi Li
55358e348e Merge pull request #7870 from rainzm/esxi/workercount
fix(esxiagent): add HostDelayTaskWorkerCount
2020-09-11 20:55:26 +08:00
Zexi Li
15620a9425 Merge pull request #7836 from wanyaoqi/bugfix/wyq/fix-ceph-cache-iso-image
host: fix rbd storage cache iso image
2020-09-11 20:53:54 +08:00
Zexi Li
3c15744895 Merge pull request #7862 from ioito/hotfix/qx-dns-recordset-validate
fix: add dns recordset dns value check
2020-09-11 20:53:16 +08:00
rainzm
33a4f332cb feat(region): change fomat 'id' to 'name(id)' in scheduledtasks' log 2020-09-11 20:34:48 +08:00
Qu Xuan
8e39b7ccb4 fix: 默认不自动合并安全组 2020-09-11 19:21:23 +08:00
Qu Xuan
dab5b6e439 fix: avoid sync natgateway eip panic 2020-09-11 19:16:10 +08:00
rainzm
a0c34a044e fix(esxiagent): add HostDelayTaskWorkerCount
之前,HostDelayWorker 是通过 hostutils.InitWorkerManager 来初始化,
worker的数量依赖于options.HostOptions.DefaultRequestWorkerCount, 因为
这个options没有经过初始化,所以就是0,导致worker count的数量变为1。

现在增加了 HostDelayTaskWorkerCount 来管理这个count,默认值为8。
2020-09-11 17:01:09 +08:00
yunion-ci-robot
6d076cf238 Merge pull request #7859 from ioito/hotfix/qx-migrate-image-data
fix: 平滑迁移数据
2020-09-10 21:37:55 +08:00
yunion-ci-robot
72c5d1f4c4 Merge pull request #7855 from ioito/hotfix/qx-qcloud-vm-keypair
Hotfix/qx qcloud vm keypair
2020-09-10 21:36:54 +08:00
Zexi Li
8ff5bb08b6 Merge pull request #7832 from rainzm/cloudaccount/opt
refactor(region): optimize preparenet of cloudaccount
2020-09-10 21:32:14 +08:00
Qu Xuan
fc8fb8af57 fix: add dns recordset dns value check 2020-09-10 19:07:42 +08:00
Qu Xuan
8284f7b294 fix: 平滑迁移数据 2020-09-10 17:38:32 +08:00
Qu Xuan
a2b9a79065 fix: 腾讯云不支持同时设置秘钥和密码,若设置秘钥,则将密码置空 2020-09-10 17:22:49 +08:00
Qu Xuan
f4ecde37c3 fix: optimized qcloud keypair 2020-09-10 16:30:47 +08:00
rainzm
ed484f4e21 refactor(region): optimize preparenet of cloudaccount
1. 从vcenter中获取host和vm的信息时,只需要获取网络相关的字段就可以了。
2. 每个host的vms,单独启用一个goroutine。
3. 优化了处理vms ip的逻辑,现在的时间复杂度是O(n)。
2020-09-10 15:37:58 +08:00
yunion-ci-robot
8bc444907b Merge pull request #7852 from rainzm/notify/fix4
fix(notify): pull contact for workwx, dingtalk and feishu
2020-09-10 15:18:02 +08:00
yunion-ci-robot
874398d039 Merge pull request #7834 from ioito/hotfix/qx-cachedimage
fix: uniform cachedimage active status
2020-09-10 14:36:02 +08:00
yunion-ci-robot
617407ba22 Merge pull request #7837 from ioito/hotfix/qx-clouduser-logininfo
fix: optimzed clouduser password
2020-09-10 14:33:54 +08:00
rainzm
1517ed79f2 fix(notify): pull contact for workwx, dingtalk and feishu 2020-09-10 14:33:09 +08:00
yunion-ci-robot
9f138b6c2d Merge pull request #7843 from ioito/hotfix/qx-clouduser-opti
fix: optimzed clouduser
2020-09-10 09:49:24 +08:00
yunion-ci-robot
f397a04fdb Merge pull request #7841 from ioito/hotfix/qx-public-zone-create
fix: avoid create public zone failed
2020-09-10 09:47:56 +08:00
yunion-ci-robot
9e97115a4c Merge pull request #7838 from zhaoxiangchun/bugfix/zxc-monitor-alert
commonalert bugfix:
2020-09-10 09:46:54 +08:00
yunion-ci-robot
06db576236 Merge pull request #7831 from swordqiu/hotfix/qj-project-users-recode
fix: recode project-role rpc handle to support group role assignment
2020-09-10 09:44:53 +08:00
yunion-ci-robot
769ef5af83 Merge pull request #7845 from rainzm/esxi/templatefix1
Feat & Fix & Refactor for ESXi
2020-09-10 09:41:57 +08:00
rainzm
3fb175ba7d fix(region): add RequestSyncstatusOnHost for SESXiGuestDriver
esxi 平台 Guest 进行 syncstatus 和其他平台有所区别,Vcenter 可能会更改
 VM 所在的 Host,所以在 Host 上寻找 VM 可能会出现 ErrNotFound。此时,应该
主动去整个 datacenter 中寻找 VM,然后更改 Host,进行同步。
2020-09-09 21:43:29 +08:00
rainzm
5c209fe3dc fix(esxi): fetch templatevm from datacenter before clone vm
这里应该和image_cache那里保持一直,对template的获取应该从datacenter
中获取,而不是host。
2020-09-09 21:33:16 +08:00
rainzm
dcb6db0443 refactor(esxi): replace GetTemplateVMById with FetchTemplateVMById
FetchTemplateVMById 更好,因为它更轻量,更快。
2020-09-09 21:32:49 +08:00
rainzm
14c5e18c22 feat(esxicli): better vm operator
现在,可以通过Datacenter来获取vm,不一定要指定HostIp,
Datacenter和HostIp必须指定一个。
2020-09-09 21:20:13 +08:00
rainzm
0aa9dc6fb7 feat(esxi): support fetchVM form datacenter 2020-09-09 21:20:02 +08:00
rainzm
4d74a97786 refactor(esxi): fetchVms and fetchHardwareInfo
1. fetchHardwareInfo 只有一种error,原因是moVM的某些字段为nil,这种情况下,完全可以打印日志直接返回。
2. fetchVms 现在只返回[]*SVirtualMachine, 进一步的过滤(是不是template)交给调用者。
2020-09-09 20:35:24 +08:00
Qu Xuan
7361da408a fix: optimzed clouduser 2020-09-09 20:11:23 +08:00
Qu Xuan
d9626e3100 fix: avoid create public zone failed 2020-09-09 19:53:56 +08:00
Qiu Jian
332ba04bd1 fix: recode project-role rpc handle to support group role assignment
results by user or project
2020-09-09 18:17:53 +08:00
zhaoxiangchun
a624625520 commonalet bugfix:
1.报警接受人通知渠道调整:由notify中解释发送到对应的channel
2.报警恢复增加对应的evalmatch,保存对应的metricvalue
3.报警记录中增加description相关信息
4.其他代码调整
2020-09-09 18:16:34 +08:00
Qu Xuan
a004470225 fix: optimzed clouduser password 2020-09-09 16:34:07 +08:00
wanyaoqi
9e0ce8722e host: fix rbd storage cache iso image 2020-09-09 15:52:12 +08:00
Qu Xuan
f09bb6682c fix: uniform cachedimage active status 2020-09-09 15:19:46 +08:00
yunion-ci-robot
6ea5995242 Merge pull request #7828 from swordqiu/hotfix/qj-wire-usage-incorrect
fix: wire usage stats incorrect
2020-09-08 20:28:55 +08:00
yunion-ci-robot
791e4ab9b5 Merge pull request #7821 from rainzm/esxi/fix_tem
fix(esxiagent): return image extid not id
2020-09-08 20:24:53 +08:00
yunion-ci-robot
118ae551af Merge pull request #7820 from swordqiu/hotfix/qj-redfish-power-on-ignore-409-error
fix: ignore 409 error when doing redfish power on
2020-09-08 20:23:55 +08:00
Qiu Jian
d7e330f9eb fix: wire usage stats incorrect 2020-09-08 16:39:57 +08:00
rainzm
5789c6dedd fix(esxiagent): return image extid not id
调用 disk/image_cache 接口的Task StorageCacheImageTask 会根据回调
回来数据中的 image_id,来设置 storagecachedimage 中的 externalid,
所以这里的 image_id 应该是 externalid。
2020-09-08 15:23:12 +08:00
Qiu Jian
65141a277c fix: ignore 409 error when doing redfish power on 2020-09-08 15:19:30 +08:00
yunion-ci-robot
a6eb0c19fa Merge pull request #7802 from rainzm/scheduler/failInfo
Optimization of the scheduler
2020-09-08 14:59:55 +08:00
rainzm
81feadc13a fix(scheduler): more standardized testing 2020-09-08 14:27:31 +08:00
rainzm
9d18b94ad6 refactor(scheduler): make forcast result clearer
forcast 的返回值包括:
1. CanCreate: 是否可以创建
2. FilteredCandidate: 被过滤掉的candidate(宿主机),并记录了
   过滤其的 filter 的名字以及给出的原因。
3. ReqCount: 请求的机器数量
4. AllowCount: 允许的机器数量
5. NotAllowReasons: 不允许的原因,每一个不被允许的都会被列出原因。
2020-09-08 14:27:31 +08:00
rainzm
57d8f991ab Add mock test for genericScheudler.Schedule 2020-09-08 14:27:26 +08:00
yunion-ci-robot
5dd7b7a1ee Merge pull request #7762 from lvyangyang/dns-fork-9.2-2
dns access
2020-09-08 12:57:52 +08:00
lvyangyang
25ddca8609 dns access 2020-09-08 10:28:27 +08:00
yunion-ci-robot
2eec0c64c8 Merge pull request #7810 from wanyaoqi/bugfix/wyq/fix-host-error-output
bugfix: fix host errors output
2020-09-08 10:03:17 +08:00
yunion-ci-robot
6c25384344 Merge pull request #7808 from swordqiu/hotfix/qj-check-assign-host
fix: check assign-host previliges
2020-09-08 10:01:56 +08:00
yunion-ci-robot
612a016b67 Merge pull request #7817 from wanyaoqi/bugfix/wyq/reenterable-colloct-isolated-deivces-info
bugfix: isolated devices info collect reenterable
2020-09-08 09:59:53 +08:00
wanyaoqi
945fac0a4b fix host error output 2020-09-07 21:06:59 +08:00
yunion-ci-robot
3391d77a1b Merge pull request #7814 from yousong/bugfix/yousong-i18n
treewide: DeleteFailReason as an object with translated details
2020-09-07 21:06:53 +08:00
yunion-ci-robot
5ca9e814b9 Merge pull request #7807 from rainzm/notify/fix3
fix(notify): break down permissions of notifyconfigs
2020-09-07 21:05:59 +08:00
yunion-ci-robot
035e2bf51e Merge pull request #7804 from yousong/bugfix/yousong-vpcagent
vpcagent: guard against foul eip records
2020-09-07 21:05:46 +08:00
yunion-ci-robot
8e882cf3c9 Merge pull request #7798 from wanyaoqi/bugfix/wyq/guest-desc-add-backup
bugfix: guest short desc add backup host id
2020-09-07 21:03:50 +08:00
yunion-ci-robot
3897beba88 Merge pull request #7796 from ioito/hotfix/qx-cloudid-sync-groups
fix: sync groups for user
2020-09-07 21:01:51 +08:00
yunion-ci-robot
89c05901d9 Merge pull request #7789 from wanyaoqi/bugfix/wyq/fix-ubuntu-version
bugfix : fix get ubuntu version
2020-09-07 20:59:44 +08:00
yunion-ci-robot
aefcb1e3c2 Merge pull request #7811 from swordqiu/hotfix/qj-prevent-user-in-disabled-idp-login
fix: prevent users in disabled idp from login
2020-09-07 20:57:46 +08:00
yunion-ci-robot
8ce14d97c1 Merge pull request #7793 from ioito/hotfix/qx-aliyun-city
fix: aliyun wulanchabu region
2020-09-07 20:55:45 +08:00
wanyaoqi
641c71880b isolated devices info reenterable 2020-09-07 20:43:54 +08:00
rainzm
a9fafc4517 fix(notify): break down permissions of notifyconfigs
1. Only allow admin to create, list, update or delete.
2. Allow user to get types.
2020-09-07 18:55:19 +08:00
Yousong Zhou
6415de33d3 treewide: DeleteFailReason as an object with translated details 2020-09-07 18:51:29 +08:00
Yousong Zhou
776ef9b8b5 httperrors: HTTPError: use Error type 2020-09-07 18:51:29 +08:00
Qiu Jian
9e1ff88195 fix: prevent users in disabled idp from login 2020-09-07 18:23:21 +08:00
Yousong Zhou
4d7eee4f2b httperrors: add Error type 2020-09-07 18:18:39 +08:00
Qiu Jian
4d5aadb64b fix: check assign-host previliges 2020-09-07 18:12:24 +08:00
Yousong Zhou
9168284d59 vpcagent: guard against foul eip records 2020-09-07 17:24:08 +08:00
wanyaoqi
09e568e14c guest short desc add backup host id 2020-09-07 16:58:26 +08:00
Qu Xuan
491efe5794 fix: sync groups for user 2020-09-07 16:34:45 +08:00
rainzm
0bd84dd4b0 feat: Add method 'Sku' to CandidatePropertyGetter 2020-09-07 16:14:28 +08:00
rainzm
4b4875cd70 feat: Add IResultHelper
1. Adjust the package structure about pkg/scheduler/core and
pkg/scheduler/manager

2. Add IResultHelper

3. Change the signature of genericScheduler.Schedule
func (*Unit, []Candidater) (*SchedResultItemList, error) ==>
func (*Unit, []Candidater, IResultHelper) (*ScheduleResult, error)
2020-09-07 16:13:20 +08:00
Qu Xuan
46e6d37c2d fix: aliyun wulanchabu region 2020-09-07 16:09:36 +08:00
yunion-ci-robot
b85feb75f6 Merge pull request #7786 from rainzm/scheduler/igselect
fix(scheduler): fix array out of bounds when sorting hosts
2020-09-07 15:31:42 +08:00
yunion-ci-robot
f390723eaa Merge pull request #7782 from rainzm/notify/fix2
fix(notify): Replace String() with GetString()
2020-09-07 15:26:42 +08:00
yunion-ci-robot
43f47d96cb Merge pull request #7780 from swordqiu/hotfix/qj-user-idps-include-template
fix: user idps attributes includes template name
2020-09-07 15:24:42 +08:00
wanyaoqi
495d9174c9 fix get ubuntu version 2020-09-07 15:24:21 +08:00
rainzm
de1b5bc96e fix(scheduler): fix array out of bounds when sorting hosts 2020-09-07 15:13:19 +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
Qiu Jian
383bdef224 fix: user idps attributes includes template name 2020-09-07 12:03:31 +08:00
Zexi Li
98812bc6f6 Merge pull request #7729 from ioito/hotfix/qx-cached-image-sync
optimized cachedimages sync
2020-09-07 11:55:22 +08:00
yunion-ci-robot
d10f7a6d7a Merge pull request #7769 from swordqiu/hotfix/qj-network-addresses-respect-priviliges
fix: network address list respect privilige of user
2020-09-05 15:50:42 +08:00
yunion-ci-robot
339aa9f3cb Merge pull request #7772 from swordqiu/hotfix/qj-skip-sync-objects-in-task
fix: skup syncing lb, rds, redis instances in tasks
2020-09-05 15:47:42 +08:00
Zexi Li
8416e52ab8 Merge pull request #7776 from zexi/feature/k8s-componet-grafana
climc: k8s cluster grafana componet support subpath
2020-09-05 15:37:42 +08:00
Zexi Li
930a726670 climc: k8s cluster grafana componet support subpath 2020-09-05 14:45:38 +08:00
Qiu Jian
9de29d9afd fix: skup syncing lb, rds, redis instances in tasks 2020-09-05 14:27:12 +08:00
Qiu Jian
09944bc1b4 fix: network address list respect privilige of user 2020-09-05 11:56:53 +08:00
yunion-ci-robot
b9b7134262 Merge pull request #7767 from ioito/hotfix/qx-cloudid-fix
fix: cloudid optimized
2020-09-05 10:32:45 +08:00
Qu Xuan
7232695dfb fix: cloudid optimized 2020-09-04 20:21:07 +08:00
yunion-ci-robot
f64594d588 Merge pull request #7764 from tb365/feature/tb-pxe-register-template-update
pex register add optional column mac_access
2020-09-04 20:17:41 +08:00
yunion-ci-robot
8cb7bb99c3 Merge pull request #7739 from ioito/hotfix/qx-resource-update
fix: valid update name and update dns recordset
2020-09-04 20:11:38 +08:00
yunion-ci-robot
d79a961f50 Merge pull request #7760 from swordqiu/hotfix/qj-policy-aware-scheduler
fix: scheduler aware policy
2020-09-04 16:21:39 +08:00
TangBin
88838bb538 pex register add optional column mac_access 2020-09-04 15:54:01 +08:00
Qiu Jian
b8238d2059 fix: scheduler aware policy 2020-09-04 10:36:21 +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
Zexi Li
3f62936a5d Merge pull request #7748 from rainzm/esxi/net
feat(esxi): correctly judge whether inet is nil
2020-09-04 10:32:22 +08:00
Zexi Li
8bf7fd654c Merge pull request #7757 from swordqiu/hotfix/qj-support-VirtualDiskRawDiskMappingVer1BackingInfo
fix: support VirtualDiskRawDiskMappingVer1BackingInfo
2020-09-04 10:31:12 +08:00
Zexi Li
57ceac5dda Merge pull request #7753 from swordqiu/hotfix/qj-remove-sso-redundant-authcookie
fix: remove redundant auth cookie in sso login
2020-09-04 10:30:41 +08:00
Zexi Li
81a8ae288b Merge pull request #7744 from wanyaoqi/bugfix/wyq/check-min-disk-size-on-update
glance: check min disk size on update
2020-09-04 10:29:43 +08:00
Zexi Li
dfa837a3ff Merge pull request #7741 from swordqiu/hotfix/qj-search-project-domain-by-chsname
fix: search by chs projectname or domainname
2020-09-04 10:28:55 +08:00
Zexi Li
7617fd3e52 Merge pull request #7740 from swordqiu/hotfix/qj-find-esxi-host-access-ip
fix: find correct esxi host access ip
2020-09-04 10:28:33 +08:00
Zexi Li
486adf60ae Merge pull request #7735 from rainzm/schedulertask/fix
fix(compute): return InputParameterError while ValidateCreateData
2020-09-04 10:27:34 +08:00
Qiu Jian
a672c6b334 fix: support VirtualDiskRawDiskMappingVer1BackingInfo 2020-09-04 00:14:30 +08:00
yunion-ci-robot
835f60f584 Merge pull request #7730 from swordqiu/feature/qj-support-lenovo-huawei
fix: compatiblity fixes with lenovo RD620 and huawei 2288
2020-09-04 00:03:42 +08:00
Qiu Jian
ef138c05d4 fix: remove redundant auth cookie in sso login 2020-09-03 23:52:12 +08:00
Qiu Jian
053507c3e3 fix: find correct esxi host access ip 2020-09-03 22:17:04 +08:00
yunion-ci-robot
d7db832c6c Merge pull request #7733 from rainzm/notify/fix1
Feature & Fix for Notify
2020-09-03 21:54:52 +08:00
rainzm
0a9a73587e feat(notify): Allow use topic to filter notification 2020-09-03 21:15:38 +08:00
Qu Xuan
ce032ecf17 fix: optimzed sync 2020-09-03 21:10:29 +08:00
Qu Xuan
fd318a9cda fix: optimized cloudid 2020-09-03 20:29:37 +08:00
rainzm
3793387b66 feat(esxi): correctly judge whether inet is nil 2020-09-03 20:22:21 +08:00
wanyaoqi
53d0914cd9 glance: check min disk size on update 2020-09-03 19:58:22 +08:00
Qiu Jian
64f5bc748c fix: search by chs projectname or domainname 2020-09-03 18:36:28 +08:00
Qu Xuan
80c75b19ae fix: valid update name and update dns recordset 2020-09-03 16:46:24 +08:00
rainzm
f11a1df3a5 fix(compute): return InputParameterError while ValidateCreateData 2020-09-03 15:20:20 +08:00
rainzm
f57a199cbd feat(notify): Add TNotifyChannel const of robot 2020-09-03 15:08:13 +08:00
rainzm
89ec96567b feat(notify): replace VerifiedContactTypes with VerifiedInfos in ReceiverDetails
VerifiedInfos will provide Note to display.
2020-09-03 15:08:13 +08:00
rainzm
e179191dd3 feat(notify): Support trigger-verify for feishu, dingtalk and workwx 2020-09-03 15:08:13 +08:00
rainzm
3e982ab79a feat(notify): Add VerifiedNote for SSubContact
VerifiedNote will be 'ok' if SSubContact verified successfully.
Otherwise, there will be there value for VerifiedNote:
1. no such mobile: mobile is not exist, change and try again.
2. incomplete config: tell admin to improve the configuration.
3. service exceptions: try again or connect to admin.
2020-09-03 15:08:13 +08:00
rainzm
bf12f5b57c feat(notify): break down error from UseridByMobile 2020-09-03 15:08:13 +08:00
rainzm
9af0fe1fe9 fix(notify): Set default priority 'normal' when creating notification 2020-09-03 15:08:13 +08:00
rainzm
9029e98c2f fix(notify): Mark verified not enabled in MarkContactTypeVerified 2020-09-03 15:08:13 +08:00
rainzm
8a80f96d62 refactor(notify): hide SSunContact webconsole
Every receiver has webconsole type contact that is equal with
receiverid.
Now, make webconsole invisible, and it does exist.
2020-09-03 15:08:13 +08:00
rainzm
2ea4138f3a fix(notify): Allow user list receivers 2020-09-03 15:08:13 +08:00
rainzm
9978f19542 fix(notify): use AfterSend for contact with succuessful sending 2020-09-03 15:08:13 +08:00
Qiu Jian
f6eb9fc195 fix: compatiblity fixes with lenovo RD620 and huawei 2288 2020-09-03 11:55:22 +08:00
yunion-ci-robot
7a0eb06df9 Merge pull request #7725 from tb365/bugfix/tb-create-classic-vpc-fix
create classic vpc fix
2020-09-03 10:32:41 +08:00
Qu Xuan
dc1c6c754c optimized cachedimages sync 2020-09-02 22:00:14 +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
TangBin
6a22bf0e7b create classic vpc fix 2020-09-02 18:00:18 +08:00
Qu Xuan
5b3bfd1b3b fix: avoid nil panic 2020-09-02 17:26:38 +08:00
Qu Xuan
0cc0a19910 fix: avoid policy value not save 2020-09-02 17:08:13 +08:00
Qu Xuan
5eaece5516 fix: climc params 2020-09-02 16:57:07 +08:00
yunion-ci-robot
df37b58320 Merge pull request #7716 from zhaoxiangchun/bugfix/zxc-monitor-alert
alertrecords bugfix
2020-09-02 16:33:42 +08:00
yunion-ci-robot
2674f6a8ed Merge pull request #7718 from wanyaoqi/feature/wyq/vmware-support-lvm
feature: vmware disk support deploy lvm partition
2020-09-02 16:31:46 +08:00
Qu Xuan
f251559c39 feature: add dns interface 2020-09-02 16:30:05 +08:00
yunion-ci-robot
3608b58064 Merge pull request #7722 from wanyaoqi/bugfix/wyq/update-host-status-on-host-offline
hosts: update host status to unknown on host offline
2020-09-02 16:27:38 +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
wanyaoqi
4a00c22297 update host status to unknown on host offline 2020-09-02 13:07:27 +08:00
zhaoxiangchun
138a161195 listfilter by alert_id 2020-09-01 20:46:16 +08:00
zhaoxiangchun
bb22fba257 alert record bugfix
1.return details fix
2020-09-01 20:46:15 +08:00
wanyaoqi
7dcb240940 vmware disk support deploy lvm partition 2020-09-01 20:43:55 +08:00
wanyaoqi
74c8c6bfe2 hostinfo: try create network add is_on_premise (#7706) 2020-09-01 20:09:48 +08:00
屈轩
416afb686a fix: add details for account delete (#7702)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2020-09-01 20:08:37 +08:00
Yousong Zhou
b314b66b71 Bugfix/yousong i18n (#7712)
* httperrors: support setting lang with X-Yunion-Lang

* mcclient: session: set lang
2020-09-01 19:11:41 +08:00
Yousong Zhou
da64e4a267 httperrors: use existing details if id is not present (#7710) 2020-09-01 18:32:37 +08:00
Zexi Li
65c1f5afdb Merge pull request #7705 from zexi/feature/update-arch-img
README: update architecture img
2020-09-01 16:23:29 +08:00
Zexi Li
9fd99a22fd README: update architecture img 2020-09-01 16:19:54 +08:00
屈轩
8cf594785d fix: avoid delete aws iam user failed (#7664)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2020-09-01 11:35:36 +08:00
Jian Qiu
2ea855a425 fix: vmware esxi host detects vnic portgroup info (#7649)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-09-01 10:51:41 +08:00
Jian Qiu
0cbad8aea3 feature: emualated ssd support (#7701)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-09-01 10:49:37 +08:00
Jian Qiu
8ba3f86b55 fix: apigateway user info add is_local attribtue (#7694)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-09-01 10:48:37 +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
Zexi Li
cda8bd75d7 Merge pull request #7680 from wanyaoqi/feature/wyq/misc-20200831
feature: snapshot list by guest
2020-09-01 10:47:07 +08:00
Rain Zheng
74af85b8eb Fix for Notify (#7692)
* feat(notify): Support update for notify config

* fix(notify): Be compatible with the email configuration

Email config key text changed:
mail.username => username
mail.password => password
mail.smtp.hostname => hostname
mail.smtp.hostport => hostport

* fix(notify): Give users permission to operate receiver

* fix(notify): Allow negative update for receiver

Now, input.Email and input.Mobile can be empty which means
that do not update the corresponding field.

* feat(notify): Support for triggering validation on feishu, dingtalk and worwx

Triggering validation on these contact types means repulling a Contact about them.

* feat(notify): Adds validity period for verify

Verification beyond the expiration date will fail.

* fix(notify): SQuery of scopedomain in FilterByOwner
2020-09-01 10:45:36 +08:00
zhaoxiangchun
c66ea1145d monitor commonalert bugfix (#7667)
* 统一监控查询面板保存

* commonalert bugfix
2020-09-01 10:43:35 +08:00
Jian Qiu
d0842c62cc fix: http error limit request body length (#7699)
fix: http error limit request body length

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-09-01 10:21: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
屈轩
a5c3a34b7c fix: 不限制openstack系统盘类型 (#7674)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2020-09-01 01:21:35 +08:00
wanyaoqi
795a11fcea fix host get guests (#7682) 2020-09-01 01:06:39 +08:00
wanyaoqi
3dec0fdc60 fix get storage capacity on init' (#7686) 2020-09-01 00:59:37 +08:00
Yousong Zhou
ad6b38f68a vpcagent: respect guest src check settings (#7677)
mac   ip    dhcp    ping    xipping    xmacping
  on    on    y       y       n          n
  on    off   y       y       y          n
  off   off   y       y       y          y

external access depends on source routing, changing ip address will
fail that

note dst mac address of reply packet when changing only mac address
with vpc ip remains the same
2020-08-31 16:31:37 +08:00
wanyaoqi
fb41d16c97 snapshot list by guest 2020-08-31 15:24:56 +08:00
Jian Qiu
7336ff732c fix: cleanup logic for nics of pending_deleted guests (#7668)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-08-31 09:32:34 +08:00
Zexi Li
afd5647c83 Merge pull request #7662 from wanyaoqi/host-deployer/update-base-image-version
feature: update host deployer base image version
2020-08-28 20:36:20 +08:00
wanyaoqi
70f953dee8 update host deployer base image version 2020-08-28 20:17:47 +08:00
wanyaoqi
75cd041d79 baremetal colloct isolated devices info (#7357) 2020-08-28 12:10:34 +08:00
wanyaoqi
f255e8fcd0 fix mount fetcher fs (#7656) 2020-08-28 12:06:33 +08:00
wanyaoqi
b0edff1d80 remove backup metadata on delete backup (#7653) 2020-08-28 12:01:37 +08:00
tb365
11f86bb290 eip & vpc manager match fix (#7650)
Co-authored-by: TangBin <tangbin@yunion.cn>
2020-08-28 11:59:38 +08:00
wanyaoqi
e510ed1969 add host cpu archs capabilitie 2020-08-27 11:07:50 +08:00
wanyaoqi
7d94c4e46f support create arm virtual machine 2020-08-27 11:05:21 +08:00
wanyaoqi
bb0d81bc06 host campactable with arm64 2020-08-27 11:05:21 +08:00
wanyaoqi
cb036b8821 fix build baremetal agent image (#7646) 2020-08-27 11:00:32 +08:00
屈轩
21342005e0 fix: aovid truncated data (#7643)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2020-08-26 21:39:40 +08:00
Jian Qiu
cb573d340a fix: turn off some default project policies (#7636)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-08-26 18:42:35 +08:00
Jian Qiu
585ba0ff58 fix: add keystone sync user debug info (#7633)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-08-26 18:41:34 +08:00
屈轩
2716d4527d fix: avoid openstack image-list failed (#7640)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2020-08-26 18:33:34 +08:00
3904 changed files with 387381 additions and 212093 deletions

View File

@@ -38,7 +38,7 @@ jobs:
command: |
targets="$(circleci tests glob "cmd/*" | grep -v cmd/host-image | circleci tests split)"
echo $targets | tr ' ' '\n'
make -j3 $targets
make -j2 $targets
ls -lh _output/bin/
- save_cache:
key: onecloud-build-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
_output/alpine-build/_cache
pkg
vendor
cmd
locales
docs
scripts

1
.gitignore vendored
View File

@@ -31,6 +31,7 @@ _output
/structargtest
.idea
.vscode
intellij.yaml
GPATH
GRTAGS
GTAGS

View File

@@ -9,7 +9,7 @@ BUILD_SCRIPT := $(ROOT_DIR)/build/build.sh
ifeq ($(ONECLOUD_CI_BUILD),)
GIT_COMMIT := $(shell git rev-parse --short HEAD)
GIT_BRANCH := $(shell git name-rev --name-only HEAD)
GIT_BRANCH := $(shell git branch -r --contains | head -1 | sed -E -e "s%(HEAD ->|origin|upstream)/?%%g" | xargs)
GIT_VERSION := $(shell git describe --always --tags --abbrev=14 $(GIT_COMMIT)^{commit})
GIT_TREE_STATE := $(shell s=`git status --porcelain 2>/dev/null`; if [ -z "$$s" ]; then echo "clean"; else echo "dirty"; fi)
BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
@@ -199,7 +199,7 @@ mod:
go mod vendor -v
DOCKER_CENTOS_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-1
DOCKER_CENTOS_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-3
define dockerCentOSBuildCmd
set -o xtrace
@@ -232,7 +232,7 @@ docker-centos-build-stop:
.PHONY: docker-centos-build
.PHONY: docker-centos-build-stop
DOCKER_ALPINE_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-3
DOCKER_ALPINE_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5
define dockerAlpineBuildCmd
set -o xtrace
@@ -314,7 +314,8 @@ VERSION ?= $(shell git describe --exact-match 2> /dev/null || \
git describe --match=$(git rev-parse --short=8 HEAD) --always --dirty --abbrev=8)
image:
TAG=$(VERSION) REGISTRY=$(REGISTRY) $(ROOT_DIR)/scripts/docker_push.sh $(filter-out $@,$(MAKECMDGOALS))
mkdir -p $(ROOT_DIR)/_output
DEBUG=$(DEBUG) ARCH=$(ARCH) TAG=$(VERSION) REGISTRY=$(REGISTRY) $(ROOT_DIR)/scripts/docker_push.sh $(filter-out $@,$(MAKECMDGOALS))
.PHONY: image

View File

@@ -41,7 +41,7 @@
## 架构
![architecture](./docs/architecture.svg)
![architecture](https://www.yunion.cn/static/frame.png)
## 贡献

View File

@@ -44,7 +44,7 @@ Please refers to [install & deployment](https://docs.yunion.io/docs/setup/) (cur
## Architecture
![architecture](./docs/architecture.svg)
![architecture](https://www.yunion.cn/static/frame.png)
## Contribution

View File

@@ -1,6 +0,0 @@
# rbac for project owner, not allow for delete
roles:
- domain_admin
scope: domain
policy:
'*': allow

View File

@@ -1,9 +1,10 @@
# rbac for normal user, not allow for delete
scope: project
policy:
'*':
'*':
'*': allow
create: deny
update: deny
delete: deny
perform:
purge: deny
clone: deny
'*': allow

View File

@@ -0,0 +1,2 @@
policy:
'*': allow

View File

@@ -1,6 +0,0 @@
# rbac for project owner, not allow for delete
roles:
- project_owner
scope: project
policy:
'*': allow

View File

@@ -1,8 +0,0 @@
# rbac for sysadmin
projects:
- system
roles:
- admin
scope: system
policy:
'*': allow

View File

@@ -0,0 +1,6 @@
policy:
'*':
'*':
get: allow
list: allow
'*': deny

View File

@@ -0,0 +1,6 @@
公有云子账号创建成功
主账号:{{ .account }}<br>
名称:{{ .name }}<br>
密码:{{ .password }}<br>
登录地址: {{ .iam_login_url }}<br>
资源ID: {{ .id }}<br>

View File

@@ -0,0 +1,6 @@
Clouduser has been created successfully
Root Account: {{ .account }}<br>
Name{{ .name }}<br>
Password{{ .password }}<br>
IAM Login URL: {{ .iam_login_url }}<br>
Resource ID: {{ .id }}<br>

View File

@@ -0,0 +1 @@
公有云子账号 {{ .name }} 创建成功

View File

@@ -0,0 +1 @@
The clouduser {{ .name }} created successfully

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.0.1
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.2
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"

View File

@@ -5,13 +5,16 @@ MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
RUN mkdir -p /opt/yunion/bin
RUN apk update && \
apk add --no-cache ipmitool ethtool tzdata ca-certificates && \
apk add --no-cache ipmitool ethtool tzdata ca-certificates cdrkit coreutils && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /opt/cloud/yunion/baremetal
# udpate latest pci.ids
RUN wget -O /opt/cloud/yunion/baremetal/pci.ids http://pci-ids.ucw.cz/v2.2/pci.ids
# download baremetal-pxerom-*.x86_64.rpm and unpack rpm in current directory
COPY ./opt/cloud/yunion/baremetal/bootia32.efi /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/bootx64.efi /opt/cloud/yunion/baremetal
@@ -27,13 +30,3 @@ COPY ./opt/cloud/yunion/baremetal/libutil.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/lpxelinux.0 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/menu.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/pxelinux.0 /opt/cloud/yunion/baremetal
# add mkisofs with bundles libraries
ADD ./mkisofs /bin/mkisofs
ADD ./.mkisofs.bin /bin/.mkisofs.bin
ADD ./bundles/mkisofs /bin/bundles/mkisofs
# use GNU timeout command replace busybox timeout command
RUN rm /usr/bin/timeout
ADD ./timeout /bin/timeout
ADD ./.timeout.bin /bin/.timeout.bin
ADD ./bundles/timeout /bin/bundles/timeout

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:v0.2
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:0.6
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"

View File

@@ -1,3 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
COPY ./build/monitor/root/opt/ /opt/
ADD ./_output/alpine-build/bin/monitor /opt/yunion/bin/monitor

View File

@@ -0,0 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunion-rootfs:v1.0
ADD ./_output/bin/telegraf-raid-plugin /opt/yunion/bin/telegraf-raid-plugin

View File

@@ -1,16 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-3 as build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN mkdir -p /root/go/src/yunion.io/x/onecloud
COPY . /root/go/src/yunion.io/x/onecloud
WORKDIR /root/go/src/yunion.io/x/onecloud
RUN make cmd/esxi-agent
FROM FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
RUN mkdir -p /opt/yunion/bin
COPY --from=build /root/go/src/yunion.io/x/onecloud/build/esxi-agent/root/opt/ /opt/
COPY --from=build /root/go/src/yunion.io/x/onecloud/_output/bin/esxi-agent /opt/yunion/bin/esxi-agent

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-3 as build
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5 as build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN mkdir -p /root/go/src/yunion.io/x/onecloud

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-3 as build
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5 as build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN mkdir -p /root/go/src/yunion.io/x/onecloud

View File

@@ -0,0 +1,9 @@
{{.title}}
策略名称: {{.name}}
触发时间: {{.start_time}}
报警级别: {{.level}}
触发条件: {{.description | unescaped}}
资源数量:{{len .matches}}
资源名称:{{.resource_name}}
详情地址: {{.web_url}}

View File

@@ -0,0 +1,138 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{.Title}}</title>
</head>
<style>
.title {
height: 40px;
line-height: 40px;
width: 960px;
background-color: #4da1ff;
color: #fff;
font-size: 16px;
text-align: center;
margin: 0 auto;
}
.table {
width: 960px;
margin: 0 auto;
padding: 10px 30px 0px 30px;
font-family:'微软雅黑',Helvetica,Arial,sans-serif;
font-size:14px;
background-color: #fbfbfb;
}
.tr-title {
height: 10px;
border-left: 5px solid #4da1ff;
margin-left: 10px;
padding: 3px 8px;
font-weight: bold;
}
.td {
width: 80px;
padding-left: 20px;
height: 35px;
font-weight: 400;
}
.link {
text-decoration: none;
color: #3591FF;
}
.thead-tr td {
border-left: 1px solid #d7d7d7;
border-top: 1px solid #d7d7d7;
height: 32px;
font-size: 14px;
background-color: #d7d7d7;
text-align: center;
}
.tbody-tr td {
border-left: 1px solid #d7d7d7;
border-top: 1px solid #d7d7d7;
height: 32px;
font-size: 14px;
font-weight: 400;
text-align: center;
}
.pb-3 {
padding-bottom: 30px;
}
.resouce-table {
width: 98%;
color: #717171;
border-right: 1px solid #d7d7d7;
border-bottom: 1px solid #d7d7d7;
}
</style>
<body>
<h3 class="title">报警提醒</h3>
<table border="0" cellspacing="0" cellpadding="0" class="table">
<tr><td colspan="4" class="tr-title">报警信息</td></tr>
<tr><td style="height: 10px;"></td></tr>
<tr>
<td class="td">报警策略:</td>
<td>{{.name}}</td>
</tr>
<tr>
<td class="td">报警级别:</td>
<td>{{.level}}</td>
</tr>
<tr>
<td class="td">报警时间:</td>
<td>{{.start_time}}</td>
</tr>
<tr>
<td class="td">策略详情:</td>
<td>{{.description}}</td>
</tr>
</table>
<table class="table" style="padding-top: 6px; padding-bottom: 10px;">
<tr>
<td style="padding-left: 20px; font-size: 14px;">若要查看详情信息,<a class="link" target="_blank" href="{{.web_url}}
">请登录平台进行查看</a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" class="table pb-3">
<tr><td colspan="4" class="tr-title">报警资源</td></tr>
<tr><td style="height: 10px;"></td></tr>
<tr>
<td colspan="4" style="padding: 10px 0 0 20px;">
<table cellspacing="0" cellpadding="0" class="resouce-table">
<thead>
<tr class="thead-tr">
<td>名称</td>
<td>IP</td>
<td>平台</td>
<td>触发值</td>
</tr>
</thead>
<tbody>
{{- range $i, $Matche := .matches}}
<tr class="tbody-tr">
<td>
{{- index .tags "name"}}
</td>
<td>
{{ index .tags "ip" }}
</td>
<td>
{{ index .tags "brand" }}
</td>
<td>{{$Matche.value_str}}</td>
</tr>
{{end}}
</tbody>
</table>
</td>
</tr>
<tr><td style="height: 10px;"></td></tr>
</table>
<p style="width: 960px; height: 40px; line-height: 40px; margin: 0 auto; background-color: #4da1ff; color: #fff; font-size: 12px; text-align: center; ">本邮件由系统自动发送,请勿直接回复!</p>
</body>
</html>

View File

@@ -0,0 +1,9 @@
{{.title}}
AlertName: {{.name}}
Time: {{.start_time}}
Level: {{.level}}
TriggerCondition: {{.description | unescaped}}
ResourceCount: {{len .matches}}
ResourceName: {{.resource_name}}
WebUrl: {{.web_url}}

View File

@@ -0,0 +1,145 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{.Title}}</title>
</head>
<style>
.title {
height: 40px;
line-height: 40px;
width: 960px;
background-color: #4da1ff;
color: #fff;
font-size: 16px;
text-align: center;
margin: 0 auto;
}
.table {
width: 960px;
margin: 0 auto;
padding: 10px 30px 0px 30px;
font-family:'微软雅黑',Helvetica,Arial,sans-serif;
font-size:14px;
background-color: #fbfbfb;
}
.tr-title {
height: 10px;
border-left: 5px solid #4da1ff;
margin-left: 10px;
padding: 3px 8px;
font-weight: bold;
}
.td {
width: 120px;
padding-left: 20px;
height: 35px;
font-weight: 400;
}
.link {
text-decoration: none;
color: #3591FF;
}
.thead-tr td {
border-left: 1px solid #d7d7d7;
border-top: 1px solid #d7d7d7;
height: 32px;
font-size: 14px;
background-color: #d7d7d7;
text-align: center;
}
.tbody-tr td {
border-left: 1px solid #d7d7d7;
border-top: 1px solid #d7d7d7;
height: 32px;
font-size: 14px;
font-weight: 400;
text-align: center;
}
.pb-3 {
padding-bottom: 30px;
}
.resouce-table {
width: 98%;
color: #717171;
border-right: 1px solid #d7d7d7;
border-bottom: 1px solid #d7d7d7;
}
</style>
<body>
<h3 class="title">Alert</h3>
<table border="0" cellspacing="0" cellpadding="0" class="table">
<tr><td colspan="4" class="tr-title">Alert info</td></tr>
<tr><td style="height: 10px;"></td></tr>
<tr>
<td class="td">Alarm strategy</td>
<td>{{.name}}</td>
</tr>
<tr>
<td class="td">Alarm level</td>
<td>{{.level}}</td>
</tr>
<tr>
<td class="td">Alarm time</td>
<td>{{.start_time}}</td>
</tr>
<tr>
<td class="td">Strategy details</td>
<td>{{.description}}</td>
</tr>
</table>
<table class="table" style="padding-top: 6px; padding-bottom: 10px;">
<tr>
<td style="padding-left: 20px; font-size: 14px;">To view details<a class="link" target="_blank" href="{{.web_url}}
">Please login to the platform to view</a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" class="table pb-3">
<tr><td colspan="4" class="tr-title">Alarm resources</td></tr>
<tr><td style="height: 10px;"></td></tr>
<tr>
<td colspan="4" style="padding: 10px 0 0 20px;">
<table cellspacing="0" cellpadding="0" class="resouce-table">
<thead>
<tr class="thead-tr">
<td>Name</td>
<td>IP</td>
<td>Brand</td>
<td>Trigger value</td>
</tr>
</thead>
<tbody>
{{- range $i, $Matche := .matches}}
<tr class="tbody-tr">
<td>
{{- index .tags "name"}}
</td>
<td>
{{ index .tags "ip" }}
</td>
<td>
{{ index .tags "brand" }}
</td>
<td>{{$Matche.value_str}}</td>
</tr>
{{end}}
</tbody>
</table>
</td>
</tr>
<tr><td style="height: 10px;"></td></tr>
</table>
<p style="width: 960px; height: 40px; line-height: 40px; margin: 0 auto; background-color: #4da1ff; color: #fff; font-size: 12px; text-align: center; ">This email is sent automatically by the system. Please do not reply directly</p>
</body>
</html>

View File

@@ -0,0 +1 @@
{{.title}}

View File

@@ -0,0 +1 @@
{{.title}}

View File

@@ -1 +1 @@
Yunion Verify
{{.copyright}} Verify

View File

@@ -1 +0,0 @@
您的{{ .brand }}主机{{ .name }}的套餐类型已经更改为 CPU:{{ index .flavor_info "cpu" }}核,内存:{{ index .flavor_info "memory" }}M数据盘:{{ index .flavor_info "datadisk" }}G带宽: {{ index .flavor_info "ebw" }}M。

View File

@@ -1 +0,0 @@
您的{{ .brand }}主机{{ .name }}已经创建成功服务器IP地址为{{ .ips }}{{ if .account }}初始帐号为{{ .account }}{{ end }}{{ if .keypair }}访问ssh密钥为{{ .keypair }}{{ end }}{{ if .password }}初始密码为{{ .password }}{{ end }}请使用{{ if .windows }}远程桌面连接器(RDC){{ else }}SSH{{ end }}或控制面板控制台访问云主机。

View File

@@ -1 +0,0 @@
项目{{ .tenant }}的{{ .brand }}主机{{ .name }}已经创建成功。

View File

@@ -1 +0,0 @@
您的{{ .brand }}主机{{ .name }}已经删除。

View File

@@ -1 +0,0 @@
项目{{ .tenant }}的{{ .brand }}主机{{ .name }}已经删除。

View File

@@ -1 +0,0 @@
您的{{ .brand }}主机{{ .name }}系统崩溃了: {{ .reason }}

View File

@@ -1 +0,0 @@
您的{{ .brand }}主机{{ .name }}重装系统成功,{{ if .account }}初始帐号为{{ .account }}{{ end }}{{ if .keypair }}访问密钥为{{ .keypair }}{{ end }}{{ if .password }}初始密码为{{ .password }}{{ end }}请使用{{ if .windows }}远程桌面连接器(RDC){{ else }}SSH{{ end }}或控制面板控制台访问云主机。

View File

@@ -0,0 +1 @@
您的{{ .brand }}虚拟机{{ .name }}的套餐类型已经更改为 CPU:{{ index .flavor_info "cpu" }}核,内存:{{ index .flavor_info "memory" }}M数据盘:{{ index .flavor_info "datadisk" }}G带宽: {{ index .flavor_info "ebw" }}M。

View File

@@ -0,0 +1 @@
您的{{ .brand }}虚拟机{{ .name }}已经创建成功虚拟机IP地址为{{ .ips }}{{ if .account }}初始帐号为{{ .account }}{{ end }}{{ if .keypair }}访问ssh密钥为{{ .keypair }}{{ end }}{{ if .password }}初始密码为{{ .password }}{{ end }}请使用{{ if .windows }}远程桌面连接器(RDC){{ else }}SSH{{ end }}或控制面板控制台访问虚拟机。

View File

@@ -0,0 +1 @@
项目{{ .tenant }}的{{ .brand }}虚拟机{{ .name }}已经创建成功。

View File

@@ -0,0 +1 @@
您的{{ .brand }}虚拟机{{ .name }}已经删除。

View File

@@ -0,0 +1 @@
项目{{ .tenant }}的{{ .brand }}虚拟机{{ .name }}已经删除。

View File

@@ -0,0 +1 @@
您的{{ .brand }}虚拟机{{ .name }}系统崩溃了: {{ .reason }}

View File

@@ -0,0 +1 @@
您的{{ .brand }}虚拟机{{ .name }}重装系统成功,{{ if .account }}初始帐号为{{ .account }}{{ end }}{{ if .keypair }}访问密钥为{{ .keypair }}{{ end }}{{ if .password }}初始密码为{{ .password }}{{ end }}请使用{{ if .windows }}远程桌面连接器(RDC){{ else }}SSH{{ end }}或控制面板控制台访问虚拟机。

View File

@@ -0,0 +1 @@
The instance type of your {{ .brand }} virtual machine {{ .name }} has been changed to: {{ index .flavor_info "cpu" }}-core CPU, {{ index .flavor_info "memory" }}M memory, {{ index .flavor_info "datadisk" }}G data disk, {{ index .flavor_info "ebw" }}M bandwidth.

View File

@@ -0,0 +1 @@
Your {{ .brand }} virtual machine {{ .name }} has been created successfully. The VM's IP address is {{ .ips }}, {{ if .account }}initial account is {{ .account }}, {{ end }}{{ if .keypair }}the access ssh key is {{ .keypair }}, {{ end }}{{ if .password }}the initial password is {{ .password }}, {{ end }}and please use {{ if .windows }}Remote Desktop Connector (RDC){{ else }}SSH{{ end }} or the control panel console to access the VM.

View File

@@ -0,0 +1 @@
The {{ .brand }} virtual machine {{ .name }} of the project {{ .tenant }} has been created successfully.

View File

@@ -0,0 +1 @@
Your {{ .brand }} virtual machine {{ .name }} has been deleted.

View File

@@ -0,0 +1 @@
The {{ .brand }} virtual machine {{ .name }} of the project {{ .tenant }} has been deleted.

View File

@@ -0,0 +1 @@
Your {{ .brand }} virtual machine {{ .name }} system crashed: {{ .reason }}

View File

@@ -0,0 +1 @@
Your {{ .brand }} virtual machine {{ .name }} is successfully reinstalled. The VM's {{ if .account }}initial account is {{ .account }}, {{ end }}{{ if .keypair }}the access key is {{ .keypair }}, {{ end }}{{ if .password }}the initial password is {{ .password }}, {{ end }}and please use {{ if .windows }}remote desktop connection (RDC){{ else }}SSH{{ end }} or the control panel console to access the virtual machine.

View File

@@ -0,0 +1,6 @@
System error message
Resource: {{ .name}}
Resource ID: {{ .id }}
Event: {{ .event }}
Reason: {{ .reason }}
Time: {{ .created }}

View File

@@ -0,0 +1,6 @@
System warning message
Resource: {{ .name}}
Resource ID: {{ .id }}
Event: {{ .event }}
Reason: {{ .reason }}
Time: {{ .created }}

View File

@@ -1 +0,0 @@
您的{{ .brand }}主机{{ .name }}的套餐类型已经更改为 CPU:{{ index .flavor_info "cpu" }}核,内存:{{ index .flavor_info "memory" }}M数据盘:{{ index .flavor_info "datadisk" }}G带宽: {{ index .flavor_info "ebw" }}M。

View File

@@ -1 +0,0 @@
{{ .brand }}主机{{ .Name }}创建成功

View File

@@ -1 +0,0 @@
项目{{ .tenant }}的{{ .brand }}主机{{ .name }}已经创建成功

View File

@@ -1 +0,0 @@
{{ .brand }}主机{{ .name }}删除通知

View File

@@ -1 +0,0 @@
项目{{ .tenant }}的{{ .brand }}主机{{ .name }}已经删除

View File

@@ -1 +0,0 @@
您的{{ .brand }}主机{{ .name }}系统崩溃了

View File

@@ -1 +0,0 @@
{{ .brand }}主机{{ .name }}重装系统成功

View File

@@ -0,0 +1 @@
您的{{ .brand }}虚拟机{{ .name }}的套餐类型已经更改为 CPU:{{ index .flavor_info "cpu" }}核,内存:{{ index .flavor_info "memory" }}M数据盘:{{ index .flavor_info "datadisk" }}G带宽: {{ index .flavor_info "ebw" }}M。

View File

@@ -0,0 +1 @@
{{ .brand }}虚拟机{{ .Name }}创建成功

View File

@@ -0,0 +1 @@
项目{{ .tenant }}的{{ .brand }}虚拟机{{ .name }}已经创建成功

View File

@@ -0,0 +1 @@
{{ .brand }}虚拟机{{ .name }}删除通知

View File

@@ -0,0 +1 @@
项目{{ .tenant }}的{{ .brand }}虚拟机{{ .name }}已经删除

View File

@@ -0,0 +1 @@
您的{{ .brand }}虚拟机{{ .name }}系统崩溃了

View File

@@ -0,0 +1 @@
{{ .brand }}虚拟机{{ .name }}重装系统成功

View File

@@ -0,0 +1 @@
The instance type of your {{ .brand }} virtual machine {{ .name }} has been changed to: {{ index .flavor_info "cpu" }}-core CPU, {{ index .flavor_info "memory" }}M memory, {{ index .flavor_info "datadisk" }}G data disk, {{ index .flavor_info "ebw" }}M bandwidth

View File

@@ -0,0 +1 @@
The {{ .brand }} virtual machine {{ .Name }} created successfully

View File

@@ -0,0 +1 @@
The {{ .brand }} virtual machine {{ .name }} of the project {{ .tenant }} has been created successfully

View File

@@ -0,0 +1 @@
The {{ .brand }} virtual machine {{ .name }} has been deleted

View File

@@ -0,0 +1 @@
The {{ .brand }} virtual machine {{ .name }} of the project {{ .tenant }} has been deleted

View File

@@ -0,0 +1 @@
Your {{ .brand }} virtual machine {{ .name }} system crashed

View File

@@ -0,0 +1 @@
The {{ .brand }} virtual machine {{ .name }} successfully reinstalled the system

View File

@@ -0,0 +1 @@
System error message {{ .name }} {{ .event }}

View File

@@ -0,0 +1 @@
System warning message {{ .name }} {{ .event }}

View File

@@ -28,6 +28,7 @@ import (
type BaseOptions struct {
Debug bool `help:"debug mode"`
Help bool `help:"Show help"`
CloudEnv string `help:"Cloud environment" default:"$ALIYUN_CLOUD_ENV" choices:"InternationalCloud|FinanceCloud" metavar:"ALIYUN_CLOUD_ENV"`
AccessKey string `help:"Access key" default:"$ALIYUN_ACCESS_KEY" metavar:"ALIYUN_ACCESS_KEY"`
Secret string `help:"Secret" default:"$ALIYUN_SECRET" metavar:"ALIYUN_SECRET"`
RegionId string `help:"RegionId" default:"$ALIYUN_REGION" metavar:"ALIYUN_REGION"`
@@ -86,7 +87,9 @@ func newClient(options *BaseOptions) (*aliyun.SRegion, error) {
cli, err := aliyun.NewAliyunClient(
aliyun.NewAliyunClientConfig(
options.AccessKey, options.Secret,
options.CloudEnv,
options.AccessKey,
options.Secret,
).Debug(options.Debug),
)
if err != nil {

146
cmd/apsaracli/main.go Normal file
View File

@@ -0,0 +1,146 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
"fmt"
"os"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud/apsara"
_ "yunion.io/x/onecloud/pkg/multicloud/apsara/shell"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
type BaseOptions struct {
Debug bool `help:"debug mode"`
Help bool `help:"Show help"`
AccessKey string `help:"Access key" default:"$APSARA_ACCESS_KEY" metavar:"APSARA_ACCESS_KEY"`
Secret string `help:"Secret" default:"$APSARA_SECRET" metavar:"APSARA_SECRET"`
cloudprovider.SApsaraEndpoints `help:"Endpoints for Apsara"`
Endpoint string `help:"Apsara endpoint" default:"$APSARA_ENDPOINT" metavar:"APSARA_ENDPOINT"`
RegionId string `help:"RegionId" default:"$APSARA_REGION" metavar:"APSARA_REGION"`
SUBCOMMAND string `help:"apsaracli subcommand" subcommand:"true"`
}
func getSubcommandParser() (*structarg.ArgumentParser, error) {
parse, e := structarg.NewArgumentParser(&BaseOptions{},
"apsaracli",
"Command-line interface to apsara API.",
`See "apsaracli help COMMAND" for help on a specific command.`)
if e != nil {
return nil, e
}
subcmd := parse.GetSubcommand()
if subcmd == nil {
return nil, fmt.Errorf("No subcommand argument.")
}
type HelpOptions struct {
SUBCOMMAND string `help:"sub-command name"`
}
shellutils.R(&HelpOptions{}, "help", "Show help of a subcommand", func(args *HelpOptions) error {
helpstr, e := subcmd.SubHelpString(args.SUBCOMMAND)
if e != nil {
return e
} else {
fmt.Print(helpstr)
return nil
}
})
for _, v := range shellutils.CommandTable {
_, e := subcmd.AddSubParser(v.Options, v.Command, v.Desc, v.Callback)
if e != nil {
return nil, e
}
}
return parse, nil
}
func showErrorAndExit(e error) {
fmt.Fprintf(os.Stderr, "%s", e)
fmt.Fprintln(os.Stderr)
os.Exit(1)
}
func newClient(options *BaseOptions) (*apsara.SRegion, error) {
if len(options.AccessKey) == 0 {
return nil, fmt.Errorf("Missing accessKey")
}
if len(options.Secret) == 0 {
return nil, fmt.Errorf("Missing secret")
}
cli, err := apsara.NewApsaraClient(
apsara.NewApsaraClientConfig(
options.AccessKey,
options.Secret,
options.Endpoint,
options.SApsaraEndpoints,
).Debug(options.Debug),
)
if err != nil {
return nil, err
}
region := cli.GetRegion(options.RegionId)
if region == nil {
return nil, fmt.Errorf("No such region %s", options.RegionId)
}
return region, nil
}
func main() {
parser, e := getSubcommandParser()
if e != nil {
showErrorAndExit(e)
}
e = parser.ParseArgs(os.Args[1:], false)
options := parser.Options().(*BaseOptions)
if options.Help {
fmt.Print(parser.HelpString())
return
}
subcmd := parser.GetSubcommand()
subparser := subcmd.GetSubParser()
if e != nil {
if subparser != nil {
fmt.Print(subparser.Usage())
} else {
fmt.Print(parser.Usage())
}
showErrorAndExit(e)
}
suboptions := subparser.Options()
if options.SUBCOMMAND == "help" {
e = subcmd.Invoke(suboptions)
} else {
var region *apsara.SRegion
region, e = newClient(options)
if e != nil {
showErrorAndExit(e)
}
e = subcmd.Invoke(region, suboptions)
}
if e != nil {
showErrorAndExit(e)
}
}

View File

@@ -17,22 +17,22 @@ package cloudid
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Cloudgroups).WithKeyword("cloud-group")
cmd.List(&options.CloudgroupListOptions{})
cmd.Create(&options.CloudgroupCreateOptions{})
cmd.Show(&options.CloudgroupIdOptions{})
cmd.Delete(&options.CloudgroupIdOptions{})
cmd.Perform("syncstatus", &options.CloudgroupIdOptions{})
cmd.Perform("attach-policy", &options.CloudgroupPolicyOptions{})
cmd.Perform("detach-policy", &options.CloudgroupPolicyOptions{})
cmd.Perform("add-user", &options.CloudgroupUserOptions{})
cmd.Perform("remove-user", &options.CloudgroupUserOptions{})
cmd.Perform("set-policies", &options.CloudgroupPolicyOptions{})
cmd.Perform("set-users", &options.CloudgroupUserOptions{})
cmd.Perform("public", &options.CloudgroupPublicOptions{})
cmd.Perform("private", &options.CloudgroupIdOptions{})
cmd.List(&cloudid.CloudgroupListOptions{})
cmd.Create(&cloudid.CloudgroupCreateOptions{})
cmd.Show(&cloudid.CloudgroupIdOptions{})
cmd.Delete(&cloudid.CloudgroupIdOptions{})
cmd.Perform("syncstatus", &cloudid.CloudgroupIdOptions{})
cmd.Perform("attach-policy", &cloudid.CloudgroupPolicyOptions{})
cmd.Perform("detach-policy", &cloudid.CloudgroupPolicyOptions{})
cmd.Perform("add-user", &cloudid.CloudgroupUserOptions{})
cmd.Perform("remove-user", &cloudid.CloudgroupUserOptions{})
cmd.Perform("set-policies", &cloudid.CloudgroupPolicyOptions{})
cmd.Perform("set-users", &cloudid.CloudgroupUserOptions{})
cmd.Perform("public", &cloudid.CloudgroupPublicOptions{})
cmd.Perform("private", &cloudid.CloudgroupIdOptions{})
}

View File

@@ -15,59 +15,15 @@
package cloudid
import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
type CloudgroupcacheListOptions struct {
options.BaseListOptions
CloudgroupId string `json:"cloudgroup_id"`
}
R(&CloudgroupcacheListOptions{}, "cloud-group-cache-list", "List cloud group caches", func(s *mcclient.ClientSession, opts *CloudgroupcacheListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.Cloudgroupcaches.List(s, params)
if err != nil {
return err
}
printList(result, modules.Cloudgroupcaches.GetColumns(s))
return nil
})
type CloudgroupcacheIdOption struct {
ID string `help:"Cloudgroup Id"`
}
R(&CloudgroupcacheIdOption{}, "cloud-group-cache-show", "Show cloud groupcache details", func(s *mcclient.ClientSession, opts *CloudgroupcacheIdOption) error {
result, err := modules.Cloudgroupcaches.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&CloudgroupcacheIdOption{}, "cloud-group-cache-syncstatus", "Sync cloudgroupcache", func(s *mcclient.ClientSession, opts *CloudgroupcacheIdOption) error {
result, err := modules.Cloudgroupcaches.PerformAction(s, opts.ID, "syncstatus", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&CloudgroupcacheIdOption{}, "cloud-group-cache-delete", "Delete cloudgroupcache", func(s *mcclient.ClientSession, opts *CloudgroupcacheIdOption) error {
result, err := modules.Cloudgroupcaches.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.Cloudgroupcaches).WithKeyword("cloud-group-cache")
cmd.List(&cloudid.CloudgroupcacheListOptions{})
cmd.Show(&cloudid.CloudgroupcacheIdOption{})
cmd.Delete(&cloudid.CloudgroupcacheIdOption{})
cmd.Perform("syncstatus", &cloudid.CloudgroupcacheIdOption{})
}

View File

@@ -15,58 +15,12 @@
package cloudid
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
type CloudgroupPolicyListOptions struct {
options.BaseListOptions
Cloudgroup string `help:"ID or Name of Cloudgroup"`
Cloudpolicy string `help:"Policy ID or name"`
}
R(&CloudgroupPolicyListOptions{}, "cloud-group-policy-list", "List cloudgroup cloudpolicy pairs", func(s *mcclient.ClientSession, args *CloudgroupPolicyListOptions) error {
var params *jsonutils.JSONDict
{
var err error
params, err = args.BaseListOptions.Params()
if err != nil {
return err
}
}
var result *modulebase.ListResult
var err error
if len(args.Cloudgroup) > 0 {
result, err = modules.Cloudgrouppolicies.ListDescendent(s, args.Cloudgroup, params)
} else if len(args.Cloudpolicy) > 0 {
result, err = modules.Cloudgrouppolicies.ListDescendent2(s, args.Cloudpolicy, params)
} else {
result, err = modules.Cloudgrouppolicies.List(s, params)
}
if err != nil {
return err
}
printList(result, modules.Cloudgrouppolicies.GetColumns(s))
return nil
})
type CloudgroupPolicyDetailOptions struct {
CLOUDUSER string `help:"ID or Name of Cloudgroup"`
CLOUDPOLICY string `help:"ID or Name of Cloudpolicy"`
}
R(&CloudgroupPolicyDetailOptions{}, "cloud-group-policy-show", "Show cloudgrouppolicy details", func(s *mcclient.ClientSession, args *CloudgroupPolicyDetailOptions) error {
query := jsonutils.NewDict()
result, err := modules.Cloudgrouppolicies.Get(s, args.CLOUDUSER, args.CLOUDPOLICY, query)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.Cloudgrouppolicies).WithKeyword("cloud-group-policy").WithContextManager(&modules.Cloudgroups)
cmd.List(&cloudid.CloudgroupPolicyListOptions{})
}

View File

@@ -15,58 +15,12 @@
package cloudid
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
type CloudgroupUserListOptions struct {
options.BaseListOptions
Cloudgroup string `help:"ID or Name of Cloudgroup"`
Clouduser string `help:"User ID or name"`
}
R(&CloudgroupUserListOptions{}, "cloud-group-user-list", "List cloudgroup clouduser pairs", func(s *mcclient.ClientSession, args *CloudgroupUserListOptions) error {
var params *jsonutils.JSONDict
{
var err error
params, err = args.BaseListOptions.Params()
if err != nil {
return err
}
}
var result *modulebase.ListResult
var err error
if len(args.Cloudgroup) > 0 {
result, err = modules.Cloudgroupusers.ListDescendent(s, args.Cloudgroup, params)
} else if len(args.Clouduser) > 0 {
result, err = modules.Cloudgroupusers.ListDescendent2(s, args.Clouduser, params)
} else {
result, err = modules.Cloudgroupusers.List(s, params)
}
if err != nil {
return err
}
printList(result, modules.Cloudgroupusers.GetColumns(s))
return nil
})
type CloudgroupUserDetailOptions struct {
CLOUDUSER string `help:"ID or Name of Cloudgroup"`
CLOUDPOLICY string `help:"ID or Name of Clouduser"`
}
R(&CloudgroupUserDetailOptions{}, "cloud-group-user-show", "Show cloudgroupuser details", func(s *mcclient.ClientSession, args *CloudgroupUserDetailOptions) error {
query := jsonutils.NewDict()
result, err := modules.Cloudgroupusers.Get(s, args.CLOUDUSER, args.CLOUDPOLICY, query)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.Cloudgroupusers).WithKeyword("cloud-group-user").WithContextManager(&modules.Cloudusers)
cmd.List(&cloudid.CloudgroupUserListOptions{})
}

View File

@@ -17,18 +17,18 @@ package cloudid
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Cloudpolicies).WithKeyword("cloud-policy")
cmd.Create(&options.CloudpolicyListOptions{})
cmd.List(&options.CloudpolicyListOptions{})
cmd.Show(&options.CloudpolicyIdOptions{})
cmd.Update(&options.CloudpolicyUpdateOption{})
cmd.Perform("syncstauts", &options.CloudpolicyIdOptions{})
cmd.Perform("lock", &options.CloudpolicyIdOptions{})
cmd.Perform("unlock", &options.CloudpolicyIdOptions{})
cmd.Perform("assign-group", &options.CloudpolicyGroupOptions{})
cmd.Perform("revoke-group", &options.CloudpolicyGroupOptions{})
cmd.Create(&cloudid.CloudpolicyListOptions{})
cmd.List(&cloudid.CloudpolicyListOptions{})
cmd.Show(&cloudid.CloudpolicyIdOptions{})
cmd.Update(&cloudid.CloudpolicyUpdateOption{})
cmd.Perform("syncstauts", &cloudid.CloudpolicyIdOptions{})
cmd.Perform("lock", &cloudid.CloudpolicyIdOptions{})
cmd.Perform("unlock", &cloudid.CloudpolicyIdOptions{})
cmd.Perform("assign-group", &cloudid.CloudpolicyGroupOptions{})
cmd.Perform("revoke-group", &cloudid.CloudpolicyGroupOptions{})
}

View File

@@ -15,28 +15,12 @@
package cloudid
import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
type CloudpolicycacheListOptions struct {
options.BaseListOptions
CloudpolyId string
CloudaccountId string
}
R(&CloudpolicycacheListOptions{}, "cloud-policy-cache-list", "List cloud policy caches", func(s *mcclient.ClientSession, opts *CloudpolicycacheListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.Cloudpolicycaches.List(s, params)
if err != nil {
return err
}
printList(result, modules.Cloudpolicycaches.GetColumns(s))
return nil
})
cmd := shell.NewResourceCmd(&modules.Cloudpolicycaches).WithKeyword("cloud-policy-cache")
cmd.List(&cloudid.CloudpolicycacheListOptions{})
}

View File

@@ -0,0 +1,29 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package cloudid
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Cloudroles).WithKeyword("cloud-role")
cmd.List(&cloudid.CloudroleListOptions{})
cmd.Delete(&cloudid.CloudroleIdOptions{})
cmd.Show(&cloudid.CloudroleIdOptions{})
cmd.Perform("purge", &cloudid.CloudroleIdOptions{})
}

View File

@@ -15,58 +15,12 @@
package cloudid
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
type ClouduserPolicyListOptions struct {
options.BaseListOptions
Clouduser string `help:"ID or Name of Clouduser"`
Cloudpolicy string `help:"Policy ID or name"`
}
R(&ClouduserPolicyListOptions{}, "cloud-user-policy-list", "List clouduser cloudpolicy pairs", func(s *mcclient.ClientSession, args *ClouduserPolicyListOptions) error {
var params *jsonutils.JSONDict
{
var err error
params, err = args.BaseListOptions.Params()
if err != nil {
return err
}
}
var result *modulebase.ListResult
var err error
if len(args.Clouduser) > 0 {
result, err = modules.Clouduserpolicies.ListDescendent(s, args.Clouduser, params)
} else if len(args.Cloudpolicy) > 0 {
result, err = modules.Clouduserpolicies.ListDescendent2(s, args.Cloudpolicy, params)
} else {
result, err = modules.Clouduserpolicies.List(s, params)
}
if err != nil {
return err
}
printList(result, modules.Clouduserpolicies.GetColumns(s))
return nil
})
type ClouduserPolicyDetailOptions struct {
CLOUDUSER string `help:"ID or Name of Clouduser"`
CLOUDPOLICY string `help:"ID or Name of Cloudpolicy"`
}
R(&ClouduserPolicyDetailOptions{}, "cloud-user-policy-show", "Show clouduserpolicy details", func(s *mcclient.ClientSession, args *ClouduserPolicyDetailOptions) error {
query := jsonutils.NewDict()
result, err := modules.Clouduserpolicies.Get(s, args.CLOUDUSER, args.CLOUDPOLICY, query)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.Clouduserpolicies).WithKeyword("cloud-user-policy").WithContextManager(&modules.Cloudpolicies)
cmd.List(&cloudid.ClouduserPolicyListOptions{})
}

View File

@@ -17,21 +17,22 @@ package cloudid
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Cloudusers).WithKeyword("cloud-user")
cmd.List(&options.ClouduserListOptions{})
cmd.Create(&options.ClouduserCreateOptions{})
cmd.Show(&options.ClouduserIdOption{})
cmd.Custom(shell.CustomActionGet, "login-info", &options.ClouduserIdOption{})
cmd.Delete(&options.ClouduserIdOption{})
cmd.Perform("sync", &options.ClouduserSyncOptions{})
cmd.Perform("syncstatus", &options.ClouduserIdOption{})
cmd.Perform("attach-policy", &options.ClouduserPolicyOptions{})
cmd.Perform("detach-policy", &options.ClouduserPolicyOptions{})
cmd.Perform("change-owner", &options.ClouduserChangeOwnerOptions{})
cmd.Perform("cloud-user-join-group", &options.ClouduserGroupOptions{})
cmd.Perform("cloud-user-leave-group", &options.ClouduserGroupOptions{})
cmd.List(&cloudid.ClouduserListOptions{})
cmd.Create(&cloudid.ClouduserCreateOptions{})
cmd.Show(&cloudid.ClouduserIdOption{})
cmd.Custom(shell.CustomActionGet, "login-info", &cloudid.ClouduserIdOption{})
cmd.Delete(&cloudid.ClouduserIdOption{})
cmd.Perform("sync", &cloudid.ClouduserSyncOptions{})
cmd.Perform("syncstatus", &cloudid.ClouduserIdOption{})
cmd.Perform("attach-policy", &cloudid.ClouduserPolicyOptions{})
cmd.Perform("detach-policy", &cloudid.ClouduserPolicyOptions{})
cmd.Perform("change-owner", &cloudid.ClouduserChangeOwnerOptions{})
cmd.Perform("reset-password", &cloudid.ClouduserResetPasswordOptions{})
cmd.Perform("cloud-user-join-group", &cloudid.ClouduserGroupOptions{})
cmd.Perform("cloud-user-leave-group", &cloudid.ClouduserGroupOptions{})
}

View File

@@ -0,0 +1,29 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package cloudid
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
cmd := shell.NewResourceCmd(&modules.SAMLProviders).WithKeyword("saml-provider")
cmd.List(&cloudid.SAMLProviderListOptions{})
cmd.Create(&cloudid.SAMLProviderCreateOptions{})
cmd.Show(&cloudid.SAMLProviderIdOptions{})
cmd.Delete(&cloudid.SAMLProviderIdOptions{})
}

View File

@@ -0,0 +1,29 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package cloudid
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Samlusers).WithKeyword("saml-user")
cmd.List(&cloudid.SamluserListOptions{})
cmd.Create(&cloudid.SamluserCreateOptions{})
cmd.Show(&cloudid.SamluserIdOptions{})
cmd.Delete(&cloudid.SamluserIdOptions{})
}

View File

@@ -342,4 +342,209 @@ func init() {
printObject(result)
return nil
})
type BucketSetWebsiteOption struct {
ID string `help:"ID or name of bucket" json:"-"`
// 主页
Index string `help:"main page"`
// 错误时返回的文档
ErrorDocument string `help:"error return"`
// http或https
Protocol string `help:"force https" choices:"http|https"`
}
R(&BucketSetWebsiteOption{}, "bucket-set-website", "Set bucket website", func(s *mcclient.ClientSession, args *BucketSetWebsiteOption) error {
conf := api.BucketWebsiteConf{
Index: args.Index,
ErrorDocument: args.ErrorDocument,
Protocol: args.Protocol,
}
result, err := modules.Buckets.PerformAction(s, args.ID, "set-website", jsonutils.Marshal(conf))
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketGetWebsiteConfOption struct {
ID string `help:"ID or name of bucket" json:"-"`
}
R(&BucketGetWebsiteConfOption{}, "bucket-get-website", "Get bucket website", func(s *mcclient.ClientSession, args *BucketGetWebsiteConfOption) error {
result, err := modules.Buckets.GetSpecific(s, args.ID, "website", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketDeleteWebsiteConfOption struct {
ID string `help:"ID or name of bucket" json:"-"`
}
R(&BucketDeleteWebsiteConfOption{}, "bucket-delete-website", "Delete bucket website", func(s *mcclient.ClientSession, args *BucketDeleteWebsiteConfOption) error {
result, err := modules.Buckets.PerformAction(s, args.ID, "delete-website", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketSetCorsOption struct {
ID string `help:"ID or name of bucket" json:"-"`
AllowedMethods []string `help:"allowed http method" choices:"PUT|GET|POST|DELETE|HEAD"`
// 允许的源站,可以设为*
AllowedOrigins []string
AllowedHeaders []string
MaxAgeSeconds int
ExposeHeaders []string
RuleId string
}
R(&BucketSetCorsOption{}, "bucket-set-cors", "Set bucket cors", func(s *mcclient.ClientSession, args *BucketSetCorsOption) error {
rule := api.BucketCORSRule{
AllowedOrigins: args.AllowedOrigins,
AllowedMethods: args.AllowedMethods,
AllowedHeaders: args.AllowedHeaders,
MaxAgeSeconds: args.MaxAgeSeconds,
ExposeHeaders: args.ExposeHeaders,
Id: args.RuleId,
}
rules := api.BucketCORSRules{Data: []api.BucketCORSRule{rule}}
result, err := modules.Buckets.PerformAction(s, args.ID, "set-cors", jsonutils.Marshal(rules))
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketGetCorsOption struct {
ID string `help:"ID or name of bucket" json:"-"`
}
R(&BucketGetCorsOption{}, "bucket-get-cors", "Get bucket cors", func(s *mcclient.ClientSession, args *BucketGetCorsOption) error {
result, err := modules.Buckets.GetSpecific(s, args.ID, "cors", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketDeleteCorsOption struct {
ID string `help:"ID or name of bucket" json:"-"`
Id []string `"help:Id of rules to delete"`
}
R(&BucketDeleteCorsOption{}, "bucket-delete-cors", "Delete bucket cors", func(s *mcclient.ClientSession, args *BucketDeleteCorsOption) error {
input := api.BucketCORSRuleDeleteInput{}
input.Id = args.Id
result, err := modules.Buckets.PerformAction(s, args.ID, "delete-cors", jsonutils.Marshal(input))
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketSetRefererOption struct {
ID string `help:"ID or name of bucket" json:"-"`
// 域名列表
DomainList []string
// 是否允许空referer 访问
AllowEmptyRefer bool `help:"all empty refer access"`
}
R(&BucketSetRefererOption{}, "bucket-set-referer", "Set bucket referer", func(s *mcclient.ClientSession, args *BucketSetRefererOption) error {
conf := api.BucketRefererConf{
WhiteList: args.DomainList,
AllowEmptyRefer: args.AllowEmptyRefer,
}
result, err := modules.Buckets.PerformAction(s, args.ID, "set-referer", jsonutils.Marshal(conf))
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketGetRefererOption struct {
ID string `help:"ID or name of bucket" json:"-"`
}
R(&BucketGetRefererOption{}, "bucket-get-referer", "get bucket referer", func(s *mcclient.ClientSession, args *BucketGetRefererOption) error {
result, err := modules.Buckets.GetSpecific(s, args.ID, "referer", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketGetCdnDomainOption struct {
ID string `help:"ID or name of bucket" json:"-"`
}
R(&BucketGetRefererOption{}, "bucket-get-cdn-domain", "get bucket cdn domain", func(s *mcclient.ClientSession, args *BucketGetRefererOption) error {
result, err := modules.Buckets.GetSpecific(s, args.ID, "cdn-domain", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketGetPolicyOption struct {
ID string `help:"ID or name of bucket" json:"-"`
}
R(&BucketGetPolicyOption{}, "bucket-get-policy", "get bucket policy", func(s *mcclient.ClientSession, args *BucketGetPolicyOption) error {
result, err := modules.Buckets.GetSpecific(s, args.ID, "policy", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketSetPolicyOption struct {
ID string `help:"ID or name of bucket" json:"-"`
// 格式主账号id:子账号id
PrincipalId []string `help:"ext account id, accountId:subaccountId"`
// Read|ReadWrite|FullControl
CannedAction string `help:"authority action" choice:"Read|FullControl"`
// Allow|Deny
Effect string `help:"allow or deny" choice:"Allow|Deny"`
// 被授权的资源地址
ResourcePath []string
// ip 条件
IpEquals []string
IpNotEquals []string
}
R(&BucketSetPolicyOption{}, "bucket-set-policy", "set bucket policy", func(s *mcclient.ClientSession, args *BucketSetPolicyOption) error {
opts := api.BucketPolicyStatementInput{}
opts.CannedAction = args.CannedAction
opts.Effect = args.Effect
opts.IpEquals = args.IpEquals
opts.IpNotEquals = args.IpNotEquals
opts.ResourcePath = args.ResourcePath
opts.PrincipalId = args.PrincipalId
result, err := modules.Buckets.PerformAction(s, args.ID, "set-policy", jsonutils.Marshal(opts))
if err != nil {
return err
}
printObject(result)
return nil
})
type BucketDeletePolicyOption struct {
ID string `help:"ID or name of bucket" json:"-"`
Id []string
}
R(&BucketDeletePolicyOption{}, "bucket-delete-policy", "delete bucket policy", func(s *mcclient.ClientSession, args *BucketDeletePolicyOption) error {
input := api.BucketPolicyDeleteInput{}
input.Id = args.Id
result, err := modules.Buckets.PerformAction(s, args.ID, "delete-policy", jsonutils.Marshal(input))
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -27,6 +27,9 @@ func init() {
Region string `help:"show images cached at cloud region"`
Zone string `help:"show images cached at zone"`
HostSchedtagId string `help:"filter cached image with host schedtag"`
Valid *bool `help:"valid cachedimage"`
}
R(&CachedImageListOptions{}, "cached-image-list", "List cached images", func(s *mcclient.ClientSession, args *CachedImageListOptions) error {
params, err := options.ListStructToParams(args)

File diff suppressed because it is too large Load Diff

View File

@@ -35,6 +35,8 @@ func init() {
NoObjectStorage bool `help:"filter cloudproviders that has no object storage"`
Capability []string `help:"capability filter" choices:"project|compute|network|loadbalancer|objectstore|rds|cache|event"`
Cloudregion string `help:"filter cloudproviders by cloudregion"`
HostSchedtagId string `help:"filter by host schedtag"`
}
R(&CloudproviderListOptions{}, "cloud-provider-list", "List cloud providers", func(s *mcclient.ClientSession, args *CloudproviderListOptions) error {
var params *jsonutils.JSONDict
@@ -62,6 +64,10 @@ func init() {
if len(args.Cloudregion) > 0 {
params.Add(jsonutils.NewString(args.Cloudregion), "cloudregion")
}
if len(args.HostSchedtagId) > 0 {
params.Add(jsonutils.NewString(args.HostSchedtagId), "host_schedtag_id")
}
}
result, err := modules.Cloudproviders.List(s, params)
if err != nil {
@@ -229,7 +235,7 @@ func init() {
return err
}
for k, v := range rc {
fmt.Printf("export %s='%s'\n", k, v)
fmt.Printf(`export %s="%s"`+"\n", k, v)
}
return nil
})

Some files were not shown because too many files have changed in this diff Show More