Compare commits

..

1714 Commits

Author SHA1 Message Date
Zexi Li
5e59c6be73 Merge pull request #11290 from ioito/automated-cherry-pick-of-#11289-upstream-release-3.7
Automated cherry pick of #11289: fix(host): avoid panic when params is nil
2021-06-03 11:42:38 +08:00
Qu Xuan
41806c9388 fix(host): avoid panic when params is nil 2021-06-03 11:31:09 +08:00
Zexi Li
c498c6f22b Merge pull request #11285 from zexi/automated-cherry-pick-of-#11284-upstream-release-3.7
Automated cherry pick of #11284: fix(glance): add option of s3 image status check
2021-06-02 11:18:13 +08:00
Zexi Li
ec926f9b62 fix(glance): add option of s3 image status check 2021-06-02 10:46:34 +08:00
Zexi Li
43faf5a5bf Merge pull request #11281 from ioito/automated-cherry-pick-of-#11279-upstream-release-3.7
Automated cherry pick of #11279: fix(region): avoid deadlock when resize disk
2021-06-01 19:19:18 +08:00
Zexi Li
7243b4fd37 Merge pull request #11275 from ioito/automated-cherry-pick-of-#11274-upstream-release-3.7
Automated cherry pick of #11274: fix(region): disable public cloud ip pre allocate
2021-06-01 18:55:14 +08:00
Qu Xuan
767aa5c37a fix(region): avoid deadlock when resize disk 2021-06-01 14:29:53 +08:00
Zexi Li
01000d5334 Merge pull request #11276 from swordqiu/automated-cherry-pick-of-#11268-upstream-release-3.7
Automated cherry pick of #11268: fix: windows resize file system
2021-06-01 11:55:00 +08:00
Qiu Jian
4948869add fix: windows resize file system 2021-05-31 23:59:47 +08:00
Qu Xuan
fd94dc34da fix(region): disable public cloud ip pre allocate 2021-05-31 15:06:57 +08:00
Zexi Li
28b9460fb9 Merge pull request #11267 from ioito/automated-cherry-pick-of-#11266-upstream-release-3.7
Automated cherry pick of #11266: fix(region): fix aws json unmarshal error
2021-05-31 09:56:08 +08:00
Qu Xuan
35f7844c53 fix(region): fix aws json unmarshal error 2021-05-29 12:37:58 +08:00
Zexi Li
2e8c9ee159 Merge pull request #11265 from ioito/automated-cherry-pick-of-#11264-upstream-release-3.7
Automated cherry pick of #11264: fix(region): split provider tag sync
2021-05-28 20:36:26 +08:00
Qu Xuan
93a7f1b815 fix(region): split provider tag sync 2021-05-28 20:18:42 +08:00
Zexi Li
ac416cdfbc Merge pull request #11259 from zhaoxiangchun/automated-cherry-pick-of-#11258-upstream-release-3.7
Automated cherry pick of #11258: fix(host): raid status
2021-05-28 20:12:44 +08:00
zhaoxiangchun
daf14eb739 fix(host): raid status 2021-05-28 19:58:46 +08:00
Zexi Li
883cb64089 Merge pull request #11254 from tb365/automated-cherry-pick-of-#11253-upstream-release-3.7
Automated cherry pick of #11253: fix(region): lbcert cache clean duplicate data fix
2021-05-28 19:18:17 +08:00
Zexi Li
7b8303e9ab Merge pull request #11262 from ioito/automated-cherry-pick-of-#11249-upstream-release-3.7
Automated cherry pick of #11249: fix(region): optimized disk eip snapshot project sync
2021-05-28 19:17:09 +08:00
Qu Xuan
c7a9f726b8 fix(region): optimized disk eip snapshot project sync 2021-05-28 19:07:23 +08:00
tb365
55525a990c fix(region): lbcert cache clean duplicate data fix 2021-05-28 15:47:34 +08:00
Zexi Li
54d3962fb3 Merge pull request #11246 from swordqiu/automated-cherry-pick-of-#11245-upstream-release-3.7
Automated cherry pick of #11245: fix: get apigateway auth/regions with error of illegal mix of collations
2021-05-28 15:43:32 +08:00
Zexi Li
c4685cf58f Merge pull request #11252 from ioito/automated-cherry-pick-of-#11251-upstream-release-3.7
Automated cherry pick of #11251: fix(region): project sync condition
2021-05-28 15:29:05 +08:00
Qu Xuan
e51e0a7ab4 fix(region): project sync condition 2021-05-28 15:15:45 +08:00
Qiu Jian
1dbe7b930a fix: get apigateway auth/regions with error of illegal mix of collations 2021-05-28 09:39:53 +08:00
Zexi Li
071576111c Merge pull request #11218 from ioito/automated-cherry-pick-of-#11217-upstream-release-3.7
Automated cherry pick of #11217: fix(region): optimized aliyun qcloud tags sync
2021-05-27 20:33:12 +08:00
Zexi Li
37516c7b5d Merge pull request #11229 from ioito/automated-cherry-pick-of-#11228-upstream-release-3.7
Automated cherry pick of #11228: fix(region): translation errors
2021-05-27 19:50:02 +08:00
Zexi Li
3a299f0661 Merge pull request #11227 from tb365/automated-cherry-pick-of-#11226-upstream-release-3.7
Automated cherry pick of #11226: fix(region): lb cert name fix
2021-05-27 19:45:28 +08:00
Zexi Li
b4d784d283 Merge pull request #11241 from zexi/automated-cherry-pick-of-#11240-upstream-release-3.7
Automated cherry pick of #11240: fix(region): migrate use rescue mode
2021-05-27 19:43:32 +08:00
Zexi Li
95ef2bc51c Merge pull request #11243 from zexi/automated-cherry-pick-of-#11242-upstream-release-3.7
Automated cherry pick of #11242: Revert "fix(host): raid status fix"
2021-05-27 19:42:48 +08:00
Zexi Li
02a08bc6da Revert "fix(host): raid status fix"
This reverts commit 392f5ab237.
2021-05-27 19:41:42 +08:00
Zexi Li
10e574d389 Merge pull request #11235 from zhaoxiangchun/automated-cherry-pick-of-#11233-upstream-release-3.7
Automated cherry pick of #11233: fix(host): raid status fix
2021-05-27 19:36:23 +08:00
Zexi Li
644a9c1035 fix(region): migrate use rescue mode 2021-05-27 19:35:44 +08:00
zhaoxiangchun
12209ee0c7 fix(host): raid status fix
1. All status are online except offline.
2021-05-27 16:04:18 +08:00
Qu Xuan
e76c1d6c02 fix(region): optimized azure aliyun qcloud tags sync 2021-05-27 10:53:46 +08:00
Qu Xuan
018ef0d986 fix(region): translation errors 2021-05-27 10:48:15 +08:00
tb365
b71406e6ec fix(region): lb cert name fix 2021-05-26 19:58:54 +08:00
Zexi Li
a67bdedb45 Merge pull request #11220 from ioito/automated-cherry-pick-of-#11219-upstream-release-3.7
Automated cherry pick of #11219: fix(host): avoid delete removed disk failed
2021-05-26 14:21:55 +08:00
Qu Xuan
913757f138 fix(host): avoid delete removed disk failed 2021-05-25 21:01:46 +08:00
Zexi Li
8f41c4165a Merge pull request #11202 from ioito/automated-cherry-pick-of-#11201-upstream-release-3.7
Automated cherry pick of #11201: fix(region): show azure deploy failed error
2021-05-25 19:08:50 +08:00
Zexi Li
ec709234d7 Merge pull request #11213 from ioito/automated-cherry-pick-of-#11212-upstream-release-3.7
Automated cherry pick of #11212: fix(region): aws vpc network eip disk tags sync
2021-05-25 19:07:52 +08:00
Zexi Li
b264e3c074 Merge pull request #11211 from zexi/automated-cherry-pick-of-#11166-upstream-release-3.7
Automated cherry pick of #11166: feat(region): add server migration predication API
2021-05-25 18:25:13 +08:00
Qu Xuan
c73de5f64f fix(region): aws vpc network eip disk tags sync 2021-05-25 17:45:44 +08:00
Zexi Li
7c7687ae4d feat(region): add server migration predication API 2021-05-25 17:02:44 +08:00
Qu Xuan
88046eea10 fix(region): show azure deploy failed error 2021-05-25 10:34:50 +08:00
Zexi Li
d445b55d68 Merge pull request #11199 from ioito/automated-cherry-pick-of-#11198-upstream-release-3.7
Automated cherry pick of #11198: fix(region): restrict account project mapping
2021-05-24 18:16:42 +08:00
Zexi Li
122a07b96b Merge pull request #11192 from ioito/automated-cherry-pick-of-#11191-upstream-release-3.7
Automated cherry pick of #11191: fix(region): azure uniform tags
2021-05-24 17:23:31 +08:00
Qu Xuan
984790c18f fix(region): restrict account project mapping 2021-05-24 16:46:58 +08:00
Qu Xuan
1d4b2a04bd fix(region): azure uniform tags 2021-05-24 15:02:03 +08:00
Zexi Li
cb830ad8e3 Merge pull request #11179 from ioito/automated-cherry-pick-of-#11178-upstream-release-3.7
Automated cherry pick of #11178: fix(region): add project and domain info for project mapping rules
2021-05-24 10:16:22 +08:00
Zexi Li
9a69b8c0d2 Merge pull request #11181 from tb365/automated-cherry-pick-of-#11177-upstream-release-3.7
Automated cherry pick of #11177: feat(region): loadbalancer certificate add purge methods
2021-05-24 10:15:07 +08:00
TangBin
cf5dcc611f fix(region): gofmt fix 2021-05-21 11:02:23 +08:00
Qu Xuan
1456b93ec2 fix(region): check sku request error 2021-05-21 11:02:23 +08:00
Qu Xuan
b5fcfb5d16 fix(region): add project and domain info for project mapping rules 2021-05-20 20:41:25 +08:00
Zexi Li
dfee854fb4 Merge pull request #11169 from ioito/automated-cherry-pick-of-#11168-upstream-release-3.7
Automated cherry pick of #11168: fix(region): add host_id options for storage filter
2021-05-20 18:54:26 +08:00
Zexi Li
bba05e4702 Merge pull request #11171 from ioito/automated-cherry-pick-of-#11170-upstream-release-3.7
Automated cherry pick of #11170: fix(region): avoid aws session not assume role
2021-05-20 18:53:01 +08:00
Zexi Li
c93624a093 Merge pull request #11173 from zhaoxiangchun/automated-cherry-pick-of-#11172-upstream-release-3.7
Automated cherry pick of #11172: fix(monitor): fix storage tag
2021-05-20 18:51:42 +08:00
zhaoxiangchun
d1da58b42f fix(monitor): fix storage tag 2021-05-20 17:26:00 +08:00
Qu Xuan
78a9a1ea80 fix(region): avoid aws session not assume role 2021-05-20 16:42:04 +08:00
Qu Xuan
2fb095bc5b fix(region): add host_id options for storage filter 2021-05-20 14:39:42 +08:00
Zexi Li
00c58b79e5 Merge pull request #11093 from zhaoxiangchun/automated-cherry-pick-of-#11025-upstream-release-3.7
Automated cherry pick of #11025: feat(monitor): add storage monitor metric
2021-05-20 09:54:01 +08:00
Zexi Li
bb40ff8ebb Merge pull request #11161 from ioito/automated-cherry-pick-of-#11160-upstream-release-3.7
Automated cherry pick of #11160: fix(region): check sku request error
2021-05-19 23:31:02 +08:00
Qu Xuan
45d3b75211 fix(region): check sku request error 2021-05-19 19:26:51 +08:00
Zexi Li
b6654ce59e Merge pull request #11155 from ioito/automated-cherry-pick-of-#11154-upstream-release-3.7
Automated cherry pick of #11154: fix(region): avoid azure secgroup sync removed
2021-05-19 17:41:20 +08:00
Zexi Li
af88fea62e Merge pull request #11153 from ioito/automated-cherry-pick-of-#11152-upstream-release-3.7
Automated cherry pick of #11152: fix(region): avoid index out of range panic
2021-05-19 17:40:10 +08:00
Qu Xuan
74847d573c fix(region): avoid azure secgroup sync removed 2021-05-19 15:57:55 +08:00
Qu Xuan
11a2f89f6c fix(region): avoid index out of range panic 2021-05-19 15:34:47 +08:00
Zexi Li
5a49a3b0b1 Merge pull request #11149 from rainzm/automated-cherry-pick-of-#11148-upstream-release-3.7
Automated cherry pick of #11148: feat(ansible): add rolePublic and timeout options
2021-05-19 15:23:30 +08:00
Zexi Li
9f89d90bef Merge pull request #11147 from ioito/automated-cherry-pick-of-#11146-upstream-release-3.7
Automated cherry pick of #11146: fix(region): more accounts details for project mapping
2021-05-19 15:23:17 +08:00
Zexi Li
eed04e0569 Merge pull request #11140 from tb365/automated-cherry-pick-of-#11139-upstream-release-3.7
Automated cherry pick of #11139: fix(region): ctyun delete secgroup fix
2021-05-19 15:22:17 +08:00
rainzm
d6791e6074 feat(ansible): add rolePublic and timeout options 2021-05-19 11:29:07 +08:00
Qu Xuan
7cb4da8bda fix(region): more accounts details for project mapping 2021-05-18 17:56:46 +08:00
Zexi Li
14f3d77bf6 Merge pull request #11143 from zexi/automated-cherry-pick-of-#11142-upstream-release-3.7
Automated cherry pick of #11142: fix(glance): make image is_standard updatable
2021-05-18 17:18:30 +08:00
Zexi Li
31c1cbd4f7 fix(glance): make image is_standard updatable 2021-05-18 16:43:32 +08:00
TangBin
f53f9566bb fix(region): ctyun delete secgroup fix 2021-05-18 16:21:20 +08:00
Zexi Li
4cb42acc76 Merge pull request #11135 from ioito/automated-cherry-pick-of-#11134-upstream-release-3.7
Automated cherry pick of #11134: fix(cloudid): clouduser use default domain
2021-05-18 15:56:42 +08:00
Qu Xuan
e8b432a99c fix(cloudid): clouduser use default domain 2021-05-18 15:19:56 +08:00
Zexi Li
ae55af072f Merge pull request #11127 from rainzm/automated-cherry-pick-of-#11126-upstream-release-3.7
Automated cherry pick of #11126: fix(region): check whether the disks of the instance snapshot is empty when creating vm
2021-05-17 22:36:20 +08:00
rainzm
e40c98d602 fix(region): check whether the disks of the instance snapshot is empty when creating vm 2021-05-17 17:26:36 +08:00
Zexi Li
28a99c1d53 Merge pull request #11102 from ioito/automated-cherry-pick-of-#11101-upstream-release-3.7
Automated cherry pick of #11101: fix(region): optimized server sku sku
2021-05-17 10:08:17 +08:00
Zexi Li
9e8da72d53 Merge pull request #11119 from rainzm/automated-cherry-pick-of-#11116-upstream-release-3.7
Automated cherry pick of #11116: webhook fix
2021-05-17 10:07:42 +08:00
Zexi Li
ab68eee123 Merge pull request #11108 from rainzm/automated-cherry-pick-of-#11107-upstream-release-3.7
Automated cherry pick of #11107: fix(esxiagent): make the copied disk type as thin
2021-05-17 10:07:02 +08:00
Zexi Li
f0ec3269f6 Merge pull request #11122 from rainzm/automated-cherry-pick-of-#11121-upstream-release-3.7
Automated cherry pick of #11121: fix(esxiagent): execute deploy operation by default in AgentDeployGuest
2021-05-17 10:06:09 +08:00
yunion-ci-robot
4165571c49 Merge pull request #11124 from ioito/automated-cherry-pick-of-#11123-upstream-release-3.7
Automated cherry pick of #11123: fix(region): project mapping optional
2021-05-16 16:08:57 +08:00
屈轩
a14a434952 fix(region): project mapping optional 2021-05-16 14:17:36 +08:00
rainzm
a0f7a5e7bc fix(esxiagent): execute deploy operation by default in AgentDeployGuest 2021-05-14 19:14:07 +08:00
Zexi Li
a2e3099ae3 Merge pull request #11113 from tb365/automated-cherry-pick-of-#11112-upstream-release-3.7
Automated cherry pick of #11112: fix(region): aws sync disk missing image id fix
2021-05-14 17:33:05 +08:00
rainzm
e65e38f50c fix(region): send webhook when the creation task is completely completed 2021-05-14 17:23:23 +08:00
rainzm
80f07d0675 fix(region): send webhook notification when delete dbinstance 2021-05-14 17:23:23 +08:00
TangBin
c3a11613d8 fix(region): aws sync disk missing image id fix 2021-05-14 15:59:22 +08:00
rainzm
f6bf63fa89 fix(esxiagent): make the copied disk type as thin
磁盘首选精简制备,但是copy disk默认是预分配,所以需要特别指定为
精简制备
2021-05-14 15:05:10 +08:00
Qu Xuan
1c19d1d9cb fix(region): optimized server sku sku 2021-05-13 20:57:48 +08:00
Zexi Li
c15375df27 Merge pull request #11098 from ioito/automated-cherry-pick-of-#11097-upstream-release-3.7
Automated cherry pick of #11097: fix(region): allow update sku status
2021-05-13 20:27:35 +08:00
Qu Xuan
29c77119f6 fix(region): allow update sku status 2021-05-13 19:45:36 +08:00
Zexi Li
9ecad8fc8b Merge pull request #11033 from ioito/automated-cherry-pick-of-#11032-upstream-release-3.7
Automated cherry pick of #11032: fix(region): aliyun vpc endpoint
2021-05-13 18:51:45 +08:00
Zexi Li
ec692eacf4 Merge pull request #11054 from ioito/automated-cherry-pick-of-#11053-upstream-release-3.7
Automated cherry pick of #11053: fix(region): optimized sku sched clear
2021-05-13 18:49:27 +08:00
Zexi Li
b49ff6f7ed Merge pull request #11096 from rainzm/automated-cherry-pick-of-#11095-upstream-release-3.7
Automated cherry pick of #11095: fix(region): use the previous method for guest notification instead of message subscription
2021-05-13 18:48:39 +08:00
rainzm
b3c8cf6cd7 fix(region): use the previous method for guest notification instead of message subscription 2021-05-13 17:42:25 +08:00
zhaoxiangchun
c501123b6e feat(monitor): add storage monitor metric
1.增加块存储storage监控信息:
  1)增加对应翻译信息
  2)监控信息和modules.Strorages接口进行交集取值
  3)返回信息处理
2021-05-13 15:27:54 +08:00
Zexi Li
04113d35f2 Merge pull request #11051 from rainzm/automated-cherry-pick-of-#11050-upstream-release-3.7
Automated cherry pick of #11050: fix(ansibleserver): correct playbook path and role path
2021-05-13 11:55:46 +08:00
Qu Xuan
16cfab47e6 fix(region): optimized sku sched clear 2021-05-13 11:06:54 +08:00
Qu Xuan
c2fbd90bc6 fix(region): aliyun vpc endpoint 2021-05-12 16:27:08 +08:00
rainzm
25db02f5d7 fix(ansibleserver): correct playbook path 2021-05-12 16:22:07 +08:00
Zexi Li
bc581509f4 Merge pull request #11049 from zexi/automated-cherry-pick-of-#11048-upstream-release-3.7
Automated cherry pick of #11048: fix(glance): set fail status when upload image to s3
2021-05-12 15:16:01 +08:00
Zexi Li
0c4c46b2fa fix(glance): set fail status when upload image to s3 2021-05-12 15:02:12 +08:00
Zexi Li
e5d4ad273b Merge pull request #11047 from zexi/automated-cherry-pick-of-#11045-upstream-release-3.7
Automated cherry pick of #11045: fix(baremetal): register baremetal name invalid
2021-05-12 14:52:57 +08:00
Zexi Li
a8312c5e2c fix(baremetal): register baremetal name invalid 2021-05-12 13:07:38 +08:00
Zexi Li
1f7081ed07 Merge pull request #11044 from rainzm/automated-cherry-pick-of-#11043-upstream-release-3.7
Automated cherry pick of #11043: maintain compatibility with previous webhooks
2021-05-12 12:19:46 +08:00
Zexi Li
f5ad6a75ff Merge pull request #11031 from rainzm/automated-cherry-pick-of-#11030-upstream-release-3.7
Automated cherry pick of #11030: fix(region): add RequestRemoteUpdate for ESXiGuestDriver
2021-05-12 12:01:58 +08:00
rainzm
780a024e74 fix(region): maintain compatibility with webhook notify 2021-05-12 10:41:03 +08:00
rainzm
15abea72a2 fix(cloudcommon): disable EventNotify for now
The front end is not yet open, temporarily disable it to avoid meaningless logic and requests
2021-05-12 10:41:03 +08:00
Zexi Li
1c8170e71f Merge pull request #11037 from ioito/automated-cherry-pick-of-#11036-upstream-release-3.7
Automated cherry pick of #11036: fix(region): aliyun nas endpoint
2021-05-12 10:24:11 +08:00
Zexi Li
86096c55ca Merge pull request #11042 from swordqiu/automated-cherry-pick-of-#11041-upstream-release-3.7
Automated cherry pick of #11041: fix: resolve conflict of climc docker build
2021-05-12 09:34:45 +08:00
Qiu Jian
7db688a9ce fix: resolve conflict of climc docker build 2021-05-12 09:20:43 +08:00
Zexi Li
4e6433303b Merge pull request #11040 from zexi/automated-cherry-pick-of-#11039-upstream-release-3.7
Automated cherry pick of #11039: fix(climc): mv climc rpm package .bashrc to /etc/profile.d/climc.sh
2021-05-11 18:18:06 +08:00
Zexi Li
01d2612abb fix(climc): mv climc rpm package .bashrc to /etc/profile.d/climc.sh 2021-05-11 18:16:35 +08:00
Qu Xuan
b7b030fc2e fix(region): aliyun nas endpoint 2021-05-11 15:40:37 +08:00
rainzm
72bc3b8645 fix(region): add RequestRemoteUpdate for ESXiGuestDriver 2021-05-11 11:41:18 +08:00
Zexi Li
2f4bd11e34 Merge pull request #11021 from ioito/automated-cherry-pick-of-#11010-upstream-release-3.7
Automated cherry pick of #11010: fix(region): support project mapping
2021-05-11 10:10:30 +08:00
Yousong Zhou
5da591971c Merge pull request #11024 from yousong/automated-cherry-pick-of-#11023-upstream-release-3.7
Automated cherry pick of #11023: Bugfix/yousong cloudproxy
2021-05-11 09:53:04 +08:00
yunion-ci-robot
4fc53ac5af Merge pull request #11028 from rainzm/automated-cherry-pick-of-#11027-upstream-release-3.7
Automated cherry pick of #11027: fix for install agent for vm
2021-05-11 09:52:55 +08:00
rainzm
b5d4b30ddf fix(devtool): set 'task_id' and 'task_notify_url' in header 2021-05-10 19:58:20 +08:00
rainzm
7a1ba77d93 fix(devtool): get 'lastseen' not 'last_seen' of forward 2021-05-10 19:58:20 +08:00
rainzm
8d7a991d62 feat(cloudproxy): add GetDetailsLastseen for forwards 2021-05-10 19:58:20 +08:00
Yousong Zhou
50f0ca5290 guests: sshable: fix breaking out from wait loop 2021-05-10 17:12:10 +08:00
Yousong Zhou
cb35bc3067 cloudproxy: agent: no collision between ports of ssh conn and forwards 2021-05-10 17:12:10 +08:00
Yousong Zhou
96bcefd50b cloudproxy: agent: refresh every 11 seconds 2021-05-10 17:12:10 +08:00
Yousong Zhou
0a31365190 cloudproxy: agent: ssh: wait ssh conn state while passing it out 2021-05-10 17:12:10 +08:00
Qu Xuan
0b4e459e0a fix(region): support project mapping 2021-05-10 16:15:34 +08:00
Zexi Li
c1cf476f6f Merge pull request #11012 from rainzm/automated-cherry-pick-of-#11011-upstream-release-3.7
Automated cherry pick of #11011: fix(cloudproxy): correct fetch projectId from server for PE
2021-05-10 12:08:00 +08:00
Zexi Li
7430f82f8e Merge pull request #10997 from rainzm/automated-cherry-pick-of-#10996-upstream-release-3.7
Automated cherry pick of #10996: fix(region): continue to sync the snapshots that are being created when syncing auto created snapshot
2021-05-10 12:05:44 +08:00
Zexi Li
4bf6f20710 Merge pull request #11017 from swordqiu/automated-cherry-pick-of-#11016-upstream-release-3.7
Automated cherry pick of #11016: fix: init cloud shell by apigateway
2021-05-10 12:02:45 +08:00
Zexi Li
a7d96eb382 Merge pull request #11014 from swordqiu/automated-cherry-pick-of-#11013-upstream-release-3.7
Automated cherry pick of #11013: fix: missing yunionconf log
2021-05-10 12:00:09 +08:00
Qiu Jian
d80d9f13b7 fix: init cloud shell by apigateway 2021-05-09 01:34:30 +08:00
rainzm
4ba3a26701 fix(cloudproxy): correct fetch projectId from server for PE 2021-05-08 22:26:08 +08:00
Qiu Jian
eda02abc94 fix: missing yunionconf log 2021-05-08 21:53:12 +08:00
Zexi Li
bbdbc7c209 Merge pull request #11007 from zhaoxiangchun/automated-cherry-pick-of-#11005-upstream-release-3.7
Automated cherry pick of #11005: fix(monitor): alertpanel update don't chcek  uniq name
2021-05-08 20:39:03 +08:00
Zexi Li
1c8a566f0f Merge pull request #11009 from yousong/automated-cherry-pick-of-#11008-upstream-release-3.7
Automated cherry pick of #11008: cloudproxy: test proxy endpoint connectivity and remote config
2021-05-08 20:38:40 +08:00
Yousong Zhou
50395f7f7b cloudproxy: test proxy endpoint connectivity and remote config 2021-05-08 19:31:05 +08:00
zhaoxiangchun
8bc086e8df fix(monitor): alertpanel update don't chcek uniq name 2021-05-08 17:50:43 +08:00
Zexi Li
0364e9a0d5 Merge pull request #11001 from ioito/automated-cherry-pick-of-#11000-upstream-release-3.7
Automated cherry pick of #11000: fix(region): wire sql fix
2021-05-08 16:10:15 +08:00
Qu Xuan
8b1b5c0f55 fix(region): wire sql fix 2021-05-08 15:49:16 +08:00
rainzm
eb049034c2 fix(region): continue to sync the snapshots that are being created when syncing auto created snapshot 2021-05-08 11:09:30 +08:00
Zexi Li
9edb75cb55 Merge pull request #10984 from zhaoxiangchun/automated-cherry-pick-of-#10983-upstream-release-3.7
Automated cherry pick of #10983: fix(monitor): monitor query : cloudaccount no data fix
2021-05-08 10:37:33 +08:00
Zexi Li
abb7197039 Merge pull request #10980 from rainzm/automated-cherry-pick-of-#10979-upstream-release-3.7
Automated cherry pick of #10979: fix for creating proxy endpoint
2021-05-08 10:36:57 +08:00
Zexi Li
d354f9c26f Merge pull request #10986 from ioito/automated-cherry-pick-of-#10985-upstream-release-3.7
Automated cherry pick of #10985: fix: add tag for databricks vm
2021-05-08 10:36:13 +08:00
Zexi Li
bf3fb8e4c6 Merge pull request #10989 from ioito/automated-cherry-pick-of-#10988-upstream-release-3.7
Automated cherry pick of #10988: fix: avoid return no data result
2021-05-08 10:35:31 +08:00
Zexi Li
ff3749c018 Merge pull request #10991 from rainzm/automated-cherry-pick-of-#10990-upstream-release-3.7
Automated cherry pick of #10990: fix for install monitor agent
2021-05-08 10:34:45 +08:00
yunion-ci-robot
7b5293e1d8 Merge pull request #10994 from yousong/automated-cherry-pick-of-#10993-upstream-release-3.7
Automated cherry pick of #10993: Bugfix/yousong cloudproxy wait on error
2021-05-08 10:29:40 +08:00
Qu Xuan
082d5a9d61 fix: add tag for databricks vm 2021-05-08 09:28:22 +08:00
Yousong Zhou
bfe665bbf6 guests: sshable: wait and retry for newly created forward 2021-05-07 19:43:15 +08:00
Yousong Zhou
b242af75f4 guests: sshable: log error should unmarshal fail 2021-05-07 19:43:15 +08:00
Yousong Zhou
20f04d2fc5 cloudproxy: agent: more verbose log for ssh connect failure 2021-05-07 19:43:15 +08:00
Yousong Zhou
2cfdb0a08a cloudproxy: agent: wait a while on connect error 2021-05-07 19:43:15 +08:00
Yousong Zhou
92a4bebb2e cloudproxy: forwards: show details for fwd returned from create-from-server 2021-05-07 19:43:15 +08:00
Yousong Zhou
2e82399204 db: add GetItemDetails 2021-05-07 19:43:15 +08:00
rainzm
f89f43d167 fix: update version of file-repo 2021-05-07 18:35:22 +08:00
rainzm
93af6514d3 fix(devtool): wait for the remote forward to run normally 2021-05-07 18:35:22 +08:00
rainzm
73db546f58 fix(devtool): extend the waiting time when checking remote forward 2021-05-07 18:35:22 +08:00
rainzm
93e1f48cbd fix(devtool): add scope=system query when list proxy endpoints 2021-05-07 18:35:22 +08:00
rainzm
93dad50d72 fix(devtool): correct output error 2021-05-07 18:35:22 +08:00
Qu Xuan
8ba639bb4e fix: avoid return no data result 2021-05-07 17:35:58 +08:00
Zexi Li
20327d53b3 Merge pull request #10982 from zexi/automated-cherry-pick-of-#10981-upstream-release-3.7
Automated cherry pick of #10981: feat(region): host list order by server count
2021-05-07 10:34:32 +08:00
zhaoxiangchun
4f7ad853df fix(monitor): monitor query : cloudaccount no data fix
1.修复云账号余额监控查询无数据返回
2021-05-07 09:42:16 +08:00
Zexi Li
0cd7fdd8bb feat(region): host list order by server count 2021-05-06 20:54:06 +08:00
rainzm
835a311275 fix(region): allow domain admin to obtain ssh private keys 2021-05-06 16:52:51 +08:00
rainzm
de7ef8baaf fix(cloudproxy): keep the proxy endpoint project and server consistent 2021-05-06 16:52:51 +08:00
Zexi Li
02d922b5a8 Merge pull request #10976 from zhasm/automated-cherry-pick-of-#10975-upstream-release-3.7
Automated cherry pick of #10975: feat(arm64,build): arm 编译时,不编译 rbdcli
2021-05-06 15:13:01 +08:00
Zhang Dongliang
31363d8d03 feat(arm64,build): arm 编译时,不编译 rbdcli 2021-05-06 11:46:41 +08:00
Zexi Li
970edbb8e7 Merge pull request #10973 from rainzm/automated-cherry-pick-of-#10972-upstream-release-3.7
Automated cherry pick of #10972: fix(notify): correctly filter those recipients who join the domain
2021-04-30 09:59:09 +08:00
rainzm
60f2dfed8a fix(notify): correctly filter those recipients who join the domain 2021-04-29 20:14:19 +08:00
Zexi Li
ba7e086b19 Merge pull request #10965 from tb365/automated-cherry-pick-of-#10964-upstream-release-3.7
Automated cherry pick of #10964: Bugfix/tb bugfix 042801
2021-04-29 09:46:48 +08:00
Zexi Li
f3cbf83fe1 Merge pull request #10968 from ioito/automated-cherry-pick-of-#10967-upstream-release-3.7
Automated cherry pick of #10967: fix(keystone): avoid panic when call logclient
2021-04-29 09:46:23 +08:00
Qu Xuan
7e35db1040 fix(keystone): avoid panic when call logclient 2021-04-28 19:36:35 +08:00
TangBin
22cc784a48 feat(region): add zone disk capability api 2021-04-28 18:17:33 +08:00
TangBin
71ee5d8519 feat(region): cloudregion add disk capability api 2021-04-28 18:17:33 +08:00
Zexi Li
6c5a8f6c41 Merge pull request #10957 from ioito/automated-cherry-pick-of-#10956-upstream-release-3.7
Automated cherry pick of #10956: fix: avoid host worker is locked when image cache is deleted
2021-04-28 09:56:12 +08:00
yunion-ci-robot
423ab9f60d Merge pull request #10960 from swordqiu/automated-cherry-pick-of-#10940-upstream-release-3.7
Automated cherry pick of #10940: Hotfix/qj import user require password
2021-04-28 09:55:28 +08:00
Qiu Jian
a17c84613f fix: require password for imported user 2021-04-28 01:13:50 +08:00
Qu Xuan
251afc7d63 fix: avoid host worker is locked when image cache is deleted 2021-04-27 20:38:04 +08:00
Zexi Li
492fbe2341 Merge pull request #10933 from rainzm/automated-cherry-pick-of-#10932-upstream-release-3.7
Automated cherry pick of #10932: Correctly execute the ansible playbook with the specified private key
2021-04-27 20:12:52 +08:00
Zexi Li
99366d42af Merge pull request #10955 from zhaoxiangchun/automated-cherry-pick-of-#10954-upstream-release-3.7
Automated cherry pick of #10954: fix(monitor): alertdashboard setscope
2021-04-27 20:12:15 +08:00
Zexi Li
a447c2a696 Merge pull request #10953 from ioito/automated-cherry-pick-of-#10952-upstream-release-3.7
Automated cherry pick of #10952: fix: optimized rbd storage input and update
2021-04-27 20:11:51 +08:00
Zexi Li
3ec1ed6b9b Merge pull request #10949 from rainzm/automated-cherry-pick-of-#10948-upstream-release-3.7
Automated cherry pick of #10948: Makes the process of installing the agent more rigorous
2021-04-27 20:10:58 +08:00
Zexi Li
7549ccfb0b Merge pull request #10942 from zexi/automated-cherry-pick-of-#10941-upstream-release-3.7
Automated cherry pick of #10941: fix(region): download cached image from source host before migrating
2021-04-27 20:10:05 +08:00
Zexi Li
f6472ce1ce Merge pull request #10945 from ioito/automated-cherry-pick-of-#10944-upstream-release-3.7
Automated cherry pick of #10944: fix(region): tag list key case insensitive
2021-04-27 17:21:26 +08:00
Zexi Li
708db7b956 fix(region): download cached image from source host before migrating 2021-04-27 17:13:47 +08:00
zhaoxiangchun
c78defe39a fix(monitor): alertdashboard setscope
1.监控面板归属展示问题修复
2021-04-27 17:11:58 +08:00
Qu Xuan
fae6d333c2 fix: optimized rbd storage input and update 2021-04-27 15:42:57 +08:00
rainzm
769425f58a feat(devtool): makes the process of installing the agent more rigorous
1. Use the method returned by server sshable to execute ansible playbook
2. Use direct connection and cloud proxy to find the url that the remote machine
can send data back to local influxdb
2021-04-27 12:01:35 +08:00
rainzm
630729ca84 fix(ansibleserver): be compatible with empty params 2021-04-27 12:01:35 +08:00
rainzm
fb1fb906fa feat(region): return forwardDetails when query server sshable 2021-04-27 12:01:35 +08:00
Qu Xuan
909eeeb782 fix(region): tag list key case insensitive 2021-04-27 11:55:33 +08:00
Zexi Li
72cac9aa15 Merge pull request #10938 from swordqiu/automated-cherry-pick-of-#10937-upstream-release-3.7
Automated cherry pick of #10937: fix(baremetal,esxiagent): no cloudroot user initialized
2021-04-27 10:17:19 +08:00
Zexi Li
b55f7e42d0 Merge pull request #10935 from swordqiu/automated-cherry-pick-of-#10934-upstream-release-3.7
Automated cherry pick of #10934: fix(region): add all.servers.any_pool/all.hosts.any_pool metrics
2021-04-27 10:16:26 +08:00
Qiu Jian
9ae991c153 fix(baremetal,esxiagent): no cloudroot user initialized 2021-04-27 02:00:04 +08:00
Qiu Jian
5bb3958547 fix(region): add all.servers.any_pool/all.hosts.any_pool metrics 2021-04-27 01:49:28 +08:00
Zexi Li
8a9bace797 Merge pull request #10923 from ioito/automated-cherry-pick-of-#10922-upstream-release-3.7
Automated cherry pick of #10922: fix(keystone): tag list for keystone service
2021-04-26 19:10:57 +08:00
Zexi Li
54f1bf99de Merge pull request #10927 from zhaoxiangchun/automated-cherry-pick-of-#10926-upstream-release-3.7
Automated cherry pick of #10926: fix(monitor): alertpanel create fix; nodealert filterbyowner fix
2021-04-26 19:09:18 +08:00
Zexi Li
3732b44c6d Merge pull request #10929 from ioito/automated-cherry-pick-of-#10928-upstream-release-3.7
Automated cherry pick of #10928: fix(region): account arrears
2021-04-26 19:08:19 +08:00
rainzm
4088e47f92 fix(ansibleserver): add LF for privateKey if not 2021-04-26 18:59:44 +08:00
rainzm
7b0f45261d feat(ansibleserver): respect keepTmpdir when running ansibleplaybook v1 2021-04-26 18:59:44 +08:00
rainzm
9502cfebf4 fix(ansibleserver): don't init privateKey for ansibleplaybook if it already have one 2021-04-26 18:59:44 +08:00
Qu Xuan
f68afc4aa6 fix(region): account arrears 2021-04-26 18:02:50 +08:00
zhaoxiangchun
1c8b54f117 fix(monitor): alertpanel create fix; nodealert filterbyowner fix
1.监控图表保存时取消重名检测,允许图表重名
2.虚拟机详情页设置报警时,不同视图下设置报警权限调整

https://bug.yunion.io/zentao/bug-view-7063.html
2021-04-26 16:18:22 +08:00
Qu Xuan
962e19bbd0 fix(keystone): tag list for keystone service 2021-04-26 11:40:25 +08:00
Zexi Li
ef9a9b2935 Merge pull request #10917 from rainzm/automated-cherry-pick-of-#10903-upstream-release-3.7
Automated cherry pick of #10903: feat(region): set metadata for guest with agent installed
2021-04-26 11:39:17 +08:00
Zexi Li
8928d5464f Merge pull request #10921 from ioito/automated-cherry-pick-of-#10920-upstream-release-3.7
Automated cherry pick of #10920: fix(region): avoid set multi resources tags failed
2021-04-26 11:38:58 +08:00
Qu Xuan
f9e2122544 fix(region): avoid set multi resources tags failed 2021-04-25 18:06:19 +08:00
yunion-ci-robot
62aa6867c6 Merge pull request #10912 from tb365/automated-cherry-pick-of-#10911-upstream-release-3.7
Automated cherry pick of #10911: fix ssh proxy endpoint&match query
2021-04-25 17:23:53 +08:00
yunion-ci-robot
46780051b7 Merge pull request #10914 from yousong/automated-cherry-pick-of-#10913-upstream-release-3.7
Automated cherry pick of #10913: hostman: ovn: do not set external_ids:iface-id for backup
2021-04-25 12:03:54 +08:00
rainzm
4ea9204664 feat(region): set metadata for guest with agent installed 2021-04-25 10:59:39 +08:00
Yousong Zhou
4e19feccc7 hostman: ovn: do not set external_ids:iface-id for backup 2021-04-23 20:26:59 +08:00
TangBin
e965d1d9e0 fix(cloudproxy): ssh proxy endpoint&match query 2021-04-23 19:39:07 +08:00
Zexi Li
4a00426705 Merge pull request #10907 from rainzm/automated-cherry-pick-of-#10906-upstream-release-3.7
Automated cherry pick of #10906: fix(region): use special localtask to run time-consuming provider synchronization task
2021-04-23 17:39:16 +08:00
rainzm
702133be51 fix(region): use special localtask to run time-consuming provider synchronization task
CloudProviderSyncInfoTask will local cloudprovider. Make locaktask run
time-consuming task can avoid holding locks for a long time.
2021-04-23 17:02:20 +08:00
yunion-ci-robot
8a89c8ca67 Merge pull request #10902 from yousong/automated-cherry-pick-of-#10901-upstream-release-3.7
Automated cherry pick of #10901: cloudproxy: proxy_endpoints: create-from-server: allow name as arg
2021-04-23 09:48:51 +08:00
Zexi Li
dfacbdd1d2 Merge pull request #10894 from rainzm/automated-cherry-pick-of-#10893-upstream-release-3.7
Automated cherry pick of #10893: fix(region): allow owner to operate snapshotpolicy cache
2021-04-22 21:09:36 +08:00
Zexi Li
5456cd3386 Merge pull request #10898 from rainzm/automated-cherry-pick-of-#10897-upstream-release-3.7
Automated cherry pick of #10897: fix(region): make SScheduledTaskLabel implement IJointModelManager
2021-04-22 21:08:25 +08:00
Yousong Zhou
f8b4d799ae cloudproxy: proxy_endpoints: create-from-server: allow specify name 2021-04-22 20:42:57 +08:00
Zexi Li
ec1d40097d Merge pull request #10892 from zhaoxiangchun/automated-cherry-pick-of-#10891-upstream-release-3.7
Automated cherry pick of #10891: feat(suggestion,mcclient): add suggestsysalert-delete climc
2021-04-22 20:25:30 +08:00
rainzm
8c07b3cb60 fix(region): make SScheduledTaskLabel implement IJointModelManager 2021-04-22 18:17:32 +08:00
rainzm
f642bc959c fix(region): allow owner to operate snapshotpolicy cache 2021-04-22 17:38:28 +08:00
zhaoxiangchun
eeb77e4c3a feat(suggestion,mcclient): add suggestsysalert-delete climc 2021-04-22 17:00:14 +08:00
Zexi Li
b1d5758575 Merge pull request #10886 from rainzm/automated-cherry-pick-of-#10885-upstream-release-3.7
Automated cherry pick of #10885: fix(region): admin update without verification
2021-04-22 16:55:36 +08:00
Zexi Li
7f05532204 Merge pull request #10889 from ioito/automated-cherry-pick-of-#10888-upstream-release-3.7
Automated cherry pick of #10888: fix(region): avoid panic when sync resources
2021-04-22 16:52:42 +08:00
Zexi Li
6c9b7a5793 Merge pull request #10883 from ioito/automated-cherry-pick-of-#10882-upstream-release-3.7
Automated cherry pick of #10882: fix(common): add debug info for lock
2021-04-22 16:51:33 +08:00
Qu Xuan
f3a514a41a fix(region): avoid panic when sync resources 2021-04-22 16:29:16 +08:00
Qu Xuan
5d88767c9b fix(common): add debug info for lock 2021-04-22 16:10:06 +08:00
rainzm
7e054ee0fe fix(region): admin update without verification 2021-04-22 11:45:59 +08:00
Zexi Li
883ad9c76a Merge pull request #10868 from ioito/automated-cherry-pick-of-#10867-upstream-release-3.7
Automated cherry pick of #10867: fix(region): avoid network create failed when vpc is ok but wire not sync
2021-04-22 10:24:21 +08:00
Zexi Li
d692f2908f Merge pull request #10879 from ioito/automated-cherry-pick-of-#10878-upstream-release-3.7
Automated cherry pick of #10878: fix(region): add egress_mbps params for lb
2021-04-22 10:23:33 +08:00
Zexi Li
e43855be74 Merge pull request #10877 from zexi/automated-cherry-pick-of-#10876-upstream-release-3.7
Automated cherry pick of #10876: fix(glance): image can't removed when size is 0
2021-04-21 22:41:00 +08:00
Qu Xuan
52f3b69384 fix(region): add egress_mbps params for lb 2021-04-21 21:45:14 +08:00
Zexi Li
61f06ee3ca fix(glance): image can't removed when size is 0 2021-04-21 20:59:08 +08:00
Zexi Li
0a72fc6fe4 Merge pull request #10864 from rainzm/automated-cherry-pick-of-#10863-upstream-release-3.7
Automated cherry pick of #10863: fix(region): make cloudprovider sync worker configurable
2021-04-21 15:30:19 +08:00
Qu Xuan
857cc0d2b9 fix(region): avoid network create failed when vpc is ok but wire not sync 2021-04-21 14:51:30 +08:00
rainzm
afbc3cc8db fix(region): make cloudprovider sync worker configurable
这个参数意味着,同时允许多少个 provider 来把自己同步的 region 任务放进后
面的队列。
进一步说,配置数量之外的 provider 必须等待前面的 provider 同步完所有的 region
之后,才有机会开始同步自己的region。
此限制的必要性不高,所以默认值设置比较大,为"10"。
2021-04-21 12:23:27 +08:00
yunion-ci-robot
99994d929f Merge pull request #10824 from ioito/automated-cherry-pick-of-#10709-upstream-release-3.7
Automated cherry pick of #10709: Hotfix/qx secrule sync fix
2021-04-21 11:29:51 +08:00
Zexi Li
11e1701f23 Merge pull request #10835 from zexi/automated-cherry-pick-of-#10833-upstream-release-3.7
Automated cherry pick of #10833: fix(region): fetch cached image from glance by default
2021-04-21 11:19:15 +08:00
yunion-ci-robot
2341ed161b Merge pull request #10850 from yousong/automated-cherry-pick-of-#10849-upstream-release-3.7
Automated cherry pick of #10849: Feature/yousong zombie
2021-04-21 10:12:56 +08:00
Zexi Li
c97c363710 Merge pull request #10856 from swordqiu/automated-cherry-pick-of-#10855-upstream-release-3.7
Automated cherry pick of #10855: fix(baremetal): baremetal ipmi probe reset link up state
2021-04-21 10:12:49 +08:00
Zexi Li
fde4dc46be Merge pull request #10852 from rainzm/automated-cherry-pick-of-#10851-upstream-release-3.7
Automated cherry pick of #10851: fix(region): avoid using LocalTaskWorker in time-consuming synchronization of cloudaccount
2021-04-21 10:09:42 +08:00
Yousong Zhou
a8857a34ab treewide: wait possible zombies 2021-04-20 22:08:15 +08:00
Yousong Zhou
9da0b2e7db procutils: WaitZombieLoop: remove unneeded info request 2021-04-20 22:08:14 +08:00
Yousong Zhou
6acc3e8cca procutils: WaitZombieLoop: less verbose iota 2021-04-20 22:08:14 +08:00
Yousong Zhou
970aa949a7 procutils: WaitZombieLoop: use const str "1" for my pid 2021-04-20 22:08:14 +08:00
Yousong Zhou
26183d0de8 procutils: add WaitZombieLoop 2021-04-20 22:08:14 +08:00
Qiu Jian
c1868f1dde fix(baremetal): baremetal ipmi probe reset link up state 2021-04-20 21:37:29 +08:00
Zexi Li
819b60bffa Merge pull request #10846 from ioito/automated-cherry-pick-of-#10845-upstream-release-3.7
Automated cherry pick of #10845: fix(region): optimized vm account name code
2021-04-20 20:15:18 +08:00
rainzm
c41d974d0c fix(region): avoid using LocalTaskworker in time-consuming synchronization of cloudaccount 2021-04-20 19:58:16 +08:00
Zexi Li
80194f0369 Merge pull request #10840 from ioito/automated-cherry-pick-of-#10839-upstream-release-3.7
Automated cherry pick of #10839: fix(region): avoid panic when sync aliyun networks
2021-04-20 18:51:14 +08:00
Zexi Li
b4e90b7afa Merge pull request #10843 from rainzm/automated-cherry-pick-of-#10838-upstream-release-3.7
Automated cherry pick of #10838: feat(ansibleserver): update file_reop version in dockerfile
2021-04-20 18:50:22 +08:00
Zexi Li
f44779464b Merge pull request #10830 from ioito/automated-cherry-pick-of-#10829-upstream-release-3.7
Automated cherry pick of #10829: fix(region): vm list order by disk size
2021-04-20 18:49:28 +08:00
Zexi Li
7cd86c277f Merge pull request #10818 from rainzm/automated-cherry-pick-of-#10817-upstream-release-3.7
Automated cherry pick of #10817: fix(esxi): prevent fake template and real template from duplication
2021-04-20 18:45:49 +08:00
Qu Xuan
fe92804219 fix(region): optimized vm account name code 2021-04-20 18:36:03 +08:00
rainzm
bf839f9add feat(ansibleserver): update file_reop version in dockerfile 2021-04-20 18:01:02 +08:00
Qu Xuan
8a52933a87 fix(region): avoid panic when sync aliyun networks 2021-04-20 17:55:10 +08:00
Zexi Li
13800c5d91 fix(region): fetch cached image from glance by default 2021-04-20 17:52:33 +08:00
Zexi Li
a519886bfe Merge pull request #10826 from ioito/automated-cherry-pick-of-#10825-upstream-release-3.7
Automated cherry pick of #10825: fix(region): avoid assign vm ip addr not effect
2021-04-20 17:16:27 +08:00
Zexi Li
f3dd07cddd Merge pull request #10823 from rainzm/automated-cherry-pick-of-#10822-upstream-release-3.7
Automated cherry pick of #10822: feat(multicloud): add snapshots list for ecloud
2021-04-20 17:15:00 +08:00
Qu Xuan
f0fe752501 fix(region): vm list order by disk size 2021-04-20 16:52:54 +08:00
Qu Xuan
8a84c690ca fix(region): avoid assign vm ip addr not effect 2021-04-20 16:30:20 +08:00
Qu Xuan
c28f3f68aa fix(region): optimized peer secgroup 2021-04-20 15:23:41 +08:00
rainzm
e3be359237 feat(multicloud): add snapshots list for ecloud 2021-04-20 11:56:59 +08:00
Zexi Li
8154628011 Merge pull request #10816 from rainzm/automated-cherry-pick-of-#10794-upstream-release-3.7
Automated cherry pick of #10794: Devtool script optimization and fix
2021-04-20 10:45:20 +08:00
rainzm
63fd7e5891 fix(esxi): prevent fake template and real template from duplication 2021-04-20 10:29:11 +08:00
rainzm
74874d35dc feat(region): increase the log for debugging when syncing cloudimage 2021-04-20 10:29:11 +08:00
rainzm
377f9d00e5 fix(devtool): fix a bug that may trigger panic 2021-04-20 10:12:29 +08:00
rainzm
0078bde428 feat(devtool): add ScriptApplyId fro ScriptApplyRecord 2021-04-20 10:12:29 +08:00
Zexi Li
b076d2506f Merge pull request #10812 from ioito/automated-cherry-pick-of-#10811-upstream-release-3.7
Automated cherry pick of #10811: fix(region): wait more time for creating nas
2021-04-19 21:08:10 +08:00
Zexi Li
7230411565 Merge pull request #10805 from ioito/automated-cherry-pick-of-#10804-upstream-release-3.7
Automated cherry pick of #10804: fix: owner id fix
2021-04-19 21:07:52 +08:00
Zexi Li
413db0ec47 Merge pull request #10813 from zexi/automated-cherry-pick-of-#10810-upstream-release-3.7
Automated cherry pick of #10810: fix(multicloud): set isEmulated as false for ecloud vpc
2021-04-19 21:07:28 +08:00
rainzm
e96c43b21e fix(multicloud): set isEmulated as false for ecloud vpc 2021-04-19 21:07:00 +08:00
Zexi Li
63e0df1cb8 Merge pull request #10797 from ioito/automated-cherry-pick-of-#10796-upstream-release-3.7
Automated cherry pick of #10796: fix: add region id params
2021-04-19 21:05:07 +08:00
Qu Xuan
f514514eab fix(region): wait more time for creating nas 2021-04-19 19:59:44 +08:00
Zexi Li
bf749fe9d2 Merge pull request #10807 from ioito/automated-cherry-pick-of-#10806-upstream-release-3.7
Automated cherry pick of #10806: fix: ignore aliyun region not supported error
2021-04-19 18:50:38 +08:00
Zexi Li
c8aff6b022 Merge pull request #10809 from ioito/automated-cherry-pick-of-#10808-upstream-release-3.7
Automated cherry pick of #10808: fix(region): convert eip with same project with vm
2021-04-19 18:49:56 +08:00
Qu Xuan
1761b0fd6c fix(region): nas owner id fix 2021-04-19 18:00:58 +08:00
Qu Xuan
c79495dbfe fix(region): convert eip with same project with vm 2021-04-19 17:54:24 +08:00
Qu Xuan
ec2e51a721 fix(region): ignore aliyun region not supported error 2021-04-19 16:24:53 +08:00
Zexi Li
7c12d40453 Merge pull request #10782 from tb365/automated-cherry-pick-of-#10776-upstream-release-3.7
Automated cherry pick of #10776: fix(region): qcloud redis sync fix
2021-04-19 16:18:31 +08:00
tangbin
f93e9f1cdb fix(region): qcloud redis sync fix 2021-04-19 15:13:17 +08:00
Zexi Li
202e2e2989 Merge pull request #10778 from ioito/automated-cherry-pick-of-#10777-upstream-release-3.7
Automated cherry pick of #10777: fix: add options for pre allow ip add
2021-04-19 14:55:17 +08:00
Qu Xuan
cfba238f8c fix: add region id params 2021-04-19 14:20:17 +08:00
Zexi Li
f94149f761 Merge pull request #10791 from ioito/automated-cherry-pick-of-#10790-upstream-release-3.7
Automated cherry pick of #10790: fix: avoid panic
2021-04-19 13:16:02 +08:00
Zexi Li
25e710adc5 Merge pull request #10787 from yousong/automated-cherry-pick-of-#10786-upstream-release-3.7
Automated cherry pick of #10786: cloudproxy: agent: return when ctx is Done
2021-04-19 13:15:26 +08:00
Zexi Li
f476e2e101 Merge pull request #10795 from ioito/automated-cherry-pick-of-#10793-upstream-release-3.7
Automated cherry pick of #10793: avoid log loss when token expired fix #10738
2021-04-19 11:26:24 +08:00
Qu Xuan
84820637f5 avoid log loss when token expired fix #10738 2021-04-19 11:16:15 +08:00
Qu Xuan
7012a8cfba fix: avoid panic 2021-04-19 10:41:39 +08:00
Yousong Zhou
3407b98a8d cloudproxy: agent: return when ctx is Done 2021-04-19 10:38:33 +08:00
Zexi Li
fe148ec4a2 Merge pull request #10785 from yousong/automated-cherry-pick-of-#10784-upstream-release-3.7
Automated cherry pick of #10784: cloudproxy: agent: avoid stallment caused by client timeout
2021-04-17 21:14:25 +08:00
Yousong Zhou
2bda95c62b cloudproxy: agent: avoid stallment caused by client timeout 2021-04-16 19:44:04 +08:00
Qu Xuan
b8530c26d2 fix: add options for pre allow ip add 2021-04-16 17:09:51 +08:00
Zexi Li
2252316ba2 Merge pull request #10775 from yousong/automated-cherry-pick-of-#10774-upstream-release-3.7
Automated cherry pick of #10774: region: guests: sshable: more compact make-sshable-cmd
2021-04-16 16:53:47 +08:00
Yousong Zhou
c63e05d926 region: guests: sshable: more compact make-sshable-cmd 2021-04-16 16:32:39 +08:00
Zexi Li
c3552e1f04 Merge pull request #10728 from zhaoxiangchun/automated-cherry-pick-of-#10727-upstream-release-3.7
Automated cherry pick of #10727: feat(region): add ecloud monitor metric
2021-04-16 16:01:38 +08:00
Zexi Li
9d2352bf6d Merge pull request #10772 from ioito/automated-cherry-pick-of-#10771-upstream-release-3.7
Automated cherry pick of #10771: fix: add rbdcli commond for debug
2021-04-16 15:59:41 +08:00
Qu Xuan
83c108d48d fix: add rbdcli commond for debug 2021-04-16 15:28:24 +08:00
yunion-ci-robot
439bc78247 Merge pull request #10732 from yousong/automated-cherry-pick-of-#10713-upstream-release-3.7
Automated cherry pick of #10713: Feature/yousong make sshable
2021-04-16 13:16:48 +08:00
Zexi Li
cf858bed1e Merge pull request #10766 from yousong/automated-cherry-pick-of-#10765-upstream-release-3.7
Automated cherry pick of #10765: ansibleserver: wait zombie subprocesses
2021-04-16 13:15:29 +08:00
Zexi Li
1df7d49581 Merge pull request #10751 from yousong/automated-cherry-pick-of-#10750-upstream-release-3.7
Automated cherry pick of #10750: vpcagent: ovn: fix port match condition formation
2021-04-16 10:07:06 +08:00
Zexi Li
540c23d9a0 Merge pull request #10762 from rainzm/automated-cherry-pick-of-#10761-upstream-release-3.7
Automated cherry pick of #10761: fix(region): Remind that cloud account synchronization failed due to network synchronization failure
2021-04-16 10:06:32 +08:00
Zexi Li
bd0768e1b9 Merge pull request #10758 from rainzm/automated-cherry-pick-of-#10757-upstream-release-3.7
Automated cherry pick of #10757: Validate creating cloud account data about ecloud
2021-04-16 10:06:21 +08:00
Zexi Li
82e18f86df Merge pull request #10764 from rainzm/automated-cherry-pick-of-#10763-upstream-release-3.7
Automated cherry pick of #10763: fix(region): purge instancesnapshot when purging guest
2021-04-16 10:02:42 +08:00
Yousong Zhou
7f80003d24 ansibleserver: wait zombie subprocesses 2021-04-16 09:55:39 +08:00
rainzm
7b80435451 fix(region): purge instancesnapshot when purging guest
fix #10760
2021-04-15 19:01:21 +08:00
rainzm
d105e0556f fix(region): Remind that cloud account synchronization failed due to network synchronization failure 2021-04-15 18:33:40 +08:00
zhaoxiangchun
1883e72597 feat(region): add ecloud monitor metric 2021-04-15 18:11:41 +08:00
Yousong Zhou
51cd8bd2f6 climc: add commands server-make-sshable, server-make-sshable-cmd 2021-04-15 17:51:16 +08:00
Yousong Zhou
554e03fde8 region: guests: sshable: add GET /servers/<server-id>/make-sshable-cmd 2021-04-15 17:51:16 +08:00
Yousong Zhou
d4451640ae region: guests: sshable: add POST /servers/<server-id>/make-sshable 2021-04-15 17:51:16 +08:00
Yousong Zhou
db0e28434f region: guests: sshable: add field sshable_last_state 2021-04-15 17:51:16 +08:00
Yousong Zhou
4ab5c2c29a region: guests: sshable: refactor for reusability 2021-04-15 17:51:16 +08:00
Yousong Zhou
dfc1680176 regions: lbagents: move pb update/create as mcclient module method 2021-04-15 17:51:16 +08:00
Yousong Zhou
ea0523e02f build: ansibleserver: use ansibleserver-base:v1.0.3 2021-04-15 17:51:16 +08:00
Yousong Zhou
88311dacaa build: ansibleserver-base: v1.0.3: add sshpass
Required for using ansible with ansible_password
2021-04-15 17:51:16 +08:00
rainzm
507523a52f fix(region): remove useless Environment 2021-04-15 17:15:07 +08:00
rainzm
6bc4baa9bf fix(region): try to connect when new a SEcloudClient 2021-04-15 17:15:07 +08:00
Yousong Zhou
840273c189 vpcagent: ovn: fix port match condition formation 2021-04-15 16:08:34 +08:00
Zexi Li
1e05d5e997 Merge pull request #10747 from ioito/automated-cherry-pick-of-#10746-upstream-release-3.7
Automated cherry pick of #10746: fix wire status close #10737
2021-04-15 15:05:55 +08:00
Qu Xuan
3e16bf9d04 fix wire status close #10737 2021-04-15 14:46:49 +08:00
Zexi Li
1d7f40cad0 Merge pull request #10724 from ioito/automated-cherry-pick-of-#10723-upstream-release-3.7
Automated cherry pick of #10723: fix: aliyun lb charge type
2021-04-15 12:42:03 +08:00
Zexi Li
9918cb8a54 Merge pull request #10730 from rainzm/automated-cherry-pick-of-#10729-upstream-release-3.7
Automated cherry pick of #10729: fix(esxi): correctly set the imagePath outside the if block
2021-04-15 12:41:09 +08:00
Zexi Li
49896c7eec Merge pull request #10735 from zexi/automated-cherry-pick-of-#10734-upstream-release-3.7
Automated cherry pick of #10734: fix(cloudcommon): unify OS_ARCH constants
2021-04-15 12:21:43 +08:00
Zexi Li
e1816106aa fix(cloudcommon): unify OS_ARCH constants 2021-04-15 10:53:05 +08:00
rainzm
de8fd509d9 fix(esxi): correctly set the imagePath outside the if block 2021-04-14 19:03:48 +08:00
Qu Xuan
7730e87fc5 fix: aliyun lb charge type 2021-04-14 18:05:22 +08:00
yunion-ci-robot
15b08bf340 Merge pull request #10722 from zexi/automated-cherry-pick-of-#10718-upstream-release-3.7
Automated cherry pick of #10718: fix(baremetal): use command timeout context replace timeout command
2021-04-14 17:45:47 +08:00
Zexi Li
ce89455fff Merge pull request #10717 from ioito/automated-cherry-pick-of-#10716-upstream-release-3.7
Automated cherry pick of #10716: fix: nas misc
2021-04-14 17:28:58 +08:00
Zexi Li
85cbe33480 Merge pull request #10715 from ioito/automated-cherry-pick-of-#10714-upstream-release-3.7
Automated cherry pick of #10714: fix: openstack health should be normal
2021-04-14 17:23:57 +08:00
Zexi Li
6d5cd8ca89 fix(baremetal): use command timeout context replace timeout command 2021-04-14 17:16:23 +08:00
Qu Xuan
a874c2a758 fix: nas misc 2021-04-14 17:07:26 +08:00
Zexi Li
ceced723f9 Merge pull request #10711 from zexi/automated-cherry-pick-of-#10710-upstream-release-3.7
Automated cherry pick of #10710: fix(region): decouple region and etcd service
2021-04-14 16:58:48 +08:00
Qu Xuan
1e7cf0af4f fix: openstack health should be normal 2021-04-14 14:23:24 +08:00
Zexi Li
febd9b7f6f fix(region): decouple region and etcd service 2021-04-13 18:35:43 +08:00
Zexi Li
db6c137725 Merge pull request #10706 from rainzm/automated-cherry-pick-of-#10705-upstream-release-3.7
Automated cherry pick of #10705: fix(cloudcommon): use rbac authentication dedicated to the list interface in GetModelProperty
2021-04-13 16:56:08 +08:00
Zexi Li
8cc2b6b7b1 Merge pull request #10703 from zexi/automated-cherry-pick-of-#10702-upstream-release-3.7
Automated cherry pick of #10702: fix(host-deployer): mkfs.ext4 add '-T largefile' option
2021-04-13 15:44:25 +08:00
rainzm
c8d1ac215a fix(cloudcommon): use rbac authentication dedicated to the list interface in GetModelProperty 2021-04-13 14:45:46 +08:00
Zexi Li
ecaa035949 fix(host-deployer): mkfs.ext4 add '-T largefile' option 2021-04-13 11:49:48 +08:00
Zexi Li
d058b06dce Merge pull request #10670 from yousong/automated-cherry-pick-of-#10669-upstream-release-3.7
Automated cherry pick of #10669: region: guests: sshable: more friendly fail reason for proxy_forward
2021-04-13 11:44:42 +08:00
Zexi Li
92ebcc01dc Merge pull request #10696 from rainzm/automated-cherry-pick-of-#10695-upstream-release-3.7
Automated cherry pick of #10695: feat(region): allow to update account with provider vmware
2021-04-13 10:25:46 +08:00
Zexi Li
8b40fad185 Merge pull request #10701 from zexi/automated-cherry-pick-of-#10699-upstream-release-3.7
Automated cherry pick of #10699: feat(fetcherfs): make rpm and deb package
2021-04-13 10:25:12 +08:00
Zexi Li
d518257c3a feat(fetcherfs): make rpm and deb package 2021-04-12 21:31:27 +08:00
Yousong Zhou
042a572818 region: guests: sshable: only check sshable state when in running state 2021-04-12 17:35:03 +08:00
Yousong Zhou
188cac1fdb region: guests: sshable: return early on sshable=true 2021-04-12 17:35:03 +08:00
Yousong Zhou
59e224518a region: guests: sshable: more friendly fail reason for proxy_forward 2021-04-12 17:35:03 +08:00
rainzm
12d1aa805d feat(region): allow to update account with provider vmware 2021-04-12 15:56:42 +08:00
Zexi Li
fc62085cf9 Merge pull request #10672 from zhaoxiangchun/automated-cherry-pick-of-#10671-upstream-release-3.7
Automated cherry pick of #10671: fix(monitor): alertPanel add dumplicate name check
2021-04-12 13:17:54 +08:00
Zexi Li
15253f69fb Merge pull request #10689 from ioito/automated-cherry-pick-of-#10688-upstream-release-3.7
Automated cherry pick of #10688: fix: actions domain filter by project doamin id
2021-04-12 13:17:06 +08:00
Zexi Li
65865c9c07 Merge pull request #10693 from zexi/automated-cherry-pick-of-#10692-upstream-release-3.7
Automated cherry pick of #10692: fix(readme): rename OneCloud to YunionCloud
2021-04-12 13:15:55 +08:00
Zexi Li
3a66bfbe91 Merge pull request #10684 from swordqiu/automated-cherry-pick-of-#10683-upstream-release-3.7
Automated cherry pick of #10683: fix(baremetal-agent): baremetal will probe status in status unknown
2021-04-12 13:15:22 +08:00
Zexi Li
4c4c015626 fix(readme): rename OneCloud to YunionCloud 2021-04-12 13:14:30 +08:00
Qu Xuan
287d5a5554 fix: actions domain filter by project doamin id 2021-04-12 11:41:54 +08:00
Qiu Jian
32311f989f fix(baremetal-agent): baremetal will probe status in status unknown 2021-04-12 00:23:12 +08:00
Zexi Li
dccd9d8c26 Merge pull request #10682 from ioito/automated-cherry-pick-of-#10681-upstream-release-3.7
Automated cherry pick of #10681: fix: nas for huawei
2021-04-10 12:07:08 +08:00
Qu Xuan
19b617b1e4 fix: nas for huawei 2021-04-09 19:44:14 +08:00
Zexi Li
8c749f23d5 Merge pull request #10541 from rainzm/automated-cherry-pick-of-#10537-upstream-release-3.7
Automated cherry pick of #10537: Ecloud support
2021-04-09 17:55:37 +08:00
Zexi Li
d794650d40 Merge pull request #10679 from zexi/automated-cherry-pick-of-#10678-upstream-release-3.7
Automated cherry pick of #10678: fix(host): detect ovs version
2021-04-09 17:19:42 +08:00
Zexi Li
9e88d5bc0c Merge pull request #10668 from rainzm/automated-cherry-pick-of-#10667-upstream-release-3.7
Automated cherry pick of #10667: feat(notify): exempt the administrator to update the receiver verification
2021-04-09 17:03:20 +08:00
Zexi Li
d6d28cf01a fix(host): detect ovs version 2021-04-09 17:01:10 +08:00
Zexi Li
84d99ae8e6 Merge pull request #10677 from ioito/automated-cherry-pick-of-#10666-upstream-release-3.7
Automated cherry pick of #10666: feat: add nas sync
2021-04-09 11:19:38 +08:00
Qu Xuan
0343daa1fa feat: add nas sync 2021-04-09 10:44:40 +08:00
Zexi Li
8e8a2313ca Merge pull request #10676 from ioito/automated-cherry-pick-of-#10675-upstream-release-3.7
Automated cherry pick of #10675: fix: add trans info
2021-04-09 10:39:47 +08:00
Zexi Li
b66c2c78a6 Merge pull request #10674 from ioito/automated-cherry-pick-of-#10673-upstream-release-3.7
Automated cherry pick of #10673: fix: optimized aliyun error
2021-04-09 10:39:11 +08:00
zhaoxiangchun
9901f56b73 fix(monitor): set alertdashboard scope 2021-04-09 10:35:37 +08:00
zhaoxiangchun
383709d8e6 fix(monitor): alertPanel add dumplicate name check
1.重名自动+1
2021-04-09 10:35:37 +08:00
Qu Xuan
bc991fda78 fix: add trans info 2021-04-08 21:19:18 +08:00
Qu Xuan
3e984f1158 fix: optimized aliyun error 2021-04-08 20:54:39 +08:00
Zexi Li
3a5a7401a6 Merge pull request #10594 from zhaoxiangchun/automated-cherry-pick-of-#10592-upstream-release-3.7
Automated cherry pick of #10592: fix(host): update host metric tags when server or host  changeowner
2021-04-08 18:13:21 +08:00
rainzm
66b6a2f62c feat(notify): exempt the administrator to update the receiver verification 2021-04-08 17:21:53 +08:00
zhaoxiangchun
4661533639 fix(host): update host metric tags when server or host changeowner 2021-04-08 17:19:21 +08:00
rainzm
34cbe2d55b feat(region): support Ecloud (readonly) 2021-04-08 11:38:45 +08:00
rainzm
6a9f2a416f feat(region): disable synchronization of some special storage 2021-04-08 11:38:45 +08:00
Zexi Li
f84d8ca58a Merge pull request #10665 from ioito/automated-cherry-pick-of-#10664-upstream-release-3.7
Automated cherry pick of #10664: fix: qcloud eip bandwidth
2021-04-08 11:27:55 +08:00
Qu Xuan
c12125d864 fix: qcloud eip bandwidth 2021-04-08 11:12:46 +08:00
Zexi Li
b5823e6431 Merge pull request #10663 from rainzm/automated-cherry-pick-of-#10662-upstream-release-3.7
Automated cherry pick of #10662: fix(region): remove code about getting service url
2021-04-08 10:53:59 +08:00
rainzm
24be43090b fix(region): remove code about getting service url 2021-04-08 10:46:54 +08:00
Zexi Li
52213bf234 Merge pull request #10620 from swordqiu/automated-cherry-pick-of-#10619-upstream-release-3.7
Automated cherry pick of #10619: fix(region): remove i18n lock and logs
2021-04-08 10:34:15 +08:00
Zexi Li
82de3c04da Merge pull request #10587 from ioito/automated-cherry-pick-of-#10586-upstream-release-3.7
Automated cherry pick of #10586: fix: secgroup cache policy
2021-04-08 10:33:12 +08:00
Zexi Li
0766696681 Merge pull request #10659 from swordqiu/automated-cherry-pick-of-#10658-upstream-release-3.7
Automated cherry pick of #10658: fix(region): sync baremetal desc before do ipmi probing
2021-04-08 10:14:25 +08:00
Qu Xuan
f60e956414 fix: secgroup cache policy 2021-04-08 09:46:34 +08:00
Qiu Jian
39de7daaeb fix(region): sync baremetal desc before do ipmi probing 2021-04-08 01:29:32 +08:00
Zexi Li
18e7847b77 Merge pull request #10657 from ioito/automated-cherry-pick-of-#10656-upstream-release-3.7
Automated cherry pick of #10656: fix: validate secgroup references
2021-04-07 21:47:56 +08:00
Zexi Li
745164b4ec Merge pull request #10655 from rainzm/automated-cherry-pick-of-#10654-upstream-release-3.7
Automated cherry pick of #10654: fix(notify): exempt the administrator to create the receiver verification
2021-04-07 21:47:26 +08:00
Zexi Li
5fc53aef9c Merge pull request #10498 from yousong/automated-cherry-pick-of-#10497-upstream-release-3.7
Automated cherry pick of #10497: [rfc] Feature/yousong vpc route
2021-04-07 21:32:53 +08:00
Zexi Li
da55cc03c5 Merge pull request #10350 from rainzm/automated-cherry-pick-of-#9824-upstream-release-3.7
Automated cherry pick of #9824: Install monitor agent for VM
2021-04-07 21:22:11 +08:00
Qu Xuan
3e88e3093d fix: validate secgroup references 2021-04-07 21:01:18 +08:00
rainzm
3805119c4a fix(notify): exempt the administrator to create the receiver verification 2021-04-07 19:19:36 +08:00
rainzm
a1f508929f feat(devtool): check sshable before applying ansible playbook for server 2021-04-07 18:50:29 +08:00
rainzm
abd7771c78 feat(devtool): add script
Script in devtool is a program or configuration that can be applied to the target host,
currently only supports ansible playbook
2021-04-07 18:50:29 +08:00
rainzm
e671a218e9 feat(cloudcommon): set TaskNotifyUrl in GetTaskRequestHeader
To support cross-service task callbacks, you must set TaskNotifyUrl,
which is automatically added to TaskRequestHeader here
2021-04-07 18:50:29 +08:00
rainzm
c95f064d10 feat(ansibleserver): add reference and instance
Reference is a reference to a local or remote playbook without certain inventory
and its location is determined by playbookPath.
Instance is a complete playbook that can be executed directly, it is filled with inventory and config.
Instance ensures that the playbook is executed successfully as far as
possible without exceeding the maximum number of attempts
2021-04-07 18:50:29 +08:00
rainzm
c043af3ae2 feat(docker): inject playbook and telegraf installation packages 2021-04-07 18:50:29 +08:00
Zexi Li
96f1f35427 Merge pull request #10651 from rainzm/automated-cherry-pick-of-#10650-upstream-release-3.7
Automated cherry pick of #10650: feat(notify): filter receivers who join the project under the domain where the requester is currently located
2021-04-07 18:08:30 +08:00
Zexi Li
734e39d816 Merge pull request #10653 from rainzm/automated-cherry-pick-of-#10652-upstream-release-3.7
Automated cherry pick of #10652: fix(region): rigorously merge the network under wire
2021-04-07 18:07:47 +08:00
Zexi Li
ac83770ce8 Merge pull request #10645 from swordqiu/automated-cherry-pick-of-#10644-upstream-release-3.7
Automated cherry pick of #10644: fix(region): allow ipmi probe in status unknown
2021-04-07 17:55:52 +08:00
Zexi Li
30d3d69eea Merge pull request #10648 from rainzm/automated-cherry-pick-of-#10647-upstream-release-3.7
Automated cherry pick of #10647: fix(region): avoid refreshing when checking the image
2021-04-07 17:37:29 +08:00
rainzm
4ea6067307 fix(region): rigorously merge the network under wire
网络a和网络b能不能合并 = 网络a能不能合并到网络b || 网络b能不能合并到网络a
2021-04-07 16:58:59 +08:00
rainzm
c1ef5f28f2 feat(notify): filter receivers who join the project under the domain where the requester is currently located 2021-04-07 16:17:56 +08:00
yunion-ci-robot
9ccf73d668 Merge pull request #10643 from tb365/automated-cherry-pick-of-#10637-upstream-release-3.7
Automated cherry pick of #10637: fix(region): guest associate eip checking fix
2021-04-07 16:14:47 +08:00
rainzm
c24cb90920 fix(region): avoid refreshing when checking the image 2021-04-07 10:54:34 +08:00
Qiu Jian
79452d771a fix(region): allow ipmi probe in status unknown 2021-04-07 01:00:30 +08:00
tangbin
2f075de8cb fix(region): guest sync eip fix 2021-04-06 18:41:41 +08:00
tangbin
e728f62fdf fix(region): guest associate eip checking fix 2021-04-06 18:41:41 +08:00
Zexi Li
b1a7527e10 Merge pull request #10600 from yousong/automated-cherry-pick-of-#10599-upstream-release-3.7
Automated cherry pick of #10599: Feature/yousong sshable
2021-04-06 18:41:25 +08:00
Zexi Li
c00cd7016d Merge pull request #10630 from rainzm/automated-cherry-pick-of-#10629-upstream-release-3.7
Automated cherry pick of #10629: feat(region): virtually display the esxiagent of the cached image as a host
2021-04-06 18:39:44 +08:00
Zexi Li
f1c980f703 Merge pull request #10639 from rainzm/automated-cherry-pick-of-#10638-upstream-release-3.7
Automated cherry pick of #10638: feat(notify): 管理后台新建的联系人,手机号和邮箱无需进行校验
2021-04-06 18:26:07 +08:00
rainzm
956850ae3d feat(notify): 管理后台新建的联系人,手机号和邮箱无需进行校验 2021-04-06 17:21:25 +08:00
Zexi Li
99cf9d8eea Merge pull request #10632 from yousong/automated-cherry-pick-of-#10631-upstream-release-3.7
Automated cherry pick of #10631: apigateway: handler: add cloudproxy
2021-04-06 17:09:32 +08:00
Zexi Li
0f3754efab Merge pull request #10634 from ioito/automated-cherry-pick-of-#10633-upstream-release-3.7
Automated cherry pick of #10633: fix: private cloud sku attached disk count
2021-04-06 17:08:37 +08:00
Qu Xuan
295d4b993b fix: private cloud sku attached disk count 2021-04-06 15:02:51 +08:00
Yousong Zhou
f9cfee0554 climc: compute: add command server-sshable 2021-04-06 13:02:34 +08:00
Yousong Zhou
05545a0e45 region: guests: add GET /servers/<guest-id>/sshable 2021-04-06 13:02:34 +08:00
Yousong Zhou
ed061d0821 cloudproxy: agent: ssh: cancel on return from Start 2021-04-06 13:02:34 +08:00
Yousong Zhou
8701114f78 cloudproxy: add metadata model 2021-04-06 13:02:34 +08:00
Yousong Zhou
ba7fe6f544 cloudproxy: agent: fix possible invalid memory access 2021-04-06 13:02:33 +08:00
Yousong Zhou
4b01916e64 cloudproxy: agent: use yunion.io/x/onecloud/pkg/util/ssh 2021-04-06 13:02:33 +08:00
Yousong Zhou
148481f03e cloudproxy: forwards: more list filter conditional keys 2021-04-06 13:02:33 +08:00
Yousong Zhou
6ec27d22b5 cloudproxy: apis: add ForwardDetails definition 2021-04-06 13:02:33 +08:00
Yousong Zhou
e4662b77f1 util: ssh: add ConnectContext method for ClientConfig 2021-04-06 13:02:33 +08:00
Yousong Zhou
39c1695821 apigateway: handler: add cloudproxy 2021-04-06 11:55:58 +08:00
rainzm
791f942196 feat(region): virtually display the esxiagent of the cached image as a host 2021-04-06 11:33:57 +08:00
Zexi Li
f9357d30c1 Merge pull request #10623 from swordqiu/automated-cherry-pick-of-#10622-upstream-release-3.7
Automated cherry pick of #10622: fix(keystone): role_assignment effective list ignore groups without user
2021-04-06 10:18:22 +08:00
Zexi Li
0b4bba3ee3 Merge pull request #10628 from swordqiu/automated-cherry-pick-of-#10627-upstream-release-3.7
Automated cherry pick of #10627: feature: add a standalone dhcp relay service
2021-04-06 10:16:35 +08:00
Qiu Jian
baabc82903 feature: add a standalone dhcp relay service 2021-04-06 08:50:59 +08:00
Qiu Jian
128f895c5c fix(keystone): role_assignment effective list ignore groups without user 2021-04-05 17:21:21 +08:00
Qiu Jian
2749d2c708 fix(region): remove i18n lock and logs 2021-04-05 16:39:45 +08:00
Zexi Li
4b4349fe7d Merge pull request #10613 from swordqiu/automated-cherry-pick-of-#10612-upstream-release-3.7
Automated cherry pick of #10612: fix(region): add usage cache, speedup response
2021-04-05 00:55:18 +08:00
yunion-ci-robot
2e2f995d98 Merge pull request #10617 from ioito/automated-cherry-pick-of-#10616-upstream-release-3.7
Automated cherry pick of #10616: fix(region): new aws region
2021-04-04 20:15:44 +08:00
yunion-ci-robot
e86c71b4c2 Merge pull request #10609 from ioito/automated-cherry-pick-of-#10608-upstream-release-3.7
Automated cherry pick of #10608: fix: time sync duration
2021-04-04 20:12:46 +08:00
Qiu Jian
c2d3355ba6 response scope-specific metrics 2021-04-04 20:08:13 +08:00
Qiu Jian
3248f57253 fix(region): add usage cache, speedup response 2021-04-04 20:08:13 +08:00
Qu Xuan
bc1c1c20b6 fix: new aws region 2021-04-03 12:31:14 +08:00
Qu Xuan
67df9bb417 fix: time sync duration 2021-04-02 20:54:31 +08:00
Zexi Li
24bdba49fa Merge pull request #10602 from rainzm/automated-cherry-pick-of-#10601-upstream-release-3.7
Automated cherry pick of #10601: Fix the problem of hostwire producted by #9723
2021-04-02 20:04:43 +08:00
Zexi Li
5843a4a2e2 Merge pull request #10604 from zexi/automated-cherry-pick-of-#10603-upstream-release-3.7
Automated cherry pick of #10603: fix(baremetal): sas2iru parse line
2021-04-02 20:03:56 +08:00
Zexi Li
6f66566f41 Merge pull request #10579 from swordqiu/automated-cherry-pick-of-#10576-upstream-release-3.7
Automated cherry pick of #10576: fix(region): allow ipmi probe when probe fail
2021-04-02 19:44:37 +08:00
Zexi Li
5afefffadb Merge pull request #10582 from swordqiu/automated-cherry-pick-of-#10581-upstream-release-3.7
Automated cherry pick of #10581: fix(hostman): recycle local disk file when rebuilding root
2021-04-02 19:42:47 +08:00
Zexi Li
d4ca3e9ff6 Merge pull request #10591 from ioito/automated-cherry-pick-of-#10590-upstream-release-3.7
Automated cherry pick of #10590: fix: secgroup cache reference
2021-04-02 19:41:23 +08:00
Zexi Li
a881a955b5 Merge pull request #10596 from rainzm/automated-cherry-pick-of-#10595-upstream-release-3.7
Automated cherry pick of #10595: Fixes problem of Esxi Disk with iso creating
2021-04-02 19:40:13 +08:00
Zexi Li
20c041ec02 fix(baremetal): sas2iru parse line 2021-04-02 19:28:25 +08:00
rainzm
841ec1f251 fix(region): expand the bridge field
由于 esxi 中,bridge 是 dvs 的一个路径,长度为 16 字段会不够用
2021-04-02 19:23:22 +08:00
rainzm
052442ef66 fix(region): de-duplication when obtaining the number of hosts 2021-04-02 19:23:22 +08:00
rainzm
18bececcf2 fix(esxi): determine whether the disk is a root disk more reasonably
The order of the device is often sorted according to the size of the
key. The disk pointed to by the smallest key is not necessarily the
root disk or the first disk which often has the label of 'Hard disk 1'.
We try to find the label, if not, use the Key again to determine who
is the root disk.
2021-04-02 19:21:35 +08:00
rainzm
6cb91fdea0 feat(esxi): change parameters for NewDiskDev and avoid unnecessary deploy
1. The fields UnitNumber and Index should be independent
2. Avoid unnecessary deploy, such create vm with iso not image
2021-04-02 19:21:35 +08:00
rainzm
f8a822c5f3 fix(esxi): add ListPath for storage and use it to check iso
When remote iso file is used, CheckFile will failed.
2021-04-02 19:21:35 +08:00
Qu Xuan
2d57443765 fix: secgroup cache reference 2021-04-02 16:20:31 +08:00
Zexi Li
45538dc807 Merge pull request #10588 from swordqiu/automated-cherry-pick-of-#7047-upstream-release-3.7
Automated cherry pick of #7047: fix: adjust primary key length when sqlchemy utf8 default to utf8mb4
2021-04-02 15:10:47 +08:00
Qiu Jian
0c57a713e5 fix: adjust primary key length when sqlchemy utf8 default to utf8mb4 2021-04-02 15:06:19 +08:00
Qiu Jian
20c4dad4e1 fix(hostman): recycle local disk file when rebuilding root 2021-04-02 02:16:44 +08:00
yunion-ci-robot
6f5cdaa1e4 Merge pull request #10569 from ioito/automated-cherry-pick-of-#10568-upstream-release-3.7
Automated cherry pick of #10568: fix: avoid listener worker leak
2021-04-01 22:43:39 +08:00
Qiu Jian
14bd5ea08a fix(region): allow ipmi probe when probe fail 2021-04-01 22:38:30 +08:00
yunion-ci-robot
92d5ed4b7d Merge pull request #10575 from ioito/automated-cherry-pick-of-#10482-upstream-release-3.7
Automated cherry pick of #10482: fix: before insert
2021-04-01 22:27:42 +08:00
Qu Xuan
0c72b07c3a fix: before insert 2021-04-01 21:25:58 +08:00
Zexi Li
0e8cadc1e0 Merge pull request #10547 from zexi/automated-cherry-pick-of-#10546-upstream-release-3.7
Automated cherry pick of #10546: fix(host): arm vm virtio-net-pci without addr
2021-04-01 20:52:50 +08:00
Zexi Li
b4b7afa6b5 Merge pull request #10550 from swordqiu/automated-cherry-pick-of-#10549-upstream-release-3.7
Automated cherry pick of #10549: fix(image): update min_disk of iso image
2021-04-01 20:51:51 +08:00
Zexi Li
a26fd9ec3a Merge pull request #10553 from zhaoxiangchun/automated-cherry-pick-of-#10552-upstream-release-3.7
Automated cherry pick of #10552: fix(monitor):修复监控总览图标钻取后返回数据异常的问题
2021-04-01 20:51:03 +08:00
Zexi Li
e860d82907 Merge pull request #10556 from ioito/automated-cherry-pick-of-#10555-upstream-release-3.7
Automated cherry pick of #10555: fix: nat sku domain policy
2021-04-01 20:50:38 +08:00
Zexi Li
93eaa19c35 Merge pull request #10558 from ioito/automated-cherry-pick-of-#10557-upstream-release-3.7
Automated cherry pick of #10557: fix: cloudaccount auto sync
2021-04-01 20:49:56 +08:00
Zexi Li
32eb6d06b3 Merge pull request #10562 from ioito/automated-cherry-pick-of-#10561-upstream-release-3.7
Automated cherry pick of #10561: fix: vendor update
2021-04-01 20:48:47 +08:00
Zexi Li
b6c2f94232 Merge pull request #10566 from rainzm/automated-cherry-pick-of-#10565-upstream-release-3.7
Automated cherry pick of #10565: fix(esxi): be compatible with disconnected host
2021-04-01 20:47:53 +08:00
Zexi Li
a2d9bc7784 Merge pull request #10574 from ioito/automated-cherry-pick-of-#10573-upstream-release-3.7
Automated cherry pick of #10573: fix: avoid update protocol with any faild
2021-04-01 20:44:45 +08:00
Qu Xuan
71b0a4faeb fix: avoid update protocol with any faild 2021-04-01 17:36:45 +08:00
Qu Xuan
7b79a8e49a fix: avoid listener worker leak 2021-04-01 17:26:48 +08:00
rainzm
d9040773fd fix(esxi): be compatible with disconnected host 2021-04-01 17:18:07 +08:00
Qu Xuan
8e65757b90 fix: vendor update 2021-04-01 16:54:11 +08:00
Qu Xuan
15efe1933c fix: cloudaccount auto sync 2021-04-01 16:17:05 +08:00
Qu Xuan
263db9b8c2 fix: nat sku domain policy 2021-04-01 10:32:24 +08:00
zhaoxiangchun
36bdc18a8a fix(monitor):修复监控总览图标钻取后返回数据异常的问题 2021-04-01 10:05:15 +08:00
Qiu Jian
c23b169e1b fix(image): update min_disk of iso image 2021-03-31 23:21:23 +08:00
Zexi Li
45b6072f21 fix(host): arm vm virtio-net-pci without addr 2021-03-31 18:53:22 +08:00
Yousong Zhou
aaa3f23b98 Merge pull request #10544 from zhaoxiangchun/automated-cherry-pick-of-#10543-upstream-release-3.7
Automated cherry pick of #10543: fix(host): modification of netio collection field  of local virtual machine
2021-03-31 15:17:18 +08:00
yunion-ci-robot
19392394d2 Merge pull request #10539 from swordqiu/automated-cherry-pick-of-#10538-upstream-release-3.7
Automated cherry pick of #10538: fix(region): add more usage metrics, e.g. ports.eip, servers.last_week, pending_delete_servers.last_week
2021-03-31 15:12:42 +08:00
zhaoxiangchun
83a8364116 fix(host): modification of netio collection field of local virtual machine
1.本地虚拟机指标保存时field存在转换关系
bits_recv
bits_sent
2021-03-31 10:33:18 +08:00
Qiu Jian
762664fd0e fix(region): add more usage metrics, e.g. ports.eip, servers.last_week, pending_delete_servers.last_week 2021-03-31 03:38:51 +08:00
Zexi Li
9f4880b3d1 Merge pull request #10526 from ioito/automated-cherry-pick-of-#10525-upstream-release-3.7
Automated cherry pick of #10525: fix: peer secgroup rule fix
2021-03-30 19:47:50 +08:00
Zexi Li
62e5194522 Merge pull request #10530 from ioito/automated-cherry-pick-of-#10529-upstream-release-3.7
Automated cherry pick of #10529: fix: instance with eip charge type
2021-03-30 19:46:27 +08:00
Zexi Li
26a36febe2 Merge pull request #10528 from ioito/automated-cherry-pick-of-#10527-upstream-release-3.7
Automated cherry pick of #10527: fix: vpc public with nat
2021-03-30 19:45:31 +08:00
Zexi Li
6fe31c82ee Merge pull request #10536 from zhaoxiangchun/automated-cherry-pick-of-#10534-upstream-release-3.7
Automated cherry pick of #10534: fix(monitor): alertQuery fix
2021-03-30 19:44:20 +08:00
zhaoxiangchun
1b045d59c0 fix(monitor): alertQuery fix
1.兼容meter相关的监控数据查询
2.根据groupby
  确定resType,从而确定云管中对应的资源,然后进行属性填充,解决资源属性修改的问题
2021-03-30 18:24:15 +08:00
Zexi Li
6fb26dccd7 Merge pull request #10532 from swordqiu/automated-cherry-pick-of-#10531-upstream-release-3.7
Automated cherry pick of #10531: fix(region): show storage capacity to project users
2021-03-30 15:53:54 +08:00
Qiu Jian
a44eb70df1 fix(region): show storage capacity to project users 2021-03-30 12:28:41 +08:00
Qu Xuan
4f00223dfa fix: instance with eip charge type 2021-03-30 11:47:19 +08:00
Qu Xuan
aea94c0667 fix: vpc public with nat 2021-03-29 17:48:16 +08:00
Qu Xuan
14be7b8a04 fix: peer secgroup rule fix 2021-03-29 17:28:48 +08:00
Zexi Li
e04c481d33 Merge pull request #10517 from zhaoxiangchun/automated-cherry-pick-of-#10516-upstream-release-3.7
Automated cherry pick of #10516: fix(monitor): filter alertquery result according to onecloud resources
2021-03-29 17:15:54 +08:00
Zexi Li
fffe278371 Merge pull request #10515 from zhaoxiangchun/automated-cherry-pick-of-#10514-upstream-release-3.7
Automated cherry pick of #10514: fix(monitor): registry alertPanel in mcclient
2021-03-29 12:14:46 +08:00
Zexi Li
c79ad8ba35 Merge pull request #10522 from ioito/automated-cherry-pick-of-#10521-upstream-release-3.7
Automated cherry pick of #10521: fix: account auto sync time
2021-03-29 12:13:44 +08:00
Qu Xuan
0a81e8a54d fix: account auto sync time 2021-03-29 11:22:28 +08:00
Zexi Li
8eb81fdda9 Merge pull request #10520 from swordqiu/automated-cherry-pick-of-#10519-upstream-release-3.7
Automated cherry pick of #10519: fix(region): aws sts assume role fail break account initialization
2021-03-29 09:51:54 +08:00
Qiu Jian
51dfb8f733 fix(region): aws sts assume role fail break account initialization 2021-03-29 06:32:46 +08:00
zhaoxiangchun
4ad8729f7a fix(monitor): filter alertquery result according to onecloud resources
1.排除已经删除的资源
2.对已经删除的资源不再持续报警
2021-03-28 18:56:47 +08:00
zhaoxiangchun
23e44d83d3 fix(monitor): registry alertPanel in mcclient 2021-03-27 22:00:52 +08:00
yunion-ci-robot
7858f3e2f3 Merge pull request #10511 from ioito/automated-cherry-pick-of-#10510-upstream-release-3.7
Automated cherry pick of #10510: fix: sku zone
2021-03-26 17:31:38 +08:00
Qu Xuan
038faf7912 fix: sku zone 2021-03-26 16:45:24 +08:00
Zexi Li
871801da5f Merge pull request #10500 from yousong/automated-cherry-pick-of-#10499-upstream-release-3.7
Automated cherry pick of #10499: vpcagent: ovn: fix qos for eip upload
2021-03-26 15:18:08 +08:00
Zexi Li
62c8052b1f Merge pull request #10506 from swordqiu/automated-cherry-pick-of-#10505-upstream-release-3.7
Automated cherry pick of #10505: fix(baremetal): megactl driver fail to find device by key
2021-03-26 15:16:45 +08:00
Yousong Zhou
eee6e59b88 vpcagent: ovn: fix qos for eip upload 2021-03-26 10:27:54 +08:00
Qiu Jian
6945b6250f fix(baremetal): megactl driver fail to find device by key 2021-03-26 03:20:03 +08:00
Yousong Zhou
0a929ed335 vpcagent: ovn: add ClaimRoutes 2021-03-24 20:18:04 +08:00
Yousong Zhou
2ec4a1cec7 vpcagent: ovn: resolveRoutes from API models 2021-03-24 20:18:04 +08:00
Yousong Zhou
3c3cd4c59e vpcagent: models: annotate guest with guestnetworks 2021-03-24 20:18:04 +08:00
Yousong Zhou
f7c4e38e18 vpcagent: models: add route tables 2021-03-24 20:18:04 +08:00
Yousong Zhou
97433ccfab region: apis: route: add nexthop type "IP" 2021-03-24 20:18:04 +08:00
Zexi Li
0a844d088d Merge pull request #10495 from zhaoxiangchun/automated-cherry-pick-of-#10494-upstream-release-3.7
Automated cherry pick of #10494: fix(monitor): modify onecloud replacement code
2021-03-24 19:35:40 +08:00
Zexi Li
7efba1f0c5 Merge pull request #10493 from ioito/automated-cherry-pick-of-#10490-upstream-release-3.7
Automated cherry pick of #10490: fix: nat delete and create fix
2021-03-24 19:35:33 +08:00
Zexi Li
9a58806105 Merge pull request #10486 from tb365/automated-cherry-pick-of-#10483-upstream-release-3.7
Automated cherry pick of #10483: (fix) region: qcloud elb https listener create fix
2021-03-24 18:51:50 +08:00
zhaoxiangchun
fdafdeb8a5 fix(monitor): modify onecloud replacement code
1.增加copyright api查询逻辑
2021-03-24 18:09:21 +08:00
Qu Xuan
740937ff61 fix: nat delete and create fix 2021-03-24 14:09:26 +08:00
Zexi Li
f2613cfdfd Merge pull request #10488 from ioito/automated-cherry-pick-of-#10487-upstream-release-3.7
Automated cherry pick of #10487: fix: remove qcloud region and zone prefix
2021-03-24 12:22:23 +08:00
Zexi Li
9db0eb5a59 Merge pull request #10491 from zexi/fix/build-telegraf-raid-plugin
fix(build): build telegraf-raid-plugin
2021-03-24 12:21:33 +08:00
Zexi Li
183e9cfa5f fix(build): build telegraf-raid-plugin 2021-03-24 12:18:29 +08:00
Qu Xuan
82ac671238 fix: remove qcloud region and zone prefix 2021-03-23 17:43:54 +08:00
tangbin
07eea2f703 (fix) region: qcloud elb https listener create fix 2021-03-23 15:49:01 +08:00
Zexi Li
5a8aea333a Merge pull request #10475 from yousong/automated-cherry-pick-of-#10474-upstream-release-3.7
Automated cherry pick of #10474: Bugfix/yousong guestnic
2021-03-23 10:39:39 +08:00
Zexi Li
0bf0b0fa05 Merge pull request #10481 from zexi/automated-cherry-pick-of-#10479-upstream-release-3.7
Automated cherry pick of #10479: fix(host): ignore parted resize disk unknown partition table error
2021-03-23 10:38:36 +08:00
Zexi Li
fc1abe2ebf fix(host): ignore parted resize disk unknown partition table error 2021-03-23 10:00:44 +08:00
Yousong Zhou
1b07ee7987 region: fix setting nic index
When a guest has two nics, changing ip address of the 1st will cause
the new nic after detach then attach to be "1", colliding with the
original nic of index 1
2021-03-22 19:34:01 +08:00
Yousong Zhou
90fd8c868f region: attachnetwork: allow attach by network name
isValidNetworkInfo allows names.  Otherwise the code will panic when
a named was passed and nil was returned by the fetch call
2021-03-22 19:34:01 +08:00
Zexi Li
1d19289ccb Merge pull request #10469 from swordqiu/automated-cherry-pick-of-#10468-upstream-release-3.7
Automated cherry pick of #10468: fix(log): add filters to baremetal event logs
2021-03-22 16:09:12 +08:00
Zexi Li
7f4538d3fc Merge pull request #10472 from ioito/automated-cherry-pick-of-#10451-upstream-release-3.7
Automated cherry pick of #10451: fix: add qcloud get tags and remove unused interface
2021-03-22 14:02:17 +08:00
Zexi Li
31559d29c0 Merge pull request #10473 from swordqiu/automated-cherry-pick-of-#10471-upstream-release-3.7
Automated cherry pick of #10471: fix(apigateway): use info response service type of console endpoints
2021-03-22 14:00:32 +08:00
Qiu Jian
2990e5d478 fix(apigateway): use info response service type of console endpoints 2021-03-22 13:59:27 +08:00
Qu Xuan
cc8a400000 fix: add qcloud get tags and remove unused interface 2021-03-22 12:08:43 +08:00
Qiu Jian
1e4b1f3d37 fix(log): add filters to baremetal event logs 2021-03-22 10:53:10 +08:00
Zexi Li
92f4ccbe2c Merge pull request #10463 from ioito/automated-cherry-pick-of-#10462-upstream-release-3.7
Automated cherry pick of #10462: fix: add index for image_type
2021-03-22 10:45:20 +08:00
Zexi Li
a13a38e1eb Merge pull request #10461 from rainzm/automated-cherry-pick-of-#10460-upstream-release-3.7
Automated cherry pick of #10460: fix(notify): be compatible with robots and webhooks
2021-03-22 10:44:31 +08:00
Zexi Li
b7420826cf Merge pull request #10467 from zexi/automated-cherry-pick-of-#10449-upstream-release-3.7
Automated cherry pick of #10449: fix: nat sku env
2021-03-22 10:43:22 +08:00
Qu Xuan
22756d4952 fix: nat sku env 2021-03-22 10:42:55 +08:00
Zexi Li
c3c63b1b02 Merge pull request #10453 from ioito/automated-cherry-pick-of-#10452-upstream-release-3.7
Automated cherry pick of #10452: fix: avoid panic when use idc vpc
2021-03-22 10:40:38 +08:00
Zexi Li
cd7a65a993 Merge pull request #10456 from swordqiu/automated-cherry-pick-of-#10455-upstream-release-3.7
Automated cherry pick of #10455: fix(keystone): allow joint projects across domains by default
2021-03-22 10:39:19 +08:00
Qu Xuan
1fd9bd5b2f fix: add index for image_type 2021-03-19 14:29:17 +08:00
rainzm
ad1d065ac6 fix(notify): be compatible with robots and webhooks 2021-03-19 11:11:27 +08:00
Qiu Jian
e6868d5d0f fix(keystone): allow joint projects across domains by default 2021-03-19 00:00:22 +08:00
Qu Xuan
1aeb8a9a80 fix: avoid panic when use idc vpc 2021-03-18 21:04:34 +08:00
Zexi Li
ea992cab10 Merge pull request #10447 from zexi/automated-cherry-pick-of-#10446-upstream-release-3.7
Automated cherry pick of #10446: feat(host): adjust qemu args to support aarch64
2021-03-18 15:22:44 +08:00
Zexi Li
1cd6cf50af feat(host): adjust qemu args to support aarch64 2021-03-18 14:59:43 +08:00
Zexi Li
5aaaebd028 Merge pull request #10432 from rainzm/automated-cherry-pick-of-#10431-upstream-release-3.7
Automated cherry pick of #10431: feat(region): add wire info in HostNetwork details
2021-03-18 10:24:37 +08:00
Zexi Li
27811c8de2 Merge pull request #10438 from swordqiu/automated-cherry-pick-of-#10437-upstream-release-3.7
Automated cherry pick of #10437: fix(region): scoped policy filter by project id
2021-03-18 10:23:55 +08:00
Zexi Li
c6d09a3e76 Merge pull request #10442 from swordqiu/automated-cherry-pick-of-#10441-upstream-release-3.7
Automated cherry pick of #10441: fix(region): including domain info in project-role results
2021-03-18 10:23:26 +08:00
Zexi Li
f474df27cf Merge pull request #10401 from ioito/automated-cherry-pick-of-#10162-upstream-release-3.7
Automated cherry pick of #10162: fix(region): struct input for detach server network
2021-03-18 10:18:28 +08:00
Zexi Li
60bd8f2dec Merge pull request #10400 from ioito/automated-cherry-pick-of-#10399-upstream-release-3.7
Automated cherry pick of #10399: fix: optimzed tag update and sync
2021-03-18 10:18:06 +08:00
Zexi Li
c9b3c00c4d Merge pull request #10434 from ioito/automated-cherry-pick-of-#10433-upstream-release-3.7
Automated cherry pick of #10433: fix: avoid stop or start vm failed
2021-03-18 10:17:26 +08:00
Zexi Li
607a451596 Merge pull request #10430 from ioito/automated-cherry-pick-of-#10429-upstream-release-3.7
Automated cherry pick of #10429: fix: optimized nat entry
2021-03-18 10:16:23 +08:00
Qiu Jian
3288fe9da2 fix(region): including domain info in project-role results 2021-03-18 00:33:16 +08:00
Qiu Jian
8ca6d176f0 fix(region): scoped policy filter by project id 2021-03-17 23:01:38 +08:00
Qu Xuan
e8b70d483c fix: avoid stop or start vm failed 2021-03-17 20:03:02 +08:00
rainzm
16e7346871 feat(region): add wire info in HostNetwork details 2021-03-17 15:46:46 +08:00
Zexi Li
5d35798300 Merge pull request #10426 from ioito/automated-cherry-pick-of-#10425-upstream-release-3.7
Automated cherry pick of #10425: fix: change rds config skip zone check
2021-03-17 11:43:15 +08:00
Qu Xuan
790366c938 fix: optimized nat entry 2021-03-17 11:27:40 +08:00
Zexi Li
3633e6fad2 Merge pull request #10420 from zhaoxiangchun/automated-cherry-pick-of-#10418-upstream-release-3.7
Automated cherry pick of #10418: fix(telegraf): megactl raid  add rebuild status
2021-03-15 18:46:04 +08:00
Zexi Li
ff3b43bef3 Merge pull request #10422 from ioito/automated-cherry-pick-of-#10421-upstream-release-3.7
Automated cherry pick of #10421: fix: qcloud bucket refer
2021-03-15 17:53:30 +08:00
Qu Xuan
dd55eae077 fix: change rds config skip zone check 2021-03-15 17:42:09 +08:00
Qu Xuan
7c2200c35d fix: qcloud bucket refer 2021-03-15 15:46:40 +08:00
zhaoxiangchun
85f971a21d fix(telegraf): megactl raid add rebuild status 2021-03-15 10:04:02 +08:00
yunion-ci-robot
82c01c7b85 Merge pull request #10415 from ioito/automated-cherry-pick-of-#10414-upstream-release-3.7
Automated cherry pick of #10414: fix: sync cloud tags when set tags
2021-03-14 01:26:23 +08:00
Qu Xuan
3b2c804e21 fix: sync cloud tags when set tags 2021-03-13 20:48:15 +08:00
yunion-ci-robot
42ec188c30 Merge pull request #10411 from ioito/automated-cherry-pick-of-#10410-upstream-release-3.7
Automated cherry pick of #10410: fix: skip zone check when rds change config
2021-03-13 19:23:23 +08:00
Qu Xuan
3ed28eea2b fix: skip zone check when rds change config 2021-03-13 19:00:18 +08:00
Zexi Li
0f4d76abb8 Merge pull request #10403 from swordqiu/automated-cherry-pick-of-#10402-upstream-release-3.7
Automated cherry pick of #10402: fix(region): cloud provider filter by domain_id ignore private case
2021-03-12 21:17:15 +08:00
Qiu Jian
72e805ab92 fix(region): cloud provider filter by domain_id ignore private case 2021-03-12 20:14:41 +08:00
Zexi Li
a5613c8ed5 Merge pull request #10388 from swordqiu/automated-cherry-pick-of-#10387-upstream-release-3.7
Automated cherry pick of #10387: fix(region): fail to update network gateway
2021-03-12 17:37:58 +08:00
Zexi Li
5febc91df3 Merge pull request #10392 from ioito/automated-cherry-pick-of-#10391-upstream-release-3.7
Automated cherry pick of #10391: fix: sync new project for azure resource group
2021-03-12 17:35:22 +08:00
Zexi Li
103e00683d Merge pull request #10396 from rainzm/automated-cherry-pick-of-#10395-upstream-release-3.7
Automated cherry pick of #10395: feat(esxi): update guest os info
2021-03-12 17:33:58 +08:00
Qu Xuan
da4cf61cc3 fix(region): struct input for detach server network 2021-03-11 19:41:28 +08:00
Qu Xuan
a1820bc331 fix: optimzed tag update and sync 2021-03-11 19:27:04 +08:00
rainzm
37c1ba3636 feat(esxi): update guest os info 2021-03-11 16:43:55 +08:00
Qu Xuan
2b37418858 fix: sync new project for azure resource group 2021-03-11 15:01:14 +08:00
Qiu Jian
b92d3a93f8 fix(region): fail to update network gateway 2021-03-11 14:53:59 +08:00
Zexi Li
37a72cfccf Merge pull request #10371 from ioito/automated-cherry-pick-of-#10370-upstream-release-3.7
Automated cherry pick of #10370: Hotfix/qx prepaid change config
2021-03-11 11:45:20 +08:00
Zexi Li
50d0aea7ab Merge pull request #10375 from ioito/automated-cherry-pick-of-#10374-upstream-release-3.7
Automated cherry pick of #10374: fix: aliyun public ip bandwidth
2021-03-11 11:43:43 +08:00
Zexi Li
e68698bf3f Merge pull request #10379 from ioito/automated-cherry-pick-of-#10378-upstream-release-3.7
Automated cherry pick of #10378: fix: aliyun tag list api
2021-03-11 11:42:21 +08:00
Zexi Li
be52206d23 Merge pull request #10381 from ioito/automated-cherry-pick-of-#10380-upstream-release-3.7
Automated cherry pick of #10380: fix: add bucket tooltip
2021-03-11 11:41:41 +08:00
Zexi Li
58c60516ea Merge pull request #10383 from swordqiu/automated-cherry-pick-of-#10382-upstream-release-3.7
Automated cherry pick of #10382: fix(region): cloud provider filter by domain
2021-03-11 11:39:15 +08:00
Zexi Li
31b76513cf Merge pull request #10372 from rainzm/automated-cherry-pick-of-#10365-upstream-release-3.7
Automated cherry pick of #10365: feat(region): filter schedtags from cloudaccount_id
2021-03-11 11:37:35 +08:00
yunion-ci-robot
be232f5493 Merge pull request #10377 from tb365/automated-cherry-pick-of-#10357-upstream-release-3.7
Automated cherry pick of #10357: qcloud redis support multi zones
2021-03-11 10:22:24 +08:00
Qiu Jian
bb1e1382ad fix(region): cloud provider filter by domain 2021-03-11 01:07:58 +08:00
Qu Xuan
0cb8100ad9 fix: add bucket tooltip 2021-03-10 21:06:49 +08:00
Qu Xuan
a65b2f633a fix: optimize change vm config and prepaid change config 2021-03-10 20:35:40 +08:00
Qu Xuan
8ce4f109b5 fix: support prepaid instance change config 2021-03-10 20:35:40 +08:00
Qu Xuan
b63241b2f2 fix: aliyun tag list api 2021-03-10 20:32:46 +08:00
rainzm
6ec0b38b11 feat(region): filter schedtags from cloudprovider_id 2021-03-10 19:44:50 +08:00
tangbin
8d153bcf23 fix(region) qcloud multi zone instance sync account fix 2021-03-10 19:12:32 +08:00
tangbin
678bcf75cc feat(region) qcloud redis support multi zones 2021-03-10 19:12:32 +08:00
Qu Xuan
f853cc4c08 fix: aliyun public ip bandwidth 2021-03-10 17:31:41 +08:00
Zexi Li
31a9e77e82 Merge pull request #10352 from swordqiu/automated-cherry-pick-of-#10351-upstream-release-3.7
Automated cherry pick of #10351: fix(region): network eip stats not correct
2021-03-10 16:30:49 +08:00
Zexi Li
70e73735b4 Merge pull request #10368 from zexi/automated-cherry-pick-of-#10367-upstream-release-3.7
Automated cherry pick of #10367: fix(build): DOCKER_CLI_EXPERIMENTAL=enabled
2021-03-10 16:28:58 +08:00
Zexi Li
a083cc510a fix(build): DOCKER_CLI_EXPERIMENTAL=enabled 2021-03-10 16:27:39 +08:00
Zexi Li
77556e4906 Merge pull request #10359 from ioito/automated-cherry-pick-of-#10358-upstream-release-3.7
Automated cherry pick of #10358: fix: sync nat sku when sync cloudaccount
2021-03-09 18:08:08 +08:00
Zexi Li
31722db2e4 Merge pull request #10362 from swordqiu/automated-cherry-pick-of-#10361-upstream-release-3.7
Automated cherry pick of #10361: fix(keystone): update default role associated policy name
2021-03-09 18:06:38 +08:00
Qiu Jian
94f72124fe fix(keystone): update default role associated policy name 2021-03-09 17:50:09 +08:00
Qu Xuan
7b6cac88af fix: sync nat sku when sync cloudaccount 2021-03-09 15:29:38 +08:00
Zexi Li
102661f314 Merge pull request #10356 from zexi/automated-cherry-pick-of-#10189-upstream-release-3.7
Automated cherry pick of #10189: host 编译跨平台兼容
2021-03-09 10:25:15 +08:00
Zhang Dongliang
18d8292f13 host 编译跨平台兼容 2021-03-09 10:24:17 +08:00
Qiu Jian
4f474ad8b2 fix(region): network eip stats not correct 2021-03-09 02:47:50 +08:00
yunion-ci-robot
28ba68f4ff Merge pull request #10346 from zexi/automated-cherry-pick-of-#10345-upstream-release-3.7
Automated cherry pick of #10345: feat(build): make multi arch manifest docker image
2021-03-08 20:17:05 +08:00
Zexi Li
549feb4f68 Merge pull request #10341 from yousong/automated-cherry-pick-of-#10340-upstream-release-3.7
Automated cherry pick of #10340: etcd: fix "fatal error: concurrent map writes"
2021-03-08 14:18:05 +08:00
Zexi Li
38244dfcc8 Merge pull request #10349 from ioito/automated-cherry-pick-of-#10348-upstream-release-3.7
Automated cherry pick of #10348: fix: add cancel expire action
2021-03-08 14:15:18 +08:00
Zexi Li
ee709538e7 Merge pull request #10330 from ioito/automated-cherry-pick-of-#10329-upstream-release-3.7
Automated cherry pick of #10329: fix: optimized bucket tag
2021-03-08 14:13:40 +08:00
Zexi Li
f4394a4895 Merge pull request #10335 from ioito/automated-cherry-pick-of-#10334-upstream-release-3.7
Automated cherry pick of #10334: fix: add nat sku policy
2021-03-08 14:10:40 +08:00
Zexi Li
7c6bc61dcb feat(build): make multi arch manifest docker image 2021-03-08 12:52:34 +08:00
Qu Xuan
e17fca6c4b fix: add cancel expire action 2021-03-08 12:13:10 +08:00
Yousong Zhou
b424a8f67d etcd: fix "fatal error: concurrent map writes"
Trace

	goroutine 1270434 [running]:
	runtime.throw(0x4b0cc5e, 0x15)
		/home/yousong/.usr/go/goroot-1.15.6/src/runtime/panic.go:1116 +0x72 fp=0xc0011151f8 sp=0xc0011151c8 pc=0x439292
	runtime.mapdelete_faststr(0x40876e0, 0xc0006a54a0, 0xc001e84200, 0x3e)
		/home/yousong/.usr/go/goroot-1.15.6/src/runtime/map_faststr.go:377 +0x34c fp=0xc001115260 sp=0xc0011151f8 pc=0x41664c
	yunion.io/x/onecloud/pkg/cloudcommon/etcd.(*SEtcdClient).Unwatch(0xc0003130e0, 0xc001e84200, 0x3e)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/cloudcommon/etcd/etcd.go:353 +0x134 fp=0xc0011152d0 sp=0xc001115260 pc=0x10031f4
	yunion.io/x/onecloud/pkg/compute/models.(*SHostHealthChecker).WatchHost(0xc000c222a0, 0x5229ca0, 0xc000122000, 0xc001fbc4e0, 0x24)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/host_health.go:149 +0xd5 fp=0xc001115338 sp=0xc0011152d0 pc=0x1816395
	yunion.io/x/onecloud/pkg/compute/models.(*SHost).PerformOnline(0xc001fd8400, 0x5229d20, 0xc001c4d440, 0x52a0c60, 0xc000957c40, 0x5298900, 0xc001629aa0, 0x5298900, 0xc001629ae0, 0xc000957c40, ...)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/hosts.go:3829 +0x227 fp=0xc0011153a0 sp=0xc001115338 pc=0x185a387
	yunion.io/x/onecloud/pkg/compute/models.(*SHost).PerformPing(0xc001fd8400, 0x5229d20, 0xc001c4d440, 0x52a0c60, 0xc000957c40, 0x5298900, 0xc001629aa0, 0x5298900, 0xc001629ae0, 0x0, ...)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/hosts.go:3891 +0xbd fp=0xc001115430 sp=0xc0011153a0 pc=0x185acbd
2021-03-08 09:55:46 +08:00
yunion-ci-robot
cdde5b31de Merge pull request #10337 from rainzm/automated-cherry-pick-of-#10336-upstream-release-3.7
Automated cherry pick of #10336: fix(notify): enable filter of contact type 'email' and 'mobile'
2021-03-06 10:57:27 +08:00
rainzm
fb6064fa2a fix(notify): enable filter of contact type 'email' and 'mobile' 2021-03-06 03:00:44 +08:00
Qu Xuan
8e2092e18e fix: add nat sku policy 2021-03-05 17:27:26 +08:00
Qu Xuan
84f8cc1b3d fix: optimized bucket tag 2021-03-05 15:37:38 +08:00
Zexi Li
887392fe6a Merge pull request #10328 from zexi/automated-cherry-pick-of-#10327-upstream-release-3.7
Automated cherry pick of #10327: fix(cloudcommon): add default domain of common options
2021-03-05 11:22:42 +08:00
Zexi Li
772579d3e8 fix(cloudcommon): add default domain of common options 2021-03-05 11:20:23 +08:00
Zexi Li
f5c1480a4f Merge pull request #10321 from ioito/automated-cherry-pick-of-#10320-upstream-release-3.7
Automated cherry pick of #10320: fix: add secgroup filter opts
2021-03-05 10:16:23 +08:00
Zexi Li
70d7bc3d3c Merge pull request #10323 from tb365/automated-cherry-pick-of-#10322-upstream-release-3.7
Automated cherry pick of #10322: copyright update brand_cn&brand_en fix
2021-03-05 10:15:19 +08:00
tangbin
43a879ccb2 copyright update brand_cn&brand_en fix 2021-03-05 10:00:09 +08:00
Zexi Li
3d5edb3628 Merge pull request #10315 from ioito/automated-cherry-pick-of-#10314-upstream-release-3.7
Automated cherry pick of #10314: fix: add nat sku provider filter
2021-03-04 21:00:33 +08:00
Zexi Li
7111e6fe4a Merge pull request #10313 from ioito/automated-cherry-pick-of-#10312-upstream-release-3.7
Automated cherry pick of #10312: fix: optimzed tag sync
2021-03-04 21:00:15 +08:00
Qu Xuan
1ae3fbc749 fix: add secgroup filter opts 2021-03-04 20:56:41 +08:00
Zexi Li
59fc9c2dea Merge pull request #10317 from rainzm/automated-cherry-pick-of-#10316-upstream-release-3.7
Automated cherry pick of #10316: fix(region): check whether guest is nil
2021-03-04 19:39:00 +08:00
rainzm
23328aa12b fix(region): check whether guest is nil 2021-03-04 17:54:52 +08:00
Qu Xuan
14246f4839 fix: add nat sku provider filter 2021-03-04 17:50:46 +08:00
Qu Xuan
d7be39edf8 fix: optimzed tag sync 2021-03-04 17:31:18 +08:00
Zexi Li
0f591c3a4f Merge pull request #10311 from zhaoxiangchun/automated-cherry-pick-of-#10310-upstream-release-3.7
Automated cherry pick of #10310: bugfix(monitor): 导出信息中添加全局字典配置
2021-03-04 16:54:29 +08:00
Zexi Li
9fc5f4134d Merge pull request #10309 from tb365/automated-cherry-pick-of-#10305-upstream-release-3.7
Automated cherry pick of #10305: infos copyright add brand_en&brand_cn
2021-03-04 15:25:57 +08:00
zhaoxiangchun
839df9025a bugfix(monitor): 导出信息中添加全局字典配置
1. 域信息中添加全局字典的域配置
2021-03-04 12:13:02 +08:00
tangbin
b5958bb6b9 infos copyright add brand_en&brand_cn 2021-03-04 11:21:15 +08:00
Zexi Li
2902530ff3 Merge pull request #10302 from zhaoxiangchun/automated-cherry-pick-of-#10301-upstream-release-3.7
Automated cherry pick of #10301: feat(mcclient,itsm): modify itsm mcclient rpc func
2021-03-04 10:01:10 +08:00
Zexi Li
f886366d15 Merge pull request #10304 from ioito/automated-cherry-pick-of-#10303-upstream-release-3.7
Automated cherry pick of #10303: feat(region): nat op support
2021-03-04 10:00:03 +08:00
Zexi Li
08241a52c8 Merge pull request #10300 from tb365/automated-cherry-pick-of-#10299-upstream-release-3.7
Automated cherry pick of #10299: redis update tags fix
2021-03-04 09:59:52 +08:00
Qu Xuan
9dd3bb2189 feat(region): nat op support 2021-03-03 21:27:17 +08:00
zhaoxiangchun
8881be5a24 feat(mcclient,itsm): modify itsm mcclient rpc func
1.统计返回技术支持工单信息
2021-03-03 17:50:59 +08:00
Zexi Li
648cf6b44a Merge pull request #10296 from zhaoxiangchun/automated-cherry-pick-of-#10295-upstream-release-3.7
Automated cherry pick of #10295: feat(monitor): alert policy filter by res_type
2021-03-03 10:27:24 +08:00
Zexi Li
ce1f86929e Merge pull request #10298 from ioito/automated-cherry-pick-of-#10297-upstream-release-3.7
Automated cherry pick of #10297: feat(region): nat op support
2021-03-03 10:26:41 +08:00
tangbin
6ae4883db2 redis update tags fix 2021-03-03 10:17:14 +08:00
Qu Xuan
18445ba433 feat(region): nat op support 2021-03-02 21:34:34 +08:00
zhaoxiangchun
3fa8520c5c feat(monitor): alert policy filter by res_type
1.增加资源类型的过滤处理
2.报警消息内容处理
2021-03-02 16:12:38 +08:00
Zexi Li
f2645a2045 Merge pull request #10293 from zhaoxiangchun/automated-cherry-pick-of-#10292-upstream-release-3.7
Automated cherry pick of #10292: fix(monitor): fix monitor export err
2021-03-02 14:29:45 +08:00
zhaoxiangchun
c068badd36 fix(monitor): fix monitor export err
1.修复监控导出报错
2.db_dispatcher.ListItems 方法中对exportKeys的处理新增了一个方法
2021-03-02 11:57:14 +08:00
Zexi Li
889755feae Merge pull request #10290 from swordqiu/automated-cherry-pick-of-#10289-upstream-release-3.7
Automated cherry pick of #10289: fix(keystone): adjust default system policy names
2021-03-02 10:16:59 +08:00
yunion-ci-robot
6d0f1ce7df Merge pull request #10287 from zexi/automated-cherry-pick-of-#10286-upstream-release-3.7
Automated cherry pick of #10286: fix(hostdeployer): windows rootfs umount leak
2021-03-02 10:11:21 +08:00
Zexi Li
c308bdbb0c fix(hostdeployer): windows rootfs umount leak 2021-03-02 09:52:19 +08:00
yunion-ci-robot
81bc5e1f93 Merge pull request #10285 from yousong/automated-cherry-pick-of-#10284-upstream-release-3.7
Automated cherry pick of #10284: networks: server_type: do not allow update
2021-03-01 22:12:26 +08:00
Qiu Jian
b034a7a95d fix(keystone): adjust default system policy names 2021-03-01 21:30:24 +08:00
Yousong Zhou
c3fdda2ac1 networks: server_type: do not allow update
Transition between guest, baremetal, ipmi, eip, etc. all requires
sanity checks on relevant types allocated from the network
2021-03-01 19:09:44 +08:00
Zexi Li
f7f88db7b3 Merge pull request #10209 from rainzm/automated-cherry-pick-of-#10208-upstream-release-3.7
Automated cherry pick of #10208: fix(region): pull the network correctly
2021-03-01 11:39:47 +08:00
Zexi Li
41c3c0bbe3 Merge pull request #10279 from swordqiu/automated-cherry-pick-of-#10278-upstream-release-3.7
Automated cherry pick of #10278: fix(baremetal-agent): baremetal fail to stop due to power off soft failed
2021-03-01 10:13:34 +08:00
yunion-ci-robot
7d5f0ba84e Merge pull request #10277 from yousong/automated-cherry-pick-of-#10276-upstream-release-3.7
Automated cherry pick of #10276: Bugfix/yousong cloudproxy
2021-02-27 21:53:23 +08:00
Qiu Jian
d8b1a992ff fix(baremetal-agent): baremetal fail to stop due to power off soft failed 2021-02-27 21:50:24 +08:00
Yousong Zhou
4c2c0c3d24 cloudproxy: agent: refresh bindAddr, advertiseAddr when needed 2021-02-26 19:27:16 +08:00
Yousong Zhou
361e20c334 build: cloudproxy: add dockerfile 2021-02-26 19:27:16 +08:00
Zexi Li
9167eb1a67 Merge pull request #10271 from ioito/automated-cherry-pick-of-#10270-upstream-release-3.7
Automated cherry pick of #10270: fix(cloudevent): optimized cloudevent sql
2021-02-25 11:35:57 +08:00
Qu Xuan
ae90bbd203 fix(cloudevent): optimized cloudevent sql 2021-02-25 11:33:27 +08:00
Zexi Li
d4dfec36f3 Merge pull request #10263 from swordqiu/automated-cherry-pick-of-#10262-upstream-release-3.7
Automated cherry pick of #10262: fix(keystone): ensure comparing id with non-utf8 string
2021-02-25 11:24:17 +08:00
Zexi Li
c02d27ff58 Merge pull request #10266 from ioito/automated-cherry-pick-of-#10265-upstream-release-3.7
Automated cherry pick of #10265: fix(region): add azure new region
2021-02-25 11:23:05 +08:00
Qu Xuan
12e0b3c902 fix(region): add azure new region 2021-02-25 10:23:00 +08:00
Qiu Jian
601112dd7f fix(keystone): ensure comparing id with non-utf8 string 2021-02-25 02:29:30 +08:00
yunion-ci-robot
49dc4dc292 Merge pull request #10212 from yousong/automated-cherry-pick-of-#10176-upstream-release-3.7
Automated cherry pick of #10176: Feature/yousong cloudproxy
2021-02-24 19:52:41 +08:00
Zexi Li
5a2ebb2b55 Merge pull request #10255 from ioito/automated-cherry-pick-of-#10254-upstream-release-3.7
Automated cherry pick of #10254: fix(region): aliyun request retry
2021-02-24 18:09:50 +08:00
Zexi Li
e6618b0653 Merge pull request #10257 from ioito/automated-cherry-pick-of-#10256-upstream-release-3.7
Automated cherry pick of #10256: fix(region): optimized qcloud error code
2021-02-24 16:52:53 +08:00
Zexi Li
eaab4bea55 Merge pull request #10259 from tb365/automated-cherry-pick-of-#10258-upstream-release-3.7
Automated cherry pick of #10258: fix(region): redis change spec bugfix
2021-02-24 16:06:31 +08:00
tangbin
a275b46a74 fix(region): redis change spec bugfix 2021-02-24 11:48:56 +08:00
Qu Xuan
195793c88d fix(region): optimized qcloud error code 2021-02-23 20:44:40 +08:00
Yousong Zhou
034bf55af7 climc: add commands for cloudproxy 2021-02-23 15:34:23 +08:00
Yousong Zhou
5eefa38f84 cloudproxy: initial version 2021-02-23 15:34:23 +08:00
Yousong Zhou
98fcdb2be5 apihelper: move to yunion.io/x/onecloud/pkg/{vpcagent/,}apihelper 2021-02-23 15:34:23 +08:00
Yousong Zhou
b7f2004670 mcclient: models: Server: add fields for eip and nics 2021-02-23 15:34:23 +08:00
Yousong Zhou
6de0b2e35d ansibleserver: use mcclient module method for fetching keypair info 2021-02-23 15:34:23 +08:00
Yousong Zhou
fc7fe4cca7 mcclient: Sshkeypairs: add FetchPrivateKey 2021-02-23 15:34:23 +08:00
Yousong Zhou
0440f4a303 mcclient: auth: add SessionCache 2021-02-23 15:34:23 +08:00
Yousong Zhou
9b13becd1d validators: set xx_id when possible 2021-02-23 15:34:23 +08:00
Qu Xuan
1c6d6c90f9 fix(region): aliyun request retry 2021-02-23 11:55:41 +08:00
Zexi Li
e0fd9e922f Merge pull request #10250 from zexi/automated-cherry-pick-of-#10223-upstream-release-3.7
Automated cherry pick of #10223: fix(host-deployer): mount may fail to lock /etc/mtab, add retrier
2021-02-23 10:36:37 +08:00
Qiu Jian
e35fa898ea fix(host-deployer): mount may fail to lock /etc/mtab, add retrier 2021-02-23 09:44:40 +08:00
Zexi Li
e131af782c Merge pull request #10225 from ioito/automated-cherry-pick-of-#10224-upstream-release-3.7
Automated cherry pick of #10224: fix(region): optimized aws cloudtrail sync
2021-02-22 21:25:26 +08:00
Zexi Li
c6d34e2733 Merge pull request #10248 from ioito/automated-cherry-pick-of-#10246-upstream-release-3.7
Automated cherry pick of #10246: [WIP]fix(region): more details for get aws region error
2021-02-22 21:14:23 +08:00
Zexi Li
d88cb2e81c Merge pull request #10232 from tb365/automated-cherry-pick-of-#10231-upstream-release-3.7
Automated cherry pick of #10231: Bugfix/tb bugfix 022202
2021-02-22 21:13:38 +08:00
Zexi Li
9d0817b9f0 Merge pull request #10247 from ioito/automated-cherry-pick-of-#10233-upstream-release-3.7
Automated cherry pick of #10233: fix(region): support peer secgroup
2021-02-22 21:12:07 +08:00
Zexi Li
abd1d45afc Merge pull request #10245 from ioito/automated-cherry-pick-of-#10244-upstream-release-3.7
Automated cherry pick of #10244: fix(region): fix rds tag set error
2021-02-22 21:05:59 +08:00
Qu Xuan
0ffa3e5144 fix(region): more details for get aws region error 2021-02-22 20:55:00 +08:00
Zexi Li
51f9d13663 Merge pull request #10228 from ioito/automated-cherry-pick-of-#10227-upstream-release-3.7
Automated cherry pick of #10227: fix(region): qcloud quota sync
2021-02-22 20:51:40 +08:00
Qu Xuan
73fe4866d7 fix(region): support peer secgroup 2021-02-22 20:41:37 +08:00
Qu Xuan
60b3e53866 fix(region): fix rds tag set error 2021-02-22 20:25:38 +08:00
Zexi Li
8e174c38ae Merge pull request #10239 from zexi/automated-cherry-pick-of-#9071-upstream-release-3.7
Automated cherry pick of #9071: feat(climc): k8s cluster addon add enable native ip alloc option
2021-02-22 19:51:11 +08:00
Zexi Li
298d09fa9b Merge pull request #10235 from ioito/automated-cherry-pick-of-#10234-upstream-release-3.7
Automated cherry pick of #10234: fix(region): avoid not sync dns zone
2021-02-22 19:49:28 +08:00
Zexi Li
bd9b11cf19 Merge pull request #10241 from tb365/automated-cherry-pick-of-#10240-upstream-release-3.7
Automated cherry pick of #10240: fix(region): set redis reboot timeout to 30 mins
2021-02-22 19:48:12 +08:00
tangbin
aa96cb748b fix(region): set redis reboot timeout to 30 mins 2021-02-22 18:50:26 +08:00
Zexi Li
347d9ad1ca feat(climc): k8s cluster addon add enable native ip alloc option 2021-02-22 18:23:48 +08:00
Qu Xuan
6677ae43b5 fix(region): avoid not sync dns zone 2021-02-22 16:14:42 +08:00
TangBin
a8ded06bac fix(region): aws rebuild instance os_arch mismatch fix 2021-02-22 15:07:14 +08:00
TangBin
f4e98cc717 aws change flavor fix 2021-02-22 15:07:14 +08:00
Qu Xuan
e760263fab fix(region): qcloud quota sync 2021-02-22 14:55:31 +08:00
Qu Xuan
be065ec826 fix(region): optimized aws cloudtrail sync 2021-02-22 11:41:08 +08:00
Zexi Li
ae6476c45e Merge pull request #10216 from swordqiu/automated-cherry-pick-of-#10213-upstream-release-3.7
Automated cherry pick of #10213: feature(region): support AWS organization
2021-02-22 09:45:37 +08:00
Zexi Li
43fa5f2ecf Merge pull request #10203 from swordqiu/automated-cherry-pick-of-#10202-upstream-release-3.7
Automated cherry pick of #10202: feature(compute): allow live migration without checking Host CPU modes
2021-02-22 08:59:22 +08:00
Qiu Jian
0d6c17e31a fix: add more organization command 2021-02-20 23:13:00 +08:00
Qiu Jian
2a3a85f3a3 fix: get region nil pointer error 2021-02-20 23:13:00 +08:00
Qiu Jian
2da59aa89f feature(region): support AWS organization 2021-02-20 23:12:59 +08:00
Zexi Li
7ee11117c5 Merge pull request #10215 from zhaoxiangchun/automated-cherry-pick-of-#10214-upstream-release-3.7
Automated cherry pick of #10214: feat(monitor): monitor add trigger value when send notify info
2021-02-20 19:32:34 +08:00
Zexi Li
011c2a50ec Merge pull request #10218 from tb365/automated-cherry-pick-of-#10217-upstream-release-3.7
Automated cherry pick of #10217: server create sku parameter fix
2021-02-20 19:31:49 +08:00
Zexi Li
0dbf5ede0a Merge pull request #10221 from ioito/automated-cherry-pick-of-#10220-upstream-release-3.7
Automated cherry pick of #10220: fix(region): set next stage for start vm
2021-02-20 19:30:11 +08:00
Qu Xuan
d56078d13a fix(region): set next stage for start vm 2021-02-20 16:45:09 +08:00
TangBin
cfaadc29c2 server create sku parameter fix 2021-02-19 19:45:43 +08:00
zhaoxiangchun
ab33ae6924 feat(monitor): monitor add trigger value when send notify info
1.监控消息中增加触发值
2021-02-19 10:33:21 +08:00
Zexi Li
ee779c0f94 Merge pull request #10211 from tb365/automated-cherry-pick-of-#10210-upstream-release-3.7
Automated cherry pick of #10210: change os_arch_arm to os_arch_aarch64
2021-02-18 15:01:21 +08:00
tangbin
bbaf32a47c change os_arch_arm to os_arch_aarch64 2021-02-18 12:05:40 +08:00
Zexi Li
976e710fdf Merge pull request #9906 from rainzm/automated-cherry-pick-of-#9904-upstream-release-3.7
Automated cherry pick of #9904: Notification Subscription
2021-02-18 11:53:07 +08:00
rainzm
1f8ed87249 feat(notify): remove disk's event notify for now 2021-02-18 11:45:15 +08:00
rainzm
15c506086d feat(notify): be compatible with mobile in event notify 2021-02-18 11:45:15 +08:00
rainzm
399bce619a feat(keystone): support filter 'project_domain_id' in role_assignments 2021-02-18 11:45:15 +08:00
rainzm
1ddebfff55 feat: change go version from 1.12 to 1.13 in go.mod 2021-02-18 11:45:15 +08:00
rainzm
d9229ef160 update vendor 2021-02-18 11:45:15 +08:00
rainzm
0de209502f fix(notify): get the receiver corresponding to the role correctly 2021-02-18 11:45:15 +08:00
rainzm
e991bc3452 feat: call EventNotify when event occurs 2021-02-18 11:45:15 +08:00
rainzm
755e00750a feat: support EventNotify 2021-02-18 11:45:15 +08:00
rainzm
f265be1c59 feat(notify): add local template 2021-02-18 11:45:15 +08:00
rainzm
50be5c5f77 feat(notify): add subscription in notify 2021-02-18 11:45:15 +08:00
rainzm
7dba32d990 feat(cloudcommon): add rolecache
rolecache 在原有cache的基础上,使用了 watch
的功能,所以数据的过期时间可以调的高一些,这里使用
roleCacheExpireHours 进行控制,默认设置为24小时。
2021-02-18 11:45:15 +08:00
rainzm
ed8a88fc5c feat(util): support uint64 in bitmap
The bitmap feature of low-digit uint type can be implemented by this of uint64
2021-02-18 11:45:15 +08:00
Zexi Li
460f1c6b53 Merge pull request #10206 from swordqiu/automated-cherry-pick-of-#10205-upstream-release-3.7
Automated cherry pick of #10205: fix(region): host search by any ip
2021-02-18 11:17:12 +08:00
rainzm
3ad9cb0dac fix(region): pull the network correctly 2021-02-18 11:07:01 +08:00
Jian Qiu
058a0a0729 fix(keystone): policy name duplication (#10200)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-14 19:14:14 +08:00
Qiu Jian
06fb5ac5ec fix(region): host search by any ip 2021-02-13 23:13:21 +08:00
Qiu Jian
5660125893 feature(compute): allow live migration with checking Host CPU modes 2021-02-13 16:33:32 +08:00
yunion-ci-robot
aac5020cfd Merge pull request #10198 from zhaoxiangchun/automated-cherry-pick-of-#10197-upstream-release-3.7
Automated cherry pick of #10197: fix(monitor): fix 报警静默期和未恢复告警策略的兼容
2021-02-09 13:13:01 +08:00
zhaoxiangchun
26721fc50d fix(monitor): fix 报警静默期和未恢复告警策略的兼容
1.处于告警静默期内的报警策略仍可以在未恢复告警策略中进行查询
2021-02-09 12:51:05 +08:00
Jian Qiu
e43bea673c fix(keystone): hide system scope policies in domain scope view (#10195)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-08 12:17:01 -03:00
Jian Qiu
7a37232aaa fix(scheduler): storage medium type should not exact match (#10191)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-08 12:14:48 -03:00
yunion-ci-robot
9f767ed4aa Merge pull request #10150 from wanyaoqi/automated-cherry-pick-of-#10149-upstream-release-3.7
Automated cherry pick of #10149: chore(utils): add deb build script
2021-02-08 05:51:59 +08:00
yunion-ci-robot
699dfdd5ad Merge pull request #10184 from zhaoxiangchun/automated-cherry-pick-of-#10183-upstream-release-3.7
Automated cherry pick of #10183: fix(monitor,host): replace space to '+' when write to influxdb and replace '+' to space  when query
2021-02-07 16:07:59 +08:00
zhaoxiangchun
c86dab4d6b fix(monitor,host): replace space to '+' when write to influxdb and replace '+' to space when query
1.写入influxdb时tag 中不允许存在空格
2021-02-07 14:58:18 +08:00
Jian Qiu
31854889db fix(apigateway): add auth/stats api to retrieve system info (#10182)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-06 22:41:32 -03:00
yunion-ci-robot
a33c976446 Merge pull request #10180 from zhaoxiangchun/automated-cherry-pick-of-#10179-upstream-release-3.7
Automated cherry pick of #10179: fix(monitor): fix update alert duration fail
2021-02-06 20:49:34 +08:00
zhaoxiangchun
523cbab84b fix(monitor): fix update alert duration fail
1.修复无法更新报警持续周期的问题
2021-02-06 19:53:59 +08:00
Zexi Li
d568865571 Merge pull request #10178 from tb365/automated-cherry-pick-of-#10177-upstream-release-3.7
Automated cherry pick of #10177: imagetools NormalizeImageInfo update
2021-02-06 18:39:37 +08:00
Zexi Li
f04359bbcb Merge pull request #10167 from tb365/automated-cherry-pick-of-#10166-upstream-release-3.7
Automated cherry pick of #10166: warp aws err with errors.Wrap
2021-02-06 18:39:04 +08:00
yunion-ci-robot
f2fea0dde0 Merge pull request #10147 from zexi/automated-cherry-pick-of-#10146-upstream-release-3.7
Automated cherry pick of #10146: Feature/baremetal h3c oem
2021-02-06 13:32:24 +08:00
TangBin
80a235e3a7 imagetools NormalizeImageInfo update 2021-02-06 13:28:15 +08:00
Zexi Li
c4f04c8679 Merge pull request #10170 from zhaoxiangchun/automated-cherry-pick-of-#10169-upstream-release-3.7
Automated cherry pick of #10169: feat(monitor): alert record add silentPeriod info
2021-02-06 10:36:58 +08:00
Zexi Li
ed23e6acb7 Merge pull request #10174 from swordqiu/automated-cherry-pick-of-#10173-upstream-release-3.7
Automated cherry pick of #10173: fix(keystone): cas sso may create new project whenever user login
2021-02-06 10:35:52 +08:00
Zexi Li
48d756384c Merge pull request #10172 from swordqiu/automated-cherry-pick-of-#10171-upstream-release-3.7
Automated cherry pick of #10171: fix(keystone): idp filter by sso_domain returns domain's idp only
2021-02-06 10:35:12 +08:00
Qiu Jian
34e5a36b2c fix(keystone): cas sso may create new project whenever user login 2021-02-06 03:20:37 +08:00
Qiu Jian
1a24034c64 fix(keystone): idp filter by sso_domain returns domain's idp only 2021-02-06 02:56:31 +08:00
zhaoxiangchun
508c8b926b feat(monitor): alert record add silentPeriod info
1.报警记录中增加静默期等信息
2021-02-05 19:58:43 +08:00
Zexi Li
0af502936f Merge pull request #10134 from rainzm/automated-cherry-pick-of-#10133-upstream-release-3.7
Automated cherry pick of #10133: fix(region): init and change status
2021-02-05 17:29:43 +08:00
Zexi Li
183aea422e Merge pull request #10136 from ioito/automated-cherry-pick-of-#10135-upstream-release-3.7
Automated cherry pick of #10135: fix(region,scheduler): filter enabled skus
2021-02-05 14:55:35 +08:00
Zexi Li
bb4b315911 Merge pull request #10144 from swordqiu/automated-cherry-pick-of-#10143-upstream-release-3.7
Automated cherry pick of #10143: fix(baremetal): try channel 8 for default profile
2021-02-05 14:54:26 +08:00
Zexi Li
44dff768b2 Merge pull request #10155 from ioito/automated-cherry-pick-of-#10154-upstream-release-3.7
Automated cherry pick of #10154: fix(logger): distinct field optimized for logger
2021-02-05 14:53:41 +08:00
Zexi Li
cd3df2346b Merge pull request #10164 from ioito/automated-cherry-pick-of-#10163-upstream-release-3.7
Automated cherry pick of #10163: fix(cloudid): sync role policy
2021-02-05 14:36:12 +08:00
rainzm
cbca7e5183 fix(region): fetch wires correctly 2021-02-05 14:35:52 +08:00
rainzm
e54d1e1cb9 fix(wire): init and change status 2021-02-05 14:35:52 +08:00
Zexi Li
68782ac548 Merge pull request #10153 from rainzm/automated-cherry-pick-of-#10152-upstream-release-3.7
Automated cherry pick of #10152: To support domain notice
2021-02-05 14:35:26 +08:00
Qu Xuan
c0e3427dff fix(cloudid): sync role policy 2021-02-05 13:59:52 +08:00
TangBin
7b7a7a5615 warp aws err with errors.Wrap 2021-02-05 13:51:22 +08:00
Zexi Li
65b3674b27 Merge pull request #10157 from zhaoxiangchun/automated-cherry-pick-of-#10156-upstream-release-3.7
Automated cherry pick of #10156: fix(monitor): 3.7 nodata and alertOverview fix
2021-02-05 09:42:14 +08:00
Jian Qiu
739637b8f3 fix(keystone): add alertrecords to default dashboard permission (#10161)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-05 02:58:03 +08:00
Jian Qiu
43e858265c fix(apigateway): add enable_quota_check and return-domain-list attributes to fe params (#10159)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-05 02:57:09 +08:00
Qu Xuan
14979480e3 fix(logger): distinct field optimized for logger 2021-02-04 21:15:02 +08:00
zhaoxiangchun
a43a4e617b fix(monitor): 3.7 nodata and alertOverview fix
1.nodata相关逻辑调整
2.监控总览视图穿透,报警数量不一致问题修复
2021-02-04 20:56:41 +08:00
rainzm
59218fa314 refactor(climc): use shell.NewResourceCmd for notice 2021-02-04 17:36:11 +08:00
rainzm
9f927922a4 fix(cloudcommon): use NewGeneralError to construct error 2021-02-04 17:36:11 +08:00
wanyaoqi
2d0b3c4527 chore(utils): add deb build script 2021-02-04 15:13:16 +08:00
Zexi Li
b5813e81b8 feat(baremetal): support H3C oem baremetal 2021-02-04 14:11:26 +08:00
yunion-ci-robot
038fd9669e Merge pull request #10141 from swordqiu/automated-cherry-pick-of-#10140-upstream-release-3.7
Automated cherry pick of #10140: fix(region): bucket size stats should not count invalid sizes of -1
2021-02-04 13:16:51 +08:00
Qiu Jian
50ad5a76b9 fix(baremetal): try channel 8 for default profile 2021-02-04 13:00:59 +08:00
Zexi Li
9e42a38bfb Merge pull request #10138 from ioito/automated-cherry-pick-of-#10137-upstream-release-3.7
Automated cherry pick of #10137: fix(region): delete not exist disk failed
2021-02-04 11:37:05 +08:00
Qiu Jian
607c10bbe4 fix(region): bucket size stats should not count invalid sizes of -1 2021-02-04 11:23:59 +08:00
Qu Xuan
70166a131d fix(region): delete not exist disk failed 2021-02-04 11:02:09 +08:00
Qu Xuan
646a6e3882 fix(region,scheduler): filter enabled skus 2021-02-03 21:12:24 +08:00
Zexi Li
b60213b116 Merge pull request #10131 from ioito/automated-cherry-pick-of-#10130-upstream-release-3.7
Automated cherry pick of #10130: fix(hostman): fix kvm create disk failed error
2021-02-03 20:38:35 +08:00
Qu Xuan
f5ed307598 fix(hostman): fix kvm create disk failed error 2021-02-03 20:16:09 +08:00
Zexi Li
38baa51ff7 Merge pull request #10128 from zhaoxiangchun/automated-cherry-pick-of-#10127-upstream-release-3.7
Automated cherry pick of #10127: feat(monitor): alert add silent period param
2021-02-03 18:20:29 +08:00
Zexi Li
415ad41da5 Merge pull request #9749 from rainzm/automated-cherry-pick-of-#9723-upstream-release-3.7
Automated cherry pick of #9723: Optimization of vmware network
2021-02-03 18:15:09 +08:00
Zexi Li
be197de84f Merge pull request #10072 from lvyangyang/automated-cherry-pick-of-#10041-upstream-release-3.7
Automated cherry pick of #10041: feat(region): aws elasticahe
2021-02-03 18:14:48 +08:00
Zexi Li
aba0709d74 Merge pull request #10129 from ioito/automated-cherry-pick-of-#10126-upstream-release-3.7
Automated cherry pick of #10126: fix(cloudevent): add distinct filed for cloudevent
2021-02-03 18:05:15 +08:00
Qu Xuan
53969f14e2 fix(cloudevent): add distinct filed for cloudevent 2021-02-03 17:50:10 +08:00
rainzm
68c6216167 feat(region): add host count when list wires 2021-02-03 14:40:54 +08:00
rainzm
c4dbd9bb55 feat(region): support merging mutli wires to a wire 2021-02-03 14:40:54 +08:00
rainzm
639e7b16f0 feat(esxiagent): determine vs by bridge and network when creating vm 2021-02-03 14:40:54 +08:00
rainzm
0aa5c2ef1c feat(region): support merging wire
1. support merging networks under a wire
2. auto merge networks under a wire when set 'merge_network' when merge
this wire
2021-02-03 14:40:54 +08:00
rainzm
f654636e5f feat(region): sync Esxi HostWire for esxi host 2021-02-03 14:40:54 +08:00
rainzm
d9e75aaa0e feat(region): support synchronize vmware's network configuration to the local
1. move prepare-nets in cloudaccounts_prepare.go
2. when creating vmware account, auto synchronize vmware's network and
synchronize cloudprovider
3. support actively triggering the synchronization of the vmware network
2021-02-03 14:40:54 +08:00
rainzm
51167aa8ca feat(esxi): fetch vmware network configuration info
1. vswitch and distributed vswitch info
2. ip, vlanId and vswitch of host and vm
2021-02-03 14:40:54 +08:00
zhaoxiangchun
be09fc0464 feat(monitor): alert add silent period param
1. 报警静默期支持
2021-02-03 13:08:30 +08:00
Zexi Li
f55dc40d74 Merge pull request #10097 from ioito/automated-cherry-pick-of-#10096-upstream-release-3.7
Automated cherry pick of #10096: fix(region): filter resource by classic vpc
2021-02-03 09:48:19 +08:00
Zexi Li
b925bc77f3 Merge pull request #10100 from ioito/automated-cherry-pick-of-#10099-upstream-release-3.7
Automated cherry pick of #10099: fix(hostman): avoid panic when disk is nil
2021-02-03 09:47:30 +08:00
Zexi Li
89305e1a24 Merge pull request #10110 from ioito/automated-cherry-pick-of-#10109-upstream-release-3.7
Automated cherry pick of #10109: fix(region): avoid sync huawei unusable account
2021-02-03 09:46:21 +08:00
Zexi Li
5291918e45 Merge pull request #10103 from rainzm/automated-cherry-pick-of-#10102-upstream-release-3.7
Automated cherry pick of #10102: feat(esxi): support iso when creating vm
2021-02-03 09:46:06 +08:00
yunion-ci-robot
da46b92ec7 Merge pull request #10092 from zhaoxiangchun/automated-cherry-pick-of-#10091-upstream-release-3.7
Automated cherry pick of #10091: fix(monitor): fix alert duration
2021-02-03 00:04:41 +08:00
zhaoxiangchun
36ed09cd15 feat(monitor): meter相关报警内容处理
1. meter 相关单位处理
2. 报警静默配置
3. meter 短信模版
2021-02-02 23:34:53 +08:00
zhaoxiangchun
1bce5eaa62 fix(monitor): fix alert duration
1.修改报警连续周期逻辑
2021-02-02 23:34:53 +08:00
Zexi Li
c3119e1a3e Merge pull request #10116 from yousong/automated-cherry-pick-of-#10114-upstream-release-3.7
Automated cherry pick of #10114: Bugfix/yousong usage
2021-02-02 22:06:55 +08:00
Zexi Li
c90f03f8e3 Merge pull request #10105 from ioito/automated-cherry-pick-of-#10104-upstream-release-3.7
Automated cherry pick of #10104: fix(region): delete virtual nics with network
2021-02-02 20:59:46 +08:00
Zexi Li
59eb3672e5 Merge pull request #10118 from wanyaoqi/automated-cherry-pick-of-#10117-upstream-release-3.7
Automated cherry pick of #10117: fix(region): add option auto reconcile backup servers
2021-02-02 20:09:32 +08:00
Zexi Li
ec463450e7 Merge pull request #10123 from rainzm/automated-cherry-pick-of-#10122-upstream-release-3.7
Automated cherry pick of #10122: fix(region): check the global network situation when expanding the network
2021-02-02 20:08:01 +08:00
Zexi Li
1091591e62 Merge pull request #10115 from rainzm/automated-cherry-pick-of-#10113-upstream-release-3.7
Automated cherry pick of #10113: feat(notify): verification email style optimization
2021-02-02 20:05:24 +08:00
rainzm
da89673f00 fix(region): check the global network situation when expanding the network 2021-02-02 19:46:20 +08:00
wanyaoqi
8f542beac1 fix(region): add option auto reconcile backup servers 2021-02-02 18:20:21 +08:00
Yousong Zhou
b2980ce2b4 region: usages: add [{all,domain}.]networks etc. 2021-02-02 16:23:13 +08:00
Yousong Zhou
7a498b88f4 region: wires: totalCountQ: filter networks by scope and owner 2021-02-02 16:23:13 +08:00
Yousong Zhou
098f99314d region: usages: fix field name of vpcs for system scope 2021-02-02 16:23:13 +08:00
rainzm
304248ce18 feat(notify): verification email style optimization 2021-02-02 16:19:14 +08:00
Qu Xuan
9cad6163d3 fix(region): avoid sync huawei unusable account 2021-02-02 14:36:26 +08:00
Qu Xuan
80d9f50cf9 fix(region): delete virtual nics with network 2021-02-02 10:53:24 +08:00
rainzm
dd75241222 feat(esxi): support iso when creating vm 2021-02-02 10:44:13 +08:00
Qu Xuan
24928469fe fix(hostman): avoid panic when disk is nil 2021-02-01 22:02:28 +08:00
Zexi Li
d15039d697 Merge pull request #10094 from ioito/automated-cherry-pick-of-#10093-upstream-release-3.7
Automated cherry pick of #10093: fix(region): avoid update tags task loop
2021-02-01 20:34:44 +08:00
Qu Xuan
de96f6e18f fix(region): filter resource by classic vpc 2021-02-01 20:15:56 +08:00
Qu Xuan
0b324945de fix(region): avoid update tags task loop 2021-02-01 19:57:50 +08:00
Zexi Li
409e00a470 Merge pull request #10078 from wanyaoqi/automated-cherry-pick-of-#9901-upstream-release-3.7
Automated cherry pick of #9901: feat(glance): support backend storage s3
2021-02-01 09:56:45 +08:00
Zexi Li
4352926737 Merge pull request #10068 from swordqiu/automated-cherry-pick-of-#10067-upstream-release-3.7
Automated cherry pick of #10067: fix(keystone): SSO created user name may be duplicated
2021-01-30 10:41:56 +08:00
Zexi Li
dbf251f7da Merge pull request #10074 from wanyaoqi/automated-cherry-pick-of-#10073-upstream-release-3.7
Automated cherry pick of #10073: fix(host-deployer): remove escape character on windows passwd
2021-01-30 10:40:11 +08:00
Zexi Li
a81e1a7443 Merge pull request #10080 from zhaoxiangchun/automated-cherry-pick-of-#10079-upstream-release-3.7
Automated cherry pick of #10079: fix(monitor): modify nodata feishu notifyinfo; fix send email err
2021-01-30 10:38:45 +08:00
Zexi Li
adc3cbdd99 Merge pull request #10082 from rainzm/automated-cherry-pick-of-#10081-upstream-release-3.7
Automated cherry pick of #10081: feat(notify): add default area code for mobile
2021-01-30 10:37:32 +08:00
Zexi Li
2731e04e66 Merge pull request #10084 from zhaoxiangchun/automated-cherry-pick-of-#10083-upstream-release-3.7
Automated cherry pick of #10083: fix(monitor): fix alert notify info do not contain resourceName
2021-01-30 10:37:11 +08:00
Zexi Li
36444a6461 Merge pull request #10090 from rainzm/automated-cherry-pick-of-#10086-upstream-release-3.7
Automated cherry pick of #10086: fix(notify): be compatible with member's permission changes
2021-01-30 10:36:32 +08:00
Zexi Li
78501a8f1d Merge pull request #10088 from rainzm/automated-cherry-pick-of-#10087-upstream-release-3.7
Automated cherry pick of #10087: fix(keystone): avoid repeated abnormal login notifications
2021-01-30 10:35:59 +08:00
rainzm
d8b92dd97a fix(notify): be compatible with member's permission changes
every user can create, modify and delete their own receiver info
2021-01-29 20:13:36 +08:00
rainzm
c4c3b925b8 fix(keystone): avoid repeated abnormal login notifications 2021-01-29 20:12:07 +08:00
zhaoxiangchun
7fd2b865e4 fix(monitor): fix alert notify info do not contain resourceName 2021-01-29 18:17:21 +08:00
rainzm
5f9cee49b0 feat(notify): add default area code for mobile 2021-01-29 16:43:27 +08:00
zhaoxiangchun
92fbf93cbb fix(monitor): modify nodata feishu notifyinfo; fix send email err
1.修改nodata报警消息内容
2.修复发送邮件数量异常的bug
2021-01-29 13:10:18 +08:00
wanyaoqi
6e2894df25 feat(glance): support backend storage s3 2021-01-29 12:00:29 +08:00
wanyaoqi
645cf64b92 fix(host-deployer): remove escape character on windows passwd 2021-01-29 11:56:49 +08:00
lvyangyang
336135b663 feat(region): aws elasticahe 2021-01-28 22:20:06 -05:00
Jian Qiu
f5f02b5e09 fix(apigateway): ignore fetch IDP errors in getRegions (#10071)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-01-29 02:35:01 +08:00
Qiu Jian
9342987aa3 fix(keystone): SSO created user name may be duplicated 2021-01-28 23:38:58 +08:00
Zexi Li
0f02856287 Merge pull request #10036 from ioito/automated-cherry-pick-of-#10035-upstream-release-3.7
Automated cherry pick of #10035: fix(region): avoid worker discarded after state unchanged
2021-01-28 20:50:21 +08:00
Zexi Li
94a9a3956e Merge pull request #10038 from zhaoxiangchun/automated-cherry-pick-of-#10037-upstream-release-3.7
Automated cherry pick of #10037: feat(monitor): monitor alert policy add mobile notify
2021-01-28 20:49:38 +08:00
Zexi Li
924785f8d7 Merge pull request #10040 from yousong/automated-cherry-pick-of-#10039-upstream-release-3.7
Automated cherry pick of #10039: feat(cloudcommon): opslog: log joint models
2021-01-28 20:48:50 +08:00
Zexi Li
ee41e439a4 Merge pull request #10043 from rainzm/automated-cherry-pick-of-#10042-upstream-release-3.7
Automated cherry pick of #10042: Optimize the error message when logging in
2021-01-28 20:48:07 +08:00
Zexi Li
b80f005b04 Merge pull request #10054 from yousong/automated-cherry-pick-of-#10053-upstream-release-3.7
Automated cherry pick of #10053: feat(hostman): options: add sdn_allow_conntrack_invalid
2021-01-28 20:47:14 +08:00
Zexi Li
2912a9deed Merge pull request #10056 from ioito/automated-cherry-pick-of-#10055-upstream-release-3.7
Automated cherry pick of #10055: fix(region): add aliyun credit amount check
2021-01-28 20:46:51 +08:00
Zexi Li
c3b7f30bc4 Merge pull request #10060 from ioito/automated-cherry-pick-of-#10059-upstream-release-3.7
Automated cherry pick of #10059: fix(region): add huawei credit amount check
2021-01-28 20:46:09 +08:00
Zexi Li
e152e6c952 Merge pull request #10064 from ioito/automated-cherry-pick-of-#10063-upstream-release-3.7
Automated cherry pick of #10063: fix(region): avoid stuck at http request
2021-01-28 20:04:00 +08:00
Qu Xuan
f9f0716dac fix(region): avoid stuck at http request 2021-01-28 18:23:45 +08:00
Zexi Li
c978f99ed3 Merge pull request #10009 from rainzm/automated-cherry-pick-of-#10008-upstream-release-3.7
Automated cherry pick of #10008: [wip]feat(notify): support international mobile
2021-01-28 17:25:07 +08:00
Qu Xuan
d144b893f2 fix(region): add huawei credit amount check 2021-01-28 16:21:14 +08:00
Qu Xuan
5fe6909c36 fix(region): add aliyun credit amount check 2021-01-28 16:01:22 +08:00
Yousong Zhou
bf9ecdfd19 feat(hostman): options: add sdn_allow_conntrack_invalid 2021-01-28 15:29:57 +08:00
Zexi Li
82d953345f Merge pull request #10049 from ioito/automated-cherry-pick-of-#10048-upstream-release-3.7
Automated cherry pick of #10048: fix(region): secgroup priority fix
2021-01-28 15:12:08 +08:00
Qu Xuan
2d5f1a982f fix(region): secgroup priority fix 2021-01-28 14:20:47 +08:00
zhaoxiangchun
df7afc852a feat(monitor): monitor alert policy add mobile notify
1.报警策略增加短信通知
2021-01-28 11:01:47 +08:00
rainzm
851b36d74b feat(locale): update 2021-01-27 19:58:42 +08:00
rainzm
4762afc32b feat(apigateway): differentiate error messages when logging in 2021-01-27 19:58:42 +08:00
rainzm
46a1312336 feat(keystone): more specific error return during authentication
add error class UserNotFound, UserLocked, UserDisabled and WrongPassword
2021-01-27 19:58:42 +08:00
Yousong Zhou
45bef2f640 Merge pull request #10033 from yousong/automated-cherry-pick-of-#10032-upstream-release-3.7
Automated cherry pick of #10032: Feature/yousong wire bw filter
2021-01-27 18:54:11 +08:00
Yousong Zhou
456ed5f746 feat(cloudcommon): opslog: log joint models 2021-01-27 18:49:47 +08:00
Qu Xuan
199a7d678e fix(region): avoid worker discarded after state unchanged 2021-01-27 14:58:58 +08:00
Zexi Li
05cac2ff65 Merge pull request #10001 from lvyangyang/automated-cherry-pick-of-#9963-upstream-release-3.7
Automated cherry pick of #9963: feat(region): azure rds
2021-01-27 14:38:18 +08:00
Yousong Zhou
9844d1c29f feat(climc): wires: allow filter by bandwidth 2021-01-27 10:33:29 +08:00
Yousong Zhou
104e5c5c07 feat(region): wire: allow filter by bandwidth 2021-01-27 10:33:29 +08:00
Zexi Li
1fb28e3dc5 Merge pull request #9945 from rainzm/automated-cherry-pick-of-#9944-upstream-release-3.7
Automated cherry pick of #9944: fix(notify): add index fro receiver_notification
2021-01-27 09:05:55 +08:00
Zexi Li
e92d8a7345 Merge pull request #10020 from zhaoxiangchun/automated-cherry-pick-of-#10019-upstream-release-3.7
Automated cherry pick of #10019: fix(monitor): modify alertrecord list input
2021-01-27 09:04:59 +08:00
Zexi Li
cf2e07bbdd Merge pull request #10029 from lvyangyang/automated-cherry-pick-of-#10002-upstream-release-3.7
Automated cherry pick of #10002: fix(region): vpcpeering error message translation
2021-01-27 09:03:53 +08:00
Zexi Li
50999cc5e5 Merge pull request #10026 from ioito/automated-cherry-pick-of-#10025-upstream-release-3.7
Automated cherry pick of #10025: fix(region): purge snapshot with not status check
2021-01-27 09:02:14 +08:00
Zexi Li
34b2edd6cd Merge pull request #10031 from ioito/automated-cherry-pick-of-#10030-upstream-release-3.7
Automated cherry pick of #10030: fix(cloudid): fix azure saml provider delete error
2021-01-27 09:00:07 +08:00
Qu Xuan
9ff20ed93d fix(cloudid): fix azure saml provider delete error 2021-01-26 16:49:30 +08:00
lvyangyang
d4878cc7af fix(region): vpcpeering error message translation 2021-01-26 03:17:55 -05:00
Zexi Li
ed2d44ec2e Merge pull request #10021 from ioito/automated-cherry-pick-of-#10018-upstream-release-3.7
Automated cherry pick of #10018: fix(region): optimized secgroup rule sync
2021-01-26 14:53:30 +08:00
Qu Xuan
b9c344e3df fix(region): purge snapshot with not status check 2021-01-26 14:48:35 +08:00
Qu Xuan
633734719f fix(region): optimized secgroup rule sync 2021-01-26 11:58:27 +08:00
zhaoxiangchun
e8a8d121fb fix(monitor): modify alertrecord list input
1.修改资源类型查询参数
2021-01-26 10:25:04 +08:00
Zexi Li
bc90431ef7 Merge pull request #10011 from swordqiu/automated-cherry-pick-of-#10010-upstream-release-3.7
Automated cherry pick of #10010: fix(region): exported number of vpcs less than listed
2021-01-25 21:06:20 +08:00
Zexi Li
3c79e384c9 Merge pull request #10004 from wanyaoqi/automated-cherry-pick-of-#10003-upstream-release-3.7
Automated cherry pick of #10003: fix(host): fix wait time after execute mount fuse fs
2021-01-25 21:04:54 +08:00
Zexi Li
46c4521011 Merge pull request #10014 from swordqiu/automated-cherry-pick-of-#10013-upstream-release-3.7
Automated cherry pick of #10013: fix(keystone): user create without password can login with any password
2021-01-25 21:03:26 +08:00
Qiu Jian
bc0a4a7b6f fix(keystone): user create without password can login with any password 2021-01-23 23:50:59 +08:00
yunion-ci-robot
732f4756a0 Merge pull request #9996 from ioito/automated-cherry-pick-of-#9995-upstream-release-3.7
Automated cherry pick of #9995: fix(region): aws not support create server with public ip
2021-01-23 22:48:39 +08:00
Qiu Jian
298fe5d908 fix(region): exported number of vpcs less than listed 2021-01-23 20:11:02 +08:00
rainzm
bdb6df6e4d feat(notify): support international mobile 2021-01-22 20:04:15 +08:00
wanyaoqi
ad2d472d0d fix(host): fix wait time after mount fuse fs 2021-01-22 19:18:51 +08:00
lvyangyang
378b7d39b1 feat(region): azure rds 2021-01-22 04:32:45 -05:00
yunion-ci-robot
9e7cb17c01 Merge pull request #10000 from swordqiu/automated-cherry-pick-of-#9999-upstream-release-3.7
Automated cherry pick of #9999: fix(apigateway): recover remove apigateway locale messages
2021-01-22 11:21:03 +08:00
yunion-ci-robot
53d5b53a70 Merge pull request #9994 from swordqiu/automated-cherry-pick-of-#9993-upstream-release-3.7
Automated cherry pick of #9993: fix(apigateway): getRegions return value of api_server
2021-01-22 11:20:04 +08:00
Qiu Jian
e65d6cdf26 fix(apigateway): recover remove apigateway locale messages 2021-01-22 10:49:26 +08:00
Qu Xuan
c49ceb0b93 fix(region): aws not support create server with public ip 2021-01-22 10:44:15 +08:00
Qiu Jian
6549d886c9 fix(apigateway): getRegions return value of api_server 2021-01-22 10:26:24 +08:00
Zexi Li
c2565b2053 Merge pull request #9967 from ioito/automated-cherry-pick-of-#9966-upstream-release-3.7
Automated cherry pick of #9966: fix(cloudevent): update aliyun lookupevent api
2021-01-22 02:53:32 +08:00
Zexi Li
8b12f19ce9 Merge pull request #9990 from swordqiu/automated-cherry-pick-of-#9989-upstream-release-3.7
Automated cherry pick of #9989: fix(keystone): allow delete sso imported non-local user
2021-01-22 02:49:28 +08:00
Zexi Li
7ccaa6b12e Merge pull request #9992 from swordqiu/automated-cherry-pick-of-#9991-upstream-release-3.7
Automated cherry pick of #9991: fix(cloudid): saml navigation template support i18n
2021-01-22 02:48:34 +08:00
Zexi Li
80605166a8 Merge pull request #9975 from yousong/automated-cherry-pick-of-#9974-upstream-release-3.7
Automated cherry pick of #9974: fix(region): cloudaccount: allow only one sync func in flight
2021-01-22 02:47:57 +08:00
Qiu Jian
e3fb7729dd fix(cloudid): saml navigation template support i18n
saml navigation template support i18n
2021-01-22 00:54:40 +08:00
Zexi Li
2d9b6a3691 Merge pull request #9985 from ioito/automated-cherry-pick-of-#9973-upstream-release-3.7
Automated cherry pick of #9973: fix(region): avoid clean all rules when sync secgroups
2021-01-22 00:38:53 +08:00
Qiu Jian
6428ca9a15 fix(keystone): allow delete sso imported non-local user
allow delete SSO imported non-local users
2021-01-21 23:50:49 +08:00
Zexi Li
366aa025d4 Merge pull request #9982 from rainzm/automated-cherry-pick-of-#9981-upstream-release-3.7
Automated cherry pick of #9981: fix(notify): send websocket messages according to language preference
2021-01-21 21:33:06 +08:00
Zexi Li
7d6b04b726 Merge pull request #9980 from rainzm/automated-cherry-pick-of-#9979-upstream-release-3.7
Automated cherry pick of #9979: Send SMS notification for abnormal login
2021-01-21 21:20:55 +08:00
Qu Xuan
18ba99747a fix(region): avoid clean all rules when sync secgroups 2021-01-21 21:20:35 +08:00
rainzm
4f4538834a fix(notify): send websocket messages according to language preference 2021-01-21 19:47:35 +08:00
rainzm
15cd898080 fix(notify): choose template in NotifyFilter 2021-01-21 18:57:40 +08:00
rainzm
bab03027c1 feat(cloudcommon): send message with mobile in NotifyWithTag 2021-01-21 18:57:40 +08:00
Yousong Zhou
2940c350c2 fix(region): cloudaccount: allow only one sync func in flight
Ref https://github.com/yunionio/onecloud/pull/6859
2021-01-21 16:28:56 +08:00
Qu Xuan
22a41fb055 fix(cloudevent): update aliyun lookupevent api 2021-01-21 15:18:00 +08:00
Zexi Li
be0317f5f6 Merge pull request #9959 from ioito/automated-cherry-pick-of-#9958-upstream-release-3.7
Automated cherry pick of #9958: fix(cloudid): add en-US html templte
2021-01-21 14:43:26 +08:00
Zexi Li
3a969b8d36 Merge pull request #9951 from zhaoxiangchun/automated-cherry-pick-of-#9950-upstream-release-3.7
Automated cherry pick of #9950: feat(monitor): Lists the records that are currently alarting
2021-01-21 14:31:55 +08:00
zhaoxiangchun
7e9dfe0f9a feat(monitor): Lists the records that are currently alarting 2021-01-21 12:52:11 +08:00
Zexi Li
bd1ef35b51 Merge pull request #9961 from zhaoxiangchun/automated-cherry-pick-of-#9960-upstream-release-3.7
Automated cherry pick of #9960: fix(monitor): domain view can list scope is domain or project alertrecords; fix nodata alert return info
2021-01-21 12:45:11 +08:00
Zexi Li
3f9982ecd1 Merge pull request #9949 from rainzm/automated-cherry-pick-of-#9948-upstream-release-3.7
Automated cherry pick of #9948: feat(keystone,apigateway): return a readable message when the user is locked or disabled
2021-01-20 20:05:58 +08:00
Zexi Li
7ef1b39a48 Merge pull request #9965 from yousong/automated-cherry-pick-of-#9964-upstream-release-3.7
Automated cherry pick of #9964: climc: costreports: fix bad struct tag
2021-01-20 18:47:28 +08:00
Yousong Zhou
229c024729 climc: costreports: fix bad struct tag
panic: Invalid structTag: help:"period of cost report send, example:"month/week/day" json:"period_type"

Fixes b803de0705 ("add cost report module")
2021-01-20 16:28:52 +08:00
zhaoxiangchun
5c12f9e1fe fix(monitor): domain view can list scope is domain or project alertrecords; fix nodata alert return info 2021-01-20 11:51:04 +08:00
Qu Xuan
49c90a3814 fix(cloudid): add en-US html templte 2021-01-20 10:33:48 +08:00
Zexi Li
6468091fca Merge pull request #9935 from rainzm/automated-cherry-pick-of-#9934-upstream-release-3.7
Automated cherry pick of #9934: feat(notify): clean data for receiver_notifications
2021-01-20 03:19:06 +08:00
Zexi Li
e71e7c695f Merge pull request #9943 from ioito/automated-cherry-pick-of-#9942-upstream-release-3.7
Automated cherry pick of #9942: fix(cloudid): azure saml confirm
2021-01-20 03:08:00 +08:00
Zexi Li
b9bedffd6a Merge pull request #9953 from ioito/automated-cherry-pick-of-#9952-upstream-release-3.7
Automated cherry pick of #9952: fix(region): fix zstack delete server with local disks
2021-01-20 02:25:30 +08:00
yunion-ci-robot
711300efa3 Merge pull request #9957 from swordqiu/automated-cherry-pick-of-#9956-upstream-release-3.7
Automated cherry pick of #9956: fix(keystone): allow filter identity_providers with name of ssoDomain
2021-01-20 02:23:33 +08:00
Qiu Jian
db7a921785 fix(keystone): allow filter identity_providers with name of ssoDomain
allow filter identity_providers with name of ssoDomain
2021-01-20 01:05:57 +08:00
Qu Xuan
9d93ddf9aa fix(region): fix zstack delete server with local disks 2021-01-19 18:09:54 +08:00
rainzm
9c4fd94d7a feat(keystone,apigateway): return a readable message when the user is locked or disabled 2021-01-19 17:33:24 +08:00
rainzm
3063a7fdff fix(notify): add index fro receiver_notification 2021-01-19 15:50:20 +08:00
Qu Xuan
f00bc6d19f fix(cloudid): azure saml confirm 2021-01-19 03:34:23 +08:00
yunion-ci-robot
8615a710d9 Merge pull request #9939 from ioito/automated-cherry-pick-of-#9938-upstream-release-3.7
Automated cherry pick of #9938: fix(region): azure default subscription id
2021-01-18 21:40:20 +08:00
Qu Xuan
8eb682c4bc fix(region): azure default subscription id 2021-01-18 21:24:18 +08:00
rainzm
b292982fc5 feat(notify): clean data for receiver_notifications 2021-01-18 19:47:21 +08:00
Zexi Li
d505dd7e13 Merge pull request #9931 from rainzm/automated-cherry-pick-of-#9930-upstream-release-3.7
Automated cherry pick of #9930: fix(keystone): don't send the administrator’s message to the party
2021-01-18 18:04:39 +08:00
Zexi Li
55b49c71d7 Merge pull request #9932 from ioito/automated-cherry-pick-of-#9919-upstream-release-3.7
Automated cherry pick of #9919: Hotfix/qx azure saml
2021-01-18 18:03:39 +08:00
Qu Xuan
0752512581 feat(cloudid): add azure saml 2021-01-18 15:10:13 +08:00
rainzm
c5fd651604 fix(keystone): don't send the administrator’s message to the party 2021-01-18 14:58:26 +08:00
yunion-ci-robot
373da788d3 Merge pull request #9921 from rainzm/automated-cherry-pick-of-#9920-upstream-release-3.7
Automated cherry pick of #9920: feat(keystone): add options to set admin and domain admin role to notify
2021-01-18 12:11:24 +08:00
Zexi Li
575f4d6e5f Merge pull request #9926 from rainzm/automated-cherry-pick-of-#9925-upstream-release-3.7
Automated cherry pick of #9925: Notify Optimization
2021-01-18 11:47:01 +08:00
rainzm
75b375bc78 fix(notify): add a time limit for resending notifications 2021-01-18 11:13:57 +08:00
rainzm
094b85773f feat(notify): delete the notification 1 month ago and remove the data migration 2021-01-18 11:13:57 +08:00
Zexi Li
8cbd07a7ef Merge pull request #9923 from rainzm/automated-cherry-pick-of-#9922-upstream-release-3.7
Automated cherry pick of #9922: fix(notify): remote 'lang' filter when contact type is 'mobile'
2021-01-18 10:24:16 +08:00
rainzm
97e9be3b27 fix(notify): remote 'lang' filter when contact type is 'mobile' 2021-01-17 20:55:59 +08:00
rainzm
988c90e8f6 fix(keystone): correctly pass domain id to role-assignments 2021-01-17 20:52:18 +08:00
rainzm
1b96a290d0 feat(keystone): add options to set admin and domain admin role to notify 2021-01-17 20:52:18 +08:00
yunion-ci-robot
dcb7beddda Merge pull request #9911 from ioito/automated-cherry-pick-of-#9910-upstream-release-3.7
Automated cherry pick of #9910: fix(region): avoid azure detach disk failed
2021-01-17 11:40:31 +08:00
Jian Qiu
2f3a3766c5 fix(cloudcommon): missing set_meta opslog (#9915)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-01-17 11:33:09 +08:00
Qu Xuan
8d75e55b43 fix(region): avoid azure detach disk failed 2021-01-16 18:37:05 +08:00
yunion-ci-robot
04c074c453 Merge pull request #9908 from zhaoxiangchun/automated-cherry-pick-of-#9907-upstream-release-3.7
Automated cherry pick of #9907: feat(monitor): influxQuery add P95 reduce
2021-01-16 12:38:30 +08:00
zhaoxiangchun
2b22f227a6 feat(monitor): query reduce percentile
1.增加reduce.type == percentile ,进行对应数值处理
2021-01-16 12:00:27 +08:00
Zexi Li
6d8bb9fe5d Merge pull request #9903 from bistuzx/automated-cherry-pick-of-#9902-upstream-release-3.7
Automated cherry pick of #9902: feat(meter): add cost report module
2021-01-15 18:19:36 +08:00
bistuzx@163.com
cc175615f5 add cost report module 2021-01-15 18:02:58 +08:00
Zexi Li
83f0ba6abb Merge pull request #9892 from rainzm/automated-cherry-pick-of-#9891-upstream-release-3.7
Automated cherry pick of #9891: Repair of abnormal login notification
2021-01-15 10:31:23 +08:00
Zexi Li
58d4518514 Merge pull request #9889 from ioito/automated-cherry-pick-of-#9888-upstream-release-3.7
Automated cherry pick of #9888: fix(cloudid): optimized saml sso
2021-01-15 09:08:10 +08:00
Zexi Li
f4cb599b2c Merge pull request #9878 from ioito/automated-cherry-pick-of-#9877-upstream-release-3.7
Automated cherry pick of #9877: fix(cloudevent): optimized cloudevent sync
2021-01-14 23:56:42 +08:00
Zexi Li
9ad12ffaf3 Merge pull request #9894 from rainzm/automated-cherry-pick-of-#9893-upstream-release-3.7
Automated cherry pick of #9893: refactor(climc): remove dependence for `yunion.io/x/pkg/cloudcommon/db`
2021-01-14 23:51:49 +08:00
Zexi Li
b5c8bc746f Merge pull request #9896 from ioito/automated-cherry-pick-of-#9895-upstream-release-3.7
Automated cherry pick of #9895: fix(region): update google latitude and langtitude
2021-01-14 23:49:56 +08:00
Zexi Li
f2c4c3fa75 Merge pull request #9900 from yousong/automated-cherry-pick-of-#9899-upstream-release-3.7
Automated cherry pick of #9899: feat(vpcs): list: add order_by_network_count
2021-01-14 23:47:28 +08:00
Yousong Zhou
3b9412056b feat(vpcs): list: add order_by_network_count 2021-01-14 22:04:18 +08:00
Qu Xuan
dd3da3c4c9 fix(region): update google latitude and langtitude 2021-01-14 20:52:49 +08:00
rainzm
8e128a9863 refactor(climc): remove dependence for yunion.io/x/pkg/cloudcommon/db 2021-01-14 19:14:13 +08:00
rainzm
b31f69926c feat(notify): show only users under the domain in the recipient details of the message 2021-01-14 18:25:51 +08:00
rainzm
c891169384 fix(notify): be compatible with webconsole type hack 2021-01-14 18:25:51 +08:00
rainzm
9c630dc313 fix(keystone): clear failed auth when enable user 2021-01-14 18:25:51 +08:00
rainzm
6976851993 fix(keystone): send to the admin and the party separately when Abnormal login occurs 2021-01-14 18:25:51 +08:00
rainzm
06634a63ab fix(build): chage template of 'Abnormal Login' 2021-01-14 18:25:51 +08:00
rainzm
87a8bc1a03 feat(cloudcommon): send it directly if there is no template corresponding to the topic 2021-01-14 18:25:51 +08:00
rainzm
cafe1d7b53 feat(notify): mandatory update of VERIFY and USER_LOGIN_EXCEPTION templates 2021-01-14 18:25:51 +08:00
Qu Xuan
0165d83915 fix(cloudid): optimized saml sso 2021-01-14 18:14:04 +08:00
Zexi Li
4278c23583 Merge pull request #9885 from ioito/automated-cherry-pick-of-#9856-upstream-release-3.7
Automated cherry pick of #9856: fix(region): optimized azure reset linux pasword
2021-01-14 17:39:40 +08:00
Zexi Li
8080368233 Merge pull request #9883 from rainzm/automated-cherry-pick-of-#9882-upstream-release-3.7
Automated cherry pick of #9882: Fix Notifition about Panic_Error Send too much
2021-01-14 14:50:02 +08:00
Qu Xuan
9aa8a3ab69 fix(region): optimized azure reset linux pasword 2021-01-14 14:43:27 +08:00
rainzm
d28a12d6e7 feat(notify): change default verify expire interval 5m => 2m 2021-01-14 14:25:35 +08:00
rainzm
8c717e1ae6 fix(notify): update receiver's lang when update event occurs 2021-01-14 14:25:35 +08:00
rainzm
36853a6cf2 fix(notify): panic for err 2021-01-14 14:25:35 +08:00
Zexi Li
25e95ac392 Merge pull request #9881 from zhaoxiangchun/automated-cherry-pick-of-#9879-upstream-release-3.7
Automated cherry pick of #9879: feat(monitor): influxQuery add P95 reduce
2021-01-14 11:05:34 +08:00
zhaoxiangchun
1b71ba64b7 feat(monitor): influxQuery add P95 reduce 2021-01-14 10:50:56 +08:00
Qu Xuan
a5834180fd fix(cloudevent): optimized cloudevent sync 2021-01-14 09:51:58 +08:00
Zexi Li
09438f56dd Merge pull request #9869 from rainzm/automated-cherry-pick-of-#9868-upstream-release-3.7
Automated cherry pick of #9868: Send notification when abnormal login occurs
2021-01-14 09:38:23 +08:00
Zexi Li
5242dc672d Merge pull request #9871 from swordqiu/automated-cherry-pick-of-#9870-upstream-release-3.7
Automated cherry pick of #9870: feature(climc): add policy-clone command
2021-01-14 09:37:35 +08:00
Zexi Li
1246fbc9a4 Merge pull request #9873 from swordqiu/automated-cherry-pick-of-#9872-upstream-release-3.7
Automated cherry pick of #9872: fix(region): AWS buckets in us-east-1 have null location
2021-01-14 09:36:24 +08:00
Qiu Jian
52e2051dfc fix(region): AWS buckets in us-east-1 have null location 2021-01-14 09:12:13 +08:00
Qiu Jian
c03325975d feature(climc): add policy-clone command 2021-01-14 03:31:43 +08:00
Zexi Li
c474123090 Merge pull request #9866 from zhaoxiangchun/automated-cherry-pick-of-#9865-upstream-release-3.7
Automated cherry pick of #9865: feat(monitor): support monitor overview influxdb query pass through
2021-01-13 21:12:07 +08:00
rainzm
f41c840d85 feat(keystone): support alertNotify when abnormal login occur 2021-01-13 20:01:13 +08:00
rainzm
c22f221898 feat(keystone): add GetDefaultAdminSession 2021-01-13 20:01:12 +08:00
rainzm
afbb4a0470 feat(keystone): support projectDomainId in SAssignmentManager.FetchAll 2021-01-13 20:01:12 +08:00
rainzm
80092443a7 feat(cloudcommon): expand notifyclient
1. support new params in creating notification
2. adapt keystone because `auth.GetAdminSession` doesn't work in keystone
2021-01-13 20:01:12 +08:00
rainzm
f9fa70d32a feat(notify): add params for create notification
1. tag, usually used to filter
2. metadata
3. ignore_nonexistent_receiver
2021-01-13 20:01:12 +08:00
rainzm
1669947a54 feat(notify): add template about topic USER_LOGIN_EXCEPTION 2021-01-13 20:01:12 +08:00
zhaoxiangchun
3f51fa67ec feat(monitor): support monitor overview influxdb query pass through
1.监控总览支持查询穿透
2021-01-13 16:19:13 +08:00
Zexi Li
fca98383c0 Merge pull request #9863 from rainzm/automated-cherry-pick-of-#9862-upstream-release-3.7
Automated cherry pick of #9862: fix(notify): set status after sending
2021-01-13 16:10:42 +08:00
rainzm
9a9c9acb8e fix(notify): set status after sending 2021-01-13 15:48:44 +08:00
Zexi Li
9097d32d33 Merge pull request #9861 from lvyangyang/automated-cherry-pick-of-#9860-upstream-release-3.7
Automated cherry pick of #9860: fix(region): update tags status
2021-01-13 15:19:42 +08:00
Zexi Li
20bb86cf43 Merge pull request #9858 from rainzm/automated-cherry-pick-of-#9857-upstream-release-3.7
Automated cherry pick of #9857: fix(notify): set ModelManager in Receiver()
2021-01-13 14:41:31 +08:00
lvyangyang
fa9e5fd840 fix(region): update tags status 2021-01-13 01:18:56 -05:00
rainzm
bb7b179c4e fix(notify): set ModelManager in Receiver() 2021-01-13 09:55:46 +08:00
Zexi Li
5df3bde1f0 Merge pull request #9854 from ioito/automated-cherry-pick-of-#9690-upstream-release-3.7
Automated cherry pick of #9690: fix(region): optimized secgroup rule sync
2021-01-12 21:38:03 +08:00
Zexi Li
3b6291092b Merge pull request #9855 from lvyangyang/automated-cherry-pick-of-#9829-upstream-release-3.7
Automated cherry pick of #9829: fix(region): tag bugs fix
2021-01-12 21:37:22 +08:00
lvyangyang
9a10a34601 fix(region): tag bugs fix -azure tags replace/refresh -tags action logs -忽略创建中主机的metadate同步任务 2021-01-12 04:10:49 -05:00
Qu Xuan
6eec828ee3 fix(region): optimized secgroup rule sync 2021-01-12 10:37:03 +08:00
Zexi Li
defe42892f Merge pull request #9848 from rainzm/automated-cherry-pick-of-#9847-upstream-release-3.7
Automated cherry pick of #9847: feat(notify): send notifications of different templates according to language
2021-01-12 10:29:41 +08:00
Zexi Li
58f599ebe8 Merge pull request #9840 from ioito/automated-cherry-pick-of-#9839-upstream-release-3.7
Automated cherry pick of #9839: fix(cloudevent): add aws cloudevent
2021-01-12 10:27:44 +08:00
Zexi Li
99da7238cb Merge pull request #9837 from swordqiu/automated-cherry-pick-of-#9836-upstream-release-3.7
Automated cherry pick of #9836: fix(keystone): add suggestion previliges to meter admin
2021-01-12 10:26:26 +08:00
Zexi Li
e63735f999 Merge pull request #9842 from tb365/automated-cherry-pick-of-#9841-upstream-release-3.7
Automated cherry pick of #9841: server skus filter by mem size fix
2021-01-11 22:37:30 +08:00
Zexi Li
aa89db8a6c Merge pull request #9845 from yousong/automated-cherry-pick-of-#9844-upstream-release-3.7
Automated cherry pick of #9844: Feature/yousong i18n apigateway
2021-01-11 22:27:39 +08:00
Zexi Li
49f3814145 Merge pull request #9853 from zhaoxiangchun/automated-cherry-pick-of-#9851-upstream-release-3.7
Automated cherry pick of #9851: fix(monitor): monitor overview throw err
2021-01-11 22:25:45 +08:00
zhaoxiangchun
23f80dced4 fix(monitor): monitor overview throw err 2021-01-11 21:26:43 +08:00
rainzm
ebc32e693d feat(notify): send notifications of different templates according to language 2021-01-11 19:43:18 +08:00
Yousong Zhou
1d1a5c327a apigateway: try return httperrors 2021-01-11 17:50:13 +08:00
Yousong Zhou
8a922ad81f locales: generate 2021-01-11 17:50:13 +08:00
Yousong Zhou
ac1232f94e locales: zh-CN: add some translations 2021-01-11 17:50:13 +08:00
Yousong Zhou
583d1889f7 apigateway: reword error messages 2021-01-11 17:50:12 +08:00
Yousong Zhou
a012496cbb keystone: reword error messages 2021-01-11 17:50:12 +08:00
Yousong Zhou
9766594dac build: y18n: add apigateway 2021-01-11 17:50:12 +08:00
tangbin
9c7d6f54da server skus filter by mem size fix 2021-01-11 14:41:24 +08:00
Qu Xuan
e91b5dbc32 fix(cloudevent): add aws cloudevent 2021-01-11 14:25:23 +08:00
Qiu Jian
5ef93ed03c fix(keystone): add suggestion previliges to meter admin 2021-01-11 02:07:20 +08:00
Zexi Li
f6f975709a Merge pull request #9797 from ioito/automated-cherry-pick-of-#9796-upstream-release-3.7
Automated cherry pick of #9796: fix(region): allowed to manually refresh cloudimage
2021-01-09 20:32:24 +08:00
Zexi Li
33346e396e Merge pull request #9823 from ioito/automated-cherry-pick-of-#9822-upstream-release-3.7
Automated cherry pick of #9822: fix(apigateway): count city servers
2021-01-09 20:11:54 +08:00
Zexi Li
fe916c1d03 Merge pull request #9832 from tb365/automated-cherry-pick-of-#9830-upstream-release-3.7
Automated cherry pick of #9830: loadbalancer add lb purge validate
2021-01-09 19:58:35 +08:00
Zexi Li
bf91a5b6b3 Merge pull request #9794 from tb365/automated-cherry-pick-of-#9793-upstream-release-3.7
Automated cherry pick of #9793: feat(region): server sku os_arch & cpu_arch checking
2021-01-09 19:57:10 +08:00
Zexi Li
af07843325 Merge pull request #9819 from zhaoxiangchun/automated-cherry-pick-of-#9817-upstream-release-3.7
Automated cherry pick of #9817: fix(monitor): fix monitoroverview and meter send alerting info to  notify
2021-01-09 19:56:11 +08:00
Zexi Li
469fbc0868 Merge pull request #9826 from rainzm/automated-cherry-pick-of-#9825-upstream-release-3.7
Automated cherry pick of #9825: fix(notify): avoid duplication of notification names
2021-01-09 19:54:24 +08:00
tangbin
f6a6652600 loadbalancer add lb purge validate 2021-01-09 19:21:00 +08:00
rainzm
78c16bfc03 fix(notify): avoid duplication of notification names 2021-01-09 18:45:50 +08:00
yunion-ci-robot
8b373f2d57 Merge pull request #9821 from bistuzx/automated-cherry-pick-of-#9820-upstream-release-3.7
Automated cherry pick of #9820: fix(meter): add budget set alert log
2021-01-09 18:41:08 +08:00
Qu Xuan
34b12241f9 fix(apigateway): count city servers 2021-01-09 17:06:44 +08:00
yunion-ci-robot
b8d2d82227 Merge pull request #9809 from tb365/automated-cherry-pick-of-#9808-upstream-release-3.7
Automated cherry pick of #9808: fix(region): aws elb backendgroup sync bugfix
2021-01-09 16:40:13 +08:00
bistuzx@163.com
54d4356d33 add budget set alert log 2021-01-09 16:16:05 +08:00
tangbin
6c24640476 fix(region): aws elb backendgroup sync bugfix 2021-01-09 16:12:17 +08:00
zhaoxiangchun
107c1745d2 fix(monitor): fix monitoroverview and meter send alerting info to notify
1.调整报警总览中今日报警数量计算逻辑
2.报警模版的web路径支持跳转到不同web页面:监控报警和meter
3.nodata 前端可配制功能fix
2021-01-09 15:33:36 +08:00
Zexi Li
bc3ecca942 Merge pull request #9799 from ioito/automated-cherry-pick-of-#9798-upstream-release-3.7
Automated cherry pick of #9798: fix(region): optimized for qcloud prepaid instance delete
2021-01-09 15:33:09 +08:00
Zexi Li
6f7f63a2ec Merge pull request #9812 from ioito/automated-cherry-pick-of-#9811-upstream-release-3.7
Automated cherry pick of #9811: fix(region): avoid cachedimage never be in sync when it deleted
2021-01-09 15:31:56 +08:00
Zexi Li
f4020ad95a Merge pull request #9814 from rainzm/automated-cherry-pick-of-#9813-upstream-release-3.7
Automated cherry pick of #9813: fix(notify): loose phone number rules in updating receiver
2021-01-09 13:03:46 +08:00
rainzm
9503546d0d fix(notify): loose phone number rules in updating receiver 2021-01-09 11:31:53 +08:00
Qu Xuan
b9f3e329a1 fix(region): avoid cachedimage never be in sync when it deleted 2021-01-08 20:56:37 +08:00
Zexi Li
8228a32e6b Merge pull request #9803 from rainzm/automated-cherry-pick-of-#9802-upstream-release-3.7
Automated cherry pick of #9802: fix(notify): loose mobile phone number matching rules
2021-01-08 14:19:46 +08:00
rainzm
50c8636cec fix(notify): loose mobile phone number matching rules 2021-01-08 12:02:22 +08:00
Qu Xuan
5e418ab66b fix(region): optimized for qcloud prepaid instance delete 2021-01-08 11:22:08 +08:00
tangbin
0ac88cfe0a feat(region): server sku os_arch & cpu_arch checking 2021-01-08 10:35:46 +08:00
Qu Xuan
b056c0ce72 fix(region): allowed to manually refresh cloudimage 2021-01-07 21:38:39 +08:00
Zexi Li
24e8152161 Merge pull request #9791 from wanyaoqi/automated-cherry-pick-of-#9790-upstream-release-3.7
Automated cherry pick of #9790: fix(host-deployer): add retry on check is vgactived
2021-01-07 21:18:07 +08:00
Zexi Li
b9ec6f76dd Merge pull request #9786 from yousong/automated-cherry-pick-of-#9785-upstream-release-3.7
Automated cherry pick of #9785: guest_deploy_task: log other deploy details with i18n
2021-01-07 21:16:34 +08:00
Zexi Li
f7d8416cd8 Merge pull request #9783 from zhaoxiangchun/automated-cherry-pick-of-#9782-upstream-release-3.7
Automated cherry pick of #9782: fix(monitor,suggestion): order commonalert metric and modify alertresoruce type value and add suggestion models climc
2021-01-07 21:14:42 +08:00
wanyaoqi
4841fbdb12 fix(host-deployer): add retry on check is vgactived 2021-01-07 19:27:15 +08:00
Yousong Zhou
827c298bc5 guest_deploy_task: log other deploy details with i18n
Fixes 9f350392 ("add service tag for actionlog")
2021-01-07 11:37:50 +08:00
zhaoxiangchun
73ab024df8 fix(monitor,suggestion): order commonalert metric and modify alertresoruce type value and add suggestion models climc
1.修改监控metric排序
2.统一报警资源type和监控报警中res_type 进行统一,前端可以统一展示
3.增加suggestion服务相关climc
2021-01-06 21:31:02 +08:00
Zexi Li
77227ca67f Merge pull request #9779 from ioito/automated-cherry-pick-of-#9778-upstream-release-3.7
Automated cherry pick of #9778: fix(region): avoid auzre request timeout
2021-01-06 21:23:22 +08:00
Zexi Li
e12a3efd18 Merge pull request #9776 from ioito/automated-cherry-pick-of-#9775-upstream-release-3.7
Automated cherry pick of #9775: fix(cloudevent): default policy
2021-01-06 21:23:01 +08:00
Zexi Li
4630e15da5 Merge pull request #9772 from ioito/automated-cherry-pick-of-#9771-upstream-release-3.7
Automated cherry pick of #9771: fix(region): avoid panic when register service not work
2021-01-06 21:22:12 +08:00
Qu Xuan
d3a5317245 fix(region): avoid auzre request timeout 2021-01-06 15:33:32 +08:00
Qu Xuan
0ff3997a21 fix(cloudevent): default policy 2021-01-06 11:45:36 +08:00
Zexi Li
28fe044afc Merge pull request #9770 from ioito/automated-cherry-pick-of-#9767-upstream-release-3.7
Automated cherry pick of #9767: fix(region): aliyun support public ip
2021-01-05 21:36:36 +08:00
Zexi Li
1957800096 Merge pull request #9769 from ioito/automated-cherry-pick-of-#9768-upstream-release-3.7
Automated cherry pick of #9768: fix(region): sync cachedimage info
2021-01-05 21:28:39 +08:00
Qu Xuan
da35a63586 fix(region): avoid panic when register service not work 2021-01-05 21:19:07 +08:00
Qu Xuan
54ba8cfe43 fix(region): aliyun support public ip 2021-01-05 20:37:49 +08:00
Qu Xuan
124f280fef fix(region): sync cachedimage info 2021-01-05 20:31:54 +08:00
Zexi Li
b7901c2834 Merge pull request #9763 from wanyaoqi/automated-cherry-pick-of-#9762-upstream-release-3.7
Automated cherry pick of #9762: feat(region): stop guest before freeze
2021-01-05 18:32:42 +08:00
Zexi Li
0e272e57d2 Merge pull request #9761 from lvyangyang/automated-cherry-pick-of-#9760-upstream-release-3.7
Automated cherry pick of #9760: fix(region): replace cloud tags
2021-01-05 18:31:24 +08:00
wanyaoqi
3c7f2ff16d feat(region): stop guest before freeze 2021-01-05 15:15:40 +08:00
lvyangyang
499f4624b4 fix(region): replace cloud tags 2021-01-05 14:48:46 +08:00
Zexi Li
857c9f2278 Merge pull request #9759 from zhaoxiangchun/automated-cherry-pick-of-#9757-upstream-release-3.7
Automated cherry pick of #9757: fix(monitor): modify totalrecord query
2021-01-04 15:57:13 +08:00
zhaoxiangchun
5e054a25ad fix(monitor): modify totalrecord query
1. influxdb 增加abs function
2. 调整total报警记录接口query
2021-01-04 15:41:26 +08:00
Jian Qiu
7e60397c15 Automated cherry pick of #9752: feature(region): sync cloud tags to local user tags (#9753)
* refact(region): sync cloud tags to user tags

* fix(region): sync exttags to user tags

Co-authored-by: lvyangyang <lvyangyang@yunion.cn>
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-01-03 00:18:24 +08:00
Zexi Li
52ad3d961c Merge pull request #9755 from zhaoxiangchun/automated-cherry-pick-of-#9754-upstream-release-3.7
Automated cherry pick of #9754: feat(monitor): get today alerting resource info
2020-12-31 20:23:22 +08:00
zhaoxiangchun
376d18e5eb feat(monitor): get today alerting resource info
1.提供接口获取当前时间发生报警的资源统计
2020-12-31 20:06:01 +08:00
Zexi Li
894835907c Merge pull request #9688 from ioito/automated-cherry-pick-of-#9686-upstream-release-3.7
Automated cherry pick of #9686: fix(region): skip cloud image sync error
2020-12-30 21:44:10 +08:00
Zexi Li
0ffbb8cc6e Merge pull request #9737 from zhaoxiangchun/automated-cherry-pick-of-#9735-upstream-release-3.7
Automated cherry pick of #9735: fix(monitor): modify rds,redis,oss field descriptions
2020-12-30 21:43:11 +08:00
Zexi Li
415b95dc88 Merge pull request #9732 from ioito/automated-cherry-pick-of-#9730-upstream-release-3.7
Automated cherry pick of #9730: fix(cloudevent): cloudevent is domain level resource
2020-12-30 21:42:27 +08:00
Zexi Li
1c8f957152 Merge pull request #9728 from ioito/automated-cherry-pick-of-#9727-upstream-release-3.7
Automated cherry pick of #9727: fix(region): rds list with secgorups info
2020-12-30 21:41:44 +08:00
Zexi Li
1538cf3a02 Merge pull request #9733 from wanyaoqi/automated-cherry-pick-of-#9731-upstream-release-3.7
Automated cherry pick of #9731: fix(region): server start check host memory is enough
2020-12-30 21:39:42 +08:00
Zexi Li
3daa440db9 Merge pull request #9745 from rainzm/automated-cherry-pick-of-#9744-upstream-release-3.7
Automated cherry pick of #9744: fix(esxiagent): nicIndex should be incremented
2020-12-30 21:35:51 +08:00
rainzm
02931f509f fix(esxiagent): nicIndex should be incremented 2020-12-30 19:01:26 +08:00
Zexi Li
7ff4879ee3 Merge pull request #9726 from zhaoxiangchun/automated-cherry-pick-of-#9724-upstream-release-3.7
Automated cherry pick of #9724: feat(suggestion,apigateway): add analysispredict climc
2020-12-30 18:54:48 +08:00
Zexi Li
85de670c3b Merge pull request #9743 from rainzm/automated-cherry-pick-of-#9742-upstream-release-3.7
Automated cherry pick of #9742: fix(region): obtain ProviderFactory correctly
2020-12-30 18:53:38 +08:00
rainzm
b7b903ff67 fix(region): obtain ProviderFactory correctly
The provider of the region is not necessarily the same as the resource
2020-12-30 16:29:08 +08:00
zhaoxiangchun
d88ec4c39c fix(monitor): modify rds,redis,oss field descriptions
1.修改后端redis,rds,oss desc 信息,和前端索引进行对应
2020-12-30 15:51:09 +08:00
wanyaoqi
678f2b3dd4 fix(region): server start check host memory is enough 2020-12-30 15:48:09 +08:00
Qu Xuan
84b9e1fb00 fix(cloudevent): cloudevent is domain level resource 2020-12-30 15:47:37 +08:00
Qu Xuan
5e736e1838 fix(region): rds list with secgorups info 2020-12-30 14:18:18 +08:00
zhaoxiangchun
b0293b11f6 feat(suggestion,apigateway): add analysispredict climc 2020-12-30 14:06:36 +08:00
Zexi Li
7c3b6cd52a Merge pull request #9705 from bistuzx/automated-cherry-pick-of-#9675-upstream-release-3.7
Automated cherry pick of #9675: feat(meter): add meter budget&event module
2020-12-29 23:18:31 +08:00
bistuzx@163.com
66d2820f01 fix reservation columns 2020-12-29 22:47:43 +08:00
bistuzx@163.com
fe1e9ff936 add cost&prepaid_cost to reservation 2020-12-29 22:47:43 +08:00
bistuzx@163.com
802f2d9f4d fix budget import format 2020-12-29 22:47:43 +08:00
bistuzx@163.com
2fbe01505d fix reservation import format 2020-12-29 22:47:43 +08:00
bistuzx@163.com
3d82632e96 add meter budget&event&reservation module 2020-12-29 22:47:43 +08:00
Zexi Li
37d1c7f55d Merge pull request #9721 from swordqiu/automated-cherry-pick-of-#9701-upstream-release-3.7
Automated cherry pick of #9701: fix(region): omit vpc quota check if vpc created by owner
2020-12-29 21:34:13 +08:00
Zexi Li
5c2cc0b9ee Merge pull request #9722 from swordqiu/automated-cherry-pick-of-#9719-upstream-release-3.7
Automated cherry pick of #9719: fix(cloudcommon): splitable may not initialize underlying table
2020-12-29 21:17:28 +08:00
Qiu Jian
658c59327a fix(cloudcommon): splitable may not initialize underlying table 2020-12-29 21:02:03 +08:00
Zexi Li
71eb869549 Merge pull request #9715 from wanyaoqi/automated-cherry-pick-of-#9711-upstream-release-3.7
Automated cherry pick of #9711: fix(region,host,host-deployer): sync status chekc block jobs
2020-12-29 20:43:30 +08:00
Zexi Li
5704ae496d Merge pull request #9710 from rainzm/automated-cherry-pick-of-#9693-upstream-release-3.7
Automated cherry pick of #9693: Solve the permission problem of notify to create receiver
2020-12-29 20:40:55 +08:00
Zexi Li
390b78a57c Merge pull request #9707 from rainzm/automated-cherry-pick-of-#9706-upstream-release-3.7
Automated cherry pick of #9706: feat(region): multilingual timer description
2020-12-29 20:39:26 +08:00
Qiu Jian
9081b5dc4f 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 20:28:08 +08:00
wanyaoqi
5bbf364f2b fix(region,host): sync status check block jobs 2020-12-29 15:30:58 +08:00
wanyaoqi
550159af7c fix(host-deployer): add log line on blkid failed 2020-12-29 15:30:58 +08:00
wanyaoqi
447882a003 fix(climc): host add netif add params bridge/interface 2020-12-29 15:30:58 +08:00
rainzm
377177cfd2 feat(region): multilingual timer description 2020-12-29 15:23:05 +08:00
rainzm
167a65cd0e feat(db): progressive inspection when determining the required scope 2020-12-29 15:01:34 +08:00
rainzm
ac8f20ca18 fix(notify): inject domain info in ReceiverManager.FetchOwnerId 2020-12-29 15:01:34 +08:00
Zexi Li
de6468782e Merge pull request #9699 from zhaoxiangchun/automated-cherry-pick-of-#9698-upstream-release-3.7
Automated cherry pick of #9698: fix(monitor): sore reture info:resourceType,measurement
2020-12-29 09:34:58 +08:00
--global
333c83778f fix(monitor): sore reture info:resourceType,measurement
1.对资源类型和对应的measurement进行排序输出
2020-12-28 21:41:50 +08:00
Zexi Li
d293b182f9 Merge pull request #9696 from zhaoxiangchun/automated-cherry-pick-of-#9694-upstream-release-3.7
Automated cherry pick of #9694: fix(monitor): add resType   filter
2020-12-28 21:22:32 +08:00
Zexi Li
ce3a8b2872 Merge pull request #9692 from lvyangyang/automated-cherry-pick-of-#9691-upstream-release-3.7
Automated cherry pick of #9691: feat(region): add tags implement
2020-12-28 21:21:16 +08:00
--global
ee00fd3196 fix(monitor): add resType filter
1.修复资源类型过滤失效的问题
2020-12-28 18:30:50 +08:00
lvyangyang
66009c3325 feat(region): add tags implement 2020-12-28 16:26:44 +08:00
Zexi Li
51e01d8cae Merge pull request #9685 from ioito/automated-cherry-pick-of-#9108-upstream-release-3.7
Automated cherry pick of #9108: Hotfix/qx guest delete
2020-12-28 16:01:24 +08:00
Zexi Li
b64d3d53ad Merge pull request #9689 from zhasm/automated-cherry-pick-of-#9687-upstream-release-3.7
Automated cherry pick of #9687: fix(make,buildx): 使用 buildx 编译时,拉镜像到本地
2020-12-28 14:56:21 +08:00
Zhang Dongliang
7b6ce2b054 fix(make,buildx): 使用 buildx 编译时,拉镜像到本地 2020-12-28 14:35:11 +08:00
Qu Xuan
e08f9a8f78 fix(region): skip cloud image sync error 2020-12-28 14:32:50 +08:00
Qu Xuan
6081595adf feat(region): disks and eip delete with server 2020-12-28 11:29:44 +08:00
Qu Xuan
ffc1dd2cb3 feat(region): add server delete options 2020-12-28 11:29:44 +08:00
Zexi Li
13cacee382 Merge pull request #9673 from ioito/automated-cherry-pick-of-#9540-upstream-release-3.7
Automated cherry pick of #9540: fix(region): openstack network is regional
2020-12-28 10:51:02 +08:00
Qu Xuan
e3b9757132 fix(region): openstack network is regional 2020-12-28 10:22:49 +08:00
Zexi Li
27f07529a5 Merge pull request #9682 from rainzm/automated-cherry-pick-of-#9681-upstream-release-3.7
Automated cherry pick of #9681: feat(region): make DeleteSnapshotExpiredRelease applies to postpaid vm
2020-12-27 21:06:05 +08:00
Zexi Li
8f7c5db3f7 Merge pull request #9678 from ioito/automated-cherry-pick-of-#9677-upstream-release-3.7
Automated cherry pick of #9677: optimized(region): qcloud bucket policy set and get operation
2020-12-26 20:00:50 +08:00
Zexi Li
b58dffd13f Merge pull request #9661 from tb365/automated-cherry-pick-of-#9587-upstream-release-3.7
Automated cherry pick of #9587: fix(region): cloudregion&zone add namei18n
2020-12-26 18:43:24 +08:00
rainzm
ebb29b21e0 feat(region): make DeleteSnapshotExpiredRelease applies to postpaid vm 2020-12-26 18:41:58 +08:00
Qu Xuan
addf12f43d optimized(region): qcloud bucket policy set and get operation 2020-12-26 17:42:25 +08:00
TangBin
1cca1b5685 fix(region): remove i18n fix & zone &region name support i18n 2020-12-26 17:35:42 +08:00
TangBin
7178a2d3c7 fix(region): aws sync vpc access mode bugfix 2020-12-26 17:35:42 +08:00
TangBin
d097679e47 fix(region): cloudregion&zone add namei18n 2020-12-26 17:35:42 +08:00
Zexi Li
516892ed6f Merge pull request #9674 from lvyangyang/automated-cherry-pick-of-#9628-upstream-release-3.7
Automated cherry pick of #9628: Refact tags interface
2020-12-26 16:26:34 +08:00
lvyangyang
66b97aa112 refact(region): resource tags 2020-12-26 16:13:06 +08:00
Zexi Li
82b71528a7 Merge pull request #9663 from rainzm/automated-cherry-pick-of-#9660-upstream-release-3.7
Automated cherry pick of #9660: feat(region): add options DeleteSnapshotExpiredRelease
2020-12-26 15:12:37 +08:00
Zexi Li
d1fd9cb26e Merge pull request #9672 from zexi/automated-cherry-pick-of-#9627-upstream-release-3.7
Automated cherry pick of #9627: fix(region): support rds secgroup operation
2020-12-26 12:20:19 +08:00
Qu Xuan
dddfdbd5b2 fix(region): support rds secgroup operation 2020-12-26 12:19:21 +08:00
Zexi Li
9cf77bba40 Merge pull request #9667 from lvyangyang/automated-cherry-pick-of-#9636-upstream-release-3.7
Automated cherry pick of #9636: fix(region): aws lb create tags param
2020-12-26 12:18:34 +08:00
Zexi Li
1608a1fbe8 Merge pull request #9671 from zexi/automated-cherry-pick-of-#9640-upstream-release-3.7
Automated cherry pick of #9640: fix(region): purge private cloud sku
2020-12-26 12:15:28 +08:00
Qu Xuan
1d320035b1 fix(region): purge private cloud sku 2020-12-26 12:14:46 +08:00
Zexi Li
d5132a0602 Merge pull request #9670 from zexi/automated-cherry-pick-of-#9642-upstream-release-3.7
Automated cherry pick of #9642: fix(region): apsara optimized
2020-12-26 12:13:55 +08:00
Qu Xuan
ca578cbb27 fix(region): apsara optimized 2020-12-26 12:13:24 +08:00
Zexi Li
3a74aafa08 Merge pull request #9664 from yousong/automated-cherry-pick-of-#9625-upstream-release-3.7
Automated cherry pick of #9625: Feature/yousong y18n check
2020-12-26 12:11:35 +08:00
Zexi Li
9eb0c4c163 Merge pull request #9669 from zexi/automated-cherry-pick-of-#9644-upstream-release-3.7
Automated cherry pick of #9644: feature(climc): policy save data into file
2020-12-26 12:10:01 +08:00
Qiu Jian
56d583e90b feature(climc): policy save data into file
Allow saveing policy data into file
2020-12-26 12:08:06 +08:00
Zexi Li
067c9397a6 Merge pull request #9668 from zexi/automated-cherry-pick-of-#9654-upstream-release-3.7
Automated cherry pick of #9654: fix(region): optimized azure rebuild root
2020-12-26 12:07:08 +08:00
Qu Xuan
7fb008c50b fix(region): optimized azure rebuild root 2020-12-26 12:06:02 +08:00
Zexi Li
5626f7a8ed Merge pull request #9666 from swordqiu/automated-cherry-pick-of-#9652-upstream-release-3.7
Automated cherry pick of #9652: fix(cloudevent): adjust cloudevents resource scope
2020-12-26 12:04:51 +08:00
lvyangyang
50bc20b2a2 fix(region): aws lb create tags param 2020-12-26 11:53:59 +08:00
Qiu Jian
e12eea6799 fix(cloudevent): adjust cloudevents resource scope
Change cloudevents resource scope from system to project.
2020-12-26 11:51:24 +08:00
yunion-ci-robot
b5574e365b Merge pull request #9659 from zhaoxiangchun/automated-cherry-pick-of-#9657-upstream-release-3.7
Automated cherry pick of #9657: fix(monitor): monitor notify international and 3.6 bugfix
2020-12-26 11:29:52 +08:00
Yousong Zhou
7042f97cd9 build: skip y18n-check for now
CircleCI is likely not happy with the memory usage

	/bin/sh: line 1:  4553 Killed                  y18n -chdir /root/go/src/yunion.io/x/onecloud -dir ./locales/ -out ./locales/locales.go -lang en-US,zh-CN yunion.io/x/onecloud/cmd/keystone yunion.io/x/onecloud/cmd/monitor yunion.io/x/onecloud/cmd/region yunion.io/x/onecloud/cmd/yunionconf
	make: *** [y18n-check] Error 137

Link: https://app.circleci.com/pipelines/github/yunionio/onecloud/25085/workflows/6efec9d0-cdd5-45eb-bb1e-f62849e22b76/jobs/55153
2020-12-26 11:10:53 +08:00
Yousong Zhou
eb6be534e7 locales: regenerate locales.go 2020-12-26 11:10:53 +08:00
Yousong Zhou
719f919021 locales: zh-CN: regenerate messages.gotext.json 2020-12-26 11:10:53 +08:00
Yousong Zhou
c786a56efa build: add y18n-check, y18n-gen 2020-12-26 11:10:53 +08:00
Yousong Zhou
f31a2175c5 .circleci: use centos-build:1.1-4
- place the code in canonical GOPATH when GO111MODULE can be off
 - always set ONECLOUD_CI_BUILD, including the test step
2020-12-26 11:10:53 +08:00
Yousong Zhou
139740613f build: use centos-build:1.1-4
y18n support in 1.1-4
2020-12-26 11:10:53 +08:00
Yousong Zhou
87e08c49de build: docker: add ModName 2020-12-26 11:10:53 +08:00
Yousong Zhou
7a01f72d64 build: docker: move to Makefile.common.mk 2020-12-26 11:10:53 +08:00
Yousong Zhou
ac713700ac scripts/docker_push.sh: minor polishments
- removed bundled baremetal-agent before building new to avoid go
   error for refusing to overwrite a text file
 - use docker buildx build no mater what
 - check existence of dockerfile before calling general_build to avoid
   error by cmd/chksum
2020-12-26 11:10:53 +08:00
Yousong Zhou
e778b99b78 scripts/docker_push.sh: use toplevel Makefile target 2020-12-26 11:10:53 +08:00
Yousong Zhou
d7804f6da7 build: docker: align centos variant with the alpine one 2020-12-26 11:10:53 +08:00
Yousong Zhou
3d7e5aaf92 build: docker: make target GOARCH/GOOS/CGO_ENABLED aware 2020-12-26 11:10:53 +08:00
Yousong Zhou
6c7a124481 build: docker: remove GOFLAGS export 2020-12-26 11:10:53 +08:00
Yousong Zhou
57b4cec5d4 scripts/coverage.sh: detect use of "-mod vendor" 2020-12-26 11:10:53 +08:00
Yousong Zhou
a90a26a4ec region: fix error msg for invalid wire_level_for_vmware 2020-12-26 11:10:53 +08:00
rainzm
17f04c3388 feat(region): add options DeleteSnapshotExpiredRelease 2020-12-26 11:10:09 +08:00
--global
2f11e60123 fix(monitor): monitor notify international and 3.6 bugfix
1.修复项目下无法查看报警记录
2.修复报警策略切换所属范围signature失败
3.国际化问题处理
2020-12-26 11:04:59 +08:00
Zexi Li
ef30d23bbd Merge pull request #9637 from ioito/hotfix/qx-cloudid-sync-optimized
fix(cloudid): optimized system policy sync
2020-12-25 17:23:59 +08:00
Qu Xuan
7760e0c3a2 fix(cloudid): optimized system policy sync 2020-12-25 14:55:17 +08:00
Zexi Li
43495f8a00 Merge pull request #9633 from ioito/hotfix/qx-global-proxy
fix(region): sku.meta use global proxy
2020-12-25 01:26:12 +08:00
Zexi Li
35056c89a2 Merge pull request #9629 from ioito/hotfix/qx-disk-allocate-failed-log
fix(region): optimized disk allocate sched failed log
2020-12-24 17:47:51 +08:00
Zexi Li
b76d36f90f Merge pull request #9622 from ioito/hotfix/qx-openstack-change-config
fix(region): avoid openstack change config error
2020-12-24 17:42:07 +08:00
Zexi Li
2c3d7f1e55 Merge pull request #9593 from ioito/hotfix/qx-private-cloud-sku
fix(region): private cloud sku create
2020-12-24 17:41:03 +08:00
Zexi Li
8358ecfe9c Merge pull request #9619 from ioito/hotfix/qx-aws-role
fix(region): avolid panic when list role's policies
2020-12-24 17:35:10 +08:00
Zexi Li
35293ec9c3 Merge pull request #9609 from wanyaoqi/bugfix/wyq/fix-list-image-by-os-arch
fix(glance): list image by os arch use startwith
2020-12-24 17:34:23 +08:00
Qu Xuan
a8cc140b52 fix(region): sku.meta use global proxy 2020-12-24 17:22:43 +08:00
Qu Xuan
d78f4a98b1 fix(region): optimized disk allocate sched failed log 2020-12-24 16:58:05 +08:00
Qu Xuan
a75e6c906a fix(region): avolid panic when list role's policies 2020-12-24 15:24:19 +08:00
Zexi Li
9868addd4d Merge pull request #9596 from lvyangyang/azure-resourcetags
feat(region): azure tags
2020-12-24 14:33:05 +08:00
Qu Xuan
78ef400b1f fix(region): avoid openstack change config error 2020-12-24 11:45:49 +08:00
Zexi Li
ccf89de75c Merge pull request #9616 from swordqiu/hotfix/qj-fix-policy-role-description-i18n
fix(keystone): add i18n description for policy and role
2020-12-24 02:13:55 +08:00
Qiu Jian
7c84554587 fix(keystone): add i18n description for policy and role
Add i18n support for descriptions of system policy and role
2020-12-23 23:34:21 +08:00
Zexi Li
ca74828539 Merge pull request #9594 from wanyaoqi/wyq/update-centos-build-version
chore(util): update centos build version to 1.1-3
2020-12-23 22:15:21 +08:00
Zexi Li
4514635995 Merge pull request #9597 from zhaoxiangchun/feature/zxc-alerthistory-master
fix(cloudmon): deal cannot get  azure metric
2020-12-23 22:14:21 +08:00
Zexi Li
9a378dc9ba Merge pull request #9599 from yousong/bugfix/yousong-climc-ssh
Bugfix/yousong climc ssh
2020-12-23 22:12:45 +08:00
Zexi Li
49509f1ec1 Merge pull request #9605 from zhaoxiangchun/bugfix/zxc-nodata-resource
fix(monitor): fix nodata alertresource list
2020-12-23 22:10:09 +08:00
Zexi Li
d6f9e09a4c Merge pull request #9613 from rainzm/notify/webconsole
fix(notify): fit correctly when send notification via contact
2020-12-23 22:03:24 +08:00
Qu Xuan
09a039eb6e fix(region): private cloud sku create 2020-12-23 20:36:24 +08:00
Zexi Li
1e65309b52 Merge pull request #9611 from rainzm/notify/lang
feat(cloudcommon): determine the notification template based on the user’s language preference
2020-12-23 20:32:48 +08:00
rainzm
4f386fea1a fix(notify): fit correctly when send notification via contact 2020-12-23 17:46:48 +08:00
rainzm
2eebef810f feat(cloudcommon): determine the notification template based on the user’s language preference 2020-12-23 17:07:25 +08:00
wanyaoqi
8386506560 fix(glance): list image by os arch use startwith 2020-12-23 16:23:43 +08:00
Zexi Li
72d5aea49c Merge pull request #9603 from rainzm/lb/webhook
feat(webhook): send webhook notification when c/d loadbalancerlisterrule
2020-12-23 15:16:09 +08:00
rainzm
93f98d55ad feat(webhook): send webhook notification when c/d loadbalancerlisterrule 2020-12-23 14:49:28 +08:00
lvyangyang
351e2cc38a feat(region): azure tags 2020-12-23 14:47:14 +08:00
--global
f408ef0275 fix(monitor): fix nodata alertresource list
1.修复nodata报警资源列表无法根据nodata策略正确刷新和删除
2020-12-23 14:44:11 +08:00
Yousong Zhou
b06be9ea5c fix(mcclient): options: webconsole: fix passing ssh port 2020-12-23 13:29:22 +08:00
Yousong Zhou
db8307822f refactor(climc): webconsole: use helper methods of response struct 2020-12-23 13:29:17 +08:00
Yousong Zhou
4cd1d4ba7c refactor(webconsole): api: add helper methods for response struct 2020-12-23 13:29:11 +08:00
Yousong Zhou
c7d099b6fb refactor(webconsole): use structured response 2020-12-23 13:29:06 +08:00
--global
369872f7ab fix(cloudmon): deal cannot get azure metric
1.azure重构代码导致监控uri路径出错
2020-12-23 13:13:47 +08:00
Zexi Li
8b4f01e02e Merge pull request #9319 from lvyangyang/bucket-uploadings
feat(region) :bucket list uploads
2020-12-23 11:20:48 +08:00
wanyaoqi
84d64df0c9 chore(util): update centos build version to 1.1-3 2020-12-23 11:07:56 +08:00
lvyangyang
ef9d2df3ce feat(region): bucket list uploads 2020-12-23 09:53:05 +08:00
Zexi Li
a85fda415d Merge pull request #9548 from tb365/bugfix/tb-bugfix-121801
Bugfix/tb bugfix 121801
2020-12-23 09:47:43 +08:00
Zexi Li
3be6296f1c Merge pull request #9577 from zhaoxiangchun/feature/zxc-alerthistory-master
feat(monitor): add global alertrecord
2020-12-23 09:45:53 +08:00
Zexi Li
b27dc38605 Merge pull request #9570 from ioito/hotfix/qx-to-network-config
fix(region): 避免从云上同步下来的主机,创建相同配置时network_id为空
2020-12-23 09:41:45 +08:00
Zexi Li
c2a809221a Merge pull request #9573 from ioito/hotfix/qx-huawei-gpssd
fix(region): add huawei gpssd desc
2020-12-23 09:36:59 +08:00
Zexi Li
e685c0b942 Merge pull request #9579 from zhaoxiangchun/bugfix/zxc-commonalert-usedby-master
fix(monitor): other servier create alert add used_by param as a agreement
2020-12-23 09:35:03 +08:00
Zexi Li
8ab4ae1f23 Merge pull request #9584 from rainzm/ansibleserver/role
more convenient debugging and role isolation
2020-12-23 09:09:30 +08:00
Zexi Li
941e6feb8e Merge pull request #9589 from swordqiu/hotfix/qj-cloudevent-devtools-missing-metadata-tbl
fix(cloudevent,devtool): missing metadata table
2020-12-23 09:06:16 +08:00
Qiu Jian
ba08d9d465 fix(cloudevent,devtool): missing metadata table 2020-12-23 03:10:04 +08:00
rainzm
6d7764550e feat: download the role to tmpdir not system role dir 2020-12-22 20:16:34 +08:00
rainzm
cfa426bc18 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:14:48 +08:00
yunion-ci-robot
31a0fb76fd Merge pull request #9583 from yousong/feature/yousong-bump-ovs
build: docker: use openvswitch 2.10.5-1
2020-12-22 18:07:49 +08:00
Yousong Zhou
ce86ed8161 build: docker: use openvswitch 2.10.5-1 2020-12-22 17:27:12 +08:00
--global
c39e6778e6 feat(monitor): add global alertrecord
1.支持时间、资源类型、报警级别、报警状态的过滤
2.报警记录删除时,删除关联的报警记录
2020-12-22 16:21:39 +08:00
--global
7526604501 fix(monitor): other servier create alert add used_by param as a agreement
1.解决notify,meter中创建的对应的策略也展示在统一报警策略页面。通过used_by
  进行区分
2020-12-22 16:10:31 +08:00
Qu Xuan
b5a25b9c60 fix(region): add huawei gpssd desc 2020-12-22 11:31:53 +08:00
Qu Xuan
61c25a597a fix(region): 避免从云上同步下来的主机,创建相同配置时network_id为空 2020-12-22 11:17:25 +08:00
Zexi Li
159c1bcb89 Merge pull request #9498 from wanyaoqi/bugfix/wyq/migrate-misc-fix
server migrate misc fix
2020-12-22 10:06:27 +08:00
yunion-ci-robot
ab76faeba3 Merge pull request #9564 from zexi/hotfix/baremetal-pxe-net-alloc
Hotfix/baremetal pxe net alloc
2020-12-21 23:47:39 +08:00
Zexi Li
f2b1c42644 Merge pull request #9544 from yousong/bugfix/yousong-no-lbagent-error
fix(region): lbbackend: better error reporting for finding influxdb info
2020-12-21 21:07:46 +08:00
Zexi Li
d3c8c33014 Merge pull request #9555 from ioito/hotfix/qx-openstack-os-type
fix(region): fix openstack instance os type
2020-12-21 21:01:52 +08:00
Zexi Li
7751cd216f Merge pull request #9559 from rainzm/docker/build_kit
feat(scripts): add export DOCKER_BUILDKIT=1
2020-12-21 21:00:21 +08:00
Zexi Li
31f62225b1 Merge pull request #9561 from ioito/hotfix/qx-notify-temp
fix(cloudid): add <br> for notify templete
2020-12-21 20:59:13 +08:00
Zexi Li
e2201a80f3 fix(region,baremetal): choose candidate network not according by types 2020-12-21 20:42:38 +08:00
Qu Xuan
21820fe2d8 fix(cloudid): add <br> for notify templete 2020-12-21 20:41:02 +08:00
Zexi Li
2c7f8d93f6 fix(region,baremetal): pxe net reuse converted server access ip 2020-12-21 20:34:57 +08:00
rainzm
e52da6ca5f feat(scripts): add export DOCKER_BUILDKIT=1 2020-12-21 19:52:15 +08:00
Qu Xuan
5674b5e5f2 fix(region): fix openstack instance os type 2020-12-21 19:42:19 +08:00
TangBin
b52a7d019c fix(region): lbacl &lbcert default share scope 2020-12-21 17:32:31 +08:00
Yousong Zhou
754359b955 fix(region): lbbackend: better error reporting for finding influxdb info 2020-12-21 16:41:25 +08:00
Zexi Li
331e60e100 Merge pull request #9360 from ioito/bugfix/qx-server-sync
fix(region): sync servers
2020-12-21 10:40:29 +08:00
Zexi Li
ae5e28c58c Merge pull request #9538 from swordqiu/hotfix/qj-splitable-modify-query-string
fix(cloudcommon): query string may be modified in listItemQuery
2020-12-21 01:31:29 +08:00
Zexi Li
82990d2992 Merge pull request #9536 from swordqiu/hotfix/qj-match-policy-skip-deleted-policies
fix(keystone): ignore deleted policies when matching policies
2020-12-21 01:30:27 +08:00
Qiu Jian
abbcac09ab 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:29:55 +08:00
Qiu Jian
234c37c490 fix(keystone): ignore deleted policies when matching policies
ignore deleted policies when matching policies
2020-12-20 14:12:59 +08:00
Zexi Li
b300d5e4e6 Merge pull request #9534 from swordqiu/hotfix/qj-rbac-policy-refresh-internal-seconds
fix(cloudcommon): add rbac_policy_refresh_internval_seconds option
2020-12-20 02:08:30 +08:00
Zexi Li
972f7f4ab4 Merge pull request #9527 from swordqiu/hotfix/qj-split-table-empty-panic
fix(cloudcommon): panic when query an empty splitable model manager
2020-12-20 02:07:45 +08:00
Zexi Li
260e92b109 Merge pull request #9529 from swordqiu/hotfix/qj-host-task-use-admin-token-if-task-token-expired
fix(taskman): use admin token if task userCred token expired
2020-12-20 02:05:48 +08:00
Qiu Jian
792bfe533c 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:31:54 +08:00
Qiu Jian
4043cd8342 fix(taskman): use admin token if task userCred token expired
Use admin credential token if task cached userCred token expired
2020-12-20 00:43:34 +08:00
Qiu Jian
d01f89a2c8 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:15 +08:00
yunion-ci-robot
d819989bc2 Merge pull request #9521 from zexi/storage-actual-size-filter
Storage actual size filter
2020-12-19 23:46:05 +08:00
Zexi Li
ae107e334b Merge pull request #9494 from wanyaoqi/bugfix/wyq/guest-to-create-input
fix(region): guest to create input keep billing info
2020-12-19 20:05:55 +08:00
Zexi Li
0ce19160d0 Merge pull request #9501 from swordqiu/feature/qj-user-add-lang-attribute
feature(keystone): user add language attribute
2020-12-19 20:05:21 +08:00
Zexi Li
52559cd3f9 Merge pull request #9509 from ioito/hotfix/qx-azure-async-task
fix(region): azure async task
2020-12-19 20:02:26 +08:00
Zexi Li
1a9454fa43 Merge pull request #9512 from ioito/hotfix/qx-azure-security-group-rule
fix(region): azure secgroup rule not allow with same priority and dir…
2020-12-19 20:00:54 +08:00
Zexi Li
bdd112e80b fix(scheduler): storage predicate add actualCapacity filter 2020-12-19 19:56:26 +08:00
Zexi Li
7a246b6878 Merge pull request #9515 from swordqiu/hotfix/qj-telegraf-use-local-ipv4-address-explicitly
fix(host): telegraf listen on local ipv4 address explicitly
2020-12-19 18:11:34 +08:00
Qiu Jian
89df588448 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 17:16:05 +08:00
Qu Xuan
bd99ad2199 fix(region): azure secgroup rule not allow with same priority and direction 2020-12-19 14:47:03 +08:00
Qu Xuan
f60c1835d1 fix(region): azure async task 2020-12-19 14:01:00 +08:00
yunion-ci-robot
3eb25e6dd1 Merge pull request #9446 from yousong/feature/yousong-vpc-fwd
Feature/yousong vpc fwd
2020-12-19 10:39:06 +08:00
Qu Xuan
ae060f2347 fix(region): sync servers 2020-12-19 10:25:28 +08:00
Zexi Li
9579d87953 Merge pull request #9502 from swordqiu/hotfix/qj-refresh-service-config
fix(keystone): always upload&refresh service config whenever service …
2020-12-19 09:32:36 +08:00
Qiu Jian
5cf5576e09 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 09:18:17 +08:00
Qiu Jian
80229fa1e0 fix(keystone): always upload&refresh service config whenever service restart
Always upload&refresh service config whenever service restart
2020-12-19 00:49:32 +08:00
yunion-ci-robot
0f2913b081 Merge pull request #9490 from zexi/hotfix/baremetal-pd-makegood
Hotfix/baremetal pd makegood
2020-12-18 20:45:02 +08:00
Zexi Li
1f40f2bd1c Merge pull request #9483 from rainzm/webhook/pending_delete
Webhook better describe the life cycle of the guest
2020-12-18 20:37:43 +08:00
wanyaoqi
8161d86dfd fix(host): add print migrate progress info 2020-12-18 18:25:28 +08:00
wanyaoqi
97864f96eb fix(region): do not change disk status on migrating 2020-12-18 18:24:32 +08:00
TangBin
4cdd768cec fix(region): elb acl validate create data fix 2020-12-18 18:19:37 +08:00
TangBin
e19a022f6d fix(region): aliyun elb listener&lbbg sync project 2020-12-18 18:15:30 +08:00
TangBin
d91c7a62dc fix(region): cert&acl cache delete condition check 2020-12-18 17:07:08 +08:00
Zexi Li
c51dbaaa7b Merge pull request #9488 from tb365/bugfix/tb-bugfix-121702
Bugfix/tb bugfix 121702
2020-12-18 16:36:17 +08:00
Zexi Li
d5ec32534c Merge pull request #9459 from zhaoxiangchun/feature/zxc-commonalert-setnodata-master
feat(monitor): add alert slience time and modify scoperesource FetchUniqValues func
2020-12-18 16:33:45 +08:00
Zexi Li
14660138fc Merge pull request #9486 from wanyaoqi/bugfix/wyq/change-config-forecast
fix(region): fix change config forecast
2020-12-18 16:31:10 +08:00
Zexi Li
31fe97fbfe Merge pull request #9481 from wanyaoqi/bugfix/wyq/service-config-ignore-deploy-socket-path
fix(keystone): service config ignore deploy server socket path
2020-12-18 16:29:44 +08:00
wanyaoqi
36102e97d9 fix(region): guest to create input keep billing info 2020-12-18 16:15:16 +08:00
Zexi Li
77e4c806f3 fix(baremetal): clear jbod disks do PDMakeGood 2020-12-18 15:48:58 +08:00
wanyaoqi
2dc5b47915 fix(region): fix change config forecast 2020-12-18 14:57:20 +08:00
TangBin
3f19bb1efc fix(region): remove unnecessary vpc validate create date error wrap 2020-12-18 14:51:54 +08:00
--global
54271b78ad feat(monitor): add alert slience time and modify scoperesource
FetchUniqValues func

1.增加报警静默时间
2.后端修改 scoperesource FetchUniqValues :回显scope 属性
2020-12-18 14:39:02 +08:00
TangBin
f3c8bede52 fix(region): network create mask length validate 2020-12-18 14:29:49 +08:00
rainzm
bf378452a4 feat(region): send webhook server_create when canceling pending delete 2020-12-18 13:06:08 +08:00
rainzm
81588c92ae feat(region): distinguish between pending delete and delete notification 2020-12-18 13:05:24 +08:00
Zexi Li
15e1058519 Merge pull request #9458 from yousong/bugfix/yousong-eip-ipaddr
Bugfix/yousong eip ipaddr
2020-12-18 12:51:12 +08:00
wanyaoqi
c2978b8202 fix(keystone): service config ignore deploy server socket path 2020-12-18 12:50:41 +08:00
TangBin
72321d011f fix(region): vpc create data cird validate 2020-12-18 12:01:18 +08:00
TangBin
c50c47d653 fix(region): ctyun delete server bugfix
6642
2020-12-18 09:39:00 +08:00
Zexi Li
f1c2c9773c Merge pull request #9472 from yousong/bugfix/yousong-host-mtu
Bugfix/yousong host mtu
2020-12-18 00:21:00 +08:00
Zexi Li
76f571d538 Merge pull request #9476 from wanyaoqi/bugfix/wyq/fix-get-image-image
fix(host-deployer): probe image info umount rootfs first
2020-12-18 00:17:34 +08:00
Yousong Zhou
44b6391a62 fix(region): guestnetworks: use net calculated mtu 2020-12-17 21:38:11 +08:00
Yousong Zhou
a0ad627114 feat(region): networks: add getMtu method 2020-12-17 21:38:11 +08:00
Yousong Zhou
e201573d61 feat(apis): add const VPC_OVN_ENCAP_COST 2020-12-17 21:38:11 +08:00
TangBin
e2f1e5548d fix(region): create vm with eip task fix 2020-12-17 19:20:12 +08:00
wanyaoqi
37b036ed37 fix(host-deployer): probe image info umount rootfs first 2020-12-17 19:19:30 +08:00
Yousong Zhou
319d2cc563 feat(host): startvm: set vpc nic mtu
Windows DHCP client does not respect DHCP MTU option
2020-12-17 19:05:54 +08:00
Yousong Zhou
0139611d14 feat(host): startvm: add nic_mtu shell func 2020-12-17 19:00:41 +08:00
Yousong Zhou
52c3e93af7 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 19:00:41 +08:00
Yousong Zhou
d4093e2155 refactor(host): startvm: nic_speed: use raw string 2020-12-17 19:00:41 +08:00
Yousong Zhou
dae06cb500 refactor(host): startvm: add QEMU_CMD_KVM_ARG 2020-12-17 19:00:41 +08:00
Zexi Li
c6df981054 Merge pull request #9470 from ioito/hotfix/qx-apsara-metrics
fix(region): apsara metrics fix
2020-12-17 16:03:24 +08:00
Qu Xuan
edae255a04 fix(region): apsara metrics fix 2020-12-17 15:58:30 +08:00
Zexi Li
0a80d6d4a9 Merge pull request #9463 from rainzm/vmware/vswitch
fix(region): exclude network recommended for host when suggesting net…
2020-12-17 11:21:26 +08:00
Zexi Li
cba71b4043 Merge pull request #9467 from tb365/bugfix/tb-bugfix-121701
fix(region): skus add cloudenv
2020-12-17 11:17:35 +08:00
TangBin
cfc5fe9f20 fix(region): skus add cloudenv 2020-12-17 10:57:57 +08:00
rainzm
c91ad4a705 fix(region): exclude network recommended for host when suggesting network for guest 2020-12-17 10:08:56 +08:00
Zexi Li
c1f21ffba4 Merge pull request #9441 from wanyaoqi/bugfix/wyq/fix-change-config
bugfix(region): server change config rebase to sched task
2020-12-17 09:50:42 +08:00
Zexi Li
a0712c24a1 Merge pull request #9454 from zexi/hotfix/scheduler-fetch-input
fix(scheduler): fetch input network when specified
2020-12-16 18:24:29 +08:00
wanyaoqi
999cc74bde bugfix(region): server change config rebase to sched task 2020-12-16 18:03:54 +08:00
Zexi Li
03fc799067 Merge pull request #9452 from swordqiu/hotfix/qj-invalid-token-fetch-policy-panic
fix(keystone): panic if request with an invalid token
2020-12-16 17:57:26 +08:00
Zexi Li
870db8e879 fix(scheduler): fetch input network when specified 2020-12-16 17:48:53 +08:00
Yousong Zhou
719a9608c7 fix(region): eip_allocate_task: set eip status allocate_fail on task failure 2020-12-16 17:42:58 +08:00
Yousong Zhou
4a8eee0db3 fix(region,climc): eips: rename arg name for requested eip addr 2020-12-16 17:35:04 +08:00
Qiu Jian
0eaf20da26 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:43:24 +08:00
yunion-ci-robot
7b5b8ccd69 Merge pull request #9449 from yousong/bugfix/yousong-climc
fix(climc): use printObjectRecursive for PerformXxx calls
2020-12-16 13:01:14 +08:00
Zexi Li
cd34509aaf Merge pull request #9443 from tb365/bugfix/tb-bugfix-121501
Bugfix/tb bugfix 121501
2020-12-16 12:25:32 +08:00
Zexi Li
b03da9c2ea Merge pull request #9418 from zexi/hotfix/baremetal-update-related-server
fix(region): baremetal post update related server
2020-12-16 10:40:44 +08:00
Yousong Zhou
d6463f955a fix(climc): use printObjectRecursive for PerformXxx calls
Original

	+----------+-----------------------------------------------------------------------------------------------------+
	|  Field   |                                                Value                                                |
	+----------+-----------------------------------------------------------------------------------------------------+
	| forwards | [{"addr":"192.168.2.252","port":22,"proto":"tcp","proxy_addr":"10.168.222.196","proxy_port":33908}, |
	|          | {"addr":"192.168.2.252","port":22,"proto":"tcp","proxy_addr":"10.168.222.196","proxy_port":45490}]  |
	+----------+-----------------------------------------------------------------------------------------------------+

After

	+-----------------------+----------------+
	|         Field         |     Value      |
	+-----------------------+----------------+
	| forwards.0.addr       | 192.168.2.252  |
	| forwards.0.port       | 22             |
	| forwards.0.proto      | tcp            |
	| forwards.0.proxy_addr | 10.168.222.196 |
	| forwards.0.proxy_port | 33908          |
	| forwards.1.addr       | 192.168.2.252  |
	| forwards.1.port       | 22             |
	| forwards.1.proto      | tcp            |
	| forwards.1.proxy_addr | 10.168.222.196 |
	| forwards.1.proxy_port | 45490          |
	+-----------------------+----------------+
2020-12-16 10:35:58 +08:00
Yousong Zhou
1709aa2e14 chore(host): options: use rundir /var/run/onecloud for sdnagent 2020-12-16 10:00:38 +08:00
Zexi Li
d34464f86e Merge pull request #9447 from swordqiu/hotfix/qj-action-log-post-fail
fix(log): fail to submit action log
2020-12-16 09:32:50 +08:00
Zexi Li
5e4d0758bd Merge pull request #9439 from zhaoxiangchun/feature/zxc-commonalert-setnodata-master
feat(monitor): support create nodata alert from web
2020-12-16 09:27:14 +08:00
Qiu Jian
b01a3c1539 fix(log): fail to submit action log
Because splitable not implement InsertOrMethod method, fail to submit
action log
2020-12-16 00:12:52 +08:00
Yousong Zhou
a290a6a49d fix(build): fmt: ignore auto-generated files 2020-12-15 22:17:48 +08:00
Yousong Zhou
549ae15a44 feat(climc): servers: add server forward commands 2020-12-15 22:17:48 +08:00
Yousong Zhou
1427d1b3a6 feat(region): guest: add {open,close,list}-forward API 2020-12-15 22:12:23 +08:00
Yousong Zhou
8f54866272 feat(region): guest: add fetchGuestNICs method 2020-12-15 22:12:23 +08:00
Yousong Zhou
4dd3945804 feat(region): guestdrivers: guest forward open, close, list methods 2020-12-15 22:12:23 +08:00
Yousong Zhou
447770dfc6 feat(apis): region: names for guest forward API 2020-12-15 22:12:23 +08:00
Yousong Zhou
daf863bd44 feat(host): guestman: add {Open,Close,List}Forward handler 2020-12-15 22:12:23 +08:00
Yousong Zhou
eb6febcc16 feat(host): kvm: add GetVpcNIC 2020-12-15 22:12:23 +08:00
Yousong Zhou
7b55e756ed feat(host): options: add option SdnSocketPath 2020-12-15 22:12:23 +08:00
Yousong Zhou
50e6810643 refactor(host): hostdhcp: do not import guestman 2020-12-15 22:12:23 +08:00
Yousong Zhou
1e4c294fd9 refactor(host): host_health: do not import guestman 2020-12-15 22:12:23 +08:00
Yousong Zhou
e7f618228b feat(apis): add host forward request/response struct 2020-12-15 22:12:23 +08:00
Yousong Zhou
665de6d56e chore(vendor): update google.golang.org/grpc@v1.29.1
It's the last version with google.golang.org/grpc/naming

yunion.io/x/onecloud/pkg/multicloud/google imports
        cloud.google.com/go/storage imports
        google.golang.org/api/option imports
        google.golang.org/api/internal imports
        google.golang.org/grpc/naming: module google.golang.org/grpc@latest found (v1.34.0), but does not contain package google.golang.org/grpc/naming
2020-12-15 22:04:15 +08:00
Yousong Zhou
925cc31b44 feat(host): forwarder: add NewClient func 2020-12-15 22:04:15 +08:00
Yousong Zhou
e8ec0718cf feat(host): go generate forwarder api 2020-12-15 21:45:18 +08:00
Yousong Zhou
d07bece954 feat(host): add forwarder.proto 2020-12-15 21:45:18 +08:00
Yousong Zhou
2acca1a70f fix(host): guestman: variable name typo 2020-12-15 21:45:18 +08:00
TangBin
5d6c8c7611 fix(awscli): instance-rebuild-root fix 2020-12-15 21:02:23 +08:00
yunion-ci-robot
ab47e7d404 Merge pull request #9435 from wanyaoqi/bugfix/wyq/fix-windows-set-passwd
fix(host): fix set windows password with escape charater
2020-12-15 20:51:20 +08:00
TangBin
5d20bf2800 fix(region): vpc sync external access mode fix 2020-12-15 20:48:17 +08:00
TangBin
982db46e8f fix(region): vpc usable fix 2020-12-15 18:57:26 +08:00
TangBin
d37ec27d7d fix(region): aws create vpc with igw add defaultroute 2020-12-15 18:40:09 +08:00
TangBin
1cb6980b1c fix(region): aws delete vpc skipped delete main route table 2020-12-15 17:49:16 +08:00
TangBin
52ef2c2d5b fix(region): aws vpc delete skip delete default secgroup 2020-12-15 17:31:33 +08:00
TangBin
6aa2fc5817 fix(region): aws vpc delete related route table & internet gateway 2020-12-15 17:17:58 +08:00
zhaoxiangchun
805ea5c0f5 feat(monitor): support create nodata alert from web
1.支持从前端页面创建nodata报警策略,对于nodata的情况给出对应的resource
2020-12-15 17:17:31 +08:00
wanyaoqi
1d8879ef7b fix(host): fix set windows password with escape charater 2020-12-15 16:54:53 +08:00
TangBin
687deac242 fix(region): sku list query print missing error info 2020-12-15 14:49:05 +08:00
TangBin
208adf8a02 fix(region): aws create storage type fix 2020-12-15 14:42:17 +08:00
TangBin
fc64ea3252 fix(region): aws create root device name fix 2020-12-15 13:58:42 +08:00
TangBin
6591c5a750 fix(region): vpc create validate cidr mask length 2020-12-15 13:18:40 +08:00
TangBin
80c3f6b2c5 fix(region): aws detach igw before delete vpc 2020-12-15 11:48:09 +08:00
Zexi Li
657e3d3c3c Merge pull request #9431 from zexi/fix/climc-server-create-desc
Fix/climc server create desc
2020-12-15 11:46:08 +08:00
Zexi Li
c62ef9531a Merge pull request #9426 from yousong/bugfix/yousong-vpcagent-dns
fix(vpcagent): ovn: stable dns A record value
2020-12-15 11:44:42 +08:00
TangBin
dbc1c7cdfb fix(region): vpc list usable fix 2020-12-15 11:36:46 +08:00
Zexi Li
6acf96e87b fix(climc): server-create --desc not work 2020-12-15 11:35:12 +08:00
TangBin
2d19d961c7 feat(region): server list add parameter eip_associable 2020-12-15 11:05:02 +08:00
Yousong Zhou
25cd808840 fix(vpcagent): ovn: stable dns A record value 2020-12-15 10:41:43 +08:00
Zexi Li
573893edcd Merge pull request #9417 from wanyaoqi/bugfix/wyq/host-misc-1214
fix(region,host): fix hot remove nic
2020-12-15 00:07:42 +08:00
Zexi Li
e1066ea39c Merge pull request #9415 from swordqiu/hotfix/qj-keystone-sso-update-user-attributes
fix(keystone): update user attributes whenever user login
2020-12-15 00:05:42 +08:00
Zexi Li
9cd2cb7790 fix(region): baremetal post update related server 2020-12-14 19:15:29 +08:00
wanyaoqi
d9137720ab fix(region,host): fix hot remove nic
- region: check is hot remove nic enable
- host: del qemu device after del netdev
2020-12-14 18:59:52 +08:00
Qiu Jian
a0350d0537 fix(keystone): update user attributes whenever user login
update user attribtues whenever user login
2020-12-14 18:15:48 +08:00
wanyaoqi
97d96aa328 fix(host): fix check hugepage enabled 2020-12-14 18:02:54 +08:00
Zexi Li
836a9a66ff Merge pull request #9411 from zexi/hotfix/scheduler-region-sku
fix(scheduler): sku filter check zone if only prefer region specified
2020-12-14 17:56:33 +08:00
yunion-ci-robot
20421f98d6 Merge pull request #9409 from wanyaoqi/feature/wyq/export-tags
feat(region): export user tags support virtual resources
2020-12-14 17:55:05 +08:00
Zexi Li
dad3d995da Merge pull request #9405 from zexi/hotfix/webconsole-trim-url
Hotfix/webconsole trim url
2020-12-14 17:20:49 +08:00
Zexi Li
c87c2b384b fix(scheduler): sku filter check zone if only prefer region specified 2020-12-14 16:44:10 +08:00
yunion-ci-robot
976539f253 Merge pull request #9373 from rainzm/vmware/vswitch_wire
feat(region): larger suggest network and more complete vlanid
2020-12-14 15:58:05 +08:00
wanyaoqi
2675f75c80 feat(region): export user tags support virtual resources 2020-12-14 15:55:05 +08:00
Zexi Li
650df302aa Merge pull request #9394 from zexi/hotfix/scheduler-candidate-error
fix(scheduler): get candidates error more info
2020-12-14 15:52:23 +08:00
Zexi Li
511ec56f16 Merge pull request #9403 from wanyaoqi/bugfix/wyq/fix-list-by-os-arch
fix(region,glance): list by os arch adapt to empty strings
2020-12-14 15:50:51 +08:00
Zexi Li
859e2078a2 fix(webconsole): trim api_server url if end with slashes 2020-12-14 15:46:34 +08:00
Zexi Li
77aa03f5bc Merge pull request #9399 from rainzm/notify/repull
fix(notify): avoid deadlock
2020-12-14 15:45:29 +08:00
wanyaoqi
8a82407f90 fix(region,glance): list by os arch adapt to empty strings 2020-12-14 15:10:57 +08:00
rainzm
54ed4b6194 fix(notify): avoid deadlock 2020-12-14 15:02:19 +08:00
Zexi Li
7d836f77a6 fix(scheduler): get candidates error more info 2020-12-14 14:39:27 +08:00
rainzm
292716b269 feat(region): add test for CloudaccountManger.PerformPrepareNets 2020-12-14 14:16:52 +08:00
Zexi Li
408e768a62 Merge pull request #9386 from tb365/feature/tb-support-sync-skus-by-cloudregion
feat(region): support sync skus by cloudregion
2020-12-13 13:51:23 +08:00
Zexi Li
0c4ed830e1 Merge pull request #9351 from ioito/hotfix/qx-aliyun-saml-auth
feat(cloudid): support aliyun saml auth
2020-12-13 12:13:38 +08:00
Zexi Li
cf8167dd0c Merge pull request #9384 from ioito/hotfix/qx-server-stop
fix(region): optimized server stop code
2020-12-13 12:12:21 +08:00
Zexi Li
cdc16b7a6b Merge pull request #9390 from swordqiu/hotfix/qj-network-reserved-ip-count-error
fix(region): network reserved ip count not consider expiration of reserved ips
2020-12-13 12:09:17 +08:00
Qiu Jian
b581c6dabd 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:28:24 +08:00
TangBin
04fa96d9c8 feat(region): support sync skus by cloudregion 2020-12-12 18:55:24 +08:00
Qu Xuan
7c6d4fddf3 fix(region): optimized server stop code 2020-12-12 18:49:35 +08:00
Zexi Li
369866d5d6 Merge pull request #9359 from tb365/bugfix/tb-bugfix-cmb-1210
Bugfix/tb bugfix cmb 1210
2020-12-12 18:28:42 +08:00
rainzm
fee218c59c feat(region): larger suggest network and more complete vlanid
1. 抓取标准 PortGroup 的 vlanid,以前只有分布式 PortGroup 的 vlanid
2. 提供的建议网络会尽可能的大
2020-12-12 18:04:09 +08:00
TangBin
c862f06996 feat(region): support sync skus by cloudregion 2020-12-12 17:06:11 +08:00
TangBin
b26249811a fix(region): server login info& keypair import input parameter trimspace 2020-12-12 17:01:20 +08:00
Zexi Li
5ddbf86edc Merge pull request #9313 from zhaoxiangchun/feat/zxc-suggestion-master
feat(monitor): add metric description
2020-12-12 00:17:48 +08:00
Zexi Li
95d67b040b Merge pull request #9361 from swordqiu/hotfix/qj-domain-unlink-action
fix(keystone): allow unlink a domain from an IDP
2020-12-12 00:16:22 +08:00
Zexi Li
983acaaf3d Merge pull request #9362 from swordqiu/feature/qj-event-log-splitable
fix(util): update vendor for log
2020-12-12 00:15:13 +08:00
Zexi Li
25402013a6 Merge pull request #9366 from swordqiu/hotfix/qj-ignore-unchanged-service-config
fix(keystone): ignore service config update without changes
2020-12-12 00:13:37 +08:00
Qiu Jian
1d7b7057a7 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:10:49 +08:00
Qiu Jian
076fa5498a fix(keystone): allow unlink a domain from an IDP
allow unlink a domain from an IDP
2020-12-11 21:50:15 +08:00
zhaoxiangchun
33074ba818 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:16:42 +08:00
Qiu Jian
4895175a53 update vendor 2020-12-11 20:02:53 +08:00
Zexi Li
2b2ea4872f Merge pull request #9356 from ioito/hotfix/qx-sku-enabled
fix(region): sku enabled
2020-12-11 19:36:45 +08:00
Zexi Li
096115ce5e Merge pull request #9160 from swordqiu/feature/qj-event-log-splitable
feature(cloudcommon): split opslog table
2020-12-11 19:31:06 +08:00
Qu Xuan
3cf6d2f326 feat(cloudid): support aliyun saml auth 2020-12-11 17:31:26 +08:00
Qu Xuan
be63b02b9f fix(region): sku enabled 2020-12-11 17:07:08 +08:00
yunion-ci-robot
ba53f41ccd Merge pull request #9335 from zexi/hotfix/baremetal-convert-host
Hotfix/baremetal convert host
2020-12-11 13:35:10 +08:00
Zexi Li
2782b3d94f Merge pull request #9339 from ioito/hotfix/qx-global-proxy
fix(region,yunionapi,glance): using global proxy
2020-12-11 11:39:45 +08:00
Zexi Li
4157d3b225 Merge pull request #9352 from zexi/bugfix/scheduler-sku-net
Bugfix/scheduler SKU net
2020-12-11 09:18:18 +08:00
Zexi Li
a78c565d4f fix(scheduler): sku by region and fill onecloud vpc networks 2020-12-10 21:12:06 +08:00
Zexi Li
7e2f3b9ab9 Merge pull request #9331 from ioito/hotfix/qx-openstack-host
fix(region): openstack hosts sync
2020-12-10 20:40:02 +08:00
Zexi Li
2bfb026144 Merge pull request #9347 from swordqiu/hotfix/qj-perform-public-scope-check
fix(cloudcommon): perform public should check the sharing scope of
2020-12-10 20:37:43 +08:00
Zexi Li
4648845124 Merge pull request #9340 from ioito/hotfix/qx-rule-import-hint
fix(region): import rule error hint
2020-12-10 20:33:23 +08:00
Zexi Li
e0a8fc8e27 Merge pull request #9345 from wanyaoqi/bugfix/wyq/fix-gpu-server-change-config-fail
fix(region): gpu server change config use reserved resources
2020-12-10 20:32:18 +08:00
Qiu Jian
faf00d8d67 fix(cloudcommon): perform public should check the sharing scope of
resource

perform public should check the sharing scope of resource
2020-12-10 19:03:01 +08:00
wanyaoqi
9c04a7bf37 fix(region): gpu server change config use reserved resources 2020-12-10 18:38:35 +08:00
Qu Xuan
57ae689490 fix(region,yunionapi,glance): using global proxy 2020-12-10 18:31:51 +08:00
Qu Xuan
ed9675a90f fix(region): import rule error hint 2020-12-10 18:28:38 +08:00
Zexi Li
84f02c1f76 Merge pull request #9329 from ioito/hotfix/qx-aws-default-user
fix(region): aws default account
2020-12-10 17:23:33 +08:00
Zexi Li
3f194b4ccf Merge pull request #9325 from rainzm/notify/config_change
Try to repull contacts when changing notify config
2020-12-10 17:22:06 +08:00
Zexi Li
a3a99743d8 Merge pull request #9324 from zexi/feature/k8s-component-climc
Feature/k8s component climc
2020-12-10 17:20:16 +08:00
Zexi Li
e14371a821 Merge pull request #9298 from ioito/hotfix/qx-openstack-network
fix(region): support openstack subnet allocation pools
2020-12-10 17:17:29 +08:00
yunion-ci-robot
097ffba0f4 Merge pull request #9172 from ioito/hotfix/qx-save-image
feat(region): save image for public cloud
2020-12-10 17:17:09 +08:00
Zexi Li
fc10483072 Merge pull request #9320 from swordqiu/hotfix/qj-disable-quota-check-by-default
fix(cloudcommon): disable quota check by default
2020-12-10 17:08:32 +08:00
Zexi Li
8cc0b63c86 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:02 +08:00
Qu Xuan
77f515a932 fix(region): openstack hosts sync 2020-12-10 16:54:20 +08:00
Qu Xuan
b511db2e0a fix(region): aws default account 2020-12-10 16:23:52 +08:00
Zexi Li
2c56715459 feat(climc): add k8s component minio and thanos operate subcmd 2020-12-10 12:04:10 +08:00
rainzm
75998a132b fix(notify): repull subcontact after changing config 2020-12-10 10:15:19 +08:00
rainzm
5bc847f052 fix(notify): check for changes before updating config 2020-12-10 10:11:22 +08:00
rainzm
aabb200585 refactor(notify): add StartSubcontactPullTask for receiver 2020-12-10 10:09:41 +08:00
Qiu Jian
0a7513cce4 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:19:06 +08:00
Qiu Jian
e31abb6f0d update vendor 2020-12-09 21:12:55 +08:00
Qiu Jian
ab75c8f93c feature(cloudcommon): split opslog table
automatically split opslog table, so as to delete obsolete event logs
2020-12-09 21:12:55 +08:00
Zexi Li
87521a6ed8 Merge pull request #9159 from ioito/hotfix/qx-storage-capability
feat(region): add instance storage capability
2020-12-09 21:03:52 +08:00
Zexi Li
152f584a70 Merge pull request #9295 from swordqiu/hotfix/qj-update-i18n-master-20201209
fix(cloudcommon): supplement i18n translations
2020-12-09 20:44:11 +08:00
Zexi Li
997f1d9d49 Merge pull request #9292 from rainzm/receiver/intelij_get
feat(notify): add intellij-get for receiver
2020-12-09 20:43:07 +08:00
Zexi Li
6f74c7f4c4 Merge pull request #8848 from wanyaoqi/feature/wyq/host-deployer-libguestfs
host-deployer: add deploy driver libguestfs
2020-12-09 20:41:22 +08:00
Zexi Li
a77cc2f5ee Merge pull request #9259 from wanyaoqi/bugfix/wyq/attach-network-on-registerd-baremetal-server
fix(region): attach network on register baremetal server
2020-12-09 20:39:53 +08:00
Zexi Li
c354e820df Merge pull request #9302 from ioito/hotfix/qx-qcloud-instance-delete
fix(region): optimized qcloud prepaid instance delete
2020-12-09 20:37:26 +08:00
Zexi Li
ca89a13622 Merge pull request #9305 from ioito/hotfix/qx-openstack-change-config
fix(region): optimized openstack change config
2020-12-09 20:36:41 +08:00
Zexi Li
aea45b2cd2 Merge pull request #9308 from yousong/bugfix/yousong-eip-chargetype
Bugfix/yousong eip chargetype
2020-12-09 20:34:55 +08:00
Zexi Li
feb81db1b8 Merge pull request #9315 from wanyaoqi/bugfix/wyq/restart-session-check-lease-living
fix(host): check lease living on restart etcd session
2020-12-09 20:33:08 +08:00
rainzm
e8a085a947 feat(notify): user cmdline helpler for climc notify-receiver-xxx 2020-12-09 17:02:17 +08:00
wanyaoqi
92e0ed3434 fix(host): check lease living on restart etcd session 2020-12-09 16:53:55 +08:00
rainzm
6ed0b5e9fa feat(notify): add intellij-get for receiver 2020-12-09 16:45:23 +08:00
Yousong Zhou
a48d0ab7fb refactor(apis): compute: remove EIP_CHARGE_TYPE_DEFAULT
The default is now cloud provider specific
2020-12-09 12:16:20 +08:00
Yousong Zhou
82e297a551 fix(region): sanitize eip charge type on all callsites 2020-12-09 12:16:19 +08:00
Yousong Zhou
5550803667 feat(region): regiondriver: add methods on eip charge type 2020-12-09 12:04:19 +08:00
Qu Xuan
20ca72cd43 fix(region): optimized openstack change config 2020-12-09 11:47:36 +08:00
Qu Xuan
691a5fc775 fix(region): optimized qcloud prepaid instance delete 2020-12-09 11:14:54 +08:00
Qu Xuan
792b4cdd83 fix(region): support openstack subnet allocation pools 2020-12-09 10:29:25 +08:00
Qiu Jian
fbdcbeb751 fix(cloudcommon): supplement i18n translations 2020-12-09 00:43:54 +08:00
Zexi Li
516f5ab0d3 Merge pull request #9253 from ioito/hotfix/qx-azure-storageaccount-temp-url
fix(region): temp url sign wrong
2020-12-08 21:39:39 +08:00
Zexi Li
434ab6b82a Merge pull request #9263 from ioito/hotfix/qx-azure-instance-storage-type
fix(region): azure instance data disk storage type
2020-12-08 21:38:41 +08:00
Zexi Li
b9deee3060 Merge pull request #9266 from ioito/hotfix/qx-openstack-zone
fix(region): openstack available zones
2020-12-08 21:36:59 +08:00
Zexi Li
46e7d87b25 Merge pull request #9277 from wanyaoqi/bugfix/wyq/fix-validate-migrate-guests
fix(region): validate isolated devices on migrate
2020-12-08 21:35:51 +08:00
Zexi Li
6207523696 Merge pull request #9282 from ioito/hotfix/qx-guest-password
fix(region): restore password validate condition
2020-12-08 21:35:03 +08:00
Zexi Li
ee3219c9ab Merge pull request #9285 from ioito/hotfix/qx-cloud-account-sync
fix(region): sync account id
2020-12-08 21:34:04 +08:00
Zexi Li
3edef59d25 Merge pull request #9288 from zhasm/hotfix/rex-git-branch-minor
fix(git,make): 更新获取 git branch 的规则
2020-12-08 18:11:18 +08:00
Zhang Dongliang
eb7372263b fix(git,make): 更新获取 git branch 的规则 2020-12-08 17:59:24 +08:00
Qu Xuan
561f642675 fix(region): sync account id 2020-12-08 17:54:54 +08:00
wanyaoqi
948f926bf6 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:49:44 +08:00
Qu Xuan
06207c4a37 fix(region): restore password validate condition 2020-12-08 17:43:36 +08:00
yunion-ci-robot
3ba67a1c96 Merge pull request #9272 from wanyaoqi/bugfix/wyq/fix-vgrename-centos
fix(host-deployer): cancel rename centos vgname
2020-12-08 17:07:40 +08:00
wanyaoqi
97a542890d fix(region): validate isolated devices on migrate 2020-12-08 16:48:50 +08:00
Zexi Li
20e0fdcfb9 Merge pull request #9268 from zhasm/hotfix/rex-gitbranch-fix
fix(git,make): git branch 获取方式优化
2020-12-08 16:35:18 +08:00
Qu Xuan
9ddf207441 fix(region): openstack available zones 2020-12-08 16:18:33 +08:00
wanyaoqi
c302bae2bf fix(host-deployer): cancel rename centos vgname 2020-12-08 16:15:56 +08:00
wanyaoqi
92727def00 fix(region): attach network on register baremetal server 2020-12-08 15:53:17 +08:00
Zhang Dongliang
71e63e2ed1 fix(git,make): git branch 获取方式优化 2020-12-08 15:49:50 +08:00
Qu Xuan
38507661fb fix(region): azure instance data disk storage type 2020-12-08 14:56:07 +08:00
Zexi Li
18c919399a Merge pull request #9230 from zhasm/hotfix/rex-gitbranch-fix
fix(git,make): 修正 gitbranch 变量的获取方式,解决自动升级版本 tag 不统一的问题
2020-12-08 12:50:41 +08:00
Zhang Dongliang
0b2aed858a fix(git,make): 修正 gitbranch 变量的获取方式,解决自动升级版本 tag 不统一的问题 2020-12-08 11:52:33 +08:00
Qu Xuan
3a7d6fb140 fix(region): temp url sign wrong 2020-12-08 11:35:08 +08:00
Zexi Li
c8a237886e Merge pull request #9146 from ioito/hotfix/qx-keystone-refresh-scope-resource
fix(keystone): allow refresh scope resource
2020-12-08 09:39:48 +08:00
Zexi Li
0fb9c59fb7 Merge pull request #9246 from wanyaoqi/bugfix/wyq/fix-backup-server-start
fix(region): fix backup server start task
2020-12-08 09:35:20 +08:00
Zexi Li
b498c9b8da Merge pull request #9251 from swordqiu/hotfix/qj-filter-role-policies-panic
fix(keystone): rolepolicies list panic if filter by domain scope
2020-12-08 09:34:16 +08:00
Zexi Li
072a8aa367 Merge pull request #9248 from swordqiu/hotfix/qj-oidc-turn-on-debug
fix(keystone): oidc driver turn on debug mode if log-level is debug
2020-12-08 09:28:55 +08:00
Qiu Jian
4411c4e5bb fix(keystone): rolepolicies list panic if filter by domain scope
rolepolicies list panic if filter by scope=domain
2020-12-08 03:12:42 +08:00
Qiu Jian
57a0e8d63e 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:49:09 +08:00
Zexi Li
7ef268ee15 Merge pull request #9243 from ioito/hotfix/qx-azure-windows-reset-password
fix(region): azure reset windows os password
2020-12-07 22:18:52 +08:00
Qu Xuan
a1a025eec9 feat(region): save image for public cloud 2020-12-07 21:13:21 +08:00
wanyaoqi
d2a3d200fe fix(region): fix backup server start task 2020-12-07 21:05:41 +08:00
Zexi Li
653ef8abcd Merge pull request #9240 from ioito/hotfix/qx-azure-resp
fix(region): avoid timeout for waiting azure async task
2020-12-07 20:40:57 +08:00
Zexi Li
4fd198be2d Merge pull request #9224 from tb365/bugfix/tb-bugfix-1207
Bugfix/tb bugfix 1207
2020-12-07 20:37:01 +08:00
Qu Xuan
2d46a73d4d fix(region): azure reset windows os password 2020-12-07 20:19:05 +08:00
Zexi Li
b5600f21cb Merge pull request #9220 from ioito/hotfix/qx-qcloud-secgroup-project-id
fix(region): region qcloud secgroup project id
2020-12-07 20:18:07 +08:00
Zexi Li
6de57d90a7 Merge pull request #9227 from ioito/hotfix/qx-azure-disk-size
fix(region): avoid resize azure disk error
2020-12-07 20:16:42 +08:00
Zexi Li
67d177e54c Merge pull request #9231 from wanyaoqi/bugfix/wyq/adapter-telegraf-to-container-environment
fix(host): update telegraf conf adapter to container environment
2020-12-07 19:59:08 +08:00
Zexi Li
dbcffccdfc Merge pull request #9237 from rainzm/notify/webconsole
feat(notify): add webconsole in enabled contact types
2020-12-07 19:57:35 +08:00
Qu Xuan
ab8d1238c2 fix(region): avoid timeout for waiting azure async task 2020-12-07 19:49:35 +08:00
rainzm
8aeda8f841 feat(notify): add webconsole in enabled contact types 2020-12-07 19:10:30 +08:00
TangBin
2dcc1d610e fix(region): lbcert&lbacl releated listener count bugfix 2020-12-07 17:36:41 +08:00
wanyaoqi
38a9218e9e fix(host): update telegraf conf adapter to container environment 2020-12-07 17:11:38 +08:00
TangBin
b3736ab20d fix(region): lb listener filter by acl_id 2020-12-07 15:26:05 +08:00
Qu Xuan
64849240b2 fix(region): avoid resize azure disk error 2020-12-07 15:25:34 +08:00
TangBin
485cf8b3c8 fix(region): redis master zone empty fix 2020-12-07 14:54:11 +08:00
TangBin
db20769cf2 fix(region): elastic cache name is empty fix
#6527
2020-12-07 14:08:02 +08:00
Zexi Li
54759842b8 Merge pull request #9205 from ioito/hotfix/qx-passord-validate
fix(region): validate invalid character for password
2020-12-07 10:52:03 +08:00
Qu Xuan
c14b245fad fix(keystone): allow refresh scope resource 2020-12-07 10:46:58 +08:00
Qu Xuan
d9d3fe26bd fix(region): region qcloud secgroup project id 2020-12-07 10:26:19 +08:00
Zexi Li
36e3a684e9 Merge pull request #9202 from tb365/bugfix/tb-bugfix-1204
Bugfix/tb bugfix 1204
2020-12-07 10:23:44 +08:00
Qu Xuan
c9ca2c8755 fix(region): validate invalid character for password 2020-12-07 10:07:14 +08:00
TangBin
f6abe165b5 fix(region): change dbinstance sku sync info log to warn 2020-12-07 09:57:38 +08:00
Zexi Li
416e6b7c8e Merge pull request #9217 from ioito/bugfix/qx-qcloud-secgroup-sync
fix(region): optimized qcloud secgroup sync, only redis need secgroup be in same project
2020-12-04 20:31:24 +08:00
yunion-ci-robot
f99ba966c2 Merge pull request #9215 from zhaoxiangchun/feat/zxc-suggestion-master
chore(monitor): delete suggestion files
2020-12-04 20:26:28 +08:00
zhaoxiangchun
ad0c063fb9 chore(monitor): delete suggestion files
1. 移除优化建议相关内容
2. mcclient中新增baseManager:SuggestionManager,修改优化建议相关的manager
2020-12-04 19:28:23 +08:00
Qu Xuan
6183f39168 fix(region): optimized qcloud secgroup sync, only redis need secgroup be in same project 2020-12-04 19:24:56 +08:00
Zexi Li
b2255754c9 Merge pull request #9210 from ioito/hotfix/qx-azure-metric
fix(region): azure metric request path
2020-12-04 18:00:47 +08:00
Zexi Li
57278dc4d9 Merge pull request #9213 from zexi/hotfix/remove-k8s-extend-scheduler
refactor(scheduler): remove unused k8s predicates code
2020-12-04 17:58:48 +08:00
Zexi Li
dbfd5a8e5d refactor(scheduler): remove unused k8s predicates code 2020-12-04 17:18:51 +08:00
Qu Xuan
9c7145fd53 fix(region): azure metric request path 2020-12-04 17:13:15 +08:00
Zexi Li
599bf4e622 Merge pull request #9196 from lvyangyang/fix-tag-log
feat(region): add bucket cloud tags support
2020-12-04 16:57:36 +08:00
Zexi Li
eb3c87b2fa Merge pull request #9204 from zexi/hotfix/remove-kubernetes-depend
Hotfix/remove kubernetes depend
2020-12-04 16:53:51 +08:00
Zexi Li
c025944d17 fix(go.mod): remove k8s.io/kubernetes dependency 2020-12-04 16:45:25 +08:00
TangBin
43d4ddd82d fix(region): dbinstance skus sync log level fix 2020-12-04 15:30:35 +08:00
TangBin
8dcd685e46 fix(region): server skus add cloud_env 2020-12-04 15:25:52 +08:00
Zexi Li
ddf7e8b729 Merge pull request #9066 from rainzm/esxi/createnets
feat(region): add wire level for preparing network
2020-12-04 14:52:42 +08:00
rainzm
9d048f8f9b feat(climc): add cloud-account-preparenets-vmware command 2020-12-04 14:27:51 +08:00
rainzm
9a23c9da67 feat(region): allow prepare nets for existed cloudaccounts
纳管云账号 -> 合并网段 -> 为vmware集群添加新的宿主机 ->
如何获取网络信息?

如果重新纳管,那么合并网段的工作又得做一次,很不方便。
最好的方法是,preparenets 接口支持已经存在的 cloudaccount,这样
就可以根据推荐的网络手动设置新设备的网络。
2020-12-04 14:27:51 +08:00
rainzm
a7eadb54e6 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:27:46 +08:00
Zexi Li
7f3c0d5fed Merge pull request #9052 from ioito/hotfix/qx-cloud-image-sync
feat(region): optimized public image sync
2020-12-04 10:59:12 +08:00
Zexi Li
1bc52e34df Merge pull request #9189 from rainzm/guest/medium
fix(region): remove default value of diskConfig.Medium
2020-12-04 10:41:14 +08:00
Zexi Li
68b9147ce1 Merge pull request #9083 from zexi/feature/climc-print-jsonobj
feat(climc): print json object support array
2020-12-04 10:24:06 +08:00
Zexi Li
beb7661b9f Merge pull request #9144 from yousong/feature/yousong-vpc-md
Feature/yousong vpc md
2020-12-04 10:23:25 +08:00
Zexi Li
670e3843ea Merge pull request #9183 from rainzm/gt/health_check
fix(region): inspect invalid guest template
2020-12-04 10:21:02 +08:00
Zexi Li
f510018dd8 Merge pull request #9180 from tb365/bugfix/tb-bugfix-1203
Bugfix/tb bugfix 1203
2020-12-04 10:18:41 +08:00
Zexi Li
6b08260f53 Merge pull request #9192 from swordqiu/hotfix/qj-allow-logout-by-get
fix(apigateway): allow logout by get method
2020-12-04 10:16:27 +08:00
Zexi Li
84a9f2357f Merge pull request #9184 from zexi/hotfix/scheduler-tag-nil
Hotfix/scheduler tag nil
2020-12-04 10:15:29 +08:00
lvyangyang
2edde62fca feat(region): add bucket cloud tags support 2020-12-04 10:11:25 +08:00
rainzm
4f8d86cb19 fix(region): remove default value of diskConfig.Medium
#8830 中,对调度器增加了通过请求磁盘的介质类型过滤存储的功能。

如果使用 climc 创建虚拟机且不要求磁盘有固定的介质类型,将
只能分配到 hybrid 的存储;进一步,如果没有 hybrid 的存储,将会调度失败。
2020-12-04 09:57:52 +08:00
Qiu Jian
d2caac95df fix(apigateway): allow logout by get method
All visit logout URL by GET method
2020-12-04 01:10:53 +08:00
Zexi Li
a7e40d36c5 fix(scheduler): check candidate tag resource is nil 2020-12-03 20:43:10 +08:00
rainzm
797039a399 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:35:17 +08:00
lvyangyang
d2e5329f33 fix(region): fix modify tags log 2020-12-03 20:00:29 +08:00
TangBin
4b171e1630 fix(region): huawei vnc protocal fix 2020-12-03 20:00:17 +08:00
Zexi Li
553747b7c5 Merge pull request #9176 from zexi/hotfix/scheduler-select-unorder
fix(scheduler): select resource unordered
2020-12-03 19:55:18 +08:00
Zexi Li
2fbf4cb0f2 Merge pull request #9147 from lvyangyang/bucket-access-multicloud
feat(region): 多云 bucket  website.cors,referer 配置
2020-12-03 19:00:12 +08:00
Zexi Li
6a80a12664 fix(scheduler): select resource unordered 2020-12-03 18:41:04 +08:00
TangBin
5129296744 feat(webconsole): add huawei vnc support 2020-12-03 16:00:55 +08:00
Zexi Li
1f41cd9d71 Merge pull request #9135 from ioito/hotfix/qx-cloud-user-notify
feat(cloudid): notify clouduser created
2020-12-03 15:17:05 +08:00
Zexi Li
f9da585433 Merge pull request #9161 from ioito/hotfix/qx-recovery-new-rds
feat(region): huawei recovery new rds
2020-12-03 14:44:10 +08:00
Zexi Li
1908326fd0 Merge pull request #9163 from wanyaoqi/bugfix/wyq/fix-list-by-server-type
bugfix(region): fix list by srever type normal
2020-12-03 14:43:09 +08:00
Zexi Li
ef9cc03d46 Merge pull request #9138 from zhaoxiangchun/bugfix/zxc-suggest-timefromj-master
fix(monitor): modify influxdbSuggestDriver query err
2020-12-03 14:41:51 +08:00
zhaoxiangchun
df6a2634f7 fix(monitor): modify influxdbSuggestDriver query err
1.修复influxdb相关的建议规则查询数据失败的问题
2020-12-03 12:59:27 +08:00
wanyaoqi
23e4a483dc 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:03:59 +08:00
lvyangyang
8a9ec04f9f feat(region): 多云 bucket website.cors,referer 配置 2020-12-03 11:31:51 +08:00
Qu Xuan
1f91cc0f15 feat(region): huawei recovery new rds 2020-12-03 10:47:14 +08:00
TangBin
11d12ca7db fix(region): elb cached acl sync 2020-12-03 10:02:24 +08:00
Zexi Li
456a232ae2 Merge pull request #9134 from ioito/hotfix/qx-azure-win-account
fix(region): azure win os defualt user
2020-12-03 09:35:06 +08:00
Zexi Li
65be30fb4d Merge pull request #9154 from wanyaoqi/feature/wyq/add-filter-server-type
feat(region): add list filter server type
2020-12-03 09:32:59 +08:00
Qu Xuan
f4df3223bb feat(region): add instance storage capability 2020-12-02 21:21:29 +08:00
Zexi Li
9ff1846154 Merge pull request #9150 from ioito/hotfix/qx-qcloud-localdisk-sync
fix(region): avoid qcloud sync local disk error
2020-12-02 21:05:02 +08:00
wanyaoqi
64e844425a feat(region): add list filter server type
list server by specific server type: normal, gpu, backup

cherrypick: release/3.4
2020-12-02 20:27:01 +08:00
Qu Xuan
39d86735f5 fix(region): avoid qcloud sync local disk error 2020-12-02 20:24:59 +08:00
Yousong Zhou
771824d307 feat(appsrv): Application: add Stop method for shutdown behaviour 2020-12-02 18:04:31 +08:00
Yousong Zhou
6dce7d8ebc refactor(hostman): metadata: eliminate import of guestman 2020-12-02 18:04:31 +08:00
Yousong Zhou
38b6e011ef refactor(hostman): use metadata.DescGetterFunc 2020-12-02 18:04:31 +08:00
Yousong Zhou
de2f1ec3b4 refactor(host): metadata: eliminate ref of guestNic 2020-12-02 18:04:31 +08:00
Yousong Zhou
43215c2ad2 feat(host): metadata: make vpc aware metadata handler 2020-12-02 18:04:31 +08:00
Yousong Zhou
65220a6f5a feat(vpcagent): export subnet mac gen funcs 2020-12-02 18:04:31 +08:00
Zexi Li
7a2f64cc7d Merge pull request #9140 from swordqiu/hotfix/qj-not-allow-disable-sql-driver
fix(keystone): not allow to disable sql driver
2020-12-02 17:08:27 +08:00
Qiu Jian
ef648b5b87 fix(keystone): not allow to disable sql driver
not allow to disable default SQL identity_provider driver
2020-12-02 16:39:23 +08:00
Zexi Li
6cb7a60d93 Merge pull request #9061 from zhaoxiangchun/bugfix/zxc-nodata-master
fix(monitor): delete suggestConfig auto Initialized data
2020-12-02 14:52:00 +08:00
Qu Xuan
fc0f05286f feat(cloudid): notify clouduser created 2020-12-02 14:28:14 +08:00
zhaoxiangchun
2a7f9ab516 fix(monitor): delete suggestConfig auto init data
1.删除忽略列表之前逻辑初始化生成的配置config
2.忽略列表默认查询ignore=true的数据
3.修复建议列表 忽略一类建议不生效的问题
2020-12-02 11:18:13 +08:00
Qu Xuan
794e7494bc fix(region): azure win os defualt user 2020-12-02 09:51:58 +08:00
Zexi Li
5a5d5cc0c5 Merge pull request #9131 from ioito/hotfix/qx-qcloud-cam-user
fix(cloudid): sync qcloud collaborators user
2020-12-01 21:07:57 +08:00
Zexi Li
85c48b469c Merge pull request #9091 from tb365/bugfix/tb-bugfix-1130
fix(region): reserved name checking while create redis account
2020-12-01 21:06:16 +08:00
Zexi Li
51501fd205 Merge pull request #9123 from ioito/hotfix/qx-bucket-delete-condition
fix(region): allow delete resource which status is unknown
2020-12-01 21:04:52 +08:00
Zexi Li
5d63c907cf Merge pull request #9104 from rainzm/notify/second_try
fix(notify): return the result of the second attempt to execute the rpc call
2020-12-01 21:03:11 +08:00
Qu Xuan
f841fd85ad fix(cloudid): sync qcloud collaborators user 2020-12-01 20:34:16 +08:00
Zexi Li
0eb08f10ce Merge pull request #9109 from yousong/bugfix/yousong-hostman
fix(host): make sure it won't match vpc guests by accident
2020-12-01 20:13:15 +08:00
Zexi Li
7c4dc7e7e4 Merge pull request #9120 from ioito/hotfix/qx-rds-account-desc
fix(region): allow update rds account and database desc
2020-12-01 19:32:57 +08:00
yunion-ci-robot
07d863e388 Merge pull request #9116 from rainzm/sg/detach_guest
fix(region): delete guest without 'purge' in GuestDetachScalingGroupTask
2020-12-01 19:31:45 +08:00
Qu Xuan
b7ed3a683c fix(region): allow delete resource which status is unknown 2020-12-01 17:15:44 +08:00
Qu Xuan
b14f6be828 fix(region): allow update rds account and database desc 2020-12-01 16:37:42 +08:00
rainzm
6f92fef698 fix(region): delete guest without 'purge' in GuestDetachScalingGroupTask 2020-12-01 15:52:48 +08:00
Yousong Zhou
6db7503474 fix(host): make sure it won't match vpc guests by accident 2020-12-01 15:29:39 +08:00
rainzm
4135b3729b fix(notify): return the result of the second attempt to execute the rpc call 2020-12-01 14:35:04 +08:00
Zexi Li
47a2f5a9d9 feat(climc): print json object support array 2020-12-01 13:01:18 +08:00
yunion-ci-robot
760854ba91 Merge pull request #9100 from yousong/bugfix/yousong-qcloud-nic
Bugfix/yousong qcloud nic
2020-12-01 12:57:57 +08:00
Zexi Li
cd007d9fdb Merge pull request #9102 from ioito/hotfix/qx-code-gen-api
fix(region): code gen api error
2020-12-01 11:59:30 +08:00
Qu Xuan
54537e65c3 fix(region): code gen api error 2020-12-01 11:26:34 +08:00
Yousong Zhou
d7a11d1abf multicloud: qcloud: fix instancenic 2020-12-01 11:16:21 +08:00
Yousong Zhou
77af00ec7d multicloud: qcloud: add ptr deref func 2020-12-01 11:16:21 +08:00
Yousong Zhou
cd4d0a27b2 multicloud: qcloud: add apiDomainByRegion 2020-12-01 11:16:21 +08:00
Yousong Zhou
101abde5ae multicloud: qcloud: add getVpcClient 2020-12-01 11:16:21 +08:00
Yousong Zhou
68b8b7f7cd multicloud: qcloud: add getSdkClient 2020-12-01 11:16:21 +08:00
Yousong Zhou
00da68cb1f vendor: add tencentcloud-sdk-go vpc 2020-12-01 11:16:21 +08:00
Zexi Li
d0a2f43484 Merge pull request #9096 from yousong/bugfix/yousong-informer
Bugfix/yousong informer
2020-12-01 09:33:55 +08:00
Yousong Zhou
da4c2dcaa4 fix(taskman): SSubTask: set model manager 2020-11-30 23:09:55 +08:00
Yousong Zhou
3a0303df6f fix(region): secgrouprule: set model manager 2020-11-30 23:09:53 +08:00
Zexi Li
1115f6856d Merge pull request #9072 from ioito/hotfix/qx-huawei-saml-mapping
fix(cloudid): huawei saml provider create issue
2020-11-30 21:56:15 +08:00
Zexi Li
90416984b1 Merge pull request #9064 from ioito/hotfix/qx-apsara-fix
fix(region): apsara is private cloud
2020-11-30 21:53:20 +08:00
Zexi Li
1495f3b334 Merge pull request #9084 from yousong/feature/yousong-nas-filter
feat(region): networkaddresses: filter by guest ids
2020-11-30 21:52:39 +08:00
Zexi Li
bb005efe11 Merge pull request #9076 from rainzm/notify/spec_receiver
Notify via contact skip receiver
2020-11-30 21:50:06 +08:00
Zexi Li
53da87ad0b Merge pull request #9079 from yousong/feature/yousong-options-vpc-ea
feat(region): options: allow setting default vpc external access mode
2020-11-30 21:49:03 +08:00
Zexi Li
cbb8e3eca3 Merge pull request #9086 from rainzm/cp/sort_excludednet
fix(region): sort excludedNets correctly
2020-11-30 21:47:28 +08:00
Zexi Li
08f8149f25 Merge pull request #9075 from ioito/hotfix/qx-backup-create-optimized
fix(region): optimized rds backup create
2020-11-30 21:31:47 +08:00
rainzm
66f373d073 feat(cloudcommon): add NotifyWithContact 2020-11-30 19:58:49 +08:00
TangBin
1cf8bfb0a1 fix(region): reserved name checking while create redis account 2020-11-30 19:14:51 +08:00
Yousong Zhou
9dfea3835b feat(region): networkaddresses: filter by guest ids 2020-11-30 19:01:50 +08:00
rainzm
517390395b fix(region): sort excludedNets correctly
之前,excludedNets 内部表示起始 IP 的字段是 string 类型,直接使用 <
比较是错误的。
现在,把 excludedNets 表示起始 IP 的字段改为了
netutils.IPV4Addr,这样就可以正确地进行比较排序了。
2020-11-30 18:57:33 +08:00
Yousong Zhou
984dc84239 feat(region): options: allow setting default vpc external access mode 2020-11-30 18:27:25 +08:00
Yousong Zhou
d5a8158346 fix(region): pass up error from InitializeData 2020-11-30 18:27:25 +08:00
rainzm
a8ea8b10cc feat(cloudcommon): allways send webconsole notification via contacts
For notification with webconsole type, receiverId is same with contacts.
2020-11-30 17:45:52 +08:00
rainzm
3ba52355b8 feat(notify): permit admin sending notification via contact
In this way, you can easily send notification to non-existent receiver.
2020-11-30 17:45:48 +08:00
Qu Xuan
4ab1fe75c0 fix(region): optimized rds backup create 2020-11-30 17:45:21 +08:00
Qu Xuan
7bac9144ef feat(region): optimized public image sync 2020-11-30 17:23:51 +08:00
Qu Xuan
5f84614618 fix(cloudid): huawei saml provider create issue 2020-11-30 16:29:11 +08:00
Zexi Li
3a6713a5d5 Merge pull request #8995 from ioito/hotfix/qx-cloudid-policy-sync
fix(cloudid): avoid new public account sync system policy delay 1 day
2020-11-30 14:12:45 +08:00
Zexi Li
9a4ff2747a Merge pull request #9063 from rainzm/feat/hub_version
feat(scripts): add prompt of `hub` version
2020-11-30 12:09:11 +08:00
Qu Xuan
f27ab3cc7c fix(region): apsara is private cloud 2020-11-30 10:39:11 +08:00
rainzm
d6d1082042 feat(scripts): add prompt of hub version
The flag `hub pr show -f ...` as used in cherry_pick_pull.sh was
permited since version 2.13.0.

close #9027
2020-11-30 10:09:53 +08:00
Zexi Li
103d72bfae Merge pull request #8575 from yousong/feature/yousong-nas
Feature/yousong  networkaddresses
2020-11-27 20:18:22 +08:00
Qu Xuan
3b0710d982 fix(cloudid): avoid new public account sync system policy delay 1 day 2020-11-27 20:17:16 +08:00
Zexi Li
e1c4885aed Merge pull request #9021 from ioito/hotfix/qx-cloud-account-auto-sync
fix(region): auto sync cloudaccount resources
2020-11-27 20:13:46 +08:00
yunion-ci-robot
d1245f63f7 Merge pull request #8434 from ioito/hotfix/qx-panic-log
fix: add panic log for worker task
2020-11-27 20:09:47 +08:00
Zexi Li
fb79e1ad42 Merge pull request #9054 from zhaoxiangchun/bugfix/zxc-nodata-master
fix(monitor): modify monitor nodata alert matching onecloud host func
2020-11-27 20:07:24 +08:00
Zexi Li
e95a667bdd Merge pull request #9056 from lvyangyang/bucket_refer_fix
fix(region): bucket get referer fix
2020-11-27 20:03:44 +08:00
Qu Xuan
5cba23d8cf fix: add panic log for worker task 2020-11-27 19:36:44 +08:00
lvyangyang
ad4c3a38e3 fix(region): bucket get referer fix 2020-11-27 19:04:19 +08:00
zhaoxiangchun
73ec2db41b fix(monitor): modify monitor nodata alert matching onecloud host func 2020-11-27 19:03:49 +08:00
yunion-ci-robot
3c47d38367 Merge pull request #9036 from yousong/feature/yousong-guest-search
feat(region): search server by substr of ip or mac
2020-11-27 18:46:36 +08:00
Zexi Li
fbfa6e0c81 Merge pull request #9049 from wanyaoqi/bugfix/wyq/fix-scheduler-network-predicate2
fix(region,scheduler): fix netwrok predicate
2020-11-27 18:43:32 +08:00
wanyaoqi
ff9d051fab 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:14:46 +08:00
yunion-ci-robot
0908b81e23 Merge pull request #9046 from rainzm/isp/fix_provider_1
fix(region): get provider name via GetProviderName
2020-11-27 17:58:31 +08:00
rainzm
c6592cadc4 fix(region): get provider name via GetProviderName 2020-11-27 17:31:36 +08:00
Zexi Li
24592f0641 Merge pull request #9033 from lvyangyang/bucket_acl
feat(region): set qcloud bucket policy
2020-11-27 16:29:43 +08:00
rainzm
83f017a07b fix(region): get provider name via GetProviderName 2020-11-27 16:11:09 +08:00
lvyangyang
1591f0ab81 feat(region): set qcloud bucket policy 2020-11-27 14:33:58 +08:00
Yousong Zhou
639d05dd43 feat(region): search server by substr of ip or mac 2020-11-27 14:33:14 +08:00
Zexi Li
6e58db6b12 Merge pull request #9022 from swordqiu/hotfix/qj-adjust-keystone-policy-sync-period
fix(cloudcommon): adjust policy refresh to default 30 seconds
2020-11-27 14:22:02 +08:00
yunion-ci-robot
21c716d2ba Merge pull request #9024 from ioito/hotfix/qx-cloudid-role-name
fix(cloudid): avoid use invalid character for role name
2020-11-27 09:51:35 +08:00
Zexi Li
f0f4e54c21 Merge pull request #8998 from ioito/hotfix/qx-saml-policy
fix(region): allow member user get saml auth addr
2020-11-26 21:39:37 +08:00
Zexi Li
1fa7da126a Merge pull request #9018 from ioito/hotfix/qx-saml-provider-update
fix(cloudid): auto update saml provider metadata
2020-11-26 21:38:09 +08:00
Qu Xuan
1e5014aa41 fix(cloudid): avoid use invalid character for role name 2020-11-26 21:36:59 +08:00
Zexi Li
65496e636d Merge pull request #9002 from ioito/hotfix/qx-aliyun-fin-bucket-objects
fix(region): avolid aliyun fin bucket list objects error
2020-11-26 21:36:44 +08:00
yunion-ci-robot
2d3de92eea Merge pull request #9015 from tb365/bugfix/tb-huawei-sync-storage-bugfix
fix(region): huawei sync storages bugfix
2020-11-26 21:36:30 +08:00
Zexi Li
d16f7d9803 Merge pull request #9012 from ioito/hotfix/qx-qcloud-request-limit
fix(region): qcloud request retry
2020-11-26 21:31:38 +08:00
Zexi Li
af2448f63a Merge pull request #9005 from yousong/feature/yousong-ovn-encap-ip
Feature/yousong ovn encap ip
2020-11-26 21:29:12 +08:00
Zexi Li
30cfb4f931 Merge pull request #9009 from ioito/hotfix/qx-climc-clirc
fix(climc): replace ' -> "
2020-11-26 21:26:32 +08:00
Yousong Zhou
929fa87c5f vpcagent: ovn: make aware of sub ips 2020-11-26 21:18:59 +08:00
Yousong Zhou
be478c4430 vpcagent: models: join network addresses 2020-11-26 21:18:59 +08:00
Yousong Zhou
d96d51603e vpcagent: apihelper: filter by cloud_env=onpremise 2020-11-26 21:18:59 +08:00
Yousong Zhou
d14a35fa2c multicloud: aliyun: instancenic: handle InvalidOperation.Ipv4CountExceeded 2020-11-26 21:18:59 +08:00
Yousong Zhou
18ac0205b3 networkaddresses: handle cloudprovider.ErrAddressCountExceed 2020-11-26 21:18:59 +08:00
Yousong Zhou
325623a70e cloudprovider: add ErrAddressCountExceed 2020-11-26 21:18:59 +08:00
Yousong Zhou
374b96553c networkaddresses: do server sync for on premise servers 2020-11-26 21:18:59 +08:00
Yousong Zhou
b0f958e8ab networkaddresses: disallow batch create for external resources 2020-11-26 21:18:59 +08:00
Yousong Zhou
4c04e48ac0 networkaddresses: cloudprovider support 2020-11-26 21:18:58 +08:00
Yousong Zhou
8042a74295 multicloud: aws: subaddress management 2020-11-26 21:18:58 +08:00
Yousong Zhou
f656504587 multicloud: aws: instancenic: add interface id attribute 2020-11-26 21:18:58 +08:00
Yousong Zhou
33fdcda955 multicloud: aliyun: instancenic: secondary address management 2020-11-26 21:18:58 +08:00
Yousong Zhou
fe6714b287 vendor: bump alibaba-cloud-sdk-go to v1.61.684
For commit [1]

 [1] 6313cc407e
2020-11-26 21:18:58 +08:00
Yousong Zhou
3bbaedaa7f vendor: add github.com/aliyun/alibaba-cloud-sdk-go/services/ecs 2020-11-26 21:18:58 +08:00
Yousong Zhou
d0f64150c2 cloudprovider: ICloudNic: add methods for secondary addresses 2020-11-26 21:18:58 +08:00
Yousong Zhou
ab7ad856b5 multicloud: ICloudNic: add GetId() 2020-11-26 21:18:58 +08:00
Yousong Zhou
1569966aa3 multicloud: ICloudNic: fix GetMAC() 2020-11-26 21:18:58 +08:00
Yousong Zhou
9f31365416 hostman: metadata: add handler for /local-sub-ipv4s 2020-11-26 21:18:58 +08:00
Yousong Zhou
e3b55426aa networkaddresses: add to nics field of guest desc 2020-11-26 21:18:58 +08:00
Yousong Zhou
1476f59130 networkaddresses: add parent_type guestnetwork 2020-11-26 21:18:58 +08:00
Yousong Zhou
2306fbb6f5 networks: usedAddressQuery: rename with baseq, ownerq, retq 2020-11-26 21:18:58 +08:00
Yousong Zhou
4ec791f031 networks: split getUsedAddressQuery as method of each manager 2020-11-26 21:18:57 +08:00
Yousong Zhou
10042037ab networks: fix typo in log 2020-11-26 21:18:57 +08:00
Yousong Zhou
b271ab4631 db_dispatcher: allow batch create for models without name 2020-11-26 21:18:57 +08:00
Yousong Zhou
1d25083bfe db: interface: manager: add HasName() method 2020-11-26 21:18:57 +08:00
Yousong Zhou
8e2c8feabf db: standalone_anon: empty result for name query 2020-11-26 21:18:57 +08:00
Yousong Zhou
3d53f8dabe db: add standalone_anon 2020-11-26 21:18:57 +08:00
Yousong Zhou
cc00e58f58 schedtags: add ListItemExportKeys 2020-11-26 21:18:57 +08:00
Yousong Zhou
6bf5be5b0b db: add manager methods appliers 2020-11-26 21:18:57 +08:00
Yousong Zhou
a57a63bf58 db_dispatcher: delay compute to where needed 2020-11-26 21:18:57 +08:00
Yousong Zhou
fd98674c92 db_dispatcher: remove unused GetExtraDetails call 2020-11-26 21:18:57 +08:00
Yousong Zhou
6c65eb1ea6 db: virtualjoint: add FilterById on RowId 2020-11-26 21:18:57 +08:00
Yousong Zhou
89361aee27 db: modelbase: BatchCreateValidateCreateData: return orig data 2020-11-26 21:18:57 +08:00
Yousong Zhou
805002005f db: check funcs required by dispatcher 2020-11-26 21:18:57 +08:00
Yousong Zhou
97dbd1899f region: networks: attach func use struct args 2020-11-26 21:18:57 +08:00
Yousong Zhou
7444234981 region: networkresource: fix signature of GetExtraDetails 2020-11-26 21:18:57 +08:00
Yousong Zhou
ff525a9595 multicloud: aliyun: make getSdkClient proxy aware 2020-11-26 21:18:57 +08:00
Yousong Zhou
027817f565 climc: helper: add BatchCreate helper 2020-11-26 21:18:57 +08:00
Yousong Zhou
85aa05f1f7 climc: helper: create call as a standalone method 2020-11-26 21:18:57 +08:00
Yousong Zhou
a56aca9cbe climc: s/Keyworkd/Keyword/ 2020-11-26 21:18:53 +08:00
Yousong Zhou
02315bdd85 vendor: bump yunion.io/x/pkg 2020-11-26 21:17:07 +08:00
Yousong Zhou
d67eeac5dd vendor: bump yunion.io/x/sqlchemy 2020-11-26 21:17:07 +08:00
Qiu Jian
ef8ad89668 fix(cloudcommon): adjust policy refresh to default 30 seconds
Cache policy check result for 30 seconds by default
2020-11-26 21:14:50 +08:00
Qu Xuan
b574323cba fix(region): auto sync cloudaccount resources 2020-11-26 20:53:27 +08:00
Qu Xuan
ac146af36b fix(cloudid): auto update saml provider metadata 2020-11-26 20:18:13 +08:00
TangBin
797101e6ca fix(region): huawei sync storages bugfix 2020-11-26 19:25:25 +08:00
Qu Xuan
bd8cf2453d fix(region): qcloud request retry 2020-11-26 19:02:41 +08:00
Qu Xuan
5c64f32f08 fix(climc): replace ' -> " 2020-11-26 17:35:15 +08:00
Yousong Zhou
bbc511f6d1 feat(host): add option OvnEncapIpDetectionMethod can-reach:xx 2020-11-26 17:01:08 +08:00
Yousong Zhou
1c39030edb feat(netutils2): add MyIPTo 2020-11-26 16:53:39 +08:00
yunion-ci-robot
219b591252 Merge pull request #8828 from wanyaoqi/feature/wyq/update-arm-apis
feature: update cpu arch apis
2020-11-26 16:37:33 +08:00
Qu Xuan
5a82bffebd fix(region): avolid aliyun fin bucket list objects error 2020-11-26 16:15:51 +08:00
wanyaoqi
3f8e469438 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:14:03 +08:00
Qu Xuan
880e09ee34 fix(region): allow member user get saml auth addr 2020-11-26 15:01:09 +08:00
Zexi Li
d7c096db0f Merge pull request #8968 from swordqiu/hotfix/qj-esxi-host-bebind-nat
fix(region,esxiagent): allow host behind a nat
2020-11-26 12:11:05 +08:00
yunion-ci-robot
e567d6a552 Merge pull request #8991 from zexi/hotfix/scheduler-sync
fix(scheduler): cleanup exipre cache before schedule
2020-11-26 11:44:39 +08:00
Zexi Li
b7a8b37f7d fix(region): wire get vpc releated hosts is empty 2020-11-26 10:59:39 +08:00
yunion-ci-robot
66c200cd3f Merge pull request #8779 from tb365/feature/tb-loadbalancer-project-optimization
负载均衡ACL&证书增加项目和共享
2020-11-26 10:47:34 +08:00
TangBin
8686b77b87 fix(region): climc add base projects options 2020-11-26 10:24:41 +08:00
Zexi Li
aaef2778e3 Merge pull request #8937 from yousong/bugfix/yousong-task-err
fix(treewide): fix task error recording
2020-11-26 09:24:55 +08:00
Zexi Li
99a8f99e1d Merge pull request #8886 from rainzm/feat/cp_pr_title
feat(scripts): add more reasonable title for cherry pick PR
2020-11-25 22:05:28 +08:00
Zexi Li
180cb4fabf Merge pull request #8925 from rainzm/isp/quota
Fixs for InstanceSnapshot
2020-11-25 22:04:18 +08:00
Zexi Li
0743852fab Merge pull request #8902 from zhaoxiangchun/feature/zxc-nodata-master
feat(monitor): add nodata alert policy
2020-11-25 22:02:44 +08:00
Zexi Li
40d7135dc2 Merge pull request #8955 from tb365/bugfix/tb-bugfix-1125
fix(region): allow reset huawei system disk
2020-11-25 22:01:07 +08:00
Zexi Li
ae06501b4e Merge pull request #8961 from ioito/hotfix/qx-qcloud-hssd
fix(region): valid qcloud hssd for system disk
2020-11-25 21:59:17 +08:00
Zexi Li
8a74b3e3fa Merge pull request #8977 from zhaoxiangchun/bugfix/zxc-monitor-servicetype-master
fix(monitor): modify monitor serviceType in StartService()
2020-11-25 21:56:50 +08:00
Zexi Li
f4d1ca4667 Merge pull request #8987 from rainzm/fix/sci_delete
fix(region): allow delete storagecachedimage with 'cache_failed' status
2020-11-25 21:55:26 +08:00
Zexi Li
b7835f9796 fix(region): network clean schedule cache after real deleted 2020-11-25 21:50:14 +08:00
Zexi Li
c0da4cc524 fix(scheduler): clean expire cache before schedule 2020-11-25 21:50:14 +08:00
zhaoxiangchun
dcdf3a1281 fix(monitor): modify monitor serviceType in StartService()
1.修改monitor服务在service代码中注册的serviceType:
   alerter ===> monitor
2020-11-25 20:29:49 +08:00
Zexi Li
69d712a1b4 Merge pull request #8965 from zhaoxiangchun/bugfix/zxc-suggest-timefromj-master
fix(monitor): suggestalert ignore throw err
2020-11-25 19:45:52 +08:00
Zexi Li
453541393b Merge pull request #8973 from ioito/hotfix/qx-qcloud-instance-delete-timeout
fix(region): set qcloud instance del timeout to 20m
2020-11-25 19:37:04 +08:00
rainzm
da03a979f8 fix(region): ignore params.Disks when cloning vm from snapshot 2020-11-25 18:23:14 +08:00
rainzm
be76d1eb47 fix(region): add size and storageType for VMware InstanceSnapshot 2020-11-25 18:23:14 +08:00
rainzm
b9e983787d fix(esxiagent): add humanized tips when searching vm failed 2020-11-25 18:23:14 +08:00
rainzm
e6c908da2e fix(region): make project of instance snapshot be consistent with the instance 2020-11-25 18:23:14 +08:00
rainzm
b4011db917 fix(region): save when canceling pendingUsage 2020-11-25 18:23:14 +08:00
rainzm
4b73139763 feat(region): set pendingUsage before creating instance snapshots 2020-11-25 18:23:12 +08:00
rainzm
d1ed0ec679 feat(region): add instance_snapshot for regionquota 2020-11-25 18:22:29 +08:00
rainzm
33a702617f fix(region): purge all instance snapshots when purging guest 2020-11-25 18:22:23 +08:00
rainzm
e4cd054b74 feat(region): add SCloudregionResourceBase for SInstanceSnapshot
理论上,可以通过
SInstanceSnapshot->SGuest->SHost->SZone->SCloudregionResourceBase
拿到 cloudregion_id, 但是这样的效率太低了
2020-11-25 18:21:14 +08:00
TangBin
a537c0e396 fix(region): update translations 2020-11-25 18:10:32 +08:00
TangBin
332f752ae3 fix(region): allow reset huawei system disk 2020-11-25 18:06:41 +08:00
rainzm
052a10f635 fix(region): allow delete storagecachedimage with 'cache_failed' status
Having status 'cache_failed' means this storagecachedimage does not actually exist.
2020-11-25 17:43:39 +08:00
Zexi Li
319a7ab2a2 Merge pull request #8970 from ioito/hotfix/qx-saml-auth-url
fix(cloudid): avoid empty auth url
2020-11-25 17:16:40 +08:00
Qu Xuan
bd9f961bd2 fix(region): set qcloud instance del timeout to 20m 2020-11-25 17:16:15 +08:00
Qu Xuan
79ea27170f fix(cloudid): avoid empty auth url 2020-11-25 17:05:59 +08:00
Zexi Li
5a4b95f1a5 Merge pull request #8958 from ioito/hotfix/qx-saml-auth
fix(region): validate cloudaccount saml auth params
2020-11-25 16:06:41 +08:00
Qiu Jian
a5327c3cec 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 12:17:13 +08:00
zhaoxiangchun
e10d9b698e Merge branch 'master' of https://github.com/yunionio/onecloud into feature/zxc-nodata-master 2020-11-25 12:06:28 +08:00
zhaoxiangchun
b8c008a8a1 fix(monitor): suggestalert ignore throw err
1.修复优化建议忽略操作报错
2020-11-25 12:01:05 +08:00
Qu Xuan
c5c77b4062 fix(region): valid qcloud hssd for system disk 2020-11-25 11:50:49 +08:00
Qu Xuan
c05b75385f fix(region): validate cloudaccount saml auth params 2020-11-25 11:33:50 +08:00
yunion-ci-robot
4a8eafbc0a Merge pull request #8895 from ioito/hotfix/qx-password-check
fix(region): 避免OneCloud密码校验通过,公有云厂商密码校验不通过
2020-11-25 09:58:15 +08:00
Zexi Li
693201b803 Merge pull request #8947 from yousong/bugfix/yousong-vm-changeip-eip
fix(region): change_ipaddr: retain eip_id on detach and attach
2020-11-25 09:27:59 +08:00
yunion-ci-robot
01a46ea458 Merge pull request #8942 from yousong/bugfix/yousong-vm-changeip
Bugfix/yousong vm changeip
2020-11-25 09:16:16 +08:00
Yousong Zhou
2c8c3b7907 fix(region): change_ipaddr: retain eip_id on detach and attach 2020-11-24 21:57:27 +08:00
Yousong Zhou
9beb3706ed 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:04 +08:00
Yousong Zhou
64dc5219f7 feat(cloudcommon): db: jointbase: add list:"user" for RowId 2020-11-24 21:55:04 +08:00
yunion-ci-robot
75331fe417 Merge pull request #8930 from zexi/feature/schedtag-set-resource
feat(region/schedtag): schedtag support set multi resources
2020-11-24 21:33:17 +08:00
yunion-ci-robot
6c00313a01 Merge pull request #8926 from zhaoxiangchun/bugfix/zxc-suggest-timefromj-master
fix(monitor): modify suggestrule  process influxdb data
2020-11-24 21:28:14 +08:00
Yousong Zhou
c6970e9a25 fix(treewide): fix task error recording 2020-11-24 20:36:14 +08:00
yunion-ci-robot
dc3e2a7b24 Merge pull request #8933 from ioito/hotfix/qx-eip-bw
fix(region): avoid public ip bandwidth is zero
2020-11-24 20:24:17 +08:00
TangBin
18a185aec9 负载均衡ACL&证书增加项目和共享 2020-11-24 19:44:49 +08:00
Qu Xuan
e6b75b8537 fix(region): avoid public ip bandwidth is zero 2020-11-24 18:09:34 +08:00
zhaoxiangchun
91d1f64eff fix(monitor): modify suggestrule process influxdb data
1. 调整与监控相关的时间范围的判断逻辑:不再要求时间范围内必须都有数据
2020-11-24 17:45:47 +08:00
Zexi Li
3edf8c1d08 feat(region/schedtag): schedtag support set multi resources 2020-11-24 15:01:02 +08:00
lvyangyang
6a480937b8 fix(region): fix set bucket referer 2020-11-23 16:08:50 +08:00
zhaoxiangchun
4888f7d819 feat(monitor): add nodata alert policy
1.add queryConditon子类:nodataQueryCondition处理nodata类型策略
2.遍历Onecloud类型宿主机,得到nodata宿主机信息
2020-11-23 10:10:14 +08:00
Qu Xuan
0da66b071e fix(region): 避免OneCloud密码校验通过,公有云厂商密码校验不通过 2020-11-21 23:58:25 +08:00
rainzm
c5f94e13a3 feat(scripts): add more reasonable title for cherry pick PR
Before that, we used the first commit title of the main PRs and spliced
them to become the title of the cherry pick PR.

Obviously, it is more reasonable to use the titles of the main PRs and
splicing to become the title of the cherry pick PR.
2020-11-20 17:36:17 +08:00
1892 changed files with 188885 additions and 41381 deletions

View File

@@ -5,10 +5,10 @@ version: 2
jobs:
check:
docker:
- image: yunionio/centos-build:1.0-1
- image: yunionio/centos-build:1.1-4
environment:
ONECLOUD_CI_BUILD: "1"
working_directory: /root/go/onecloud
working_directory: /root/go/src/yunion.io/x/onecloud
steps:
- checkout
- run:
@@ -18,7 +18,7 @@ jobs:
requires:
- check
docker:
- image: yunionio/centos-build:1.0-1
- image: yunionio/centos-build:1.1-4
environment:
ONECLOUD_CI_BUILD: "1"
@@ -26,7 +26,7 @@ jobs:
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /root/go/onecloud
working_directory: /root/go/src/yunion.io/x/onecloud
parallelism: 4
steps:
- checkout
@@ -51,10 +51,10 @@ jobs:
requires:
- check
docker:
- image: yunionio/centos-build:1.0-1
- image: yunionio/centos-build:1.1-4
environment:
GO111MODULE: "on"
working_directory: /root/go/onecloud
ONECLOUD_CI_BUILD: "1"
working_directory: /root/go/src/yunion.io/x/onecloud
parallelism: 4
steps:
- checkout

View File

@@ -18,6 +18,4 @@ assignees: ''
**Environment**:
- OS (e.g: `cat /etc/os-release`):
- Kernel (e.g. `uname -a`):
<!--
- Version (e.g. `climc version-list`):
-->
- Others:

View File

@@ -199,10 +199,53 @@ vet-check:
./scripts/vet.sh chk
.PHONY: vet-check
comma:=,
space:=$(space) $(space)
# NOTE: keep y18n-packages in alphabetical order
y18n-src-lang := en-US
y18n-lang := en-US,zh-CN
y18n-packages := \
yunion.io/x/onecloud/cmd/apigateway \
yunion.io/x/onecloud/cmd/keystone \
yunion.io/x/onecloud/cmd/monitor \
yunion.io/x/onecloud/cmd/region \
yunion.io/x/onecloud/cmd/yunionconf \
define y18n-gen
set -o errexit; \
set -o pipefail; \
export GO111MODULE=off; \
y18n \
-chdir $(CURDIR) \
-dir ./locales/ \
-out ./locales/locales.go \
-lang $(y18n-lang) \
$(y18n-packages) \
; \
$(foreach lang,$(filter-out $(y18n-src-lang),$(subst $(comma), ,$(y18n-lang))),cp ./locales/$(lang)/{out,messages}.gotext.json;) \
endef
y18n-gen:
$(y18n-gen)
$(y18n-gen)
.PHONY: y18n-gen
y18n-check:
$(y18n-gen)
if git status --short ./locales | sed 's/^/$@: /' | grep .; then \
echo "$@: Locales content needs care" >&2 ; \
false; \
fi
.PHONY: y18n-check
check: fmt-check
check: gendocgo-check
check: goimports-check
check: vet-check
#check: y18n-check
.PHONY: check
@@ -225,8 +268,7 @@ dep:
@$(MAKE) mod
mod:
go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p' | grep -v sqlchemy))
go get -d yunion.io/x/sqlchemy@v1.0.0
go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p'))
go mod tidy
go mod vendor -v
@@ -287,9 +329,6 @@ image:
.PHONY: image
image-telegraf-raid-plugin:
VERSION=release-1.6.3 ARCH=all make image telegraf-raid-plugin
%:
@:

6
OWNERS
View File

@@ -4,6 +4,12 @@ reviewers:
- ioito
- swordqiu
- tb365
- wanyaoqi
- yousong
- zhaoxiangchun
- zhasm
approvers:
- swordqiu
- yousong
- wanyaoqi
- Zexi

View File

@@ -0,0 +1,3 @@
echo "Welcome to Cloud Shell :-) You may execute climc and other command tools in this shell."
echo "Please exec 'climc' to get started"
echo ""

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport" ID="_1e55eaf7-5cb9-4601-b557-e322fdfb2baf" entityID="urn:federation:MicrosoftOnline">
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<Reference URI="#_1e55eaf7-5cb9-4601-b557-e322fdfb2baf">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>fA33hUaj24/8F8bArDIkH6CpX0k=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>p/rlVWxLRIYiHozzWUgsjmQ5ItMZ/ITeEOg/edeo50l7qU8wLM9JD55EHoLpVvxImBcCfY1CxKdq3s1o9Up1jvEcH9KjfYZea1q8hzTkQdt7F2XvxoqDFRLvVwyHHJjygaEvFRXXxml7IDgDx9ScSRhQeGUlTGhI9eAFSaGkChM/FPnmekZ3ngSwbVf4FsTLIArxMqEnV0lXNMTr5NHQ6VL5wZ/cHLNCkkBoY0qWyv2hnYiZiXa4TKjpAN+8QF5GDPv/0ExJwe+aoRAQhdBzhBUICQdQd+v3Rb5SuX++iVfmf4IPMqj8CK4uK7iYXNLCGEO8oFR2KlK/zBpHzw6yCQ==</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>MIIC/TCCAeWgAwIBAgIQF9xAVqfHt7dNSOnsMKYLDjANBgkqhkiG9w0BAQsFADApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMTkwNjE4MDAwMDAwWhcNMjEwNjE4MDAwMDAwWjApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLwL+mOk+zhgjHPFiZuDaU7coCOMkYyJyWS2B2KWYx7BMmy+SBSlFvvDHIiMXeLnv9DiUnQXtjClZXNqEo2amM/KdXfnCUlwdnqGa89TbB8kM6aBQKCh5Up7vejD+KRpPcOK7DqxWnm037zNKH+6liwRMUD/+lkBODoG1/ThuBVM0Kr1Oowfnkb4JYeF5xZk+2+ThR2dcQzdsz8dBW1GpGopdoM5G1amVhoRPBeNlYUqf0JUPE36Dx0iCmeXX00HTR2gd+/DJFVe34l/VxL4cqufmRcqWHy7axonbpt8svjAervGgueF5W/BVGcO4eVwFzFfnAz7bSaH/zbsNnQkFtAgMBAAGjITAfMB0GA1UdDgQWBBQlxmu/Hj1qB2A306p0Sz9up711AjANBgkqhkiG9w0BAQsFAAOCAQEAEhb+i+J69DvzCTfmC0Mn+uSGzBaW0ksMZNjM8/p/RFueytNo8/DY6TUb9W8l/HSVON782iGG7hIsG68RUIZ5q+/WAB9iBvKkKv5aGZ0bK/eD5boHwBwMa3udTjU68Vkai0A7naISEh22h+lQPvKiftCEzK1x9j2FoAXEMhACnpTwRrrj3SsJXCsMaOKcVw7sCmM4/4wD5I1+dfMSe85rSEzzUCDcCMEg67sBKdO2CFK1GoH21ttrz1CV+xt8Pn9a488kgsp2ZyU+yixS59CrM7onEzt1R4miXWAJAtydNHAmmbgKrTxqf67fEXFcrlFAHexi6vvINZWZPD6+J+q6xg==</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
<SPSSODescriptor WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<KeyDescriptor use="signing">
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<X509Data>
<X509Certificate>MIIC/TCCAeWgAwIBAgIQF9xAVqfHt7dNSOnsMKYLDjANBgkqhkiG9w0BAQsFADApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMTkwNjE4MDAwMDAwWhcNMjEwNjE4MDAwMDAwWjApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLwL+mOk+zhgjHPFiZuDaU7coCOMkYyJyWS2B2KWYx7BMmy+SBSlFvvDHIiMXeLnv9DiUnQXtjClZXNqEo2amM/KdXfnCUlwdnqGa89TbB8kM6aBQKCh5Up7vejD+KRpPcOK7DqxWnm037zNKH+6liwRMUD/+lkBODoG1/ThuBVM0Kr1Oowfnkb4JYeF5xZk+2+ThR2dcQzdsz8dBW1GpGopdoM5G1amVhoRPBeNlYUqf0JUPE36Dx0iCmeXX00HTR2gd+/DJFVe34l/VxL4cqufmRcqWHy7axonbpt8svjAervGgueF5W/BVGcO4eVwFzFfnAz7bSaH/zbsNnQkFtAgMBAAGjITAfMB0GA1UdDgQWBBQlxmu/Hj1qB2A306p0Sz9up711AjANBgkqhkiG9w0BAQsFAAOCAQEAEhb+i+J69DvzCTfmC0Mn+uSGzBaW0ksMZNjM8/p/RFueytNo8/DY6TUb9W8l/HSVON782iGG7hIsG68RUIZ5q+/WAB9iBvKkKv5aGZ0bK/eD5boHwBwMa3udTjU68Vkai0A7naISEh22h+lQPvKiftCEzK1x9j2FoAXEMhACnpTwRrrj3SsJXCsMaOKcVw7sCmM4/4wD5I1+dfMSe85rSEzzUCDcCMEg67sBKdO2CFK1GoH21ttrz1CV+xt8Pn9a488kgsp2ZyU+yixS59CrM7onEzt1R4miXWAJAtydNHAmmbgKrTxqf67fEXFcrlFAHexi6vvINZWZPD6+J+q6xg==</X509Certificate>
</X509Data>
</KeyInfo>
</KeyDescriptor>
<KeyDescriptor use="signing">
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<X509Data>
<X509Certificate>MIIC/TCCAeWgAwIBAgIQbgDHfi3t1JNGVqwD5/7lmjANBgkqhkiG9w0BAQsFADApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMjAxMjIxMDAwMDAwWhcNMjUxMjIxMDAwMDAwWjApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDFT0/0/2qQurnYa0LbJHF9YYozhEH6r9mCxVDBYbewSG4tGgrWpsewQ/96pcczGMQctMvU+h2eX38Hx/f9JAIDbuRQzQlsPhQS7DDZ6WlTXU+t8d/g2C7fpSoLs4KVdJih4xyjLUWj+BK/ijsRjBt4Riw9VbJH/DdWKyoSMbECEiE+s1RtLP/eYoMmNfxyQGqWirCNqVNBTlqzYQp4dgF0foYy4ktoxwmQOVoTcIMFYp1I4pFPI7CxuMLkfK0X7aTbM7YGphvMfJxJkjrQdyI7G5d1t4DNi3zkEbBT7FGAr6qPt3Kn9ralpqJKHdpEBA9N0vNwQo5XTYIhUbPQ16IRAgMBAAGjITAfMB0GA1UdDgQWBBRs7tPmfkksSr67KtElHjYZbeaCTjANBgkqhkiG9w0BAQsFAAOCAQEAJqwMZSjQJ36x+1sty6EeLKQLQewQwPaEC47Zut+8bXed6Q8jMZ0bfa/MM7XquEcabaMZLQuKLft44YXwXXQOfQrI2qjQr3eToJFlDT9hR0rfp9wQqttDxd6Aa6RWwDTgo5oKUQCTKLHhEy8uWzScK0eGt2d7TWTaDXjRSwNq6tM7fRhZs07tKBV3xfi9EQy/mlavAMFRBVm86NSo7AsOG1IOMq03U3ooCWAXh9PdvvHNfHhH19futAnC/HeOjwRF1Qc527aBMphYFQLdiThfmfmiE/AhQqCwZ2oE7uCJhBtR+Kb1ZGhjI35pHfsSqGiFa7Kr+5ave822PDcke89Mvg==</X509Certificate>
</X509Data>
</KeyInfo>
</KeyDescriptor>
<KeyDescriptor use="signing">
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<X509Data>
<X509Certificate>MIIC/TCCAeWgAwIBAgIQbgDHfi3t1JNGVqwD5/7lmjANBgkqhkiG9w0BAQsFADApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMjAxMjIxMDAwMDAwWhcNMjUxMjIxMDAwMDAwWjApMScwJQYDVQQDEx5MaXZlIElEIFNUUyBTaWduaW5nIFB1YmxpYyBLZXkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDFT0/0/2qQurnYa0LbJHF9YYozhEH6r9mCxVDBYbewSG4tGgrWpsewQ/96pcczGMQctMvU+h2eX38Hx/f9JAIDbuRQzQlsPhQS7DDZ6WlTXU+t8d/g2C7fpSoLs4KVdJih4xyjLUWj+BK/ijsRjBt4Riw9VbJH/DdWKyoSMbECEiE+s1RtLP/eYoMmNfxyQGqWirCNqVNBTlqzYQp4dgF0foYy4ktoxwmQOVoTcIMFYp1I4pFPI7CxuMLkfK0X7aTbM7YGphvMfJxJkjrQdyI7G5d1t4DNi3zkEbBT7FGAr6qPt3Kn9ralpqJKHdpEBA9N0vNwQo5XTYIhUbPQ16IRAgMBAAGjITAfMB0GA1UdDgQWBBRs7tPmfkksSr67KtElHjYZbeaCTjANBgkqhkiG9w0BAQsFAAOCAQEAJqwMZSjQJ36x+1sty6EeLKQLQewQwPaEC47Zut+8bXed6Q8jMZ0bfa/MM7XquEcabaMZLQuKLft44YXwXXQOfQrI2qjQr3eToJFlDT9hR0rfp9wQqttDxd6Aa6RWwDTgo5oKUQCTKLHhEy8uWzScK0eGt2d7TWTaDXjRSwNq6tM7fRhZs07tKBV3xfi9EQy/mlavAMFRBVm86NSo7AsOG1IOMq03U3ooCWAXh9PdvvHNfHhH19futAnC/HeOjwRF1Qc527aBMphYFQLdiThfmfmiE/AhQqCwZ2oE7uCJhBtR+Kb1ZGhjI35pHfsSqGiFa7Kr+5ave822PDcke89Mvg==</X509Certificate>
</X509Data>
</KeyInfo>
</KeyDescriptor>
<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://login.microsoftonline.com/login.srf"/>
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</NameIDFormat>
<NameIDFormat>urn:mace:shibboleth:1.0:nameIdentifier</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</NameIDFormat>
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://login.microsoftonline.com/login.srf" index="0" isDefault="true"/>
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign" Location="https://login.microsoftonline.com/login.srf" index="1"/>
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS" Location="https://login.microsoftonline.com/login.srf" index="2"/>
</SPSSODescriptor>
<Extensions>
<alg:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<alg:SigningMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
</Extensions>
</EntityDescriptor>

View File

@@ -0,0 +1,3 @@
INTERFACE=""
INTERFACE_IP=""
RELAY=""

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Yunion Cloud DHCP Relay Agent
Documentation=https://docs.yunion.cn
After=network-online.target
Wants=network-online.target
After=network.target
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/yunion_dhcprelay
User=root
Group=root
ExecStart=/opt/yunion/bin/dhcprelay --interface "$INTERFACE" --ip "$IP" --relay "$RELAY"
WorkingDirectory=/opt/yunion/bin
KillMode=process
Restart=always
RestartSec=30
LimitNOFILE=500000
LimitNPROC=500000
[Install]
WantedBy=multi-user.target

2
build/dhcprelay/vars Normal file
View File

@@ -0,0 +1,2 @@
DESCRIPTION="Yunion Tiny DHCP Relay Server"
SERVICE="yes"

View File

@@ -1,3 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.0.2
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.0.3
# install playbook and telegraf install pkg
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.1.2 /opt/yunion/playbook /opt/yunion/playbook
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.1.2 /opt/yunion/ansible-install-pkg /opt/yunion/ansible-install-pkg
ADD ./_output/alpine-build/bin/ansibleserver /opt/yunion/bin/ansibleserver

View File

@@ -7,6 +7,7 @@ MAINTAINER "Yousong Zhou <zhouyousong@yunionyun.com>"
RUN set -x \
&& apk update \
&& apk add openssh-client \
&& apk add sshpass \
&& apk add ansible \
&& apk add tzdata git ca-certificates \
&& rm -rf /var/cache/apk/*

View File

@@ -1,11 +1,9 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.3
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.2
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN mkdir -p /opt/yunion/bin
#ADD ./_output/bin/baremetal-agent /opt/yunion/bin/baremetal-agent
#ADD ./_output/bin/.baremetal-agent.bin /opt/yunion/bin/.baremetal-agent.bin
#ADD ./_output/bin/bundles/baremetal-agent /opt/yunion/bin/bundles/baremetal-agent
RUN apk add librados librbd
ADD ./_output/alpine-build/bin/baremetal-agent /opt/yunion/bin/baremetal-agent
ADD ./_output/bin/baremetal-agent /opt/yunion/bin/baremetal-agent
ADD ./_output/bin/.baremetal-agent.bin /opt/yunion/bin/.baremetal-agent.bin
ADD ./_output/bin/bundles/baremetal-agent /opt/yunion/bin/bundles/baremetal-agent

View File

@@ -1,8 +1,7 @@
FROM --platform=linux/amd64 registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 as build
RUN yum install -y https://iso.yunion.cn/vm-images/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
#RUN yum install -y http://192.168.23.50:8083/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
FROM registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 as build
RUN yum install -y https://iso.yunion.cn/3.6/rpms/packages/host/baremetal-pxerom-1.1.0-20072810.x86_64.rpm
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
FROM frolvlad/alpine-glibc:glibc-2.28
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"

View File

@@ -1,5 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20210701
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20210508
ADD ./build/climc/root/opt /opt
RUN cat /opt/yunion/scripts/motd/climc.sh >> /root/.bashrc
ADD ./_output/alpine-build/bin/climc ./_output/alpine-build/bin/*cli /opt/yunion/bin/

View File

@@ -6,7 +6,9 @@ ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim && \
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositories
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim ipmitool kubectl && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

View File

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

View File

@@ -0,0 +1,22 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
MAINTAINER "Rain Zheng <zhengyu@yunion.com>"
# openssh-client, for ansible ssh connection
# git, ca-certificates, for fetching ansible roles
RUN set -x \
&& apk update \
&& apk add git \
&& rm -rf /var/cache/apk/*
# install default playbook and install pkg
Run mkdir -p /opt/yunion/ansible-install-pkg
Run wget https://dl.influxdata.com/telegraf/releases/telegraf-1.17.0-1.x86_64.rpm -P /opt/yunion/ansible-install-pkg
Run wget https://dl.influxdata.com/telegraf/releases/telegraf-1.17.0-1.aarch64.rpm -P /opt/yunion/ansible-install-pkg
Run wget https://dl.influxdata.com/telegraf/releases/telegraf-1.17.0_windows_amd64.zip -P /opt/yunion/ansible-install-pkg
Run wget https://dl.influxdata.com/telegraf/releases/telegraf_1.17.0-1_amd64.deb -P /opt/yunion/ansible-install-pkg
Run wget https://dl.influxdata.com/telegraf/releases/telegraf_1.17.0-1_arm64.deb -P /opt/yunion/ansible-install-pkg
Run mkdir -p /opt/yunion/playbook
Run mkdir /opt/yunion/playbook/monitor-agent
Run git clone https://github.com/yunionio/monitor-agent.git /opt/yunion/playbook/monitor-agent --recurse-submodules

View File

@@ -2,5 +2,6 @@ FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:20200820
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN apk add --no-cache s3fs-fuse --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/glance /opt/yunion/bin/glance

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.10.4-1
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.10.5-1
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"

View File

@@ -1,20 +1,7 @@
REGISTRY ?= "registry.cn-beijing.aliyuncs.com/yunionio"
DOCKER_BUILD = docker build -t $(REGISTRY)
DOCKER_BUILDX = docker buildx build --platform linux/arm64,linux/amd64 --push -t $(REGISTRY)
debian10-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 -f ./Dockerfile.debian-base .
CLIMC_BASE_VERSION = 20210701
climc-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/climc-base:$(CLIMC_BASE_VERSION) -f ./Dockerfile.climc-base .
BAREMETAL_BASE_VERSION = v0.3.3
baremetal-base:
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)
-t registry.cn-beijing.aliyuncs.com/yunionio/climc-base:$(VERSION) -f ./Dockerfile.climc-base .

View File

@@ -7,7 +7,7 @@ COPY . /root/go/src/yunion.io/x/onecloud
WORKDIR /root/go/src/yunion.io/x/onecloud
RUN make cmd/host
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.3
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.4.0
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"

View File

@@ -0,0 +1,6 @@
{{- $d := .resource_details -}}
您在{{ $d.project }}项目的
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}已经成功{{ .action_display }}

View File

@@ -0,0 +1,64 @@
{{- $d := .resource_details }}
{{- $consoleServiceType := list "loadbalancer" "dbinstance" "elasticcache" -}}
您在{{ $d.project }}项目的
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}已经创建成功
{{- if $d.private_dns -}}
,内网地址为{{ $d.private_dns }}:{{ $d.private_connect_port }}
{{- end -}}
{{- if $d.public_dns -}}
,外网地址为{{ $d.public_dns }}:{{ $d.public_connect_port }}
{{- end -}}
{{- if and $d.address_type $d.address -}}
,服务地址为{{ $d.address_type }}{{ $d.address }}
{{- end -}}
{{- if $d.ips -}}
IP地址为{{ $d.ips }}
{{- end -}}
{{- if and $d.guest_ip_start $d.guest_ip_end -}}
IP范围为{{ $d.guest_ip_start }}-{{ $d.guest_ip_end }}
{{- end -}}
{{- if $d.ip_addr -}}
IP地址为{{ $d.ip_addr }}
{{- end -}}
{{- if $d.account -}}
,初始帐号为{{ $d.account }}
{{- end -}}
{{- if $d.password -}}
,初始密码为{{ $d.password }}
{{- end -}}
{{- if $d.keypair -}}
访问ssh密钥为{{ $d.keypair }}
{{- end -}}
{{- if $d.common_name -}}
,证书域名为{{ $d.common_name }}
{{- end -}}
{{- if $d.not_after -}}
,过期时间为{{ $d.not_after }}
{{- end -}}
{{- if eq .resource_type "server" -}}
,请使用
{{- if $d.windows -}}
远程桌面连接器(RDC)
{{- else -}}
SSH
{{- end -}}
或控制面板控制台访问虚拟机。
{{- end -}}
{{- if has .resource_type $consoleServiceType -}}
,更多信息请前往控制台查看。
{{- end -}}

View File

@@ -0,0 +1,6 @@
{{- $d := .resource_details -}}
您在{{ $d.project }}项目的
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}还有{{ .advance_days }}天就要到期释放,如需续期使用,请尽快前往控制台处理

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
您在{{ $d.project }}项目的弹性伸缩组{{ $d.scaling_group }}中的{{ $d.trigger_type_display }}类型伸缩策略{{ $d.name }}满足触发条件,成功{{ $d.action_display }}{{ $d.number }}{{ $d.unit_display }}实例

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
您在{{ $d.project }}项目的定时任务执行成功

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
您在{{ $d.project }}项目的自动快照策略{{ $d.name }}为硬盘{{ $d.disk }}创建快照成功

View File

@@ -0,0 +1,14 @@
{{- $d := .resource_details -}}
您在{{ $d.project }}项目的
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}已经{{ .action_display }}成功
{{- if $d.account -}}
,帐号为{{ $d.account }}
{{- end -}}
{{- if $d.password -}}
,密码为{{ $d.password }}
{{- end -}}
,更多信息请前往控制台进行查看

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} has been {{ .action_display }} successfully

View File

@@ -0,0 +1,54 @@
{{- $d := .resource_details }}
{{- $consoleServiceType := list "loadbalancer" "dbinstance" "elasticcache" -}}
Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} has been created successfully
{{- if $d.private_dns -}}
, the intranet address is {{ $d.private_dns }}:{{ $d.private_connect_port }}
{{- end -}}
{{- if $d.public_dns -}}
, the internet address is {{ $d.public_dns }}:{{ $d.public_connect_port }}
{{- end -}}
{{- if and $d.address_type $d.address -}}
, the service address is {{ $d.address_type }}{{ $d.address }}
{{- end -}}
{{- if $d.ips -}}
, the IP address is {{ $d.ips }}
{{- end -}}
{{- if and $d.guest_ip_start $d.guest_ip_end -}}
, the IP range is {{ $d.guest_ip_start }}-{{ $d.guest_ip_end }}
{{- end -}}
{{- if $d.ip_addr -}}
, the IP address is {{ $d.ip_addr }}
{{- end -}}
{{- if $d.account -}}
, the initial account is {{ $d.account }}
{{- end -}}
{{- if $d.password -}}
, the initial password is {{ $d.password }}
{{- end -}}
{{- if $d.keypair -}}
, the access ssh key is {{ $d.keypair }}
{{- end -}}
{{- if $d.common_name -}}
, the certificate domain name is {{ $d.common_name }}
{{- end -}}
{{- if $d.not_after -}}
, the expiration is {{ $d.not_after }}
{{- end -}}
{{- if eq .resource_type "server" -}}
, and please use {{ if $d.windows -}} Remote Desktop Connector (RDC) {{ else -}} SSH {{ end -}} or the control panel console to access the VM.
{{- end -}}
{{- if has .resource_type $consoleServiceType -}}
. For more information, please go to the console to view
{{- end -}}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} will expire and be released in {{ .advance_days }} days. If you need to renew, please go to the console as soon as possible

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The {{ $d.trigger_type_display }} type scaling policy {{ $d.name }} in the scaling group {{ $d.scaling_group }} of the {{ $d.project }} project satisfies the trigger conditions, and {{ $d.action_display }} {{ $d.number }}{{ $d.unit_display }} instances successfully

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The scheduled task in {{ $d.project }} successfully {{ $d.operation_display }} the {{ $d.resource_type_display }} {{ $d.resource_name }}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The snapshot policy {{ $d.name }} in the {{ $d.project }} project successfully creates a snapshot for the disk {{ $d.disk }}

View File

@@ -0,0 +1,10 @@
{{- $d := .resource_details -}}
Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} has been {{ .action_display }} successfully
{{- if $d.account -}}
, the acount is {{ $d.account }}
{{- end -}}
{{- if $d.password -}}
, the password is {{ $d.password }}
{{- end -}}
, and please go to the console to view more information

View File

@@ -0,0 +1,5 @@
{{- $d := .resource_details -}}
{{- if $d.project -}}
{{ $d.project }}项目的
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}{{ .action_display }}成功

View File

@@ -0,0 +1,5 @@
{{- $d := .resource_details -}}
{{- if $d.project -}}
{{ $d.project }}项目的
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}创建成功

View File

@@ -0,0 +1,3 @@
{{- $d := .resource_details -}}
{{ $d.project }}项目的
{{ .resource_type_display }}{{ $d.name }}到期前{{ .advance_days }}天通知

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.project }}项目的弹性伸缩组{{ $d.scaling_group }}中的伸缩策略{{ $d.name }}满足触发

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The scheduled task in {{ $d.project }} successfully {{ $d.operation_display }} the {{ $d.resource_type_display }} {{ $d.resource_name }}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.project }}项目的自动快照策略{{ $d.name }}生效

View File

@@ -0,0 +1,3 @@
{{- $d := .resource_details -}}
{{ $d.project }}项目的
{{ .resource_type_display }}{{ $d.name }}{{ .action_display }}成功

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The {{ .resource_type_display }} {{ .Name }} {{ if $d.project }} in poject {{ $d.project }} {{ end -}} {{ .action_display }} successfully

View File

@@ -0,0 +1,3 @@
{{- $d := .resource_details -}}
The {{ .resource_type_display }} {{ $d.name }} {{ if $d.project }} in poject {{ $d.project }} {{ end -}} created successfully

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .advance_days }} days notice before {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} expiration

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The scaling policy {{ $d.name }} in the scaling group {{ $d.scaling_group }} triggered

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The scheduled task in {{ $d.project }} execute successfully

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The snapshot policy {{ $d.name }} in the {{ $d.project }} project executed

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} {{ .action_display }} successfully

View File

@@ -0,0 +1,5 @@
{{- if .admin -}}
{{ .domain }}域下的账号{{ .user }}由于异常登录已被锁定,请您核实用户使用情况。如果需要为用户解锁,请到用户列表启用该用户。
{{- else -}}
您的账号{{ .user }}由于异常登录已被锁定,请联系管理员解锁账号。
{{- end -}}

View File

@@ -6,12 +6,12 @@
</head>
<body>
<table style="width: 650px; margin-bottom: 20px;" border="0" cellpadding="0" cellspacing="0" align="center">
<tr style="height: 50px; background: #333; overflow: hidden;">
<tr style="height: 50px; background: #C2DEF2; overflow: hidden;">
<td>
<table style="margin-left: 20px;">
<tr>
<td>
<img src="data:{{.login_logo_format}};base64,{{.login_logo}}" alt="" style="color: #fff; height: 32px; vertical-align: middle;">
<img src="data:{{.login_logo_format}};base64,{{.login_logo}}" alt="{{.name}}" style="color: #333; height: 32px; vertical-align: middle;">
</td>
</tr>
</table>
@@ -43,7 +43,7 @@
<table style="padding: 20px 10px; width: 100%;">
<tr>
<td style="padding-bottom: 20px;">
尊敬的{{.name}},您好:
尊敬的{{.receiver_name}},您好:
</td>
</tr>
<tr>
@@ -53,10 +53,10 @@
</td>
</tr>
<tr style="width: 96%;">
<td colspan="2" style="border-top: 1px dashed #ccc; color: #333; font-size: 12px; padding-bottom: 10px; font-weight: 100;">如非本人操作,请及时登录平台并修改密码以保证账户的安全</td>
<td colspan="2" style="border-top: 1px dashed #ccc; color: #333; font-size: 12px; padding-bottom: 10px; font-weight: 100; text-align: center">如非本人操作,请及时登录平台并修改密码以保证账户的安全</td>
</tr>
<tr>
<td colspan="2" style="background: #333; text-align: right; padding-right: 20px; font-size: 12px; color: #fff; height: 50px;">版权所有 © {{.copyright}} 保留一切权利</td>
<td colspan="2" style="background: #C2DEF2; text-align: right; padding-right: 20px; font-size: 12px; color: #333; height: 50px;">版权所有 © {{.copyright}} 保留一切权利</td>
</tr>
</table>
</body>

View File

@@ -0,0 +1,5 @@
{{- if .admin -}}
The account {{ .user }} in domain {{ .domain }} has been locked due to abnormal login. Please verify the situation and, if you need to unlock this account, enable it in the user list.
{{- else -}}
The account {{ .user }} has been locked due to abnormal login. Please contact the administrator to unlock your account.
{{- end -}}

View File

@@ -6,12 +6,12 @@
</head>
<body>
<table style="width: 650px; margin-bottom: 20px;" border="0" cellpadding="0" cellspacing="0" align="center">
<tr style="height: 50px; background: #333; overflow: hidden;">
<tr style="height: 50px; background: #C2DEF2; overflow: hidden;">
<td>
<table style="margin-left: 20px;">
<tr>
<td>
<img src="data:{{.login_logo_format}};base64,{{.login_logo}}" alt="" style="color: #fff; height: 32px; vertical-align: middle;">
<img src="data:{{.login_logo_format}};base64,{{.login_logo}}" alt="{{.name}}" style="color: #333; height: 32px; vertical-align: middle;">
</td>
</tr>
</table>
@@ -43,7 +43,7 @@
<table style="padding: 20px 10px; width: 100%;">
<tr>
<td style="padding-bottom: 13px;">
Dear {{.name}}
Dear {{.receiver_name}}
</td>
</tr>
<tr>
@@ -56,10 +56,10 @@
</td>
</tr>
<tr style="width: 96%;">
<td colspan="2" style="border-top: 1px dashed #ccc; color: #333; font-size: 12px; padding-bottom: 10px; font-weight: 100;">If you are not operating by yourself, please log in to the platform in time and change your password to ensure the security of your account.</td>
<td colspan="2" style="border-top: 1px dashed #ccc; color: #333; font-size: 12px; padding-bottom: 10px; font-weight: 100; padding-left: 10px;">If you are not operating by yourself, please log in to the platform in time and change your password to ensure the security of your account.</td>
</tr>
<tr>
<td colspan="2" style="background: #333; text-align: right; padding-right: 20px; font-size: 12px; color: #fff; height: 50px;">Copyrights © {{.copyright}}. All rights reserved.</td>
<td colspan="2" style="background: #C2DEF2; text-align: right; padding-right: 20px; font-size: 12px; color: #333; height: 50px;">Copyrights © {{.copyright}}. All rights reserved.</td>
</tr>
</table>
</body>

View File

@@ -0,0 +1 @@
异常登录

View File

@@ -0,0 +1 @@
Abnormal Login

View File

@@ -18,6 +18,7 @@ import (
"fmt"
"os"
"yunion.io/x/pkg/errors"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/multicloud/aws"
@@ -32,6 +33,7 @@ type BaseOptions struct {
AccessKey string `help:"Access key" default:"$AWS_ACCESS_KEY" metavar:"AWS_ACCESS_KEY"`
Secret string `help:"Secret" default:"$AWS_SECRET" metavar:"AWS_SECRET"`
RegionId string `help:"RegionId" default:"$AWS_REGION" metavar:"AWS_REGION"`
AccountId string `help:"Subaccount ID" default:"$AWS_ACCOUNT_ID" metavar:"AWS_ACCOUNT_ID"`
SUBCOMMAND string `help:"awscli subcommand" subcommand:"true"`
}
@@ -90,15 +92,16 @@ func newClient(options *BaseOptions) (*aws.SRegion, error) {
options.AccessUrl,
options.AccessKey,
options.Secret,
options.AccountId,
).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)
region, err := cli.GetRegion(options.RegionId)
if err != nil {
return nil, errors.Wrapf(err, "GetRegion(%s)", options.RegionId)
}
return region, nil

View File

@@ -21,7 +21,9 @@ import (
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudevent"
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudid"
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudnet"
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudproxy"
_ "yunion.io/x/onecloud/cmd/climc/shell/compute"
_ "yunion.io/x/onecloud/cmd/climc/shell/devtool"
_ "yunion.io/x/onecloud/cmd/climc/shell/etcd"
_ "yunion.io/x/onecloud/cmd/climc/shell/events"
_ "yunion.io/x/onecloud/cmd/climc/shell/identity"

View File

@@ -0,0 +1,34 @@
// 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 ansible
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
options "yunion.io/x/onecloud/pkg/mcclient/options/ansible"
)
func init() {
cmd := shell.NewResourceCmd(&modules.AnsiblePlaybookReference).WithKeyword("ansibleplaybook-reference")
cmd.List(new(options.APRListOptions))
cmd.Show(new(options.APROptions))
cmd.Perform("run", new(options.APRRunOptions))
cmd.Perform("stop", new(options.APRStopOptions))
cmd1 := shell.NewResourceCmd(&modules.AnsiblePlaybookInstance).WithKeyword("ansibleplaybook-instance")
cmd1.List(new(options.APIListOptions))
cmd1.Show(new(options.APIOptions))
cmd1.Perform("run", new(options.APIOptions))
}

View File

@@ -0,0 +1,33 @@
// 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 cloudproxy
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudproxy"
options "yunion.io/x/onecloud/pkg/mcclient/options/cloudproxy"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Forwards)
cmd = cmd.WithKeyword("proxy-forward")
cmd.Create(&options.ForwardCreateOptions{})
cmd.PerformClass("create-from-server", &options.ForwardCreateFromServerOptions{})
cmd.Perform("heartbeat", &options.ForwardHeartbeatOptions{})
cmd.Update(&options.ForwardUpdateOptions{})
cmd.List(&options.ForwardListOptions{})
cmd.Show(&options.ForwardShowOptions{})
cmd.Delete(&options.ForwardDeleteOptions{})
}

View File

@@ -0,0 +1,31 @@
// 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 cloudproxy
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudproxy"
options "yunion.io/x/onecloud/pkg/mcclient/options/cloudproxy"
)
func init() {
cmd := shell.NewResourceCmd(&modules.ProxyAgents)
cmd = cmd.WithKeyword("proxy-agent")
cmd.Create(&options.ProxyAgentCreateOptions{})
cmd.Update(&options.ProxyAgentUpdateOptions{})
cmd.List(&options.ProxyAgentListOptions{})
cmd.Show(&options.ProxyAgentShowOptions{})
cmd.Delete(&options.ProxyAgentDeleteOptions{})
}

View File

@@ -0,0 +1,32 @@
// 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 cloudproxy
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudproxy"
options "yunion.io/x/onecloud/pkg/mcclient/options/cloudproxy"
)
func init() {
cmd := shell.NewResourceCmd(&modules.ProxyEndpoints)
cmd = cmd.WithKeyword("proxy-endpoint")
cmd.Create(&options.ProxyEndpointCreateOptions{})
cmd.PerformClass("create-from-server", &options.ProxyEndpointCreateFromServerOptions{})
cmd.Update(&options.ProxyEndpointUpdateOptions{})
cmd.List(&options.ProxyEndpointListOptions{})
cmd.Show(&options.ProxyEndpointShowOptions{})
cmd.Delete(&options.ProxyEndpointDeleteOptions{})
}

View File

@@ -0,0 +1,31 @@
// 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 cloudproxy
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudproxy"
options "yunion.io/x/onecloud/pkg/mcclient/options/cloudproxy"
)
func init() {
cmd := shell.NewResourceCmd(&modules.ProxyMatches)
cmd = cmd.WithKeyword("proxy-match")
cmd.Create(&options.ProxyMatchCreateOptions{})
cmd.Update(&options.ProxyMatchUpdateOptions{})
cmd.List(&options.ProxyMatchListOptions{})
cmd.Show(&options.ProxyMatchShowOptions{})
cmd.Delete(&options.ProxyMatchDeleteOptions{})
}

View File

@@ -0,0 +1,26 @@
// 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 compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.AccessGroupCaches).WithKeyword("access-group-cache")
cmd.List(&compute.AccessGroupCacheListOptions{})
}

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 compute
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/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.AccessGroupRules).WithKeyword("access-group-rule")
cmd.List(&compute.AccessGroupRuleListOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Create(&compute.AccessRuleCreateOptions{})
}

View File

@@ -0,0 +1,30 @@
// 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 compute
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/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.AccessGroups).WithKeyword("access-group")
cmd.List(&compute.AccessGroupListOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Create(&options.BaseCreateOptions{})
cmd.Perform("syncstatus", &options.BaseIdOptions{})
}

View File

@@ -44,6 +44,7 @@ func init() {
cmd.CreateWithKeyword("create-xsky", &options.SXskyCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-ctyun", &options.SCtyunCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-apsara", &options.SApsaraCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-ecloud", &options.SEcloudCloudAccountCreateOptions{})
cmd.UpdateWithKeyword("update-vmware", &options.SVMwareCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-aliyun", &options.SAliyunCloudAccountUpdateOptions{})
@@ -98,6 +99,7 @@ func init() {
cmd.Perform("change-owner", &options.ClouaccountChangeOwnerOptions{})
cmd.Perform("change-project", &options.ClouaccountChangeProjectOptions{})
cmd.Perform("create-subscription", &options.SubscriptionCreateOptions{})
cmd.Perform("project-mapping", &options.ClouaccountProjectMappingOptions{})
cmd.Get("change-owner-candidate-domains", &options.SCloudAccountIdOptions{})
cmd.Get("enrollment-accounts", &options.SCloudAccountIdOptions{})

View File

@@ -29,6 +29,7 @@ import (
func init() {
cmd := shell.NewResourceCmd(&modules.Cloudregions).WithKeyword("cloud-region")
cmd.PerformClass("sync-skus", &options.CloudregionSkuSyncOptions{})
cmd.Perform("sync-images", &options.CloudregionIdOptions{})
R(&options.SkuTaskQueryOptions{}, "cloud-region-sync-task-show", "Show details of skus sync tasks", func(s *mcclient.ClientSession, args *options.SkuTaskQueryOptions) error {
params, err := args.Params()
@@ -130,6 +131,24 @@ func init() {
return nil
})
R(&CloudregionCityListOptions{}, "cloud-city-servers", "List cities where cloud region resides", func(s *mcclient.ClientSession, args *CloudregionCityListOptions) error {
params, err := options.StructToParams(args)
if err != nil {
return err
}
results, err := modules.Cloudregions.GetCityServers(s, params)
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult.Data, err = results.GetArray()
if err != nil {
return err
}
printList(&listResult, nil)
return nil
})
type CloudregionCreateOptions struct {
Id string `help:"ID of the region"`
NAME string `help:"Name of the region"`

View File

@@ -15,265 +15,24 @@
package compute
import (
"yunion.io/x/jsonutils"
"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/compute"
)
func init() {
type ElasticipListOptions struct {
Region string `help:"List eips in cloudregion"`
Usable *bool `help:"List all zones that is usable"`
UsableEipForAssociateType string `help:"With associate id filter which eip can associate"`
UsableEipForAssociateId string `help:"With associate type filter which eip can associate"`
options.BaseListOptions
}
R(&ElasticipListOptions{}, "eip-list", "List elastic IPs", func(s *mcclient.ClientSession, opts *ElasticipListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
results, err := modules.Elasticips.List(s, params)
if err != nil {
return err
}
printList(results, modules.Elasticips.GetColumns(s))
return nil
})
type EipCreateOptions struct {
NAME string `help:"name of the EIP"`
Manager string `help:"cloud provider"`
Region string `help:"cloud region in which EIP is allocated"`
Bandwidth int `help:"Bandwidth in Mbps"`
IpAddr string `help:"IP address of the EIP" json:"ip_addr"`
Network string `help:"Network of the EIP"`
BgpType string `help:"BgpType of the EIP" positional:"false"`
ChargeType string `help:"bandwidth charge type" choices:"traffic|bandwidth"`
}
R(&EipCreateOptions{}, "eip-create", "Create an EIP", func(s *mcclient.ClientSession, args *EipCreateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.NAME), "name")
if args.Region != "" {
params.Add(jsonutils.NewString(args.Region), "region")
}
if args.Manager != "" {
params.Add(jsonutils.NewString(args.Manager), "manager")
}
if args.Bandwidth != 0 {
params.Add(jsonutils.NewInt(int64(args.Bandwidth)), "bandwidth")
}
if len(args.ChargeType) > 0 {
params.Add(jsonutils.NewString(args.ChargeType), "charge_type")
}
if len(args.Network) > 0 {
params.Add(jsonutils.NewString(args.Network), "network")
}
if len(args.BgpType) > 0 {
params.Add(jsonutils.NewString(args.BgpType), "bgp_type")
}
if len(args.IpAddr) > 0 {
params.Add(jsonutils.NewString(args.IpAddr), "ip_addr")
}
result, err := modules.Elasticips.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipDeleteOptions struct {
ID string `help:"ID or name of EIP"`
}
R(&EipDeleteOptions{}, "eip-delete", "Delete an EIP", func(s *mcclient.ClientSession, args *EipDeleteOptions) error {
result, err := modules.Elasticips.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipUpdateOptions struct {
ID string `help:"ID or name of EIP"`
Name string `help:"New name of EIP"`
Desc string `help:"New description of EIP"`
EnableAutoDellocate bool `help:"enable automatically dellocate when dissociate from instance"`
DisableAutoDellocate bool `help:"disable automatically dellocate when dissociate from instance"`
}
R(&EipUpdateOptions{}, "eip-update", "Update EIP properties", func(s *mcclient.ClientSession, args *EipUpdateOptions) error {
params := jsonutils.NewDict()
if len(args.Name) > 0 {
params.Add(jsonutils.NewString(args.Name), "name")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if args.EnableAutoDellocate {
params.Add(jsonutils.JSONTrue, "auto_dellocate")
} else if args.DisableAutoDellocate {
params.Add(jsonutils.JSONFalse, "auto_dellocate")
}
result, err := modules.Elasticips.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipAssociateOptions struct {
ID string `help:"ID or name of EIP"`
INSTANCEID string `help:"ID of instance the eip associated with"`
InstanceType string `default:"server" help:"Instance type that the eip associated with, default is server" choices:"server"`
}
R(&EipAssociateOptions{}, "eip-associate", "Associate an EIP to an instance", func(s *mcclient.ClientSession, args *EipAssociateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.InstanceType), "instance_type")
params.Add(jsonutils.NewString(args.INSTANCEID), "instance_id")
result, err := modules.Elasticips.PerformAction(s, args.ID, "associate", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipDissociateOptions struct {
ID string `help:"ID or name of EIP"`
AutoDelete bool `help:"automatically delete the dissociate EIP" json:"auto_delete,omitfalse"`
}
R(&EipDissociateOptions{}, "eip-dissociate", "Dissociate an EIP from an instance", func(s *mcclient.ClientSession, args *EipDissociateOptions) error {
params, err := options.StructToParams(args)
if err != nil {
return err
}
result, err := modules.Elasticips.PerformAction(s, args.ID, "dissociate", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipSingleOptions struct {
ID string `help:"ID or name of EIP"`
}
R(&EipSingleOptions{}, "eip-sync", "Synchronize status of an EIP", func(s *mcclient.ClientSession, args *EipSingleOptions) error {
result, err := modules.Elasticips.PerformAction(s, args.ID, "sync", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&EipSingleOptions{}, "eip-syncstatus", "Synchronize status of an EIP", func(s *mcclient.ClientSession, args *EipSingleOptions) error {
result, err := modules.Elasticips.PerformAction(s, args.ID, "syncstatus", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type ServerCreateEipOptions struct {
ID string `help:"server ID or name"`
BW int `help:"EIP bandwidth in Mbps"`
BgpType string `help:"desired BGP type"`
ChargeType string `help:"bandwidth charge type" choices:"traffic|bandwidth"`
}
R(&ServerCreateEipOptions{}, "server-create-eip", "allocate an EIP and associate EIP to server", func(s *mcclient.ClientSession, args *ServerCreateEipOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewInt(int64(args.BW)), "bandwidth")
if args.BgpType != "" {
params.Add(jsonutils.NewString(args.BgpType), "bgp_type")
}
if len(args.ChargeType) > 0 {
params.Add(jsonutils.NewString(args.ChargeType), "charge_type")
}
result, err := modules.Servers.PerformAction(s, args.ID, "create-eip", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipShowOptions struct {
ID string `help:"ID or name of EIP"`
}
R(&EipShowOptions{}, "eip-show", "show details of an EIP", func(s *mcclient.ClientSession, args *EipShowOptions) error {
result, err := modules.Elasticips.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipChangeBandwidthOptions struct {
ID string `help:"ID or name of the EIP"`
BW int `help:"new bandwidth of EIP"`
}
R(&EipChangeBandwidthOptions{}, "eip-change-bandwidth", "Change maximal bandwidth of EIP", func(s *mcclient.ClientSession, args *EipChangeBandwidthOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewInt(int64(args.BW)), "bandwidth")
result, err := modules.Elasticips.PerformAction(s, args.ID, "change-bandwidth", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipPurgeOptions struct {
ID string `help:"ID or name of EIP"`
}
R(&EipPurgeOptions{}, "eip-purge", "Purge EIP db records", func(s *mcclient.ClientSession, args *EipPurgeOptions) error {
result, err := modules.Elasticips.PerformAction(s, args.ID, "purge", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type EipChangeOwnerOptions struct {
ID string `help:"EIP to change owner"`
PROJECT string `help:"Project ID or change"`
RawId bool `help:"User raw ID, instead of name"`
}
R(&EipChangeOwnerOptions{}, "eip-change-owner", "Change owner porject of a eip", func(s *mcclient.ClientSession, opts *EipChangeOwnerOptions) error {
params := jsonutils.NewDict()
if opts.RawId {
projid, err := modules.Projects.GetId(s, opts.PROJECT, nil)
if err != nil {
return err
}
params.Add(jsonutils.NewString(projid), "tenant")
params.Add(jsonutils.JSONTrue, "raw_id")
} else {
params.Add(jsonutils.NewString(opts.PROJECT), "tenant")
}
srv, err := modules.Elasticips.PerformAction(s, opts.ID, "change-owner", params)
if err != nil {
return err
}
printObject(srv)
return nil
})
cmd := shell.NewResourceCmd(&modules.Elasticips).WithKeyword("eip")
cmd.List(&compute.ElasticipListOptions{})
cmd.Create(&compute.EipCreateOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Update(&compute.EipUpdateOptions{})
cmd.Show(&options.BaseShowOptions{})
cmd.Perform("purge", &options.BaseIdOptions{})
cmd.Perform("associate", &compute.EipAssociateOptions{})
cmd.Perform("dissociate", &compute.EipDissociateOptions{})
cmd.Perform("sync", &options.BaseIdOptions{})
cmd.Perform("syncstatus", &options.BaseIdOptions{})
cmd.Perform("change-bandwidth", &options.BaseIdOptions{})
cmd.Perform("change-owner", &compute.EipChangeOwnerOptions{})
}

View File

@@ -0,0 +1,31 @@
// 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 compute
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/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.FileSystems).WithKeyword("file-system")
cmd.List(&compute.FileSystemListOptions{})
cmd.Show(&options.BaseIdOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Create(&compute.FileSystemCreateOptions{})
cmd.Perform("syncstatus", &compute.FileSystemIdOption{})
}

View File

@@ -60,6 +60,8 @@ func init() {
Sn string `help:"find host by sn"`
OrderByServerCount string `help:"Order by server count" choices:"desc|asc"`
options.BaseListOptions
}
R(&HostListOptions{}, "host-list", "List hosts", func(s *mcclient.ClientSession, opts *HostListOptions) error {

View File

@@ -0,0 +1,31 @@
// 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 compute
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/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.MountTargets).WithKeyword("mount-target")
cmd.Show(&options.BaseIdOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.List(&compute.MountTargetListOptions{})
cmd.Create(&compute.MountTargetCreateOptions{})
cmd.Perform("syncstatus", &options.BaseIdOptions{})
}

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 compute
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/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.NasSkus).WithKeyword("nas-sku")
cmd.List(&compute.NasSkuListOption{})
cmd.Show(&compute.NasSkuIdOption{})
cmd.PerformClass("sync-skus", &options.SkuSyncOptions{})
}

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 compute
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/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.NatSkus).WithKeyword("nat-sku")
cmd.List(&compute.NatSkuListOption{})
cmd.Show(&compute.NatSkuIdOption{})
cmd.PerformClass("sync-skus", &options.SkuSyncOptions{})
}

View File

@@ -20,11 +20,12 @@ import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
R(&options.NatDTableListOptions{}, "dnat-list", "List DNAT entries", func(s *mcclient.ClientSession, opts *options.NatDTableListOptions) error {
R(&compute.NatDTableListOptions{}, "dnat-list", "List DNAT entries", func(s *mcclient.ClientSession, opts *compute.NatDTableListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
@@ -36,7 +37,7 @@ func init() {
printList(result, modules.NatDTable.GetColumns(s))
return nil
})
R(&options.NatDDeleteShowOptions{}, "dnat-delete", "Delete a DNAT", func(s *mcclient.ClientSession, args *options.NatDDeleteShowOptions) error {
R(&compute.NatDDeleteShowOptions{}, "dnat-delete", "Delete a DNAT", func(s *mcclient.ClientSession, args *compute.NatDDeleteShowOptions) error {
results, err := modules.NatDTable.Delete(s, args.ID, nil)
if err != nil {
return err
@@ -44,7 +45,7 @@ func init() {
printObject(results)
return nil
})
R(&options.NatDDeleteShowOptions{}, "dnat-show", "Show a DNAT", func(s *mcclient.ClientSession, args *options.NatDDeleteShowOptions) error {
R(&compute.NatDDeleteShowOptions{}, "dnat-show", "Show a DNAT", func(s *mcclient.ClientSession, args *compute.NatDDeleteShowOptions) error {
results, err := modules.NatDTable.Get(s, args.ID, nil)
if err != nil {
return err
@@ -53,7 +54,7 @@ func init() {
return nil
})
R(&options.NatDCreateOptions{}, "dnat-create", "Create a DNAT", func(s *mcclient.ClientSession, args *options.NatDCreateOptions) error {
R(&compute.NatDCreateOptions{}, "dnat-create", "Create a DNAT", func(s *mcclient.ClientSession, args *compute.NatDCreateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.NAME), "name")
params.Add(jsonutils.NewString(args.NATGATEWAYID), "natgateway_id")

View File

@@ -15,67 +15,20 @@
package compute
import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/cmd/climc/shell"
api "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.NatGateways).WithKeyword("nat")
R(&options.NatGatewayListOptions{}, "natgateway-list", "List NAT gateways", func(s *mcclient.ClientSession, opts *options.NatGatewayListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.NatGateways.List(s, params)
if err != nil {
return err
}
printList(result, modules.NatGateways.GetColumns(s))
return nil
})
R(&options.NatGatewayIdOptions{}, "natgateway-show", "Show a NAT gateway", func(s *mcclient.ClientSession, args *options.NatGatewayIdOptions) error {
results, err := modules.NatGateways.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(results)
return nil
})
R(&options.NatGatewayIdOptions{}, "natgateway-syncstatus", "Sync NAT gateway status", func(s *mcclient.ClientSession, args *options.NatGatewayIdOptions) error {
result, err := modules.NatGateways.PerformAction(s, args.ID, "syncstatus", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type NatGatewayListEipOptions struct {
ID string `help:"ID"`
}
R(&NatGatewayListEipOptions{}, "natgateway-dnat-resources", "list resources in dnats of natgateway",
func(s *mcclient.ClientSession, opts *NatGatewayListEipOptions) error {
ret, err := modules.NatGateways.PerformAction(s, opts.ID, "dnat-resources", nil)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&NatGatewayListEipOptions{}, "natgateway-snat-resources", "list resources in snats of natgateway",
func(s *mcclient.ClientSession, opts *NatGatewayListEipOptions) error {
ret, err := modules.NatGateways.PerformAction(s, opts.ID, "snat-resources", nil)
if err != nil {
return err
}
printObject(ret)
return nil
})
cmd.List(&compute.NatGatewayListOptions{})
cmd.Create(&api.NatgatewayCreateInput{})
cmd.Show(&compute.NatGatewayIdOptions{})
cmd.Delete(&compute.NatGatewayDeleteOption{})
cmd.Perform("syncstauts", &compute.NatGatewayIdOptions{})
cmd.Perform("cancel-expire", &compute.NatGatewayIdOptions{})
cmd.Perform("postpaid-expire", &compute.NatPostpaidExpireOptions{})
}

View File

@@ -20,11 +20,12 @@ import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
R(&options.NatSTableListOptions{}, "snat-list", "List SNAT entries", func(s *mcclient.ClientSession, opts *options.NatSTableListOptions) error {
R(&compute.NatSTableListOptions{}, "snat-list", "List SNAT entries", func(s *mcclient.ClientSession, opts *compute.NatSTableListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
@@ -36,7 +37,7 @@ func init() {
printList(result, modules.NatSTable.GetColumns(s))
return nil
})
R(&options.NatSDeleteShowOptions{}, "snat-delete", "Delete a SNAT", func(s *mcclient.ClientSession, args *options.NatSDeleteShowOptions) error {
R(&compute.NatSDeleteShowOptions{}, "snat-delete", "Delete a SNAT", func(s *mcclient.ClientSession, args *compute.NatSDeleteShowOptions) error {
results, err := modules.NatSTable.Delete(s, args.ID, nil)
if err != nil {
return err
@@ -45,7 +46,7 @@ func init() {
return nil
})
R(&options.NatSDeleteShowOptions{}, "snat-show", "Show a SNAT", func(s *mcclient.ClientSession, args *options.NatSDeleteShowOptions) error {
R(&compute.NatSDeleteShowOptions{}, "snat-show", "Show a SNAT", func(s *mcclient.ClientSession, args *compute.NatSDeleteShowOptions) error {
results, err := modules.NatSTable.Get(s, args.ID, nil)
if err != nil {
return err
@@ -54,7 +55,7 @@ func init() {
return nil
})
R(&options.NatSCreateOptions{}, "snat-create", "Create a SNAT", func(s *mcclient.ClientSession, args *options.NatSCreateOptions) error {
R(&compute.NatSCreateOptions{}, "snat-create", "Create a SNAT", func(s *mcclient.ClientSession, args *compute.NatSCreateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.NAME), "name")
params.Add(jsonutils.NewString(args.NATGATEWAYID), "natgateway_id")

View File

@@ -0,0 +1,33 @@
// 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 compute
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/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.ProjectMappings)
cmd.List(&compute.ProjectMappingListOptions{})
cmd.Update(&compute.ProjectMappingUpdateOption{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Show(&options.BaseIdOptions{})
cmd.Create(&compute.ProjectMappingCreateOption{})
cmd.Perform("enable", &options.BaseIdOptions{})
cmd.Perform("disable", &options.BaseIdOptions{})
}

View File

@@ -15,48 +15,16 @@
package compute
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/compute"
)
func init() {
type SecGroupCacheListOptions struct {
options.BaseListOptions
Secgroup string `help:"Secgroup ID or Name"`
}
R(&SecGroupCacheListOptions{}, "secgroup-cache-list", "List security group caches", func(s *mcclient.ClientSession, args *SecGroupCacheListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.SecGroupCaches.List(s, params)
if err != nil {
return err
}
printList(result, modules.SecGroupCaches.GetColumns(s))
return nil
})
type SecGroupCacheIdOptions struct {
ID string `help:"ID or Name or secgroup cache"`
}
R(&SecGroupCacheIdOptions{}, "secgroup-cache-show", "Show security group cache", func(s *mcclient.ClientSession, args *SecGroupCacheIdOptions) error {
result, err := modules.SecGroupCaches.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&SecGroupCacheIdOptions{}, "secgroup-cache-delete", "Delete security group cache", func(s *mcclient.ClientSession, args *SecGroupCacheIdOptions) error {
result, err := modules.SecGroupCaches.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.SecGroupCaches).WithKeyword("secgroup-cache")
cmd.List(&compute.SecGroupCacheListOptions{})
cmd.Show(&compute.SecGroupCacheIdOptions{})
cmd.Delete(&compute.SecGroupCacheIdOptions{})
cmd.Perform("syncstatus", &compute.SecGroupCacheIdOptions{})
cmd.Get("references", &compute.SecGroupCacheIdOptions{})
}

View File

@@ -36,4 +36,5 @@ func init() {
cmd.Perform("purge", &options.SecgroupIdOptions{})
cmd.Perform("change-owner", &options.SecgroupChangeOwnerOptions{})
cmd.Perform("import-rules", &options.SecgroupImportRulesOptions{})
cmd.Get("references", &options.SecgroupIdOptions{})
}

View File

@@ -0,0 +1,28 @@
// 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 compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Servers)
cmd.Perform("open-forward", &options.ServerOpenForwardOptions{})
cmd.Perform("close-forward", &options.ServerCloseForwardOptions{})
cmd.Perform("list-forward", &options.ServerListForwardOptions{})
}

View File

@@ -85,13 +85,16 @@ func init() {
cmd.Perform("set-auto-renew", new(options.ServerSetAutoRenew))
cmd.Perform("save-template", new(options.ServerSaveImageOptions))
cmd.Perform("remote-update", new(options.ServerRemoteUpdateOptions))
cmd.Perform("migrate-network", &options.ServerMigrateNetworkOptions{})
cmd.Perform("create-eip", &options.ServerCreateEipOptions{})
cmd.Perform("make-sshable", &options.ServerMakeSshableOptions{})
cmd.Get("vnc", new(options.ServerIdOptions))
cmd.Get("desc", new(options.ServerIdOptions))
cmd.Get("status", new(options.ServerIdOptions))
cmd.Get("iso", new(options.ServerIdOptions))
cmd.Get("create-params", new(options.ServerIdOptions))
cmd.Get("sshable", new(options.ServerIdOptions))
cmd.Get("make-sshable-cmd", new(options.ServerIdOptions))
cmd.Get("change-owner-candidate-domains", new(options.ServerChangeOwnerCandidateDomainsOptions))
type ServerTaskShowOptions struct {
@@ -176,19 +179,6 @@ func init() {
return nil
})
R(&options.ResourceMetadataOptions{}, "server-set-metadata", "Set raw metadata of a server", func(s *mcclient.ClientSession, opts *options.ResourceMetadataOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
result, err := modules.Servers.PerformAction(s, opts.ID, "metadata", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ServerCreateFromInstanceSnapshot{}, "server-create-from-instance-snapshot", "server create from instance snapshot",
func(s *mcclient.ClientSession, opts *options.ServerCreateFromInstanceSnapshot) error {
params := &compute.ServerCreateInput{}

View File

@@ -15,268 +15,27 @@
package compute
import (
"fmt"
"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/compute"
)
func init() {
type StorageListOptions struct {
options.BaseListOptions
Share *bool `help:"Share storage list"`
Local *bool `help:"Local storage list"`
Usable *bool `help:"Usable storage list"`
Zone string `help:"List storages in zone" json:"-"`
Region string `help:"List storages in region"`
Schedtag string `help:"filter storage by schedtag"`
HostSchedtagId string `help:"filter storage by host schedtag"`
ImageId string `help:"filter storage by image"`
}
R(&StorageListOptions{}, "storage-list", "List storages", func(s *mcclient.ClientSession, opts *StorageListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
var result *modulebase.ListResult
if len(opts.Zone) > 0 {
result, err = modules.Storages.ListInContext(s, params, &modules.Zones, opts.Zone)
} else {
result, err = modules.Storages.List(s, params)
}
if err != nil {
return err
}
printList(result, modules.Storages.GetColumns(s))
return nil
})
type StorageUpdateOptions struct {
ID string `help:"ID or Name of storage to update"`
Name string `help:"New Name of storage"`
Desc string `help:"Description"`
CommitBound float64 `help:"Upper bound of storage overcommit rate" json:"cmtbound"`
MediumType string `help:"Medium type" choices:"ssd|rotate"`
RbdRadosMonOpTimeout int64 `help:"ceph rados_mon_op_timeout"`
RbdRadosOsdOpTimeout int64 `help:"ceph rados_osd_op_timeout"`
RbdClientMountTimeout int64 `help:"ceph client_mount_timeout"`
RbdKey string `help:"ceph rbd key"`
Reserved string `help:"Reserved storage space"`
Capacity int `help:"Capacity for storage"`
}
R(&StorageUpdateOptions{}, "storage-update", "Update a storage", func(s *mcclient.ClientSession, args *StorageUpdateOptions) error {
params, err := options.StructToParams(args)
if err != nil {
return err
}
result, err := modules.Storages.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type StorageCreateOptions struct {
NAME string `help:"Name of the Storage"`
ZONE string `help:"Zone id of storage"`
Capacity int64 `help:"Capacity of the Storage"`
MediumType string `help:"Medium type" choices:"ssd|rotate"`
StorageType string `help:"Storage type" choices:"local|nas|vsan|rbd|nfs|gpfs|baremetal"`
RbdMonHost string `help:"Ceph mon_host config"`
RbdRadosMonOpTimeout int64 `help:"ceph rados_mon_op_timeout"`
RbdRadosOsdOpTimeout int64 `help:"ceph rados_osd_op_timeout"`
RbdClientMountTimeout int64 `help:"ceph client_mount_timeout"`
RbdKey string `help:"Ceph key config"`
RbdPool string `help:"Ceph Pool Name"`
NfsHost string `help:"NFS host"`
NfsSharedDir string `help:"NFS shared dir"`
}
R(&StorageCreateOptions{}, "storage-create", "Create a Storage", func(s *mcclient.ClientSession, args *StorageCreateOptions) error {
params, err := options.StructToParams(args)
if err != nil {
return err
}
if args.StorageType == "rbd" {
if args.RbdMonHost == "" || args.RbdKey == "" || args.RbdPool == "" {
return fmt.Errorf("Not enough arguments, missing mon_host、key or pool")
}
} else if args.StorageType == "nfs" {
if len(args.NfsHost) == 0 || len(args.NfsSharedDir) == 0 {
return fmt.Errorf("Storage type nfs missing conf host or shared dir")
}
}
storage, err := modules.Storages.Create(s, params)
if err != nil {
return err
}
printObject(storage)
return nil
})
type StorageShowOptions struct {
ID string `help:"ID or Name of the storage to show"`
}
R(&StorageShowOptions{}, "storage-show", "Show storage details", func(s *mcclient.ClientSession, args *StorageShowOptions) error {
result, err := modules.Storages.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&StorageShowOptions{}, "storage-delete", "Delete a storage", func(s *mcclient.ClientSession, args *StorageShowOptions) error {
result, err := modules.Storages.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&StorageShowOptions{}, "storage-enable", "Enable a storage", func(s *mcclient.ClientSession, args *StorageShowOptions) error {
result, err := modules.Storages.PerformAction(s, args.ID, "enable", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&StorageShowOptions{}, "storage-disable", "Disable a storage", func(s *mcclient.ClientSession, args *StorageShowOptions) error {
result, err := modules.Storages.PerformAction(s, args.ID, "disable", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&StorageShowOptions{}, "storage-online", "Online a storage", func(s *mcclient.ClientSession, args *StorageShowOptions) error {
result, err := modules.Storages.PerformAction(s, args.ID, "online", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&StorageShowOptions{}, "storage-offline", "Offline a storage", func(s *mcclient.ClientSession, args *StorageShowOptions) error {
result, err := modules.Storages.PerformAction(s, args.ID, "offline", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type StorageCacheImageActionOptions struct {
ID string `help:"ID or name of storage"`
IMAGE string `help:"ID or name of image"`
Force bool `help:"Force refresh cache, even if the image exists in cache"`
Format string `help:"Image force" choices:"iso|vmdk|qcow2|vhd"`
}
R(&StorageCacheImageActionOptions{}, "storage-cache-image", "Ask a storage to cache a image", func(s *mcclient.ClientSession, args *StorageCacheImageActionOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.IMAGE), "image")
if args.Force {
params.Add(jsonutils.JSONTrue, "is_force")
}
if len(args.Format) > 0 {
params.Add(jsonutils.NewString(args.Format), "format")
}
storage, err := modules.Storages.PerformAction(s, args.ID, "cache-image", params)
if err != nil {
return err
}
printObject(storage)
return nil
})
type StorageUncacheImageActionOptions struct {
ID string `help:"ID or name of storage"`
IMAGE string `help:"ID or name of image"`
Force bool `help:"Force uncache, even if the image exists in cache"`
}
R(&StorageUncacheImageActionOptions{}, "storage-uncache-image", "Ask a storage to remove image from its cache", func(s *mcclient.ClientSession, args *StorageUncacheImageActionOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.IMAGE), "image")
if args.Force {
params.Add(jsonutils.JSONTrue, "is_force")
}
storage, err := modules.Storages.PerformAction(s, args.ID, "uncache-image", params)
if err != nil {
return err
}
printObject(storage)
return nil
})
type StorageChangeOwnerOptions struct {
ID string `help:"ID or name of storage" json:"-"`
ProjectDomain string `json:"project_domain" help:"target domain"`
}
R(&StorageChangeOwnerOptions{}, "storage-change-owner", "Change owner domain of storage", func(s *mcclient.ClientSession, args *StorageChangeOwnerOptions) error {
if len(args.ProjectDomain) == 0 {
return fmt.Errorf("empty project_domain")
}
params := jsonutils.Marshal(args)
ret, err := modules.Storages.PerformAction(s, args.ID, "change-owner", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
type StorageForceDetachHost struct {
ID string `help:"ID or name of storage" json:"-"`
Host string `help:"ID or name of host"`
}
R(&StorageForceDetachHost{}, "storage-public", "Force detach host", func(s *mcclient.ClientSession, args *StorageForceDetachHost) error {
params := jsonutils.Marshal(args)
result, err := modules.Storages.PerformAction(s, args.ID, "force-detach-host", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type StoragePublicOptions struct {
ID string `help:"ID or name of storage" json:"-"`
Scope string `help:"sharing scope" choices:"system|domain"`
SharedDomains []string `help:"share to domains"`
}
R(&StoragePublicOptions{}, "storage-public", "Make a storage public", func(s *mcclient.ClientSession, args *StoragePublicOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.Storages.PerformAction(s, args.ID, "public", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type StoragePrivateOptions struct {
ID string `help:"ID or name of storage" json:"-"`
}
R(&StoragePrivateOptions{}, "storage-private", "Make a storage private", func(s *mcclient.ClientSession, args *StoragePrivateOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.Storages.PerformAction(s, args.ID, "private", params)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.Storages).WithContextManager(&modules.Zones)
cmd.List(&compute.StorageListOptions{})
cmd.Update(&compute.StorageUpdateOptions{})
cmd.Create(&compute.StorageCreateOptions{})
cmd.Show(&options.BaseShowOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Perform("enable", &options.BaseIdOptions{})
cmd.Perform("disable", &options.BaseIdOptions{})
cmd.Perform("online", &options.BaseIdOptions{})
cmd.Perform("offline", &options.BaseIdOptions{})
cmd.Perform("cache-image", &compute.StorageCacheImageActionOptions{})
cmd.Perform("uncache-image", &compute.StorageUncacheImageActionOptions{})
cmd.Perform("change-owner", &options.ChangeOwnerOptions{})
cmd.Perform("force-detach-host", &compute.StorageForceDetachHost{})
cmd.Perform("public", &options.BasePublicOptions{})
cmd.Perform("private", &options.BaseIdOptions{})
}

View File

@@ -24,7 +24,7 @@ import (
webconsole_api "yunion.io/x/onecloud/pkg/apis/webconsole"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/modules/webconsole"
o "yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/webconsole/command"
)
@@ -70,7 +70,7 @@ func init() {
if err != nil {
return err
}
ret, err := modules.WebConsole.DoK8sShellConnect(s, args.NAME, params)
ret, err := webconsole.WebConsole.DoK8sShellConnect(s, args.NAME, params)
if err != nil {
return err
}
@@ -83,7 +83,7 @@ func init() {
if err != nil {
return err
}
ret, err := modules.WebConsole.DoK8sLogConnect(s, args.NAME, params)
ret, err := webconsole.WebConsole.DoK8sLogConnect(s, args.NAME, params)
if err != nil {
return err
}
@@ -92,7 +92,7 @@ func init() {
})
R(&o.WebConsoleBaremetalOptions{}, "webconsole-baremetal", "Connect baremetal host webconsole", func(s *mcclient.ClientSession, args *o.WebConsoleBaremetalOptions) error {
ret, err := modules.WebConsole.DoBaremetalConnect(s, args.ID, nil)
ret, err := webconsole.WebConsole.DoBaremetalConnect(s, args.ID, nil)
if err != nil {
return err
}
@@ -105,7 +105,7 @@ func init() {
if err != nil {
return err
}
ret, err := modules.WebConsole.DoSshConnect(s, args.IP, params)
ret, err := webconsole.WebConsole.DoSshConnect(s, args.IP, params)
if err != nil {
return err
}
@@ -114,7 +114,7 @@ func init() {
})
R(&o.WebConsoleServerOptions{}, "webconsole-server", "Connect server remote graphic console", func(s *mcclient.ClientSession, args *o.WebConsoleServerOptions) error {
ret, err := modules.WebConsole.DoServerConnect(s, args.ID, nil)
ret, err := webconsole.WebConsole.DoServerConnect(s, args.ID, nil)
if err != nil {
return err
}

View File

@@ -15,160 +15,21 @@
package compute
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"
)
func init() {
type WireListOptions struct {
options.BaseListOptions
Bandwidth *int `help:"List wires by bandwidth"`
Region string `help:"List wires in region"`
Zone string `help:"list wires in zone" json:"-"`
Vpc string `help:"List wires in vpc"`
Host string `help:"List wires attached to a host"`
}
R(&WireListOptions{}, "wire-list", "List wires", func(s *mcclient.ClientSession, opts *WireListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
var result *modulebase.ListResult
if len(opts.Zone) > 0 {
result, err = modules.Wires.ListInContext(s, params, &modules.Zones, opts.Zone)
} else {
result, err = modules.Wires.List(s, params)
}
if err != nil {
return err
}
printList(result, modules.Wires.GetColumns(s))
return nil
})
type WireUpdateOptions struct {
ID string `help:"ID or Name of zone to update"`
Name string `help:"Name of wire"`
Desc string `metavar:"<DESCRIPTION>" help:"Description"`
Bw int64 `help:"Bandwidth in mbps"`
Mtu int64 `help:"mtu in bytes"`
}
R(&WireUpdateOptions{}, "wire-update", "Update wire", func(s *mcclient.ClientSession, args *WireUpdateOptions) error {
params := jsonutils.NewDict()
if len(args.Name) > 0 {
params.Add(jsonutils.NewString(args.Name), "name")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if args.Bw > 0 {
params.Add(jsonutils.NewInt(args.Bw), "bandwidth")
}
if args.Mtu > 0 {
params.Add(jsonutils.NewInt(args.Mtu), "mtu")
}
if params.Size() == 0 {
return InvalidUpdateError()
}
result, err := modules.Wires.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type WireCreateOptions struct {
ZONE string `help:"Zone ID or Name"`
Vpc string `help:"VPC ID or Name" default:"default"`
NAME string `help:"Name of wire"`
BW int64 `help:"Bandwidth in mbps"`
Mtu int64 `help:"mtu in bytes"`
Desc string `metavar:"<DESCRIPTION>" help:"Description"`
}
R(&WireCreateOptions{}, "wire-create", "Create a wire", func(s *mcclient.ClientSession, args *WireCreateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.NAME), "name")
params.Add(jsonutils.NewInt(args.BW), "bandwidth")
if args.Mtu > 0 {
params.Add(jsonutils.NewInt(args.Mtu), "mtu")
}
if len(args.Vpc) > 0 {
params.Add(jsonutils.NewString(args.Vpc), "vpc")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
result, err := modules.Wires.CreateInContext(s, params, &modules.Zones, args.ZONE)
if err != nil {
return err
}
printObject(result)
return nil
})
type WireShowOptions struct {
ID string `help:"ID or Name of the wire to show"`
}
R(&WireShowOptions{}, "wire-show", "Show wire details", func(s *mcclient.ClientSession, args *WireShowOptions) error {
result, err := modules.Wires.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&WireShowOptions{}, "wire-delete", "Delete wire", func(s *mcclient.ClientSession, args *WireShowOptions) error {
result, err := modules.Wires.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type WirePublicOptions struct {
ID string `help:"ID or name of wire" json:"-"`
Scope string `help:"sharing scope" choices:"system|domain"`
SharedDomains []string `help:"share to domains"`
}
R(&WirePublicOptions{}, "wire-public", "Make wire public", func(s *mcclient.ClientSession, args *WirePublicOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.Wires.PerformAction(s, args.ID, "public", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type WirePrivateOptions struct {
ID string `help:"ID or name of wire" json:"-"`
}
R(&WirePrivateOptions{}, "wire-private", "Make wire private", func(s *mcclient.ClientSession, args *WirePrivateOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.Wires.PerformAction(s, args.ID, "private", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&WireShowOptions{}, "wire-change-owner-candidate-domains", "Show candiate domains of a wire for changing owner", func(s *mcclient.ClientSession, args *WireShowOptions) error {
result, err := modules.Wires.GetSpecific(s, args.ID, "change-owner-candidate-domains", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.Wires).WithKeyword("wire")
cmd.List(new(options.WireListOptions))
cmd.Create(new(options.WireCreateOptions))
cmd.Update(new(options.WireUpdateOptions))
cmd.Show(new(options.WireOptions))
cmd.Delete(new(options.WireOptions))
cmd.Perform("public", new(options.WirePublicOptions))
cmd.Perform("private", new(options.WireOptions))
cmd.Perform("change-owner-candidate-domains", new(options.WireOptions))
cmd.PerformWithKeyword("merge", "merge-from", new(options.WireMergeOptions))
cmd.Perform("merge-network", new(options.WireOptions))
}

View File

@@ -0,0 +1,27 @@
// 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 devtool
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (
R = shell.R
printList = printutils.PrintJSONList
printObject = printutils.PrintJSONObject
printBatchResults = printutils.PrintJSONBatchResults
)

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package ansible
package devtool
import (
"fmt"

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package ansible
package devtool
import (
"yunion.io/x/jsonutils"

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 devtool
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
options "yunion.io/x/onecloud/pkg/mcclient/options/devtool"
)
func init() {
cmd := shell.NewResourceCmd(&modules.DevToolScripts).WithKeyword("devtool-script")
cmd.List(new(options.ScriptListOptions))
cmd.Perform("apply", new(options.ScriptApplyOptions))
cmd1 := shell.NewResourceCmd(&modules.DevToolScriptApplyRecords).WithKeyword("devtool-script-record")
cmd1.List(new(options.ScriptApplyRecordListOptions))
}

View File

@@ -128,7 +128,7 @@ func (cmd ResourceCmd) RunWithDesc(action, desc string, args interface{}, callba
if ok {
desc = descArgs.Description()
}
R(args, fmt.Sprintf("%s%s-%s", prefix, cmd.keyword, action), desc, callback)
R(args, fmt.Sprintf("%s%s-%s", prefix, strings.ReplaceAll(cmd.keyword, "_", "-"), action), desc, callback)
}
func (cmd ResourceCmd) Run(action string, args interface{}, callback interface{}) {

View File

@@ -24,26 +24,79 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/onecloud/cmd/climc/shell"
api "yunion.io/x/onecloud/pkg/apis/identity"
"yunion.io/x/onecloud/pkg/cloudcommon/consts"
"yunion.io/x/onecloud/pkg/cloudcommon/policy"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/auth"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options/identity"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/util/fileutils2"
"yunion.io/x/onecloud/pkg/util/rbacutils"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func createPolicy(s *mcclient.ClientSession, name string, policy string, domain string, enabled bool, disabled bool, desc string, scope string, isSystem *bool) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(name), "type")
params.Add(jsonutils.NewString(policy), "policy")
if len(domain) > 0 {
params.Add(jsonutils.NewString(domain), "project_domain_id")
}
if enabled {
params.Add(jsonutils.JSONTrue, "enabled")
} else if disabled {
params.Add(jsonutils.JSONFalse, "enabled")
}
if len(desc) > 0 {
params.Add(jsonutils.NewString(desc), "description")
}
if len(scope) > 0 {
params.Add(jsonutils.NewString(scope), "scope")
}
if isSystem != nil {
if *isSystem {
params.Add(jsonutils.JSONTrue, "is_system")
} else {
params.Add(jsonutils.JSONFalse, "is_system")
}
}
result, err := modules.Policies.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
}
func init() {
cmd := shell.NewResourceCmd(&modules.Policies)
cmd.List(&identity.PolicyListOptions{})
type PolicyListOptions struct {
options.BaseListOptions
Type string `help:"filter by type"`
IsSystem *bool `help:"filter by is_system" negative:"is_no_system"`
Format string `help:"policy format, default to yaml" default:"yaml" choices:"yaml|json"`
OrderByDomain string `help:"order by domain name" choices:"asc|desc"`
}
R(&PolicyListOptions{}, "policy-list", "List all policies", func(s *mcclient.ClientSession, args *PolicyListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.Policies.List(s, params)
if err != nil {
return err
}
printList(result, modules.Policies.GetColumns(s))
return nil
})
type PolicyCreateOptions struct {
Domain string `help:"domain of the policy"`
TYPE string `help:"type of the policy"`
NAME string `help:"name of the policy"`
FILE string `help:"path to policy file"`
Enabled bool `help:"create policy enabled"`
Disabled bool `help:"create policy disabled"`
@@ -57,39 +110,25 @@ func init() {
return err
}
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.TYPE), "type")
params.Add(jsonutils.NewString(string(policyBytes)), "policy")
if len(args.Domain) > 0 {
params.Add(jsonutils.NewString(args.Domain), "domain")
}
if args.Enabled {
params.Add(jsonutils.JSONTrue, "enabled")
} else if args.Disabled {
params.Add(jsonutils.JSONFalse, "enabled")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if len(args.Scope) > 0 {
params.Add(jsonutils.NewString(args.Scope), "scope")
}
if args.IsSystem != nil {
if *args.IsSystem {
params.Add(jsonutils.JSONTrue, "is_system")
} else {
params.Add(jsonutils.JSONFalse, "is_system")
}
}
return createPolicy(s, args.NAME, string(policyBytes), args.Domain, args.Enabled, args.Disabled, args.Desc, args.Scope, args.IsSystem)
})
result, err := modules.Policies.Create(s, params)
type PolicyCloneOptions struct {
Domain string `help:"domain of the policy"`
OLD string `help:"name or id of the old policy"`
NAME string `help:"name of the policy"`
}
R(&PolicyCloneOptions{}, "policy-clone", "Clone a policy", func(s *mcclient.ClientSession, args *PolicyCloneOptions) error {
old, err := modules.Policies.Get(s, args.OLD, nil)
if err != nil {
return err
}
printObject(result)
return nil
policy, _ := old.GetString("policy")
enabled, _ := old.Bool("enabled")
desc, _ := old.GetString("description")
scope, _ := old.GetString("scope")
isSystem, _ := old.Bool("is_system")
return createPolicy(s, args.NAME, policy, args.Domain, enabled, !enabled, desc, scope, &isSystem)
})
type PolicyPatchOptions struct {

View File

@@ -43,7 +43,8 @@ func init() {
Projects []string `help:"fitler by project id or name"`
Domains []string `help:"fitler by domain id or name"`
ProjectDomains []string `help:"filter by project's domain id or name"`
ProjectDomainId string
ProjectDomains []string `help:"filter by project's domain id or name"`
}
R(&RoleAssignmentsOptions{}, "role-assignments", "List all role assignments", func(s *mcclient.ClientSession, args *RoleAssignmentsOptions) error {
query := jsonutils.NewDict()
@@ -71,6 +72,9 @@ func init() {
}
query.Add(jsonutils.NewString(pid), "scope", "project", "id")
}
if len(args.ProjectDomainId) > 0 {
query.Add(jsonutils.NewString(args.ProjectDomainId), "project_domain_id")
}
if len(args.User) > 0 {
uid, err := getUserId(s, args.User, args.UserDomain)
if err != nil {

View File

@@ -17,21 +17,100 @@ package identity
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/identity"
)
func init() {
cmd := shell.NewResourceCmd(&modules.RolesV3)
cmd.List(&identity.RoleListOptions{})
cmd.Show(&identity.RoleDetailOptions{})
cmd.Delete(&identity.RoleDetailOptions{})
cmd.Create(&identity.RoleCreateOptions{})
cmd.Perform("public", &options.BaseIdOptions{})
cmd.Perform("private", &options.BaseIdOptions{})
type RoleListOptions struct {
options.BaseListOptions
OrderByDomain string `help:"order by domain name" choices:"asc|desc"`
}
R(&RoleListOptions{}, "role-list", "List keystone Roles", func(s *mcclient.ClientSession, args *RoleListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.RolesV3.List(s, params)
if err != nil {
return err
}
printList(result, modules.RolesV3.GetColumns(s))
return nil
})
type RoleDetailOptions struct {
ID string `help:"ID or name of role"`
Domain string `help:"Domain"`
}
R(&RoleDetailOptions{}, "role-show", "Show details of a role", func(s *mcclient.ClientSession, args *RoleDetailOptions) error {
query := jsonutils.NewDict()
if len(args.Domain) > 0 {
domainId, err := modules.Domains.GetId(s, args.Domain, nil)
if err != nil {
return err
}
query.Add(jsonutils.NewString(domainId), "domain_id")
}
role, err := modules.RolesV3.Get(s, args.ID, query)
if err != nil {
return err
}
printObject(role)
return nil
})
R(&RoleDetailOptions{}, "role-delete", "Delete a role", func(s *mcclient.ClientSession, args *RoleDetailOptions) error {
query := jsonutils.NewDict()
if len(args.Domain) > 0 {
domainId, err := modules.Domains.GetId(s, args.Domain, nil)
if err != nil {
return err
}
query.Add(jsonutils.NewString(domainId), "domain_id")
}
rid, err := modules.RolesV3.GetId(s, args.ID, query)
if err != nil {
return err
}
role, err := modules.RolesV3.Delete(s, rid, nil)
if err != nil {
return err
}
printObject(role)
return nil
})
type RoleCreateOptions struct {
NAME string `help:"Role name"`
Domain string `help:"Domain"`
Desc string `help:"Description"`
PublicScope string `help:"public scope" choices:"none|system"`
}
R(&RoleCreateOptions{}, "role-create", "Create a new role", func(s *mcclient.ClientSession, args *RoleCreateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.NAME), "name")
if len(args.Domain) > 0 {
domainId, err := modules.Domains.GetId(s, args.Domain, nil)
if err != nil {
return err
}
params.Add(jsonutils.NewString(domainId), "domain_id")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if len(args.PublicScope) > 0 {
params.Add(jsonutils.NewString(args.PublicScope), "public_scope")
}
role, err := modules.RolesV3.Create(s, params)
if err != nil {
return err
}
printObject(role)
return nil
})
type RoleUpdateOptions struct {
ID string `help:"Role ID or Name"`
@@ -66,4 +145,25 @@ func init() {
printObject(role)
return nil
})
type RolePerformOptions struct {
ID string `help:"ID of role to update"`
}
R(&RolePerformOptions{}, "role-public", "Mark a role public", func(s *mcclient.ClientSession, args *RolePerformOptions) error {
result, err := modules.RolesV3.PerformAction(s, args.ID, "public", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&RolePerformOptions{}, "role-private", "Mark a role private", func(s *mcclient.ClientSession, args *RolePerformOptions) error {
result, err := modules.RolesV3.PerformAction(s, args.ID, "private", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -16,12 +16,18 @@ package k8s
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
o "yunion.io/x/onecloud/pkg/mcclient/options/k8s"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func initKubeCluster() {
@@ -33,9 +39,10 @@ func initKubeCluster() {
cmd.ShowEvent()
cmd.List(new(o.ClusterListOptions))
cmd.Show(new(o.IdentOptions))
cmd.Create(new(o.KubeClusterCreateOptions))
cmd.Create(new(o.K8SClusterCreateOptions))
cmd.Perform("sync", new(o.ClusterSyncOptions))
cmd.Perform("syncstatus", new(o.IdentOptions))
cmd.Perform("deploy", new(o.IdentOptions))
cmd.Get("components-status", new(o.IdentOptions))
cmd.Get("api-resources", new(o.IdentOptions))
cmd.Get("cluster-users", new(o.IdentOptions))
@@ -77,8 +84,12 @@ func initKubeCluster() {
return nil
})
R(&o.IdentOptions{}, cmdN("addons"), "Get addon manifest of a cluster", func(s *mcclient.ClientSession, args *o.IdentOptions) error {
ret, err := k8s.KubeClusters.GetSpecific(s, args.ID, "addons", nil)
R(&o.ClusterGetAddonsOpt{}, cmdN("addons"), "Get addon manifest of a cluster", func(s *mcclient.ClientSession, args *o.ClusterGetAddonsOpt) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.KubeClusters.GetSpecific(s, args.ID, "addons", params)
if err != nil {
return err
}
@@ -130,40 +141,24 @@ func initKubeCluster() {
return nil
})
R(&o.ClusterComponentTypeOptions{}, cmdN("component-setting"), "Get cluster component setting", func(s *mcclient.ClientSession, args *o.ClusterComponentTypeOptions) error {
getComponentSetting := func(s *mcclient.ClientSession, args *o.ClusterComponentType, asHelmValues bool) (jsonutils.JSONObject, error) {
q := jsonutils.NewDict()
q.Add(jsonutils.NewString(args.TYPE), "type")
ret, err := k8s.KubeClusters.GetSpecific(s, args.ID, "component-setting", q)
if err != nil {
return err
}
printObject(ret)
return nil
})
q.Add(jsonutils.JSONTrue, "system")
q.Add(jsonutils.NewBool(asHelmValues), "as_helm_values")
return k8s.KubeClusters.GetSpecific(s, args.ID, "component-setting", q)
}
R(&o.ClusterEnableComponentCephCSIOpt{}, cmdN("component-enable-ceph-csi"), "Enable cluster ceph csi component", func(s *mcclient.ClientSession, args *o.ClusterEnableComponentCephCSIOpt) error {
params, err := args.Params()
R(&o.ClusterComponentTypeOptions{}, cmdN("component-setting"), "Get cluster component setting", func(s *mcclient.ClientSession, args *o.ClusterComponentTypeOptions) error {
ret, err := getComponentSetting(s, &args.ClusterComponentType, args.AsHelmValues)
if err != nil {
return err
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "enable-component", params)
if err != nil {
return err
if args.AsHelmValues {
printObjectYAML(ret)
} else {
printObject(ret)
}
printObject(ret)
return nil
})
R(&o.ClusterEnableComponentMonitorOpt{}, cmdN("component-enable-monitor"), "Enable cluster monitor component", func(s *mcclient.ClientSession, args *o.ClusterEnableComponentMonitorOpt) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "enable-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
@@ -206,6 +201,32 @@ func initKubeCluster() {
return nil
})
R(&o.ClusterEnableComponentMinioOpt{}, cmdN("component-enable-minio"), "Enable cluster minio component", func(s *mcclient.ClientSession, args *o.ClusterEnableComponentMinioOpt) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "enable-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterEnableComponentThanosOpt{}, cmdN("component-enable-thanos"), "Enable cluster thanos component", func(s *mcclient.ClientSession, args *o.ClusterEnableComponentThanosOpt) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "enable-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterDisableComponent{}, cmdN("component-disable"), "Enable cluster component", func(s *mcclient.ClientSession, args *o.ClusterDisableComponent) error {
params := args.Params()
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "disable-component", params)
@@ -226,7 +247,7 @@ func initKubeCluster() {
return nil
})
R(&o.ClusterUpdateComponentCephCSIOpt{}, cmdN("component-update-ceph-csi"), "Update cluster component", func(s *mcclient.ClientSession, args *o.ClusterUpdateComponentCephCSIOpt) error {
R(&o.ClusterUpdateComponentCephCSIOpt{}, cmdN("component-update-ceph-csi"), "Update cluster component ceph csi", func(s *mcclient.ClientSession, args *o.ClusterUpdateComponentCephCSIOpt) error {
params, err := args.Params()
if err != nil {
return err
@@ -238,4 +259,95 @@ func initKubeCluster() {
printObject(ret)
return nil
})
R(&o.ClusterComponentType{}, cmdN("component-update"), "Update cluster component", func(s *mcclient.ClientSession, args *o.ClusterComponentType) error {
// 1. get current setting
setting, err := getComponentSetting(s, args, false)
if err != nil {
return errors.Wrap(err, "get component setting")
}
// 2. edit yaml
yaml, err := shellutils.Edit(setting.YAMLString())
if len(yaml) == 0 {
log.Infof("Nothing to update")
return nil
}
nowSetting, err := jsonutils.ParseYAML(yaml)
if err != nil {
return err
}
params := args.Params(args.TYPE)
params.Update(nowSetting)
// 3. call update api
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "update-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
type GetKubesprayConfigOpt struct {
o.IdentOptions
OUTPUT string `help:"Output directory to store config files"`
}
R(&GetKubesprayConfigOpt{}, cmdN("kubespray-config"), "Get cluster kubespray config", func(s *mcclient.ClientSession, args *GetKubesprayConfigOpt) error {
conf, err := k8s.KubeClusters.GetSpecific(s, args.ID, "kubespray-config", nil)
if err != nil {
return err
}
inventoryContent, err := conf.GetString("inventory_content")
if err != nil {
return errors.Wrap(err, "get inventory content")
}
vars, err := conf.Get("vars")
if err != nil {
return errors.Wrap(err, "get variables")
}
privateKey, err := conf.GetString("private_key")
if err != nil {
return errors.Wrap(err, "get private key")
}
if err := os.MkdirAll(args.OUTPUT, 0755); err != nil {
return errors.Wrap(err, "mkdir")
}
writeFile := func(name, content string) error {
fp := filepath.Join(args.OUTPUT, name)
log.Infof("Write file: %s", fp)
if err := ioutil.WriteFile(fp, []byte(content), 0644); err != nil {
return errors.Wrap(err, "write file")
}
if err := os.Chmod(fp, 0600); err != nil {
return errors.Wrap(err, "chmod")
}
return nil
}
iPath := filepath.Join(args.OUTPUT, "hosts.ini")
vPath := filepath.Join(args.OUTPUT, "vars.json")
kPath := filepath.Join(args.OUTPUT, "private_key")
for fPath, content := range map[string]string{
iPath: inventoryContent,
vPath: vars.PrettyString(),
kPath: privateKey,
} {
name := filepath.Base(fPath)
if err := writeFile(name, content); err != nil {
return errors.Wrapf(err, "write file %s", name)
}
}
fmt.Printf("try cmd:\nansible-playbook -i %s cluster.yml -b -v --private-key %s --extra-vars @%s\n", iPath, kPath, vPath)
return nil
})
}

View File

@@ -29,4 +29,6 @@ func initKubeMachine() {
cmd.BatchDelete(new(o.IdentsOptions))
cmd.Perform("recreate", new(o.IdentOptions))
cmd.Perform("terminate", new(o.IdentOptions))
cmd.Get("networkaddress", new(o.MachineListNetworkAddressOptions))
cmd.Perform("attach-networkaddress", new(o.MachineAttachNetworkAddressOptions))
}

View File

@@ -0,0 +1,30 @@
// 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 meter
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
options "yunion.io/x/onecloud/pkg/mcclient/options/meter"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Budgets).WithKeyword("budget")
cmd.List(new(options.BudgetListOptions))
cmd.Create(new(options.BudgetCreateOptions))
cmd.Update(new(options.BudgetUpdateOptions))
cmd.Delete(new(options.BudgetDeleteOptions))
cmd.Perform("sync-alerts", new(options.BudgetSyncAlertsOptions))
}

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 meter
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
options "yunion.io/x/onecloud/pkg/mcclient/options/meter"
)
func init() {
cmd := shell.NewResourceCmd(&modules.CostReports).WithKeyword("cost-report")
cmd.List(new(options.CostReportListOptions))
cmd.Create(new(options.CostReportCreateOptions))
cmd.Update(new(options.CostReportUpdateOptions))
cmd.Delete(new(options.CostReportDeleteOptions))
}

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 meter
import (
"yunion.io/x/onecloud/cmd/climc/shell/events"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
)
func doMeterEventList(s *mcclient.ClientSession, args *events.EventListOptions) error {
return events.DoEventList(modules.MeterLogs, s, args)
}
func init() {
R(&events.EventListOptions{}, "meter-event-show", "Show operation meter event logs", doMeterEventList)
}

View File

@@ -0,0 +1,26 @@
// 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 meter
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
options "yunion.io/x/onecloud/pkg/mcclient/options/meter"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Reservations).WithKeyword("reservation")
cmd.List(new(options.ReservationListOptions))
}

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