Compare commits

...

1076 Commits

Author SHA1 Message Date
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
1770 changed files with 195005 additions and 46383 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

136
Makefile
View File

@@ -6,6 +6,7 @@ ROOT_DIR := $(CURDIR)
BUILD_DIR := $(ROOT_DIR)/_output
BIN_DIR := $(BUILD_DIR)/bin
BUILD_SCRIPT := $(ROOT_DIR)/build/build.sh
DEB_BUILD_SCRIPT := $(ROOT_DIR)/build/build_deb.sh
ifeq ($(ONECLOUD_CI_BUILD),)
GIT_COMMIT := $(shell git rev-parse --short HEAD)
@@ -64,6 +65,7 @@ endif
cmdTargets:=$(filter-out cmd/host-image,$(wildcard cmd/*))
rpmTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),rpm/$(b)))
debTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),deb/$(b)))
all: build
@@ -87,21 +89,45 @@ vet:
cmd/esxi-agent: prepare_dir
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/fetcherfs: prepare_dir
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/%: prepare_dir
$(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
rpm/%: cmd/%
$(BUILD_SCRIPT) $*
deb/%: cmd/%
$(DEB_BUILD_SCRIPT) $*
pkg/%: prepare_dir
$(GO_INSTALL) $(REPO_PREFIX)/$@
rpm/fetcherfs: cmd/fetcherfs
docker run --rm \
--name docker-centos-build-fetcherfs \
-v $(CURDIR):/data \
registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 \
/bin/bash -c "VERSION=3.6 /data/build/build.sh fetcherfs /opt/yunion/fetchclient/bin"
deb/fetcherfs: rpm/fetcherfs
#VERSION=3.6 $(DEB_BUILD_SCRIPT) fetcherfs /opt/yunion/fetchclient/bin
docker run --rm \
--name docker-debian-build-fetcherfs \
-v $(CURDIR):/data \
registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 \
/data/build/convert_rpm2deb.sh
build:
$(MAKE) $(cmdTargets)
rpm:
$(MAKE) $(rpmTargets)
deb:
$(MAKE) $(debTargets)
rpmclean:
rm -fr $(BUILD_DIR)/rpms
@@ -173,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
@@ -203,70 +272,6 @@ mod:
go mod tidy
go mod vendor -v
DOCKER_CENTOS_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-3
define dockerCentOSBuildCmd
set -o xtrace
set -o errexit
set -o pipefail
cd /root/onecloud
export GOFLAGS=-mod=vendor
make $(1)
chown -R $(shell id -u):$(shell id -g) _output
endef
docker-centos-build: export dockerCentOSBuildCmd:=$(call dockerCentOSBuildCmd,$(F))
docker-centos-build:
docker rm --force onecloud-ci-build &>/dev/null || true
docker run \
--name onecloud-docker-centos-build \
--rm \
--volume $(CURDIR):/root/onecloud \
--volume $(CURDIR)/_output/_cache:/root/.cache \
$(DOCKER_CENTOS_BUILD_IMAGE) \
/bin/bash -c "$$dockerCentOSBuildCmd"
chown -R $$(id -u):$$(id -g) _output
ls -lh _output/bin
# NOTE we need a way to stop and remove the container started by docker-build.
# No --tty, --stop-signal won't work
docker-centos-build-stop:
docker stop --time 0 onecloud-docker-centos-build || true
.PHONY: docker-centos-build
.PHONY: docker-centos-build-stop
DOCKER_ALPINE_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5
define dockerAlpineBuildCmd
set -o xtrace
set -o errexit
set -o pipefail
cd /root/go/src/yunion.io/x/onecloud
export GOFLAGS=-mod=vendor
make $(1)
chown -R $(shell id -u):$(shell id -g) _output
endef
docker-alpine-build: export dockerAlpineBuildCmd:=$(call dockerAlpineBuildCmd,$(F))
docker-alpine-build:
docker rm --force onecloud-docker-alpine-build &>/dev/null || true
docker run --rm \
--name onecloud-docker-alpine-build \
-v $(CURDIR):/root/go/src/yunion.io/x/onecloud \
-v $(CURDIR)/_output/alpine-build:/root/go/src/yunion.io/x/onecloud/_output \
-v $(CURDIR)/_output/alpine-build/_cache:/root/.cache \
$(DOCKER_ALPINE_BUILD_IMAGE) \
/bin/sh -c "$$dockerAlpineBuildCmd"
ls -lh _output/alpine-build/bin
docker-alpine-build-stop:
docker stop --time 0 onecloud-docker-alpine-build || true
.PHONY: docker-alpine-build
.PHONY: docker-alpine-build-stop
define helpText
Build with docker
@@ -326,3 +331,6 @@ image:
%:
@:
ModName:=yunion.io/x/onecloud
include $(CURDIR)/Makefile.common.mk

83
Makefile.common.mk Normal file
View File

@@ -0,0 +1,83 @@
ifeq ($(__inc_Makefile_common_mk),)
__inc_Makefile_common_mk:=1
ifeq ($(ModName),)
$(error ModName must be set, e.g. yunion.io/x/onecloud)
endif
ModBaseName:=$(notdir $(ModName))
DockerImageRegistry?=registry.cn-beijing.aliyuncs.com
DockerImageAlpineBuild?=$(DockerImageRegistry)/yunionio/alpine-build:1.0-5
DockerImageCentOSBuild?=$(DockerImageRegistry)/yunionio/centos-build:1.1-4
EnvIf=$(if $($(1)),$(1)=$($(1)))
define dockerCentOSBuildCmd
set -o xtrace
set -o errexit
set -o pipefail
cd /root/go/src/yunion.io/x/$(ModBaseName)
env \
$(call EnvIf,GOARCH) \
$(call EnvIf,GOOS) \
$(call EnvIf,CGO_ENABLED) \
make $(1)
chown -R $(shell id -u):$(shell id -g) _output
endef
docker-centos-build: export dockerCentOSBuildCmd:=$(call dockerCentOSBuildCmd,$(F))
docker-centos-build:
docker rm --force docker-centos-build-$(ModBaseName) &>/dev/null || true
docker run \
--rm \
--name docker-centos-build-$(ModBaseName) \
-v $(CURDIR):/root/go/src/yunion.io/x/$(ModBaseName) \
-v $(CURDIR)/_output/centos-build:/root/go/src/yunion.io/x/$(ModBaseName)/_output \
-v $(CURDIR)/_output/centos-build/_cache:/root/.cache \
$(DockerImageCentOSBuild) \
/bin/bash -c "$$dockerCentOSBuildCmd"
ls -lh _output/centos-build/bin
# NOTE we need a way to stop and remove the container started by docker-build.
# No --tty, --stop-signal won't work
docker-centos-build-stop:
docker stop --time 0 docker-centos-build-$(ModBaseName) || true
.PHONY: docker-centos-build
.PHONY: docker-centos-build-stop
define dockerAlpineBuildCmd
set -o xtrace
set -o errexit
set -o pipefail
cd /root/go/src/yunion.io/x/$(ModBaseName)
env \
$(call EnvIf,GOARCH) \
$(call EnvIf,GOOS) \
$(call EnvIf,CGO_ENABLED) \
make $(1)
chown -R $(shell id -u):$(shell id -g) _output
endef
docker-alpine-build: export dockerAlpineBuildCmd:=$(call dockerAlpineBuildCmd,$(F))
docker-alpine-build:
docker rm --force docker-alpine-build-$(ModBaseName) &>/dev/null || true
docker run \
--rm \
--name docker-alpine-build-$(ModBaseName) \
-v $(CURDIR):/root/go/src/yunion.io/x/$(ModBaseName) \
-v $(CURDIR)/_output/alpine-build:/root/go/src/yunion.io/x/$(ModBaseName)/_output \
-v $(CURDIR)/_output/alpine-build/_cache:/root/.cache \
$(DockerImageAlpineBuild) \
/bin/sh -c "$$dockerAlpineBuildCmd"
ls -lh _output/alpine-build/bin
docker-alpine-build-stop:
docker stop --time 0 docker-alpine-build-$(ModBaseName) || true
.PHONY: docker-alpine-build
.PHONY: docker-alpine-build-stop
endif # __inc_Makefile_common_mk

View File

@@ -1,12 +1,12 @@
# Yunion OneCloud (云联融合云)
# Yunion Cloud (云联融合云)
[![CircleCI](https://circleci.com/gh/yunionio/onecloud.svg?style=svg)](https://circleci.com/gh/yunionio/onecloud)
[![Build Status](https://travis-ci.com/yunionio/onecloud.svg?branch=master)](https://travis-ci.org/yunionio/onecloud)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/onecloud)](https://goreportcard.com/report/github.com/yunionio/onecloud)
[![CircleCI](https://circleci.com/gh/yunionio/yunioncloud.svg?style=svg)](https://circleci.com/gh/yunionio/yunioncloud)
[![Build Status](https://travis-ci.com/yunionio/yunioncloud.svg?branch=master)](https://travis-ci.org/yunionio/yunioncloud)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/yunioncloud)](https://goreportcard.com/report/github.com/yunionio/yunioncloud)
## 什么是云联融合云?
云联融合云Yunion OneCloud是一个开源的多云平台。融合云构建在用户分布于多云基础设施之上通过技术手段将分布于多云的异构IT资源统一管理将多底层多云的差异向用户屏蔽并通过网络和调度实现资源的融合与打通在多云之上进行抽象向用户呈现统一的使用界面和API接口让用户就像使用一个云平台一样使用分布于多云的资源实现一个统一的“云上之云”的云平台。
云联融合云Yunion Cloud是一个开源的多云平台。融合云构建在用户分布于多云基础设施之上通过技术手段将分布于多云的异构IT资源统一管理将多底层多云的差异向用户屏蔽并通过网络和调度实现资源的融合与打通在多云之上进行抽象向用户呈现统一的使用界面和API接口让用户就像使用一个云平台一样使用分布于多云的资源实现一个统一的“云上之云”的云平台。
鉴于企业IT基础设施的两个趋势1. 企业使用多云基础设施并且公有云是最主要的基础设施提供者2. 企业应用将逐步云原生化企业IT基础设施需要为Kubernetes优化。融合云为此架构而设计。一方面抽象管理底层的多云基础设施另一方面为多云Kubernetes提供运行环境。融合云为企业未来的的IT基础设施架构而设计。
@@ -18,18 +18,18 @@
- 内置私有云
OneCloud内置完备的私有云实现提供对用户本地IDC的虚拟机、物理机和负载均衡等资源管理。
YunionCloud 内置完备的私有云实现提供对用户本地IDC的虚拟机、物理机和负载均衡等资源管理。
- 为多云Kubernetes提供运行环境
OneCloud自身为运行在Kubernetes的云原生应用并且能在多云环境部署运行Kubernetes集群。
YunionCloud 自身为运行在Kubernetes的云原生应用并且能在多云环境部署运行Kubernetes集群。
欢迎安装部署云联融合云,期待大家的反馈!
## 部署
请参考文档 [安装部署](https://docs.yunion.io/docs/setup/) 搭建 OneCloud 集群。
请参考文档 [安装部署](https://docs.yunion.io/docs/setup/) 搭建 YunionCloud 集群。
## 文档
@@ -51,4 +51,4 @@
## License
OneCloud 使用 Apache license 2.0. 详情请看 [LICENSE](./LICENSE) 。
YunionCloud 使用 Apache license 2.0. 详情请看 [LICENSE](./LICENSE) 。

View File

@@ -1,22 +1,22 @@
# Yunion OneCloud
# Yunion Cloud
[![CircleCI](https://circleci.com/gh/yunionio/onecloud.svg?style=svg)](https://circleci.com/gh/yunionio/onecloud)
[![Build Status](https://travis-ci.com/yunionio/onecloud.svg?branch=master)](https://travis-ci.com/yunionio/onecloud/branches)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/onecloud)](https://goreportcard.com/report/github.com/yunionio/onecloud)
[![CircleCI](https://circleci.com/gh/yunionio/yunioncloud.svg?style=svg)](https://circleci.com/gh/yunionio/yunioncloud)
[![Build Status](https://travis-ci.com/yunionio/yunioncloud.svg?branch=master)](https://travis-ci.com/yunionio/yunioncloud/branches)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/yunioncloud)](https://goreportcard.com/report/github.com/yunionio/yunioncloud)
### [README in Chinese](./README-CN.md)
## What is Yunion OneCloud?
## What is Yunion Cloud?
Yunion OneCloud is an open source unified-IaaS cloud platform.
Yunion Cloud is an open source unified-IaaS cloud platform.
As its name sugguests, 'Yun' means 'cloud' in Chinese and 'Yunion OneCloud' means to unify many distinct clouds into the one that behaves like an integral cloud platform.
As its name sugguests, 'Yun' means 'cloud' in Chinese and 'Yunion Cloud' means to unify many distinct clouds into the one that behaves like an integral cloud platform.
As trends show, the enterprise IT infrastructure in the future would be unavoidably heterogeneous and the public clouds should be the major infrastructure providers for many enterprises. Further, the infrastructure would most likely be prepared for the cloud-native applications running on Kubernetes. Yunion OneCloud is built to provide the cloud architecture for this scenario such that it is the middle layer between the underlying cloud infrustructures and the overlay kubernetes clusters across many clouds.
As trends show, the enterprise IT infrastructure in the future would be unavoidably heterogeneous and the public clouds should be the major infrastructure providers for many enterprises. Further, the infrastructure would most likely be prepared for the cloud-native applications running on Kubernetes. Yunion Cloud is built to provide the cloud architecture for this scenario such that it is the middle layer between the underlying cloud infrustructures and the overlay kubernetes clusters across many clouds.
Many may consider Yunion OneCloud as a multi-cloud management platform (MCMP). Rather, we would view it as an IaaS platform as it does not only manage the resources and services from many clouds, but also hides the differences of underlying technologies and exposes one set of APIs that allow programatically interacting with the compute/storage/networking resources across many clouds.
Many may consider Yunion Cloud as a multi-cloud management platform (MCMP). Rather, we would view it as an IaaS platform as it does not only manage the resources and services from many clouds, but also hides the differences of underlying technologies and exposes one set of APIs that allow programatically interacting with the compute/storage/networking resources across many clouds.
Yunion OneCloud is working on abstracting APIs for the following resources:
Yunion Cloud is working on abstracting APIs for the following resources:
* Compute, including virtual machines, images, etc.
* Storage, including disks, snapshots, object storages, etc.
@@ -30,7 +30,7 @@ over the following many cloud providers:
* Private clouds, including OpenStack, etc.
* Public clouds, including Aliyun, AWS, Azure, Tencent Cloud, Huawei Cloud, etc.
You are welcome to install and try Yunion OneCloud. Looking forward to your feedback.
You are welcome to install and try Yunion Cloud. Looking forward to your feedback.
## Installation
@@ -38,7 +38,7 @@ Please refers to [install & deployment](https://docs.yunion.io/docs/setup/) (cur
## Documentations
- [Yunion OneCloud Documents](https://docs.yunion.io/)
- [Yunion Cloud Documents](https://docs.yunion.io/)
- [Swagger API](https://docs.yunion.cn/apiv2/)

76
build/build_deb.sh Executable file
View File

@@ -0,0 +1,76 @@
#!/bin/bash
set -e
if [ -z "$ROOT_DIR" ]; then
pushd $(dirname $(readlink -f "$BASH_SOURCE")) > /dev/null
ROOT_DIR=$(cd .. && pwd)
popd > /dev/null
fi
SRC_BIN=$ROOT_DIR/_output/bin
SRC_BUILD=$ROOT_DIR/build
OUTPUT_DIR=$ROOT_DIR/_output/debs
PKG=$1
BIN_PATH=${2:-/opt/yunion/bin}
if [ -z "$PKG" ]; then
echo "Usage: $0 <package>"
exit 1
fi
BIN="$SRC_BIN/$PKG"
ROOT="$SRC_BUILD/$PKG"
if [ ! -x "$BIN" ]; then
echo "$BIN not exists"
exit 1
fi
if [ ! -x "$ROOT" ]; then
echo "$ROOT not exists"
exit 1
fi
. $ROOT/vars
if [ -z "$VERSION" ]; then
TAG=$(git describe --abbrev=0 --tags || echo 000000)
VERSION=${TAG/\//-}
VERSION=${VERSION/v/}
fi
RELEASE=`date +"%y%m%d%H"`
FULL_VERSION=$VERSION-$RELEASE
BUILDROOT=$OUTPUT_DIR/yunion-$1-$FULL_VERSION
rm -rf $BUILDROOT
mkdir -p $BUILDROOT/DEBIAN
mkdir -p $BUILDROOT/$BIN_PATH
cp -rf $BIN $BUILDROOT/$BIN_PATH
cp -rf $ROOT/root/* $BUILDROOT/
echo "Build root ${BUILDROOT}"
case $(uname -m) in
x86_64)
CURRENT_ARCH=amd64
;;
aarch64)
CURRENT_ARCH=arm64
;;
esac
echo "Package: yunion-$1
Version: $FULL_VERSION
Section: base
Priority: optional
Architecture: $CURRENT_ARCH
Maintainer: wanyaoqi@yunionyun.com
Description: Yunion $1
" > $BUILDROOT/DEBIAN/control
chmod 0755 $BUILDROOT/DEBIAN/control
dpkg-deb --build $BUILDROOT

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>

23
build/convert_rpm2deb.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
set -e
if [ -z "$ROOT_DIR" ]; then
ROOT_DIR=$(dirname $(dirname $(readlink -f "$BASH_SOURCE")))
fi
RPMS_DIR=$ROOT_DIR/_output/rpms
DEBS_DIR=$ROOT_DIR/_output/debs
case $(uname -m) in
x86_64)
CURRENT_ARCH=amd64
;;
aarch64)
CURRENT_ARCH=arm64
;;
esac
mkdir -p $DEBS_DIR && cd $DEBS_DIR
find $RPMS_DIR -type f -name *.rpm -exec alien --target=$CURRENT_ARCH {} \;

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,3 +1,6 @@
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 frolvlad/alpine-glibc:glibc-2.28
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
@@ -16,17 +19,17 @@ RUN mkdir -p /opt/cloud/yunion/baremetal
RUN wget -O /opt/cloud/yunion/baremetal/pci.ids http://pci-ids.ucw.cz/v2.2/pci.ids
# download baremetal-pxerom-*.x86_64.rpm and unpack rpm in current directory
COPY ./opt/cloud/yunion/baremetal/bootia32.efi /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/bootx64.efi /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/chain.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/initramfs /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/isolinux.bin /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/kernel /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.e32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.e64 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/libcom32.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/libutil.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/lpxelinux.0 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/menu.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/pxelinux.0 /opt/cloud/yunion/baremetal
COPY --from=build /opt/cloud/yunion/baremetal/bootia32.efi /opt/cloud/yunion/baremetal
COPY --from=build /opt/cloud/yunion/baremetal/bootx64.efi /opt/cloud/yunion/baremetal
COPY --from=build /opt/cloud/yunion/baremetal/chain.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/initramfs /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/isolinux.bin /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/kernel /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.e32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.e64 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/libcom32.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/libutil.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/lpxelinux.0 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/menu.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/pxelinux.0 /opt/cloud/yunion/baremetal

View File

@@ -1,5 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20200820
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,9 @@
# registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0
FROM debian:10
RUN apt update && apt install -y alien
RUN apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}/

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

@@ -6,4 +6,4 @@ ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/host-deployer /opt/yunion/bin/host-deployer
ADD ./_output/centos-build/bin/host-deployer /opt/yunion/bin/host-deployer

View File

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

View File

@@ -0,0 +1,3 @@
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

7
build/docker/Makefile Normal file
View File

@@ -0,0 +1,7 @@
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:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/climc-base:$(VERSION) -f ./Dockerfile.climc-base .

View File

@@ -0,0 +1,2 @@
_output/alpine-build/_cache

View File

@@ -6,4 +6,4 @@
资源数量:{{len .matches}}
资源名称:{{.resource_name}}
详情地址: {{.web_url}}/commonalerts
详情地址: {{.web_url}}

View File

@@ -92,7 +92,7 @@
</table>
<table class="table" style="padding-top: 6px; padding-bottom: 10px;">
<tr>
<td style="padding-left: 20px; font-size: 14px;">若要查看详情信息,<a class="link" target="_blank" href="{{.web_url}}/commonalerts
<td style="padding-left: 20px; font-size: 14px;">若要查看详情信息,<a class="link" target="_blank" href="{{.web_url}}
">请登录平台进行查看</a></td>
</tr>
</table>

View File

@@ -6,4 +6,4 @@ TriggerCondition: {{.description | unescaped}}
ResourceCount: {{len .matches}}
ResourceName: {{.resource_name}}
WebUrl: {{.web_url}}/commonalerts
WebUrl: {{.web_url}}

View File

@@ -33,7 +33,7 @@
font-weight: bold;
}
.td {
width: 80px;
width: 120px;
padding-left: 20px;
height: 35px;
font-weight: 400;
@@ -92,8 +92,8 @@
</table>
<table class="table" style="padding-top: 6px; padding-bottom: 10px;">
<tr>
<td style="padding-left: 20px; font-size: 14px;">To view details<a class="link" target="_blank" href="{{.web_url}}/commonalerts
">Please log in to the platform to view</a></td>
<td style="padding-left: 20px; font-size: 14px;">To view details<a class="link" target="_blank" href="{{.web_url}}
">Please login to the platform to view</a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" class="table pb-3">

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,20 +43,20 @@
<table style="padding: 20px 10px; width: 100%;">
<tr>
<td style="padding-bottom: 20px;">
尊敬的{{.name}},您好:
尊敬的{{.receiver_name}},您好:
</td>
</tr>
<tr>
<td style="padding-bottom: 10px;">您正在验证邮箱,请在验证码输入框中输入:{{.code}}完成验证。</td>
<td style="padding-bottom: 10px;">您正在验证邮箱,请在验证码输入框中输入:{{.code}}完成验证。</td>
</tr>
</table>
</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 @@
{{.os_type}} image {{.name}} upload completed

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

@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<table style="width: 650px; margin-bottom: 20px;" border="0" cellpadding="0" cellspacing="0" align="center">
<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="{{.name}}" style="color: #333; height: 32px; vertical-align: middle;">
</td>
</tr>
</table>
</td>
<td>
<table style="float: right;">
<tr>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">Product</a>
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">Solution</a>
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">Service</a>
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">Help and Documentation</a>
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">About</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 100%;" colspan="2">
<table style="padding: 20px 10px; width: 100%;">
<tr>
<td style="padding-bottom: 13px;">
Dear {{.receiver_name}}
</td>
</tr>
<tr>
<td style="padding-bottom: 13px;">You are verifying your email, please enter the following code on the email verification page:</td>
</tr>
<tr>
<td style="padding-bottom: 10px; font-size: large">{{.code}}</td>
</tr>
</table>
</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; 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: #C2DEF2; text-align: right; padding-right: 20px; font-size: 12px; color: #333; height: 50px;">Copyrights © {{.copyright}}. All rights reserved.</td>
</tr>
</table>
</body>
</html>

View File

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

View File

@@ -0,0 +1 @@
Image {{.name}} upload completed

View File

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

View File

@@ -0,0 +1 @@
{{.copyright}} Verify

View File

@@ -15,9 +15,14 @@
package main
import (
"context"
"yunion.io/x/onecloud/pkg/ansibleserver/service"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func main() {
go procutils.WaitZombieLoop(context.TODO())
service.StartService()
}

View File

@@ -32,6 +32,7 @@ type BaseOptions struct {
AccessKey string `help:"Access key" default:"$APSARA_ACCESS_KEY" metavar:"APSARA_ACCESS_KEY"`
Secret string `help:"Secret" default:"$APSARA_SECRET" metavar:"APSARA_SECRET"`
cloudprovider.SApsaraEndpoints `help:"Endpoints for Apsara"`
Endpoint string `help:"Apsara endpoint" default:"$APSARA_ENDPOINT" metavar:"APSARA_ENDPOINT"`
RegionId string `help:"RegionId" default:"$APSARA_REGION" metavar:"APSARA_REGION"`
SUBCOMMAND string `help:"apsaracli subcommand" subcommand:"true"`
}
@@ -90,6 +91,7 @@ func newClient(options *BaseOptions) (*apsara.SRegion, error) {
apsara.NewApsaraClientConfig(
options.AccessKey,
options.Secret,
options.Endpoint,
options.SApsaraEndpoints,
).Debug(options.Debug),
)

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

@@ -15,12 +15,17 @@
package main
import (
"context"
"yunion.io/x/onecloud/pkg/baremetal/service"
"yunion.io/x/onecloud/pkg/util/atexit"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func main() {
defer atexit.Handle()
go procutils.WaitZombieLoop(context.TODO())
service.New().StartService()
}

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"
@@ -34,6 +36,7 @@ import (
_ "yunion.io/x/onecloud/cmd/climc/shell/monitor"
_ "yunion.io/x/onecloud/cmd/climc/shell/notifyv2"
_ "yunion.io/x/onecloud/cmd/climc/shell/servicetree"
_ "yunion.io/x/onecloud/cmd/climc/shell/suggestion"
_ "yunion.io/x/onecloud/cmd/climc/shell/yunionconf"
)

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

@@ -452,11 +452,15 @@ func init() {
DomainList []string
// 是否允许空referer 访问
AllowEmptyRefer bool `help:"all empty refer access"`
Enabled bool
RerererType string `help:"Referer type" choices:"Black-List|White-List"`
}
R(&BucketSetRefererOption{}, "bucket-set-referer", "Set bucket referer", func(s *mcclient.ClientSession, args *BucketSetRefererOption) error {
conf := api.BucketRefererConf{
WhiteList: args.DomainList,
Enabled: args.Enabled,
AllowEmptyRefer: args.AllowEmptyRefer,
RefererType: args.RerererType,
DomainList: args.DomainList,
}
result, err := modules.Buckets.PerformAction(s, args.ID, "set-referer", jsonutils.Marshal(conf))
if err != nil {

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,262 +15,34 @@
package compute
import (
"fmt"
"strings"
"yunion.io/x/jsonutils"
computeapi "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"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 DBInstanceListOptions struct {
options.BaseListOptions
BillingType string `help:"billing type" choices:"postpaid|prepaid"`
}
R(&DBInstanceListOptions{}, "dbinstance-list", "List DB instance", func(s *mcclient.ClientSession, opts *DBInstanceListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstance.List(s, params)
if err != nil {
return err
}
if len(opts.ExportFile) > 0 {
exportList(result, opts.ExportFile, opts.ExportKeys, opts.ExportTexts, modules.DBInstance.GetColumns(s))
} else {
printList(result, modules.DBInstance.GetColumns(s))
}
return nil
})
R(&options.DBInstanceCreateOptions{}, "dbinstance-create", "Create DB instance", func(s *mcclient.ClientSession, opts *options.DBInstanceCreateOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
if opts.AllowDelete != nil && *opts.AllowDelete {
params.Add(jsonutils.JSONFalse, "disable_delete")
}
result, err := modules.DBInstance.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceRenewOptions struct {
ID string `help:"ID or name of server to renew"`
DURATION string `help:"Duration of renew, ADMIN only command"`
}
R(&DBInstanceRenewOptions{}, "dbinstance-renew", "Renew a dbinstance", func(s *mcclient.ClientSession, args *DBInstanceRenewOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.DURATION), "duration")
result, err := modules.DBInstance.PerformAction(s, args.ID, "renew", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceUpdateOptions struct {
ID string `help:"ID or name of server to renew"`
Name string
Description string
Delete string `help:"Lock or not lock dbinstance" choices:"enable|disable"`
}
R(&DBInstanceUpdateOptions{}, "dbinstance-update", "Update a dbinstance", func(s *mcclient.ClientSession, args *DBInstanceUpdateOptions) error {
params, err := options.StructToParams(args)
if err != nil {
return err
}
if len(args.Delete) > 0 {
if args.Delete == "disable" {
params.Add(jsonutils.JSONTrue, "disable_delete")
} else {
params.Add(jsonutils.JSONFalse, "disable_delete")
}
}
result, err := modules.DBInstance.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceChangeConfigOptions struct {
ID string `help:"ID or name of server to renew"`
DiskSizeGb int64 `help:"Change DBInstance storage size"`
VcpuCount int64 `help:"Change DBInstance vcpu count"`
VmemSizeMb int64 `help:"Change DBInstance vmem size mb"`
InstanceType string `help:"Change DBInstance instanceType"`
Category string `help:"Change DBInstance category"`
}
R(&DBInstanceChangeConfigOptions{}, "dbinstance-change-config", "ChangeConfig a dbinstance", func(s *mcclient.ClientSession, args *DBInstanceChangeConfigOptions) error {
params := jsonutils.NewDict()
if len(args.Category) > 0 {
params.Add(jsonutils.NewString(args.Category), "category")
}
if len(args.InstanceType) > 0 {
params.Add(jsonutils.NewString(args.InstanceType), "instance_type")
}
if args.DiskSizeGb > 0 {
params.Add(jsonutils.NewInt(args.DiskSizeGb), "disk_size_gb")
}
if args.VcpuCount > 0 {
params.Add(jsonutils.NewInt(args.VcpuCount), "vcpu_count")
}
if args.VmemSizeMb > 0 {
params.Add(jsonutils.NewInt(args.VmemSizeMb), "vmeme_size_mb")
}
result, err := modules.DBInstance.PerformAction(s, args.ID, "change-config", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceIdOptions struct {
ID string `help:"ID of dbinstance"`
}
R(&DBInstanceIdOptions{}, "dbinstance-open-public-connection", "Open DB instance public connection", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.JSONTrue, "open")
result, err := modules.DBInstance.PerformAction(s, opts.ID, "public-connection", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-close-public-connection", "Close DB instance public connection", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.JSONFalse, "open")
result, err := modules.DBInstance.PerformAction(s, opts.ID, "public-connection", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceRecoveryOptions struct {
ID string
BACKUP string
Databases []string
}
R(&DBInstanceRecoveryOptions{}, "dbinstance-recovery", "Recovery DB instance database from backup", func(s *mcclient.ClientSession, opts *DBInstanceRecoveryOptions) error {
params := jsonutils.NewDict()
params.Set("dbinstancebackup", jsonutils.NewString(opts.BACKUP))
dbs := jsonutils.NewDict()
for _, database := range opts.Databases {
if len(database) > 0 {
dbInfo := strings.Split(database, ":")
if len(dbInfo) == 1 {
dbs.Add(jsonutils.NewString(dbInfo[0]), dbInfo[0])
} else if len(dbInfo) == 2 {
dbs.Add(jsonutils.NewString(dbInfo[1]), dbInfo[0])
} else {
return fmt.Errorf("Invalid dbinfo: %s", database)
}
}
}
if dbs.Length() > 0 {
params.Add(dbs, "databases")
}
result, err := modules.DBInstance.PerformAction(s, opts.ID, "recovery", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-show", "Show DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-reboot", "Reboot DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.PerformAction(s, opts.ID, "reboot", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceDeleteOptions struct {
ID string `help:"DBInstance Id or name"`
KeepBackup bool `help:"Keep dbinstance manual backup after delete dbinstance"`
}
R(&DBInstanceDeleteOptions{}, "dbinstance-delete", "Delete DB instance", func(s *mcclient.ClientSession, opts *DBInstanceDeleteOptions) error {
params := jsonutils.NewDict()
if opts.KeepBackup {
params.Add(jsonutils.JSONTrue, "keep_backup")
}
result, err := modules.DBInstance.Delete(s, opts.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-purge", "Purge DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.PerformAction(s, opts.ID, "purge", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-syncstatus", "Sync status for DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.PerformAction(s, opts.ID, "syncstatus", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-sync", "Sync conf from cloud dbinstance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.PerformAction(s, opts.ID, "sync", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-sync-status", "Sync status for DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.PerformAction(s, opts.ID, "sync-status", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.DBInstance) //.WithContextManager(&modules.Networks)
cmd.List(&compute.DBInstanceListOptions{})
cmd.Create(&compute.DBInstanceCreateOptions{})
cmd.Update(&compute.DBInstanceUpdateOptions{})
cmd.Show(&compute.DBInstanceIdOptions{})
cmd.Delete(&compute.DBInstanceDeleteOptions{})
cmd.Perform("renew", &compute.DBInstanceRenewOptions{})
cmd.Perform("change-config", &compute.DBInstanceChangeConfigOptions{})
cmd.Perform("public-connection", &compute.DBInstancePublicConnectionOptions{})
cmd.Perform("recovery", &compute.DBInstanceRecoveryOptions{})
cmd.Perform("reboot", &compute.DBInstanceIdOptions{})
cmd.Perform("purge", &compute.DBInstanceIdOptions{})
cmd.Perform("syncstatus", &compute.DBInstanceIdOptions{})
cmd.Perform("sync", &compute.DBInstanceIdOptions{})
cmd.Perform("change-owner", &compute.DBInstanceChangeOwnerOptions{})
cmd.PerformWithKeyword("add-tag", "user-metadata", &options.ResourceMetadataOptions{})
cmd.PerformWithKeyword("set-tag", "set-user-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("remote-update", &compute.DBInstanceRemoteUpdateOptions{})
cmd.Perform("set-secgroup", &compute.DBInstanceSetSecgroupOptions{})
type DBInstanceNetworkListOptions struct {
options.BaseListOptions
@@ -336,64 +108,4 @@ func init() {
return nil
})
type DBInstanceChangeOwnerOptions struct {
ID string `help:"DBInstance to change owner" json:"-"`
PROJECT string `help:"Project ID or change" json:"tenant"`
}
R(&DBInstanceChangeOwnerOptions{}, "dbinstance-change-owner", "Change owner porject of a dbinstance", func(s *mcclient.ClientSession, opts *DBInstanceChangeOwnerOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstance.PerformAction(s, opts.ID, "change-owner", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ResourceMetadataOptions{}, "dbinstance-add-tag", "Set tag of a dbinstance", func(s *mcclient.ClientSession, opts *options.ResourceMetadataOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
result, err := modules.DBInstance.PerformAction(s, opts.ID, "user-metadata", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ResourceMetadataOptions{}, "dbinstance-set-tag", "Set tag of a dbinstance", func(s *mcclient.ClientSession, opts *options.ResourceMetadataOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
result, err := modules.DBInstance.PerformAction(s, opts.ID, "set-user-metadata", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceRemoteUpdateOptions struct {
ID string `json:"-"`
computeapi.DBInstanceRemoteUpdateInput
}
R(&DBInstanceRemoteUpdateOptions{}, "dbinstance-remote-update", "Change owner porject of a dbinstance", func(s *mcclient.ClientSession, opts *DBInstanceRemoteUpdateOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstance.PerformAction(s, opts.ID, "remote-update", params)
if err != nil {
return err
}
printObject(result)
return nil
})
}

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

@@ -42,6 +42,7 @@ func init() {
Disabled bool `help:"Show disabled host only" json:"-"`
HostType string `help:"Host type filter" choices:"baremetal|hypervisor|esxi|kubelet|hyperv|aliyun|azure|qcloud|aws|huawei|ucloud|google|ctyun"`
AnyMac string `help:"Mac matches one of the host's interface"`
AnyIp string `help:"IP matches one of the host's interface"`
IsBaremetal *bool `help:"filter host list by is_baremetal=true|false"`
@@ -59,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 {
@@ -407,12 +410,14 @@ func init() {
})
type HostAddNetIfOptions struct {
ID string `help:"ID or Name of host"`
WIRE string `help:"ID or Name of wire to attach"`
MAC string `help:"Mac address of NIC"`
INDEX int64 `help:"nic index"`
Type string `help:"Nic type" choices:"admin|ipmi"`
IpAddr string `help:"IP address"`
ID string `help:"ID or Name of host"`
WIRE string `help:"ID or Name of wire to attach"`
MAC string `help:"Mac address of NIC"`
INDEX int64 `help:"nic index"`
Type string `help:"Nic type" choices:"admin|ipmi"`
IpAddr string `help:"IP address"`
Bridge string `help:"Bridge of hostwire"`
Interface string `help:"Interface name, eg:eth0, en0"`
}
R(&HostAddNetIfOptions{}, "host-add-netif", "Host add a NIC", func(s *mcclient.ClientSession, args *HostAddNetIfOptions) error {
params := jsonutils.NewDict()
@@ -426,6 +431,12 @@ func init() {
if len(args.IpAddr) > 0 {
params.Add(jsonutils.NewString(args.IpAddr), "ip_addr")
}
if len(args.Bridge) > 0 {
params.Add(jsonutils.NewString(args.Bridge), "bridge")
}
if len(args.Interface) > 0 {
params.Add(jsonutils.NewString(args.Interface), "interface")
}
result, err := modules.Hosts.PerformAction(s, args.ID, "add-netif", params)
if err != nil {
return err

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,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.ProjectMappings)
cmd.List(&compute.ProjectMappingListOptions{})
cmd.Update(&compute.ProjectMappingUpdateOption{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Show(&options.BaseIdOptions{})
cmd.Create(&compute.ProjectMappingCreateOption{})
}

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

@@ -15,142 +15,17 @@
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 SecGroupRulesListOptions struct {
options.BaseListOptions
Secgroup string `help:"Secgroup ID or Name"`
SecgroupName string `help:"Search rules by fuzzy secgroup name"`
Projects []string `help:"Filter rules by project"`
Direction string `help:"filter Direction of rule" choices:"in|out"`
Protocol string `help:"filter Protocol of rule" choices:"any|tcp|udp|icmp"`
Action string `help:"filter Actin of rule" choices:"allow|deny"`
Ports string `help:"filter Ports of rule"`
Ip string `help:"filter cidr of rule"`
}
R(&SecGroupRulesListOptions{}, "secgroup-rule-list", "List all security group", func(s *mcclient.ClientSession, args *SecGroupRulesListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.SecGroupRules.List(s, params)
if err != nil {
return err
}
printList(result, modules.SecGroupRules.GetColumns(s))
return nil
})
type SecGroupRuleDetailOptions struct {
ID string `help:"ID or Name of security group rule"`
}
R(&SecGroupRuleDetailOptions{}, "secgroup-rule-show", "Show details of rule", func(s *mcclient.ClientSession, args *SecGroupRuleDetailOptions) error {
if rule, e := modules.SecGroupRules.Get(s, args.ID, nil); e != nil {
return e
} else {
printObject(rule)
}
return nil
})
R(&SecGroupRuleDetailOptions{}, "secgroup-rule-delete", "Delete a secgroup rule", func(s *mcclient.ClientSession, args *SecGroupRuleDetailOptions) error {
if rule, e := modules.SecGroupRules.Delete(s, args.ID, nil); e != nil {
return e
} else {
printObject(rule)
}
return nil
})
type SecGroupRulesCreateOptions struct {
SECGROUP string `help:"Secgroup ID or Name" metavar:"Secgroup"`
Direction string `help:"Direction of rule" choices:"in|out"`
Action string `help:"Action of rule" choices:"allow|deny"`
Protocol string `help:"Protocol of rule" choices:"tcp|udp|icmp|any"`
Ports string `help:"Ports of rule"`
Cidr string `help:"Cidr of rule"`
Priority int64 `help:"priority of Rule"`
Desc string `help:"Description"`
}
R(&SecGroupRulesCreateOptions{}, "secgroup-rule-create", "Create all security group rule", func(s *mcclient.ClientSession, args *SecGroupRulesCreateOptions) error {
params := jsonutils.NewDict()
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if args.Priority > 0 {
params.Add(jsonutils.NewInt(args.Priority), "priority")
}
if len(args.Direction) > 0 {
params.Add(jsonutils.NewString(args.Direction), "direction")
}
if len(args.Action) > 0 {
params.Add(jsonutils.NewString(args.Action), "action")
}
if len(args.Protocol) > 0 {
params.Add(jsonutils.NewString(args.Protocol), "protocol")
}
if len(args.Ports) > 0 {
params.Add(jsonutils.NewString(args.Ports), "ports")
}
if len(args.Cidr) > 0 {
params.Add(jsonutils.NewString(args.Cidr), "cidr")
}
params.Add(jsonutils.NewString(args.SECGROUP), "secgroup")
secgrouprules, err := modules.SecGroupRules.Create(s, params)
if err != nil {
return err
}
printObject(secgrouprules)
return nil
})
type SecGroupRulesUpdateOptions struct {
ID string `help:"ID or name of rule"`
Name string `help:"New name of rule"`
Priority int64 `help:"priority of Rule"`
Protocol string `help:"Protocol of rule" choices:"any|tcp|udp|icmp"`
Ports string `help:"Ports of rule"`
Cidr string `help:"Cidr of rule"`
Action string `help:"filter Actin of rule" choices:"allow|deny"`
Desc string `help:"Description" metavar:"Description"`
}
R(&SecGroupRulesUpdateOptions{}, "secgroup-rule-update", "Update property of a security group rule", func(s *mcclient.ClientSession, args *SecGroupRulesUpdateOptions) 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.Priority > 0 {
params.Add(jsonutils.NewInt(args.Priority), "priority")
}
if len(args.Protocol) > 0 {
params.Add(jsonutils.NewString(args.Protocol), "protocol")
}
if len(args.Ports) > 0 {
params.Add(jsonutils.NewString(args.Ports), "ports")
}
if len(args.Cidr) > 0 {
params.Add(jsonutils.NewString(args.Cidr), "cidr")
}
if len(args.Action) > 0 {
params.Add(jsonutils.NewString(args.Action), "action")
}
if rule, e := modules.SecGroupRules.Update(s, args.ID, params); e != nil {
return e
} else {
printObject(rule)
}
return nil
})
cmd := shell.NewResourceCmd(&modules.SecGroupRules).WithKeyword("secgroup-rule")
cmd.List(&compute.SecGroupRulesListOptions{})
cmd.Show(&options.BaseShowOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Create(&compute.SecGroupRulesCreateOptions{})
cmd.Update(&compute.SecGroupRulesUpdateOptions{})
}

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{})
}

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