Compare commits

..

1259 Commits

Author SHA1 Message Date
Zexi Li
26fecfb1f7 Merge pull request #11531 from ioito/automated-cherry-pick-of-#11530-upstream-release-3.7
Automated cherry pick of #11530: fix(webconsole): aliyun vnc windows ctl+alt+del
2021-06-30 20:16:25 +08:00
Qu Xuan
8cae1408f7 fix(webconsole): aliyun vnc windows ctl+alt+del 2021-06-30 20:01:56 +08:00
Zexi Li
617dc611c0 Merge pull request #11523 from zhaoxiangchun/automated-cherry-pick-of-#11522-upstream-release-3.7
Automated cherry pick of #11522: fix(monitor): update alert panel scope by  alert dashboard
2021-06-30 10:37:46 +08:00
Zexi Li
33e17c9749 Merge pull request #11528 from zhaoxiangchun/automated-cherry-pick-of-#11527-upstream-release-3.7
Automated cherry pick of #11527: fix(monitor): fix monitor process alert
2021-06-30 10:25:59 +08:00
zhaoxiangchun
2488a5dab1 fix(monitor): fix monitor process alert
修复进程监控报警后,没有触发前端报警提示的问题
2021-06-30 09:49:40 +08:00
yunion-ci-robot
dbd6035616 Merge pull request #11525 from zexi/automated-cherry-pick-of-#11524-upstream-release-3.7
Automated cherry pick of #11524: fix(scheduler): baremetal network free address out of count
2021-06-29 23:24:16 +08:00
Zexi Li
1f9a66d00f fix(scheduler): baremetal network free address out of count 2021-06-29 20:25:03 +08:00
zhaoxiangchun
f4cb3d2beb fix(monitor): update alert panel scope by alert dashboard 2021-06-29 17:24:23 +08:00
Zexi Li
0bb8f4984b Merge pull request #11519 from swordqiu/automated-cherry-pick-of-#11518-upstream-release-3.7
Automated cherry pick of #11518: fix(host): allow server directory a symbol link to directory in other location
2021-06-29 10:00:16 +08:00
Qiu Jian
79f8013376 fix(host): allow server directory a symbol link to directory in other location 2021-06-29 00:03:49 +08:00
Zexi Li
353f21ffa2 Merge pull request #11516 from zhaoxiangchun/automated-cherry-pick-of-#11514-upstream-release-3.7
Automated cherry pick of #11514: fix(monitor): fix alert record not return resource details
2021-06-28 20:22:26 +08:00
zhaoxiangchun
6ee987c875 fix(monitor): fix alert record not return resource details 2021-06-28 19:44:50 +08:00
Zexi Li
f9b5a82acd Merge pull request #11504 from ioito/automated-cherry-pick-of-#11503-upstream-release-3.7
Automated cherry pick of #11503: fi(region): avoid opslog without resource id
2021-06-28 19:41:52 +08:00
Zexi Li
67603523dc Merge pull request #11508 from ioito/automated-cherry-pick-of-#11507-upstream-release-3.7
Automated cherry pick of #11507: fix(region): avoid panic when sync snapshot project
2021-06-28 19:36:44 +08:00
Zexi Li
e39ed2efc4 Merge pull request #11510 from rainzm/automated-cherry-pick-of-#11509-upstream-release-3.7
Automated cherry pick of #11509: fix: get datacenter of host via GetDatacenter
2021-06-28 19:35:40 +08:00
rainzm
d00578d6eb fix: get datacenter of host via GetDatacenter 2021-06-28 18:17:12 +08:00
Qu Xuan
8f7653c14c fix(region): avoid panic when sync snapshot project 2021-06-28 18:14:53 +08:00
Qu Xuan
b448719335 fi(region): avoid opslog without resource id 2021-06-28 17:20:25 +08:00
Zexi Li
7b9f2dff61 Merge pull request #11499 from zexi/automated-cherry-pick-of-#11498-upstream-release-3.7
Automated cherry pick of #11498: fix(region): baremetal server change ip address reuse
2021-06-28 15:07:12 +08:00
Zexi Li
55011704c0 fix(region): baremetal server change ip address reuse 2021-06-28 14:44:58 +08:00
Zexi Li
9575725dfa Merge pull request #11493 from zhaoxiangchun/automated-cherry-pick-of-#11492-upstream-release-3.7
Automated cherry pick of #11492: feat(climc): update meter dimension climc
2021-06-28 11:36:47 +08:00
zhaoxiangchun
4dc9ef631f feat(climc): update meter dimension climc 2021-06-26 22:22:25 +08:00
Zexi Li
532a45d109 Merge pull request #11487 from rainzm/automated-cherry-pick-of-#10970-upstream-release-3.7
Automated cherry pick of #10970: feat(scheduler): optimize the speed of network predicate
2021-06-25 18:27:27 +08:00
rainzm
c317f05b78 feat: add interface INetworkNicCountGetter 2021-06-25 15:58:30 +08:00
rainzm
5741782cca feat(scheduler): optimize the speed of network predicate 2021-06-25 15:58:30 +08:00
Zexi Li
da452e23c8 Merge pull request #11479 from rainzm/automated-cherry-pick-of-#11478-upstream-release-3.7
Automated cherry pick of #11478: fix(notify): distinct field of receivers
2021-06-24 20:11:07 +08:00
rainzm
8304b37773 fix(notify): distinct field of receivers 2021-06-24 10:40:42 +08:00
Zexi Li
b0fcef5c6a Merge pull request #11472 from zhaoxiangchun/automated-cherry-pick-of-#11471-upstream-release-3.7
Automated cherry pick of #11471: feat(monitor): add jenkins metric desc
2021-06-24 10:02:44 +08:00
Zexi Li
bc55b8b276 Merge pull request #11474 from rainzm/automated-cherry-pick-of-#11473-upstream-release-3.7
Automated cherry pick of #11473: Sync VMware resource faster
2021-06-24 10:01:34 +08:00
rainzm
882d885aa4 feat(esxi): disable sync cloudimage from image cache 2021-06-23 17:05:50 +08:00
rainzm
d791cba145 feat(esxi): reduce the number of requests and the amount of data transferred 2021-06-23 17:05:50 +08:00
rainzm
7cf931cc16 feat(region): add ProhibitRefreshingCloudImage for options 2021-06-23 17:05:50 +08:00
zhaoxiangchun
0f55252c5b feat(monitor): add jenkins metric desc 2021-06-23 15:29:22 +08:00
Zexi Li
6298415e7b Merge pull request #11459 from ioito/automated-cherry-pick-of-#11453-upstream-release-3.7
Automated cherry pick of #11453: fix(region): ignore qcloud vm start error
2021-06-23 11:54:50 +08:00
yunion-ci-robot
38384ca1ec Merge pull request #11467 from zexi/automated-cherry-pick-of-#11457-upstream-release-3.7
Automated cherry pick of #11457: feat(host): support netplan configuration
2021-06-23 11:39:11 +08:00
Zexi Li
4c5cd45efd Merge pull request #11464 from ioito/automated-cherry-pick-of-#11463-upstream-release-3.7
Automated cherry pick of #11463: fix(hostman): show server status changed reason
2021-06-23 10:53:30 +08:00
Zexi Li
edb7c6050b Merge pull request #11462 from zhaoxiangchun/automated-cherry-pick-of-#11461-upstream-release-3.7
Automated cherry pick of #11461: fix(monitor): fix monitor overview
2021-06-23 10:51:41 +08:00
Zexi Li
e1e6a72b4f feat(host): support netplan configuration 2021-06-23 10:38:07 +08:00
Qu Xuan
3c844caa4b fix(hostman): show server status changed reason 2021-06-22 17:55:04 +08:00
zhaoxiangchun
8c51294fe7 fix(monitor): fix monitor overview
1.监控总览中资源报警统计支持项目钻取
2. 资源报警状态修复
2021-06-22 17:11:52 +08:00
Qu Xuan
8679dbee27 fix(region): ignore qcloud vm start error 2021-06-22 10:18:08 +08:00
Zexi Li
c4cd0cabdc Merge pull request #11456 from zhaoxiangchun/automated-cherry-pick-of-#11454-upstream-release-3.7
Automated cherry pick of #11454: fix(monitor): exit monitor engine in time when happen err
2021-06-21 23:49:48 +08:00
zhaoxiangchun
894d12f903 fix(monitor): exit monitor engine in time when happen err 2021-06-21 16:12:24 +08:00
Zexi Li
f127585611 Merge pull request #11449 from zexi/automated-cherry-pick-of-#11448-upstream-release-3.7
Automated cherry pick of #11448: fix(baremetal): remove bundle libs build
2021-06-21 10:42:58 +08:00
Zexi Li
3258a1c262 fix(baremetal): remove bundle libs build 2021-06-21 10:32:49 +08:00
Zexi Li
86e07c0afc Merge pull request #11440 from rainzm/automated-cherry-pick-of-#11439-upstream-release-3.7
Automated cherry pick of #11439: feat(notify): filter all recipients in this domain and recipients who have joined projects in this domain
2021-06-21 00:34:24 +08:00
Zexi Li
3a93e1754e Merge pull request #11444 from zhaoxiangchun/automated-cherry-pick-of-#11428-upstream-release-3.7-1624013747
Automated cherry pick of #11428: feat(monitor) 3.7 add monitor resource overview
2021-06-21 00:33:57 +08:00
yunion-ci-robot
44ea206e28 Merge pull request #11435 from zexi/automated-cherry-pick-of-#11433-upstream-release-3.7
Automated cherry pick of #11433: fix(region,scheduler): baremetal reuse ip
2021-06-19 22:39:57 +08:00
zhaoxiangchun
ae085eace6 utomated cherry pick of #11428: feat(monitor) 3.7 add monitor resource overview 2021-06-18 18:57:29 +08:00
zhaoxiangchun
629a3c55fd feat(monitor) 3.7 add monitor resource overview
1. 监控中增加资源统计
2. 资源在报警总览中的状态:
   init--未设置告警;alerting--发生告警;/attach--已关联策略并且报警消息正常
3.只涉及宿主机和虚拟机

https://bug.yunion.io/zentao/task-view-3130.html
2021-06-18 18:55:51 +08:00
Zexi Li
8459cb7ba2 Merge pull request #11442 from ioito/automated-cherry-pick-of-#11441-upstream-release-3.7
Automated cherry pick of #11441: fix(region): skip disabled project mapping
2021-06-18 18:32:29 +08:00
Qu Xuan
92b0d323f1 fix(region): skip disabled project mapping 2021-06-18 18:05:25 +08:00
Zexi Li
322f795d88 Merge pull request #11420 from ioito/automated-cherry-pick-of-#11419-upstream-release-3.7
Automated cherry pick of #11419: fix(region): add project filter for cloudprovider
2021-06-18 16:21:42 +08:00
Zexi Li
ebcf3f5f9f Merge pull request #11437 from ioito/automated-cherry-pick-of-#11436-upstream-release-3.7
Automated cherry pick of #11436: fix(region): manager distinct field
2021-06-18 16:21:14 +08:00
Zexi Li
4087fa4593 fix(region,scheduler): baremetal reuse ip 2021-06-18 15:46:27 +08:00
rainzm
c1d792dc8a feat(notify): filter all recipients in this domain and recipients who have joined projects in this domain 2021-06-18 15:22:42 +08:00
Qu Xuan
9e5408856f fix(region): manager distinct field 2021-06-18 14:20:21 +08:00
Zexi Li
6d87de376f Merge pull request #11431 from zexi/automated-cherry-pick-of-#11430-upstream-release-3.7
Automated cherry pick of #11430: fix(region): clean schedule cache when host add or delete netif
2021-06-18 11:16:14 +08:00
Zexi Li
5054e618cb fix(region): clean schedule cache when host add or delete netif 2021-06-18 11:04:03 +08:00
yunion-ci-robot
39fab4b3ae Merge pull request #11426 from bistuzx/automated-cherry-pick-of-#11425-upstream-release-3.7
Automated cherry pick of #11425: add meter billing exchange rate module
2021-06-17 23:54:54 +08:00
bistuzx@163.com
fe622c89d3 add module billing exchange rate 2021-06-17 19:47:24 +08:00
Qu Xuan
b7c3e53731 fix(region): add project filter for cloudprovider 2021-06-17 17:19:21 +08:00
Zexi Li
c793d5cda7 Merge pull request #11403 from ioito/automated-cherry-pick-of-#11402-upstream-release-3.7
Automated cherry pick of #11402: fix(region): show project mapping managers info
2021-06-17 14:57:07 +08:00
Zexi Li
310dac6b3e Merge pull request #11414 from swordqiu/automated-cherry-pick-of-#11413-upstream-release-3.7
Automated cherry pick of #11413: fix: support windows 2003
2021-06-17 10:18:35 +08:00
Zexi Li
8eaa4a0653 Merge pull request #11416 from swordqiu/automated-cherry-pick-of-#11415-upstream-release-3.7
Automated cherry pick of #11415: fix: do not resize LVM paritition and skip and return success
2021-06-17 09:48:13 +08:00
Qiu Jian
a481666baa fix: support windows 2003 2021-06-17 09:45:27 +08:00
Qiu Jian
2d1884da54 fix: do not resize LVM paritition and skip and return success 2021-06-17 01:55:12 +08:00
yunion-ci-robot
119fa29e77 Merge pull request #11341 from zexi/automated-cherry-pick-of-#11205-upstream-release-3.7
Automated cherry pick of #11205: feat(baremetal): support management of none BMC host
2021-06-16 23:42:53 +08:00
Zexi Li
c799d89764 Merge pull request #11411 from ioito/automated-cherry-pick-of-#11404-upstream-release-3.7
Automated cherry pick of #11404: fix(region): ignore qcloud bw pkg error
2021-06-16 20:09:59 +08:00
Zexi Li
cd76efd19e Merge pull request #11407 from yousong/automated-cherry-pick-of-#11406-upstream-release-3.7
Automated cherry pick of #11406: webconsole: wait zombies
2021-06-16 20:09:02 +08:00
Qu Xuan
f36688d4b5 fix(region): ignore qcloud bw pkg error 2021-06-16 19:42:41 +08:00
Yousong Zhou
bcc8f0b581 webconsole: wait zombies 2021-06-16 19:33:51 +08:00
Qu Xuan
ad5d667587 fix(region): show project mapping managers info 2021-06-16 17:31:41 +08:00
Zexi Li
e76592de73 fix(baremetal): record uefi info 2021-06-16 12:49:56 +08:00
Zexi Li
382962fd0e fix(baremetal): nvme allocable 2021-06-16 12:49:56 +08:00
Zexi Li
0f74c9ba0a feat(baremetal): add UEFI related util 2021-06-16 12:49:56 +08:00
Zexi Li
30d4b3b7cd fix(baremetal): close ssh test client 2021-06-16 12:49:56 +08:00
Zexi Li
160a6e4dbb feat(baremetal): support management of none BMC host 2021-06-16 12:49:56 +08:00
Zexi Li
bf26f445a6 Merge pull request #11398 from ioito/automated-cherry-pick-of-#11397-upstream-release-3.7
Automated cherry pick of #11397: fix(region): add status resource statistic
2021-06-15 16:32:06 +08:00
Zexi Li
59fafadda6 Merge pull request #11393 from ioito/automated-cherry-pick-of-#11376-upstream-release-3.7
Automated cherry pick of #11376: fix(region): qcloud bandwidth pkg
2021-06-15 16:31:06 +08:00
Qu Xuan
638d01485e fix(region): add status resource statistic 2021-06-15 14:16:23 +08:00
Qu Xuan
1de62d60ed fix(region): qcloud bandwidth pkg 2021-06-11 19:17:53 +08:00
Zexi Li
91e833db42 Merge pull request #11381 from rainzm/automated-cherry-pick-of-#11380-upstream-release-3.7
Automated cherry pick of #11380: fix(notify): clean verifiedNote when marking verified
2021-06-11 17:49:53 +08:00
Zexi Li
7d3b5d2fcb Merge pull request #11377 from ioito/automated-cherry-pick-of-#11375-upstream-release-3.7
Automated cherry pick of #11375: fix(host): update rbd storage capacity
2021-06-11 17:46:34 +08:00
Zexi Li
02a17c1753 Merge pull request #11368 from ioito/automated-cherry-pick-of-#11367-upstream-release-3.7
Automated cherry pick of #11367: fix(region): support cloudprovider bind project mapping
2021-06-11 17:45:54 +08:00
rainzm
66ad8ace31 fix(notify): clean verifiedNote when marking verified 2021-06-11 10:08:20 +08:00
Qu Xuan
8f4ae62aa4 fix(host): update rbd storage capacity 2021-06-11 09:50:09 +08:00
Qu Xuan
9c41deb42c fix(region): support cloudprovider bind project mapping 2021-06-10 15:55:17 +08:00
Zexi Li
e9f7d87688 Merge pull request #11348 from zhaoxiangchun/automated-cherry-pick-of-#11347-upstream-release-3.7
Automated cherry pick of #11347: feat(mcclient): add bills dimension climc
2021-06-10 05:34:01 +08:00
Zexi Li
0b5461b707 Merge pull request #11370 from ioito/automated-cherry-pick-of-#11369-upstream-release-3.7
Automated cherry pick of #11369: fix(host): get ceph used capacity
2021-06-10 05:32:41 +08:00
Qu Xuan
2d791dd542 fix(host): get ceph used capacity 2021-06-09 19:25:36 +08:00
zhaoxiangchun
910372ea0c feat(mcclient): add bills dimension climc 2021-06-09 11:16:41 +08:00
Zexi Li
302a411629 Merge pull request #11307 from ioito/automated-cherry-pick-of-#11306-upstream-release-3.7
Automated cherry pick of #11306: fix(region): skip server migrate quota check
2021-06-08 23:29:29 +08:00
Zexi Li
f25b015143 Merge pull request #11339 from rainzm/automated-cherry-pick-of-#11338-upstream-release-3.7
Automated cherry pick of #11338: Add some tags to the monitoring data generated by the agent
2021-06-08 23:27:53 +08:00
Zexi Li
bf08a413d3 Merge pull request #11342 from ioito/automated-cherry-pick-of-#11340-upstream-release-3.7
Automated cherry pick of #11340: fix(cloudid): huawei group role attach and detach
2021-06-08 23:14:18 +08:00
Zexi Li
200911ef38 Merge pull request #11350 from ioito/automated-cherry-pick-of-#11349-upstream-release-3.7
Automated cherry pick of #11349: fix(cloudid): avoid duplicate create saml provider
2021-06-08 23:13:54 +08:00
Zexi Li
cb3aadd014 Merge pull request #11355 from ioito/automated-cherry-pick-of-#11354-upstream-release-3.7
Automated cherry pick of #11354: feat(apigateway): support export dict keys
2021-06-08 23:11:54 +08:00
Zexi Li
c84d543df2 Merge pull request #11358 from ioito/automated-cherry-pick-of-#11357-upstream-release-3.7
Automated cherry pick of #11357: fix(region): avoid storage update not work
2021-06-08 23:10:05 +08:00
Zexi Li
494a9041b3 Merge pull request #11362 from ioito/automated-cherry-pick-of-#11361-upstream-release-3.7
Automated cherry pick of #11361: fix(region): validate disk status when create snapshot
2021-06-08 23:08:16 +08:00
Qu Xuan
9f50a53945 fix(region): validate disk status when create snapshot 2021-06-08 20:09:11 +08:00
Qu Xuan
d11fcc7945 fix(region): avoid storage update not work 2021-06-08 17:33:53 +08:00
Qu Xuan
ebe101d9ab feat(apigateway): support export dict keys 2021-06-08 16:24:05 +08:00
Qu Xuan
87c1c0e290 fix(cloudid): avoid duplicate create saml provider 2021-06-08 14:19:17 +08:00
yunion-ci-robot
6ccfcbf0da Merge pull request #11312 from ioito/automated-cherry-pick-of-#11311-upstream-release-3.7
Automated cherry pick of #11311: fix(region): huawei disk tags
2021-06-08 10:50:26 +08:00
Qu Xuan
cf7f5f6805 fix(cloudid): huawei group role attach and detach 2021-06-07 18:18:08 +08:00
Zexi Li
22a5b36817 Merge pull request #11333 from ioito/automated-cherry-pick-of-#11332-upstream-release-3.7
Automated cherry pick of #11332: fix(region): validate attached disk size and backend
2021-06-07 17:43:48 +08:00
Zexi Li
8da358513a Merge pull request #11336 from zhaoxiangchun/automated-cherry-pick-of-#11335-upstream-release-3.7
Automated cherry pick of #11335: fix(telegraf-raid-plugin): add image-telegraf-raid-plugin in Makefile
2021-06-07 17:42:38 +08:00
rainzm
02252842e7 feat(build): change file repo version in Dockerfile.ansibleserver 2021-06-07 17:18:57 +08:00
rainzm
21c33d4844 feat(devtool): add some tags 2021-06-07 17:18:57 +08:00
rainzm
e7dc0213f6 fix(anisbleserver): support complex yaml config in ansibleplaybook_instance 2021-06-07 17:18:57 +08:00
zhaoxiangchun
754c2e62ee fix(telegraf-raid-plugin): add image-telegraf-raid-plugin in Makefile 2021-06-07 16:20:08 +08:00
Qu Xuan
c6e99bf802 fix(region): validate attached disk size and backend 2021-06-07 15:44:18 +08:00
Qu Xuan
f13c01d20f fix(region): skip server migrate quota check 2021-06-07 10:13:48 +08:00
Zexi Li
92d4e3cf7a Merge pull request #11327 from ioito/automated-cherry-pick-of-#11326-upstream-release-3.7
Automated cherry pick of #11326: fix(region): sync tags with new guest
2021-06-06 00:54:42 +08:00
Zexi Li
3efd579564 Merge pull request #11323 from zhaoxiangchun/automated-cherry-pick-of-#11320-upstream-release-3.7
Automated cherry pick of #11320: fix: 修复云账号和宿主机报警问题
2021-06-05 12:16:40 +08:00
Qu Xuan
4484a2082b fix(region): sync tags with new guest 2021-06-04 23:10:20 +08:00
Zexi Li
d2cfe35296 Merge pull request #11298 from tb365/automated-cherry-pick-of-#11297-upstream-release-3.7
Automated cherry pick of #11297: fix(region): lb local cert sync fix
2021-06-04 21:09:54 +08:00
Zexi Li
f548d76116 Merge pull request #11300 from swordqiu/automated-cherry-pick-of-#11299-upstream-release-3.7
Automated cherry pick of #11299: fix: hpssacli should skip empty slots
2021-06-04 21:04:26 +08:00
Zexi Li
fbcbe46a8e Merge pull request #11319 from ioito/automated-cherry-pick-of-#11318-upstream-release-3.7
Automated cherry pick of #11318: fix(region): avoid guest delete not with disks
2021-06-04 19:46:31 +08:00
zhaoxiangchun
1389d2176e fix: 修复云账号和宿主机报警问题
1.云账号报警时过滤掉已经禁用的云账号
2.修复宿主机报警时资源名称重复的问题
2021-06-04 19:24:36 +08:00
Qu Xuan
64a86f7ccd fix(region): avoid guest delete not with disks 2021-06-04 19:17:21 +08:00
Qu Xuan
5b5310c6ee fix(region): huawei disk tags 2021-06-04 14:37:13 +08:00
Qiu Jian
162dd766ff fix: hpssacli should skip empty slots
hpssacli may fail when detect disks on empty slots, which cause raid
detection failure
2021-06-03 19:35:53 +08:00
tb365
1c7c3e05bd fix(region): lb local cert sync fix 2021-06-03 18:51:37 +08:00
Zexi Li
5e59c6be73 Merge pull request #11290 from ioito/automated-cherry-pick-of-#11289-upstream-release-3.7
Automated cherry pick of #11289: fix(host): avoid panic when params is nil
2021-06-03 11:42:38 +08:00
Qu Xuan
41806c9388 fix(host): avoid panic when params is nil 2021-06-03 11:31:09 +08:00
Zexi Li
c498c6f22b Merge pull request #11285 from zexi/automated-cherry-pick-of-#11284-upstream-release-3.7
Automated cherry pick of #11284: fix(glance): add option of s3 image status check
2021-06-02 11:18:13 +08:00
Zexi Li
ec926f9b62 fix(glance): add option of s3 image status check 2021-06-02 10:46:34 +08:00
Zexi Li
43faf5a5bf Merge pull request #11281 from ioito/automated-cherry-pick-of-#11279-upstream-release-3.7
Automated cherry pick of #11279: fix(region): avoid deadlock when resize disk
2021-06-01 19:19:18 +08:00
Zexi Li
7243b4fd37 Merge pull request #11275 from ioito/automated-cherry-pick-of-#11274-upstream-release-3.7
Automated cherry pick of #11274: fix(region): disable public cloud ip pre allocate
2021-06-01 18:55:14 +08:00
Qu Xuan
767aa5c37a fix(region): avoid deadlock when resize disk 2021-06-01 14:29:53 +08:00
Zexi Li
01000d5334 Merge pull request #11276 from swordqiu/automated-cherry-pick-of-#11268-upstream-release-3.7
Automated cherry pick of #11268: fix: windows resize file system
2021-06-01 11:55:00 +08:00
Qiu Jian
4948869add fix: windows resize file system 2021-05-31 23:59:47 +08:00
Qu Xuan
fd94dc34da fix(region): disable public cloud ip pre allocate 2021-05-31 15:06:57 +08:00
Zexi Li
28b9460fb9 Merge pull request #11267 from ioito/automated-cherry-pick-of-#11266-upstream-release-3.7
Automated cherry pick of #11266: fix(region): fix aws json unmarshal error
2021-05-31 09:56:08 +08:00
Qu Xuan
35f7844c53 fix(region): fix aws json unmarshal error 2021-05-29 12:37:58 +08:00
Zexi Li
2e8c9ee159 Merge pull request #11265 from ioito/automated-cherry-pick-of-#11264-upstream-release-3.7
Automated cherry pick of #11264: fix(region): split provider tag sync
2021-05-28 20:36:26 +08:00
Qu Xuan
93a7f1b815 fix(region): split provider tag sync 2021-05-28 20:18:42 +08:00
Zexi Li
ac416cdfbc Merge pull request #11259 from zhaoxiangchun/automated-cherry-pick-of-#11258-upstream-release-3.7
Automated cherry pick of #11258: fix(host): raid status
2021-05-28 20:12:44 +08:00
zhaoxiangchun
daf14eb739 fix(host): raid status 2021-05-28 19:58:46 +08:00
Zexi Li
883cb64089 Merge pull request #11254 from tb365/automated-cherry-pick-of-#11253-upstream-release-3.7
Automated cherry pick of #11253: fix(region): lbcert cache clean duplicate data fix
2021-05-28 19:18:17 +08:00
Zexi Li
7b8303e9ab Merge pull request #11262 from ioito/automated-cherry-pick-of-#11249-upstream-release-3.7
Automated cherry pick of #11249: fix(region): optimized disk eip snapshot project sync
2021-05-28 19:17:09 +08:00
Qu Xuan
c7a9f726b8 fix(region): optimized disk eip snapshot project sync 2021-05-28 19:07:23 +08:00
tb365
55525a990c fix(region): lbcert cache clean duplicate data fix 2021-05-28 15:47:34 +08:00
Zexi Li
54d3962fb3 Merge pull request #11246 from swordqiu/automated-cherry-pick-of-#11245-upstream-release-3.7
Automated cherry pick of #11245: fix: get apigateway auth/regions with error of illegal mix of collations
2021-05-28 15:43:32 +08:00
Zexi Li
c4685cf58f Merge pull request #11252 from ioito/automated-cherry-pick-of-#11251-upstream-release-3.7
Automated cherry pick of #11251: fix(region): project sync condition
2021-05-28 15:29:05 +08:00
Qu Xuan
e51e0a7ab4 fix(region): project sync condition 2021-05-28 15:15:45 +08:00
Qiu Jian
1dbe7b930a fix: get apigateway auth/regions with error of illegal mix of collations 2021-05-28 09:39:53 +08:00
Zexi Li
071576111c Merge pull request #11218 from ioito/automated-cherry-pick-of-#11217-upstream-release-3.7
Automated cherry pick of #11217: fix(region): optimized aliyun qcloud tags sync
2021-05-27 20:33:12 +08:00
Zexi Li
37516c7b5d Merge pull request #11229 from ioito/automated-cherry-pick-of-#11228-upstream-release-3.7
Automated cherry pick of #11228: fix(region): translation errors
2021-05-27 19:50:02 +08:00
Zexi Li
3a299f0661 Merge pull request #11227 from tb365/automated-cherry-pick-of-#11226-upstream-release-3.7
Automated cherry pick of #11226: fix(region): lb cert name fix
2021-05-27 19:45:28 +08:00
Zexi Li
b4d784d283 Merge pull request #11241 from zexi/automated-cherry-pick-of-#11240-upstream-release-3.7
Automated cherry pick of #11240: fix(region): migrate use rescue mode
2021-05-27 19:43:32 +08:00
Zexi Li
95ef2bc51c Merge pull request #11243 from zexi/automated-cherry-pick-of-#11242-upstream-release-3.7
Automated cherry pick of #11242: Revert "fix(host): raid status fix"
2021-05-27 19:42:48 +08:00
Zexi Li
02a08bc6da Revert "fix(host): raid status fix"
This reverts commit 392f5ab237.
2021-05-27 19:41:42 +08:00
Zexi Li
10e574d389 Merge pull request #11235 from zhaoxiangchun/automated-cherry-pick-of-#11233-upstream-release-3.7
Automated cherry pick of #11233: fix(host): raid status fix
2021-05-27 19:36:23 +08:00
Zexi Li
644a9c1035 fix(region): migrate use rescue mode 2021-05-27 19:35:44 +08:00
zhaoxiangchun
12209ee0c7 fix(host): raid status fix
1. All status are online except offline.
2021-05-27 16:04:18 +08:00
Qu Xuan
e76c1d6c02 fix(region): optimized azure aliyun qcloud tags sync 2021-05-27 10:53:46 +08:00
Qu Xuan
018ef0d986 fix(region): translation errors 2021-05-27 10:48:15 +08:00
tb365
b71406e6ec fix(region): lb cert name fix 2021-05-26 19:58:54 +08:00
Zexi Li
a67bdedb45 Merge pull request #11220 from ioito/automated-cherry-pick-of-#11219-upstream-release-3.7
Automated cherry pick of #11219: fix(host): avoid delete removed disk failed
2021-05-26 14:21:55 +08:00
Qu Xuan
913757f138 fix(host): avoid delete removed disk failed 2021-05-25 21:01:46 +08:00
Zexi Li
8f41c4165a Merge pull request #11202 from ioito/automated-cherry-pick-of-#11201-upstream-release-3.7
Automated cherry pick of #11201: fix(region): show azure deploy failed error
2021-05-25 19:08:50 +08:00
Zexi Li
ec709234d7 Merge pull request #11213 from ioito/automated-cherry-pick-of-#11212-upstream-release-3.7
Automated cherry pick of #11212: fix(region): aws vpc network eip disk tags sync
2021-05-25 19:07:52 +08:00
Zexi Li
b264e3c074 Merge pull request #11211 from zexi/automated-cherry-pick-of-#11166-upstream-release-3.7
Automated cherry pick of #11166: feat(region): add server migration predication API
2021-05-25 18:25:13 +08:00
Qu Xuan
c73de5f64f fix(region): aws vpc network eip disk tags sync 2021-05-25 17:45:44 +08:00
Zexi Li
7c7687ae4d feat(region): add server migration predication API 2021-05-25 17:02:44 +08:00
Qu Xuan
88046eea10 fix(region): show azure deploy failed error 2021-05-25 10:34:50 +08:00
Zexi Li
d445b55d68 Merge pull request #11199 from ioito/automated-cherry-pick-of-#11198-upstream-release-3.7
Automated cherry pick of #11198: fix(region): restrict account project mapping
2021-05-24 18:16:42 +08:00
Zexi Li
122a07b96b Merge pull request #11192 from ioito/automated-cherry-pick-of-#11191-upstream-release-3.7
Automated cherry pick of #11191: fix(region): azure uniform tags
2021-05-24 17:23:31 +08:00
Qu Xuan
984790c18f fix(region): restrict account project mapping 2021-05-24 16:46:58 +08:00
Qu Xuan
1d4b2a04bd fix(region): azure uniform tags 2021-05-24 15:02:03 +08:00
Zexi Li
cb830ad8e3 Merge pull request #11179 from ioito/automated-cherry-pick-of-#11178-upstream-release-3.7
Automated cherry pick of #11178: fix(region): add project and domain info for project mapping rules
2021-05-24 10:16:22 +08:00
Zexi Li
9a69b8c0d2 Merge pull request #11181 from tb365/automated-cherry-pick-of-#11177-upstream-release-3.7
Automated cherry pick of #11177: feat(region): loadbalancer certificate add purge methods
2021-05-24 10:15:07 +08:00
TangBin
cf5dcc611f fix(region): gofmt fix 2021-05-21 11:02:23 +08:00
Qu Xuan
1456b93ec2 fix(region): check sku request error 2021-05-21 11:02:23 +08:00
Qu Xuan
b5fcfb5d16 fix(region): add project and domain info for project mapping rules 2021-05-20 20:41:25 +08:00
Zexi Li
dfee854fb4 Merge pull request #11169 from ioito/automated-cherry-pick-of-#11168-upstream-release-3.7
Automated cherry pick of #11168: fix(region): add host_id options for storage filter
2021-05-20 18:54:26 +08:00
Zexi Li
bba05e4702 Merge pull request #11171 from ioito/automated-cherry-pick-of-#11170-upstream-release-3.7
Automated cherry pick of #11170: fix(region): avoid aws session not assume role
2021-05-20 18:53:01 +08:00
Zexi Li
c93624a093 Merge pull request #11173 from zhaoxiangchun/automated-cherry-pick-of-#11172-upstream-release-3.7
Automated cherry pick of #11172: fix(monitor): fix storage tag
2021-05-20 18:51:42 +08:00
zhaoxiangchun
d1da58b42f fix(monitor): fix storage tag 2021-05-20 17:26:00 +08:00
Qu Xuan
78a9a1ea80 fix(region): avoid aws session not assume role 2021-05-20 16:42:04 +08:00
Qu Xuan
2fb095bc5b fix(region): add host_id options for storage filter 2021-05-20 14:39:42 +08:00
Zexi Li
00c58b79e5 Merge pull request #11093 from zhaoxiangchun/automated-cherry-pick-of-#11025-upstream-release-3.7
Automated cherry pick of #11025: feat(monitor): add storage monitor metric
2021-05-20 09:54:01 +08:00
Zexi Li
bb40ff8ebb Merge pull request #11161 from ioito/automated-cherry-pick-of-#11160-upstream-release-3.7
Automated cherry pick of #11160: fix(region): check sku request error
2021-05-19 23:31:02 +08:00
Qu Xuan
45d3b75211 fix(region): check sku request error 2021-05-19 19:26:51 +08:00
Zexi Li
b6654ce59e Merge pull request #11155 from ioito/automated-cherry-pick-of-#11154-upstream-release-3.7
Automated cherry pick of #11154: fix(region): avoid azure secgroup sync removed
2021-05-19 17:41:20 +08:00
Zexi Li
af88fea62e Merge pull request #11153 from ioito/automated-cherry-pick-of-#11152-upstream-release-3.7
Automated cherry pick of #11152: fix(region): avoid index out of range panic
2021-05-19 17:40:10 +08:00
Qu Xuan
74847d573c fix(region): avoid azure secgroup sync removed 2021-05-19 15:57:55 +08:00
Qu Xuan
11a2f89f6c fix(region): avoid index out of range panic 2021-05-19 15:34:47 +08:00
Zexi Li
5a49a3b0b1 Merge pull request #11149 from rainzm/automated-cherry-pick-of-#11148-upstream-release-3.7
Automated cherry pick of #11148: feat(ansible): add rolePublic and timeout options
2021-05-19 15:23:30 +08:00
Zexi Li
9f89d90bef Merge pull request #11147 from ioito/automated-cherry-pick-of-#11146-upstream-release-3.7
Automated cherry pick of #11146: fix(region): more accounts details for project mapping
2021-05-19 15:23:17 +08:00
Zexi Li
eed04e0569 Merge pull request #11140 from tb365/automated-cherry-pick-of-#11139-upstream-release-3.7
Automated cherry pick of #11139: fix(region): ctyun delete secgroup fix
2021-05-19 15:22:17 +08:00
rainzm
d6791e6074 feat(ansible): add rolePublic and timeout options 2021-05-19 11:29:07 +08:00
Qu Xuan
7cb4da8bda fix(region): more accounts details for project mapping 2021-05-18 17:56:46 +08:00
Zexi Li
14f3d77bf6 Merge pull request #11143 from zexi/automated-cherry-pick-of-#11142-upstream-release-3.7
Automated cherry pick of #11142: fix(glance): make image is_standard updatable
2021-05-18 17:18:30 +08:00
Zexi Li
31c1cbd4f7 fix(glance): make image is_standard updatable 2021-05-18 16:43:32 +08:00
TangBin
f53f9566bb fix(region): ctyun delete secgroup fix 2021-05-18 16:21:20 +08:00
Zexi Li
4cb42acc76 Merge pull request #11135 from ioito/automated-cherry-pick-of-#11134-upstream-release-3.7
Automated cherry pick of #11134: fix(cloudid): clouduser use default domain
2021-05-18 15:56:42 +08:00
Qu Xuan
e8b432a99c fix(cloudid): clouduser use default domain 2021-05-18 15:19:56 +08:00
Zexi Li
ae55af072f Merge pull request #11127 from rainzm/automated-cherry-pick-of-#11126-upstream-release-3.7
Automated cherry pick of #11126: fix(region): check whether the disks of the instance snapshot is empty when creating vm
2021-05-17 22:36:20 +08:00
rainzm
e40c98d602 fix(region): check whether the disks of the instance snapshot is empty when creating vm 2021-05-17 17:26:36 +08:00
Zexi Li
28a99c1d53 Merge pull request #11102 from ioito/automated-cherry-pick-of-#11101-upstream-release-3.7
Automated cherry pick of #11101: fix(region): optimized server sku sku
2021-05-17 10:08:17 +08:00
Zexi Li
9e8da72d53 Merge pull request #11119 from rainzm/automated-cherry-pick-of-#11116-upstream-release-3.7
Automated cherry pick of #11116: webhook fix
2021-05-17 10:07:42 +08:00
Zexi Li
ab68eee123 Merge pull request #11108 from rainzm/automated-cherry-pick-of-#11107-upstream-release-3.7
Automated cherry pick of #11107: fix(esxiagent): make the copied disk type as thin
2021-05-17 10:07:02 +08:00
Zexi Li
f0ec3269f6 Merge pull request #11122 from rainzm/automated-cherry-pick-of-#11121-upstream-release-3.7
Automated cherry pick of #11121: fix(esxiagent): execute deploy operation by default in AgentDeployGuest
2021-05-17 10:06:09 +08:00
yunion-ci-robot
4165571c49 Merge pull request #11124 from ioito/automated-cherry-pick-of-#11123-upstream-release-3.7
Automated cherry pick of #11123: fix(region): project mapping optional
2021-05-16 16:08:57 +08:00
屈轩
a14a434952 fix(region): project mapping optional 2021-05-16 14:17:36 +08:00
rainzm
a0f7a5e7bc fix(esxiagent): execute deploy operation by default in AgentDeployGuest 2021-05-14 19:14:07 +08:00
Zexi Li
a2e3099ae3 Merge pull request #11113 from tb365/automated-cherry-pick-of-#11112-upstream-release-3.7
Automated cherry pick of #11112: fix(region): aws sync disk missing image id fix
2021-05-14 17:33:05 +08:00
rainzm
e65e38f50c fix(region): send webhook when the creation task is completely completed 2021-05-14 17:23:23 +08:00
rainzm
80f07d0675 fix(region): send webhook notification when delete dbinstance 2021-05-14 17:23:23 +08:00
TangBin
c3a11613d8 fix(region): aws sync disk missing image id fix 2021-05-14 15:59:22 +08:00
rainzm
f6bf63fa89 fix(esxiagent): make the copied disk type as thin
磁盘首选精简制备,但是copy disk默认是预分配,所以需要特别指定为
精简制备
2021-05-14 15:05:10 +08:00
Qu Xuan
1c19d1d9cb fix(region): optimized server sku sku 2021-05-13 20:57:48 +08:00
Zexi Li
c15375df27 Merge pull request #11098 from ioito/automated-cherry-pick-of-#11097-upstream-release-3.7
Automated cherry pick of #11097: fix(region): allow update sku status
2021-05-13 20:27:35 +08:00
Qu Xuan
29c77119f6 fix(region): allow update sku status 2021-05-13 19:45:36 +08:00
Zexi Li
9ecad8fc8b Merge pull request #11033 from ioito/automated-cherry-pick-of-#11032-upstream-release-3.7
Automated cherry pick of #11032: fix(region): aliyun vpc endpoint
2021-05-13 18:51:45 +08:00
Zexi Li
ec692eacf4 Merge pull request #11054 from ioito/automated-cherry-pick-of-#11053-upstream-release-3.7
Automated cherry pick of #11053: fix(region): optimized sku sched clear
2021-05-13 18:49:27 +08:00
Zexi Li
b49ff6f7ed Merge pull request #11096 from rainzm/automated-cherry-pick-of-#11095-upstream-release-3.7
Automated cherry pick of #11095: fix(region): use the previous method for guest notification instead of message subscription
2021-05-13 18:48:39 +08:00
rainzm
b3c8cf6cd7 fix(region): use the previous method for guest notification instead of message subscription 2021-05-13 17:42:25 +08:00
zhaoxiangchun
c501123b6e feat(monitor): add storage monitor metric
1.增加块存储storage监控信息:
  1)增加对应翻译信息
  2)监控信息和modules.Strorages接口进行交集取值
  3)返回信息处理
2021-05-13 15:27:54 +08:00
Zexi Li
04113d35f2 Merge pull request #11051 from rainzm/automated-cherry-pick-of-#11050-upstream-release-3.7
Automated cherry pick of #11050: fix(ansibleserver): correct playbook path and role path
2021-05-13 11:55:46 +08:00
Qu Xuan
16cfab47e6 fix(region): optimized sku sched clear 2021-05-13 11:06:54 +08:00
Qu Xuan
c2fbd90bc6 fix(region): aliyun vpc endpoint 2021-05-12 16:27:08 +08:00
rainzm
25db02f5d7 fix(ansibleserver): correct playbook path 2021-05-12 16:22:07 +08:00
Zexi Li
bc581509f4 Merge pull request #11049 from zexi/automated-cherry-pick-of-#11048-upstream-release-3.7
Automated cherry pick of #11048: fix(glance): set fail status when upload image to s3
2021-05-12 15:16:01 +08:00
Zexi Li
0c4c46b2fa fix(glance): set fail status when upload image to s3 2021-05-12 15:02:12 +08:00
Zexi Li
e5d4ad273b Merge pull request #11047 from zexi/automated-cherry-pick-of-#11045-upstream-release-3.7
Automated cherry pick of #11045: fix(baremetal): register baremetal name invalid
2021-05-12 14:52:57 +08:00
Zexi Li
a8312c5e2c fix(baremetal): register baremetal name invalid 2021-05-12 13:07:38 +08:00
Zexi Li
1f7081ed07 Merge pull request #11044 from rainzm/automated-cherry-pick-of-#11043-upstream-release-3.7
Automated cherry pick of #11043: maintain compatibility with previous webhooks
2021-05-12 12:19:46 +08:00
Zexi Li
f5ad6a75ff Merge pull request #11031 from rainzm/automated-cherry-pick-of-#11030-upstream-release-3.7
Automated cherry pick of #11030: fix(region): add RequestRemoteUpdate for ESXiGuestDriver
2021-05-12 12:01:58 +08:00
rainzm
780a024e74 fix(region): maintain compatibility with webhook notify 2021-05-12 10:41:03 +08:00
rainzm
15abea72a2 fix(cloudcommon): disable EventNotify for now
The front end is not yet open, temporarily disable it to avoid meaningless logic and requests
2021-05-12 10:41:03 +08:00
Zexi Li
1c8170e71f Merge pull request #11037 from ioito/automated-cherry-pick-of-#11036-upstream-release-3.7
Automated cherry pick of #11036: fix(region): aliyun nas endpoint
2021-05-12 10:24:11 +08:00
Zexi Li
86096c55ca Merge pull request #11042 from swordqiu/automated-cherry-pick-of-#11041-upstream-release-3.7
Automated cherry pick of #11041: fix: resolve conflict of climc docker build
2021-05-12 09:34:45 +08:00
Qiu Jian
7db688a9ce fix: resolve conflict of climc docker build 2021-05-12 09:20:43 +08:00
Zexi Li
4e6433303b Merge pull request #11040 from zexi/automated-cherry-pick-of-#11039-upstream-release-3.7
Automated cherry pick of #11039: fix(climc): mv climc rpm package .bashrc to /etc/profile.d/climc.sh
2021-05-11 18:18:06 +08:00
Zexi Li
01d2612abb fix(climc): mv climc rpm package .bashrc to /etc/profile.d/climc.sh 2021-05-11 18:16:35 +08:00
Qu Xuan
b7b030fc2e fix(region): aliyun nas endpoint 2021-05-11 15:40:37 +08:00
rainzm
72bc3b8645 fix(region): add RequestRemoteUpdate for ESXiGuestDriver 2021-05-11 11:41:18 +08:00
Zexi Li
2f4bd11e34 Merge pull request #11021 from ioito/automated-cherry-pick-of-#11010-upstream-release-3.7
Automated cherry pick of #11010: fix(region): support project mapping
2021-05-11 10:10:30 +08:00
Yousong Zhou
5da591971c Merge pull request #11024 from yousong/automated-cherry-pick-of-#11023-upstream-release-3.7
Automated cherry pick of #11023: Bugfix/yousong cloudproxy
2021-05-11 09:53:04 +08:00
yunion-ci-robot
4fc53ac5af Merge pull request #11028 from rainzm/automated-cherry-pick-of-#11027-upstream-release-3.7
Automated cherry pick of #11027: fix for install agent for vm
2021-05-11 09:52:55 +08:00
rainzm
b5d4b30ddf fix(devtool): set 'task_id' and 'task_notify_url' in header 2021-05-10 19:58:20 +08:00
rainzm
7a1ba77d93 fix(devtool): get 'lastseen' not 'last_seen' of forward 2021-05-10 19:58:20 +08:00
rainzm
8d7a991d62 feat(cloudproxy): add GetDetailsLastseen for forwards 2021-05-10 19:58:20 +08:00
Yousong Zhou
50f0ca5290 guests: sshable: fix breaking out from wait loop 2021-05-10 17:12:10 +08:00
Yousong Zhou
cb35bc3067 cloudproxy: agent: no collision between ports of ssh conn and forwards 2021-05-10 17:12:10 +08:00
Yousong Zhou
96bcefd50b cloudproxy: agent: refresh every 11 seconds 2021-05-10 17:12:10 +08:00
Yousong Zhou
0a31365190 cloudproxy: agent: ssh: wait ssh conn state while passing it out 2021-05-10 17:12:10 +08:00
Qu Xuan
0b4e459e0a fix(region): support project mapping 2021-05-10 16:15:34 +08:00
Zexi Li
c1cf476f6f Merge pull request #11012 from rainzm/automated-cherry-pick-of-#11011-upstream-release-3.7
Automated cherry pick of #11011: fix(cloudproxy): correct fetch projectId from server for PE
2021-05-10 12:08:00 +08:00
Zexi Li
7430f82f8e Merge pull request #10997 from rainzm/automated-cherry-pick-of-#10996-upstream-release-3.7
Automated cherry pick of #10996: fix(region): continue to sync the snapshots that are being created when syncing auto created snapshot
2021-05-10 12:05:44 +08:00
Zexi Li
4bf6f20710 Merge pull request #11017 from swordqiu/automated-cherry-pick-of-#11016-upstream-release-3.7
Automated cherry pick of #11016: fix: init cloud shell by apigateway
2021-05-10 12:02:45 +08:00
Zexi Li
a7d96eb382 Merge pull request #11014 from swordqiu/automated-cherry-pick-of-#11013-upstream-release-3.7
Automated cherry pick of #11013: fix: missing yunionconf log
2021-05-10 12:00:09 +08:00
Qiu Jian
d80d9f13b7 fix: init cloud shell by apigateway 2021-05-09 01:34:30 +08:00
rainzm
4ba3a26701 fix(cloudproxy): correct fetch projectId from server for PE 2021-05-08 22:26:08 +08:00
Qiu Jian
eda02abc94 fix: missing yunionconf log 2021-05-08 21:53:12 +08:00
Zexi Li
bbdbc7c209 Merge pull request #11007 from zhaoxiangchun/automated-cherry-pick-of-#11005-upstream-release-3.7
Automated cherry pick of #11005: fix(monitor): alertpanel update don't chcek  uniq name
2021-05-08 20:39:03 +08:00
Zexi Li
1c8a566f0f Merge pull request #11009 from yousong/automated-cherry-pick-of-#11008-upstream-release-3.7
Automated cherry pick of #11008: cloudproxy: test proxy endpoint connectivity and remote config
2021-05-08 20:38:40 +08:00
Yousong Zhou
50395f7f7b cloudproxy: test proxy endpoint connectivity and remote config 2021-05-08 19:31:05 +08:00
zhaoxiangchun
8bc086e8df fix(monitor): alertpanel update don't chcek uniq name 2021-05-08 17:50:43 +08:00
Zexi Li
0364e9a0d5 Merge pull request #11001 from ioito/automated-cherry-pick-of-#11000-upstream-release-3.7
Automated cherry pick of #11000: fix(region): wire sql fix
2021-05-08 16:10:15 +08:00
Qu Xuan
8b1b5c0f55 fix(region): wire sql fix 2021-05-08 15:49:16 +08:00
rainzm
eb049034c2 fix(region): continue to sync the snapshots that are being created when syncing auto created snapshot 2021-05-08 11:09:30 +08:00
Zexi Li
9edb75cb55 Merge pull request #10984 from zhaoxiangchun/automated-cherry-pick-of-#10983-upstream-release-3.7
Automated cherry pick of #10983: fix(monitor): monitor query : cloudaccount no data fix
2021-05-08 10:37:33 +08:00
Zexi Li
abb7197039 Merge pull request #10980 from rainzm/automated-cherry-pick-of-#10979-upstream-release-3.7
Automated cherry pick of #10979: fix for creating proxy endpoint
2021-05-08 10:36:57 +08:00
Zexi Li
d354f9c26f Merge pull request #10986 from ioito/automated-cherry-pick-of-#10985-upstream-release-3.7
Automated cherry pick of #10985: fix: add tag for databricks vm
2021-05-08 10:36:13 +08:00
Zexi Li
bf3fb8e4c6 Merge pull request #10989 from ioito/automated-cherry-pick-of-#10988-upstream-release-3.7
Automated cherry pick of #10988: fix: avoid return no data result
2021-05-08 10:35:31 +08:00
Zexi Li
ff3749c018 Merge pull request #10991 from rainzm/automated-cherry-pick-of-#10990-upstream-release-3.7
Automated cherry pick of #10990: fix for install monitor agent
2021-05-08 10:34:45 +08:00
yunion-ci-robot
7b5293e1d8 Merge pull request #10994 from yousong/automated-cherry-pick-of-#10993-upstream-release-3.7
Automated cherry pick of #10993: Bugfix/yousong cloudproxy wait on error
2021-05-08 10:29:40 +08:00
Qu Xuan
082d5a9d61 fix: add tag for databricks vm 2021-05-08 09:28:22 +08:00
Yousong Zhou
bfe665bbf6 guests: sshable: wait and retry for newly created forward 2021-05-07 19:43:15 +08:00
Yousong Zhou
b242af75f4 guests: sshable: log error should unmarshal fail 2021-05-07 19:43:15 +08:00
Yousong Zhou
20f04d2fc5 cloudproxy: agent: more verbose log for ssh connect failure 2021-05-07 19:43:15 +08:00
Yousong Zhou
2cfdb0a08a cloudproxy: agent: wait a while on connect error 2021-05-07 19:43:15 +08:00
Yousong Zhou
92a4bebb2e cloudproxy: forwards: show details for fwd returned from create-from-server 2021-05-07 19:43:15 +08:00
Yousong Zhou
2e82399204 db: add GetItemDetails 2021-05-07 19:43:15 +08:00
rainzm
f89f43d167 fix: update version of file-repo 2021-05-07 18:35:22 +08:00
rainzm
93af6514d3 fix(devtool): wait for the remote forward to run normally 2021-05-07 18:35:22 +08:00
rainzm
73db546f58 fix(devtool): extend the waiting time when checking remote forward 2021-05-07 18:35:22 +08:00
rainzm
93e1f48cbd fix(devtool): add scope=system query when list proxy endpoints 2021-05-07 18:35:22 +08:00
rainzm
93dad50d72 fix(devtool): correct output error 2021-05-07 18:35:22 +08:00
Qu Xuan
8ba639bb4e fix: avoid return no data result 2021-05-07 17:35:58 +08:00
Zexi Li
20327d53b3 Merge pull request #10982 from zexi/automated-cherry-pick-of-#10981-upstream-release-3.7
Automated cherry pick of #10981: feat(region): host list order by server count
2021-05-07 10:34:32 +08:00
zhaoxiangchun
4f7ad853df fix(monitor): monitor query : cloudaccount no data fix
1.修复云账号余额监控查询无数据返回
2021-05-07 09:42:16 +08:00
Zexi Li
0cd7fdd8bb feat(region): host list order by server count 2021-05-06 20:54:06 +08:00
rainzm
835a311275 fix(region): allow domain admin to obtain ssh private keys 2021-05-06 16:52:51 +08:00
rainzm
de7ef8baaf fix(cloudproxy): keep the proxy endpoint project and server consistent 2021-05-06 16:52:51 +08:00
Zexi Li
02d922b5a8 Merge pull request #10976 from zhasm/automated-cherry-pick-of-#10975-upstream-release-3.7
Automated cherry pick of #10975: feat(arm64,build): arm 编译时,不编译 rbdcli
2021-05-06 15:13:01 +08:00
Zhang Dongliang
31363d8d03 feat(arm64,build): arm 编译时,不编译 rbdcli 2021-05-06 11:46:41 +08:00
Zexi Li
970edbb8e7 Merge pull request #10973 from rainzm/automated-cherry-pick-of-#10972-upstream-release-3.7
Automated cherry pick of #10972: fix(notify): correctly filter those recipients who join the domain
2021-04-30 09:59:09 +08:00
rainzm
60f2dfed8a fix(notify): correctly filter those recipients who join the domain 2021-04-29 20:14:19 +08:00
Zexi Li
ba7e086b19 Merge pull request #10965 from tb365/automated-cherry-pick-of-#10964-upstream-release-3.7
Automated cherry pick of #10964: Bugfix/tb bugfix 042801
2021-04-29 09:46:48 +08:00
Zexi Li
f3cbf83fe1 Merge pull request #10968 from ioito/automated-cherry-pick-of-#10967-upstream-release-3.7
Automated cherry pick of #10967: fix(keystone): avoid panic when call logclient
2021-04-29 09:46:23 +08:00
Qu Xuan
7e35db1040 fix(keystone): avoid panic when call logclient 2021-04-28 19:36:35 +08:00
TangBin
22cc784a48 feat(region): add zone disk capability api 2021-04-28 18:17:33 +08:00
TangBin
71ee5d8519 feat(region): cloudregion add disk capability api 2021-04-28 18:17:33 +08:00
Zexi Li
6c5a8f6c41 Merge pull request #10957 from ioito/automated-cherry-pick-of-#10956-upstream-release-3.7
Automated cherry pick of #10956: fix: avoid host worker is locked when image cache is deleted
2021-04-28 09:56:12 +08:00
yunion-ci-robot
423ab9f60d Merge pull request #10960 from swordqiu/automated-cherry-pick-of-#10940-upstream-release-3.7
Automated cherry pick of #10940: Hotfix/qj import user require password
2021-04-28 09:55:28 +08:00
Qiu Jian
a17c84613f fix: require password for imported user 2021-04-28 01:13:50 +08:00
Qu Xuan
251afc7d63 fix: avoid host worker is locked when image cache is deleted 2021-04-27 20:38:04 +08:00
Zexi Li
492fbe2341 Merge pull request #10933 from rainzm/automated-cherry-pick-of-#10932-upstream-release-3.7
Automated cherry pick of #10932: Correctly execute the ansible playbook with the specified private key
2021-04-27 20:12:52 +08:00
Zexi Li
99366d42af Merge pull request #10955 from zhaoxiangchun/automated-cherry-pick-of-#10954-upstream-release-3.7
Automated cherry pick of #10954: fix(monitor): alertdashboard setscope
2021-04-27 20:12:15 +08:00
Zexi Li
a447c2a696 Merge pull request #10953 from ioito/automated-cherry-pick-of-#10952-upstream-release-3.7
Automated cherry pick of #10952: fix: optimized rbd storage input and update
2021-04-27 20:11:51 +08:00
Zexi Li
3ec1ed6b9b Merge pull request #10949 from rainzm/automated-cherry-pick-of-#10948-upstream-release-3.7
Automated cherry pick of #10948: Makes the process of installing the agent more rigorous
2021-04-27 20:10:58 +08:00
Zexi Li
7549ccfb0b Merge pull request #10942 from zexi/automated-cherry-pick-of-#10941-upstream-release-3.7
Automated cherry pick of #10941: fix(region): download cached image from source host before migrating
2021-04-27 20:10:05 +08:00
Zexi Li
f6472ce1ce Merge pull request #10945 from ioito/automated-cherry-pick-of-#10944-upstream-release-3.7
Automated cherry pick of #10944: fix(region): tag list key case insensitive
2021-04-27 17:21:26 +08:00
Zexi Li
708db7b956 fix(region): download cached image from source host before migrating 2021-04-27 17:13:47 +08:00
zhaoxiangchun
c78defe39a fix(monitor): alertdashboard setscope
1.监控面板归属展示问题修复
2021-04-27 17:11:58 +08:00
Qu Xuan
fae6d333c2 fix: optimized rbd storage input and update 2021-04-27 15:42:57 +08:00
rainzm
769425f58a feat(devtool): makes the process of installing the agent more rigorous
1. Use the method returned by server sshable to execute ansible playbook
2. Use direct connection and cloud proxy to find the url that the remote machine
can send data back to local influxdb
2021-04-27 12:01:35 +08:00
rainzm
630729ca84 fix(ansibleserver): be compatible with empty params 2021-04-27 12:01:35 +08:00
rainzm
fb1fb906fa feat(region): return forwardDetails when query server sshable 2021-04-27 12:01:35 +08:00
Qu Xuan
909eeeb782 fix(region): tag list key case insensitive 2021-04-27 11:55:33 +08:00
Zexi Li
72cac9aa15 Merge pull request #10938 from swordqiu/automated-cherry-pick-of-#10937-upstream-release-3.7
Automated cherry pick of #10937: fix(baremetal,esxiagent): no cloudroot user initialized
2021-04-27 10:17:19 +08:00
Zexi Li
b55f7e42d0 Merge pull request #10935 from swordqiu/automated-cherry-pick-of-#10934-upstream-release-3.7
Automated cherry pick of #10934: fix(region): add all.servers.any_pool/all.hosts.any_pool metrics
2021-04-27 10:16:26 +08:00
Qiu Jian
9ae991c153 fix(baremetal,esxiagent): no cloudroot user initialized 2021-04-27 02:00:04 +08:00
Qiu Jian
5bb3958547 fix(region): add all.servers.any_pool/all.hosts.any_pool metrics 2021-04-27 01:49:28 +08:00
Zexi Li
8a9bace797 Merge pull request #10923 from ioito/automated-cherry-pick-of-#10922-upstream-release-3.7
Automated cherry pick of #10922: fix(keystone): tag list for keystone service
2021-04-26 19:10:57 +08:00
Zexi Li
54f1bf99de Merge pull request #10927 from zhaoxiangchun/automated-cherry-pick-of-#10926-upstream-release-3.7
Automated cherry pick of #10926: fix(monitor): alertpanel create fix; nodealert filterbyowner fix
2021-04-26 19:09:18 +08:00
Zexi Li
3732b44c6d Merge pull request #10929 from ioito/automated-cherry-pick-of-#10928-upstream-release-3.7
Automated cherry pick of #10928: fix(region): account arrears
2021-04-26 19:08:19 +08:00
rainzm
4088e47f92 fix(ansibleserver): add LF for privateKey if not 2021-04-26 18:59:44 +08:00
rainzm
7b0f45261d feat(ansibleserver): respect keepTmpdir when running ansibleplaybook v1 2021-04-26 18:59:44 +08:00
rainzm
9502cfebf4 fix(ansibleserver): don't init privateKey for ansibleplaybook if it already have one 2021-04-26 18:59:44 +08:00
Qu Xuan
f68afc4aa6 fix(region): account arrears 2021-04-26 18:02:50 +08:00
zhaoxiangchun
1c8b54f117 fix(monitor): alertpanel create fix; nodealert filterbyowner fix
1.监控图表保存时取消重名检测,允许图表重名
2.虚拟机详情页设置报警时,不同视图下设置报警权限调整

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

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

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

* fix(region): sync exttags to user tags

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

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

Link: https://app.circleci.com/pipelines/github/yunionio/onecloud/25085/workflows/6efec9d0-cdd5-45eb-bb1e-f62849e22b76/jobs/55153
2020-12-26 11:10:53 +08:00
Yousong Zhou
eb6be534e7 locales: regenerate locales.go 2020-12-26 11:10:53 +08:00
Yousong Zhou
719f919021 locales: zh-CN: regenerate messages.gotext.json 2020-12-26 11:10:53 +08:00
Yousong Zhou
c786a56efa build: add y18n-check, y18n-gen 2020-12-26 11:10:53 +08:00
Yousong Zhou
f31a2175c5 .circleci: use centos-build:1.1-4
- place the code in canonical GOPATH when GO111MODULE can be off
 - always set ONECLOUD_CI_BUILD, including the test step
2020-12-26 11:10:53 +08:00
Yousong Zhou
139740613f build: use centos-build:1.1-4
y18n support in 1.1-4
2020-12-26 11:10:53 +08:00
Yousong Zhou
87e08c49de build: docker: add ModName 2020-12-26 11:10:53 +08:00
Yousong Zhou
7a01f72d64 build: docker: move to Makefile.common.mk 2020-12-26 11:10:53 +08:00
Yousong Zhou
ac713700ac scripts/docker_push.sh: minor polishments
- removed bundled baremetal-agent before building new to avoid go
   error for refusing to overwrite a text file
 - use docker buildx build no mater what
 - check existence of dockerfile before calling general_build to avoid
   error by cmd/chksum
2020-12-26 11:10:53 +08:00
Yousong Zhou
e778b99b78 scripts/docker_push.sh: use toplevel Makefile target 2020-12-26 11:10:53 +08:00
Yousong Zhou
d7804f6da7 build: docker: align centos variant with the alpine one 2020-12-26 11:10:53 +08:00
Yousong Zhou
3d7e5aaf92 build: docker: make target GOARCH/GOOS/CGO_ENABLED aware 2020-12-26 11:10:53 +08:00
Yousong Zhou
6c7a124481 build: docker: remove GOFLAGS export 2020-12-26 11:10:53 +08:00
Yousong Zhou
57b4cec5d4 scripts/coverage.sh: detect use of "-mod vendor" 2020-12-26 11:10:53 +08:00
Yousong Zhou
a90a26a4ec region: fix error msg for invalid wire_level_for_vmware 2020-12-26 11:10:53 +08:00
rainzm
17f04c3388 feat(region): add options DeleteSnapshotExpiredRelease 2020-12-26 11:10:09 +08:00
--global
2f11e60123 fix(monitor): monitor notify international and 3.6 bugfix
1.修复项目下无法查看报警记录
2.修复报警策略切换所属范围signature失败
3.国际化问题处理
2020-12-26 11:04:59 +08:00
22607 changed files with 1225286 additions and 7313363 deletions

View File

@@ -3,11 +3,22 @@
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
test:
check:
docker:
- image: yunionio/centos-build:1.1-4
environment:
ONECLOUD_CI_BUILD: "1"
working_directory: /root/go/src/yunion.io/x/onecloud
steps:
- checkout
- run:
command: |
make -j3 check
build:
requires:
- check
docker:
- image: yunion/alpine-build:3.22.0-go-1.24.6-1
- image: yunionio/centos-build:1.1-4
environment:
ONECLOUD_CI_BUILD: "1"
@@ -16,21 +27,58 @@ jobs:
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /root/go/src/yunion.io/x/onecloud
resource_class: large
parallelism: 1
parallelism: 4
steps:
- checkout
- restore_cache:
key: onecloud-build-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
- run:
command: |
make -j3 check
make test
targets="$(circleci tests glob "cmd/*" | grep -v cmd/host-image | circleci tests split)"
echo $targets | tr ' ' '\n'
make $targets
make -j2 $targets
ls -lh _output/bin/
- save_cache:
key: onecloud-build-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
- store_artifacts:
path: _output/
test:
requires:
- check
docker:
- image: yunionio/centos-build:1.1-4
environment:
ONECLOUD_CI_BUILD: "1"
working_directory: /root/go/src/yunion.io/x/onecloud
parallelism: 4
steps:
- checkout
- restore_cache:
key: onecloud-test-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
- run:
name: unit_test
command: |
./scripts/coverage.sh --codecov
- save_cache:
key: onecloud-test-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
workflows:
version: 2
build_and_test:
jobs:
- test
- check
- build:
requires:
- check
- test:
requires:
- check

View File

@@ -1,3 +0,0 @@
[*.sh]
indent_style = space
indent_size = 4

View File

@@ -1,20 +1,21 @@
---
name: Bug report
about: 报告代码缺陷/Create a bug report to help us improve
title: '[BUG]'
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**问题描述/What happened**:
**What happened**:
**环境/Environment**:
**What you expected to happen**:
- OS (e.g. `cat /etc/os-release`):
**How to reproduce it**:
**Anything else we need to know?**:
**Environment**:
- OS (e.g: `cat /etc/os-release`):
- Kernel (e.g. `uname -a`):
- Host: (e.g. `dmidecode | egrep -i 'manufacturer|product' |sort -u`)
- Service Version (e.g. `kubectl exec -n onecloud $(kubectl get pods -n onecloud | grep climc | awk '{print $1}') -- climc version-list`):
<!--
- Version (e.g. `climc version-list`):
-->
- Others:

View File

@@ -1,12 +0,0 @@
---
name: 文档问题/Document Request
about: 文档相关缺陷改进/Document request to this project
title: '[文档/Docs]'
labels:
- area/docs
- enhancement
assignees: ''
---
**What part of the document needs to be added**:

View File

@@ -1,10 +1,14 @@
---
name: 新特性/Feature Request
about: 建议新功能特性/Suggest an idea for this project
title: '[Feature]'
name: Feature request
about: Suggest an idea for this project
title: ''
labels: feature
assignees: ''
---
<!-- Please only use this template for submitting feature requests -->
**What would you like to be added**:
**Why is this needed**:

View File

@@ -1,7 +1,7 @@
---
name: 求助/Support Request
about: 求助使用中遇到的问题/Support request relating to this project
title: '[求助/Help]'
name: Support Request
about: Support request or question relating to this project
title: ''
labels: question
assignees: ''

View File

@@ -1,19 +1,15 @@
**What this PR does / why we need it**:
**这个 PR 实现什么功能/修复什么问题**:
<!--
- [ ] Smoke testing completed
- [ ] Unit test written
- [ ] 功能、bugfix描述
- [ ] 冒烟测试
- [ ] 单元测试编写
-->
**Does this PR need to be backport to the previous release branch?**:
**是否需要 backport 到之前的 release 分支**:
<!--
If no, just write "NONE".
If don't know, write "UNKNOWN", and let the reviewer decide.
If yes, write the release branches name in the below format and submit the related cherry-pick PR:
- release/3.11
Take a look at "https://www.cloudpods.org/en/docs/contribute/contrib/" to learn how to submit a cherry-pick PR.
如果不需要,填写 "NONE".
如果需要,就以下面 item 的格式写 release 分支名,并提交对应的 cherry-pick PR:
- release/3.2
-->

View File

@@ -1,38 +0,0 @@
name: Building and test for PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Install check tools
shell: bash
run: |
set -o xtrace
git clone --branch master --depth 4 https://github.com/yunionio/tools && cd tools
go build ./cmd/goimports && sudo cp goimports /usr/bin/ && cd .. && rm -rf tools
git clone --depth 4 https://github.com/yousong/y18n && cd y18n
go build . && sudo cp y18n /usr/bin && cd .. && rm -rf y18n
- name: Test and build
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
make -j3 check
make test
targets="$(find cmd -mindepth 1 -maxdepth 1 -type d | grep -v cmd/host-image | grep -v torrent)"
echo $targets | tr ' ' '\n'
make $targets
ls -lh _output/bin

233
.github/workflows/docker.yml vendored Normal file
View File

@@ -0,0 +1,233 @@
name: Docker image
on:
push:
branches:
- master
- releases/*
#paths:
#- 'cmd/*'
#- 'pkg/*'
#- 'vendor/*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Build
run: |
sudo apt-get update
sudo apt-get install librados-dev librbd-dev # baremetal-agent needs this
make cmd/baremetal-agent && ./scripts/bundle_libraries.sh _output/bin/bundles/baremetal-agent _output/bin/baremetal-agent
make docker-alpine-build F='-j4 cmd/host cmd/vpcagent cmd/region-dns make cmd/apigateway cmd/climc cmd/keystone make cmd/logger cmd/region cmd/scheduler cmd/webconsole make cmd/yunionconf cmd/glance cmd/torrent cmd/s3gateway make cmd/ansibleserver cmd/cloudnet cmd/notify make cmd/host-deployer make cmd/cloudevent cmd/devtool cmd/cloudid make cmd/*cli make cmd/esxi-agent'
- name: Image region
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/region
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.region
- name: Image host
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/host
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.host
- name: Image host-deployer
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/host-deployer
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.host-deployer
- name: Image baremetal-agent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/baremetal-agent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.baremetal-agent
- name: Image esxi-agent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/esxi-agent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.esxi-agent
- name: Image vpcagent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/vpcagent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.vpcagent
- name: Image climc
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/climc
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.climc
- name: Image keystone
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/keystone
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.keystone
- name: Image logger
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/logger
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.logger
- name: Image scheduler
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/scheduler
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.scheduler
- name: Image apigateway
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/apigateway
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.apigateway
- name: Image s3gateway
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/s3gateway
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.s3gateway
- name: Image ansibleserver
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.ansibleserver
- name: Image cloudnet
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudnet
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.cloudnet
- name: Image glance
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/glance
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.glance
- name: Image notify
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/notify
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.notify
- name: Image cloudevent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudevent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.cloudevent
- name: Image cloudid
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudid
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.cloudid
- name: Image devtool
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/devtool
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.devtool
- name: Image region DNS
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/region-dns
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.region-dns

View File

@@ -1,52 +0,0 @@
name: Apigateway Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/apigateway/**.go'
- 'pkg/apis/apigateway/**.go'
- 'pkg/mcclient/modules/**.go'
jobs:
build_apigateway:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image apigateway

View File

@@ -1,50 +0,0 @@
name: Climc Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'cmd/climc/**.go'
- 'pkg/mcclient/**.go'
- 'vendor/yunion.io/x/structarg/**.go'
jobs:
build_climc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image climc

View File

@@ -1,51 +0,0 @@
name: Cloudmon Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudmon/**.go'
- 'vendor/yunion.io/x/cloudmux/pkg/multicloud/loader/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image cloudmon

View File

@@ -1,49 +0,0 @@
name: Esxi Agent Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/esxi/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image esxi-agent

View File

@@ -1,53 +0,0 @@
name: Glance Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/image/**.go'
- 'pkg/apis/image/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_glance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image glance

View File

@@ -1,49 +0,0 @@
name: Host Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/hostman/**.go'
- 'pkg/apis/host/**.go'
jobs:
build_host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image host

View File

@@ -1,53 +0,0 @@
name: Keystone Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/keystone/**.go'
- 'pkg/apis/identity/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_keystone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image keystone

View File

@@ -1,53 +0,0 @@
name: Logger Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/logger/**.go'
- 'pkg/apis/logger/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image logger

View File

@@ -1,53 +0,0 @@
name: Notify Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/notify/**.go'
- 'pkg/apis/notify/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image notify

View File

@@ -1,54 +0,0 @@
name: Region Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/compute/**.go'
- 'pkg/apis/compute/**.go'
- 'vendor/yunion.io/x/cloudmux/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_region:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image region

View File

@@ -1,50 +0,0 @@
name: Scheduler Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/scheduler/**.go'
- 'pkg/apis/scheduler/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image scheduler

View File

@@ -1,53 +0,0 @@
name: Webconsole Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/webconsole/**.go'
- 'pkg/apis/webconsole/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image webconsole

View File

@@ -1,45 +0,0 @@
name: Issue Check Inactive
on:
schedule:
- cron: "0 0 * * *"
permissions:
issues: write
jobs:
issue-check-inactive:
runs-on: ubuntu-latest
steps:
- name: Label inactive issues as stale
env:
GH_TOKEN: ${{ github.token }}
INACTIVE_DAY: "30"
INACTIVE_LABEL: "stale"
EXCLUDE_LABEL: "announcement"
run: |
set -euo pipefail
cutoff="$(date -u -d "${INACTIVE_DAY} days ago" +%Y-%m-%dT%H:%M:%SZ)"
gh issue list \
--repo "${{ github.repository }}" \
--state open \
--limit 1000 \
--json number,labels,updatedAt \
| jq -c \
--arg cutoff "$cutoff" \
--arg inactive "$INACTIVE_LABEL" \
--arg exclude "$EXCLUDE_LABEL" \
'
.[]
| select(.updatedAt < $cutoff)
| select([.labels[].name] | index($exclude) | not)
| select([.labels[].name] | index($inactive) | not)
' \
| while IFS= read -r issue; do
number="$(echo "$issue" | jq -r .number)"
echo "Marking issue #${number} as ${INACTIVE_LABEL}"
gh issue edit "$number" \
--repo "${{ github.repository }}" \
--add-label "$INACTIVE_LABEL"
done

View File

@@ -1,44 +0,0 @@
name: Issue Close Require
on:
schedule:
- cron: "0 1 * * *"
permissions:
issues: write
jobs:
issue-close-require:
runs-on: ubuntu-latest
steps:
- name: Close inactive issues awaiting user feedback
env:
GH_TOKEN: ${{ github.token }}
INACTIVE_DAY: "7"
run: |
set -euo pipefail
cutoff="$(date -u -d "${INACTIVE_DAY} days ago" +%Y-%m-%dT%H:%M:%SZ)"
body="$(cat <<'EOF'
If you do not provide feedback for more than 37 days, we will close the issue and you can either reopen it or submit a new issue.
您超过 37 天未反馈信息,我们将关闭该 issue如有需求您可以重新打开或者提交新的 issue。
EOF
)"
# Trim leading indentation from heredoc lines for a cleaner comment.
body="$(printf '%s\n' "$body" | sed 's/^[[:space:]]*//')"
gh issue list \
--repo "${{ github.repository }}" \
--state open \
--label "stale" \
--label "state/awaiting user feedback" \
--limit 1000 \
--json number,updatedAt \
| jq -c --arg cutoff "$cutoff" '.[] | select(.updatedAt < $cutoff)' \
| while IFS= read -r issue; do
number="$(echo "$issue" | jq -r .number)"
echo "Closing issue #${number}"
gh issue close "$number" \
--repo "${{ github.repository }}" \
--comment "$body"
done

View File

@@ -1,22 +0,0 @@
name: Issue Close Check
on:
issues:
types: [closed]
permissions:
issues: write
jobs:
issue-closed-remove-labels:
runs-on: ubuntu-latest
if: "!contains(github.event.issue.labels.*.name, 'stale')"
steps:
- name: Remove state labels when issue that hasn't stale label is closed
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--remove-label "state/awaiting processing" \
--remove-label "state/awaiting user feedback" || true

View File

@@ -1,51 +0,0 @@
on:
issue_comment:
types: [created]
name: Add issues workflow labels
permissions:
issues: write
jobs:
add-label-if-is-author:
runs-on: ubuntu-latest
if: (github.event.issue.user.id == github.event.comment.user.id) && !github.event.issue.pull_request && (github.event.issue.state == 'open')
steps:
- name: Add require handle label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--add-label "state/awaiting processing"
- name: Remove require reply label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--remove-label "state/awaiting user feedback" \
--remove-label "stale" || true
add-label-if-not-author:
runs-on: ubuntu-latest
if: (github.event.issue.user.id != github.event.comment.user.id) && !github.event.issue.pull_request && (github.event.issue.state == 'open') && (!contains(github.event.comment.body, '/keep-state'))
steps:
- name: Add require reply label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--add-label "state/awaiting user feedback"
- name: Remove require handle label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--remove-label "state/awaiting processing" \
--remove-label "stale" || true

View File

@@ -1,17 +0,0 @@
on:
issue_comment:
types: [created]
jobs:
notify-author-comment:
runs-on: ubuntu-latest
if: (github.event.issue.user.id == github.event.comment.user.id) && !github.event.issue.pull_request
# find context from: https://docs.github.com/en/webhooks/webhook-events-and-payloads#issue_comment
steps:
- name: feishu notify
uses: zexi/action-issues-notify@v1
with:
url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
issue_title: "${{ github.event.comment.user.login }} 回复了 issue: ${{ github.event.issue.title }}"
issue_body: "${{ tojson(github.event.comment.body) }}"
issue_link_url: "${{github.event.comment.html_url}}"

View File

@@ -1,41 +0,0 @@
name: Issue Open Check
on:
issues:
types: [opened, reopened]
permissions:
issues: write
jobs:
issue-open-add-labels:
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request }}
steps:
- name: Add labels
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--add-label "state/awaiting processing"
- name: Remove require reply label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--remove-label "state/awaiting user feedback" \
--remove-label "stale" || true
notify-author-comment:
runs-on: ubuntu-latest
steps:
- name: feishu notify
uses: zexi/action-issues-notify@v1
with:
url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
issue_title: "${{ github.event.issue.user.login }} 提交了 issue: ${{ github.event.issue.title }}"
issue_body: "${{ tojson(github.event.issue.body) }}"
issue_link_url: "${{github.event.issue.html_url}}"

2
.gitignore vendored
View File

@@ -41,5 +41,3 @@ pkg/generated
# gotext extracted
out.gotext.json
pkg/notify/sender/email_test.go

View File

@@ -1,128 +0,0 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
abuse@cloudpods.org.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.

View File

@@ -1,51 +1,3 @@
# Contribution Guide
[English](CONTRIBUTING.md) | [中文](CONTRIBUTING_zh.md)
You can help to make Cloudpods better! There are many things you can do:
## Help others know Cloudpods
First of all, the easiest way to contribute to Cloudpods is to let more people know Cloudpods. To share your experience of Cloudpods. Hopefully Cloudpods may help resolve the issues in their daily jobs.
## Report Bugs
Cloudpods is an infrastructure management tool. Even though it has been thourougly tested and codes have been peer reviwed before merge, due to its complexity, you may still encounter bugs when using Cloudpods. This is frustrating. However, please do not hesitate to submit a issue at Github. The issue may help developers to improve the codes and make Cloudpods more and more robust. Meanwhile, the answer to the issues may also help others who have the similar bugs.
## Answer issues
You may answer issues at Github and help those who encounter issues when using Cloudpods. Sometimes, the issues are not due to bugs in codes but simplely because of misconfigurations, environment or misunderstandings.
## Contribute codes
You are welcome to contribute codes to Cloudpods. Please refers to [CONTRIBUTING](https://www.cloudpods.org/en/docs/development/contrib/) for more details on how to contribute codes to Cloudpods.
### Fix Issues
You may help solve bugs by submiting patches.
### New Features
You may help improve the codes of Cloudpods, including:
* Develop new [features for Cloudpods](https://github.com/yunionio/cloudpods/issues?q=is%3Aopen+is%3Aissue+label%3Afeature).
* Recode some part of Cloudpods so as to make the code easier to be understood, or less error-prone, or more efficient.
## Documentation
You may help improve documentations of Cloudpds by directly make pull request to documentations. Once the Pull Request is accepted and merged, the documentations will be updated immediately.
## Translation
You may help translate the UI texts or documents of Cloudpds to other languages. Currently, we support Simplified Chinese and English.
## Write articles
You are also welcome to write articles about Cloudpods and sharing your experience with others. The content of the articles may include the following but not be limited to:
* Your user experiences with Cloudpods
* Your opinion about the direction and area of Cloudpods
* Comparison with other cloud platforms
* Benchmarks
# 开发贡献参考
详情见文档 [开发贡献](https://docs.yunion.io/docs/contribute/)

View File

@@ -1,48 +0,0 @@
# 贡献指南
[English](CONTRIBUTING.md) | [中文](CONTRIBUTING_zh.md)
如果您对Cloudpods感兴趣并且愿意为Cloudpods贡献可以通过以下任意方式贡献您的力量使得Cloudpods变得更完善。
## 让别人知道Cloudpods
最简单的方式就是让更多的人知道Cloudpods向他们分享您对Cloudpds的看法和使用经验向他们推荐Cloudpods。很有可能在您的推荐下他们开始使用Cloudpods并解决了他们在工作中遇到的基础设施管理问题。
## 报告BUG
Cloudpods是一款开源的基础设施管理工具软件运行场景复杂。尽管在开发阶段开发者很有可能已经进行了详尽的测试但难免在实际运行中还会遇到各种意想不到的bug。遇到这种情况请不要犹豫在Github上提交一个issue。这能帮助开发者更好地改进代码逻辑使得Cloudpods越来越鲁棒。同时issue的解答记录也能帮助到遇到类似问题的其他人。
## 回答问题
有时候人们在使用Cloudpods中遇到的问题并不是因为Cloudpods软件缺陷造成的而是因为配置错误环境因素或者误会导致的。这样的问题也许只需要简单地一两句就能解答不需要代码的修改。您可以在Github回答issue或者社区群中回答提问帮助那些在使用Cloudpods中遇到问题的人。
## 贡献代码
我们非常欢迎和感谢开发者向项目提交代码PR流程细节请查看 [CONTRIBUTING](https://www.cloudpods.org/docs/development/contrib/).
### 修复BUG
您可以通过提交代码补丁来修复Cloudpods存在的BUG。
### 开发新的功能特性
不仅仅是修复BUG您也可以通过提交代码以改进Cloudpods包括但不限于
* 开发新的功能特性,您可以在[feature issues](https://github.com/yunionio/cloudpods/issues?q=is%3Aopen+is%3Aissue+label%3Afeature)查找需要的功能。
* 重构代码,使得代码更加简洁易读,更加低健壮,或者执行起来更加高效。
## 文档
您也可以通过给文档提交PR来改进Cloudpods的文档。一旦您的PR被接收并合并Cloudpods的在线文档就能及时地自动更新。
## 翻译
您也可以帮助翻译Cloudpods要么翻译UI界面的i18n配置文件要么翻译文档使得Cloudpods支持更多的语言。目前Cloudpods支持简体中文和英文。
## 写文章
另外欢迎您写关于Cloudpods的文章通过文字分享您使用Cloudpods的经验和技巧。文章可以包括但不限于如下内容
* 使用Cloudpods的体验
* Cloudpods技术领域的观点
* 和其他竞品的比较
* 性能评测

View File

@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Copyright [2018] [Yunion Technology]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@@ -47,6 +47,11 @@ PKGS := go list ./...
CGO_CFLAGS_ENV = $(shell go env CGO_CFLAGS)
CGO_LDFLAGS_ENV = $(shell go env CGO_LDFLAGS)
ifdef LIBQEMUIO_PATH
X_CGO_CFLAGS := ${CGO_CFLAGS_ENV} -I${LIBQEMUIO_PATH}/src -I${LIBQEMUIO_PATH}/src/include
X_CGO_LDFLAGS := ${CGO_LDFLAGS_ENV} -laio -lqemuio -lpthread -L ${LIBQEMUIO_PATH}/src
endif
export GOOS ?= linux
export GO111MODULE:=on
export CGO_CFLAGS = ${X_CGO_CFLAGS}
@@ -58,7 +63,7 @@ ifeq ($(UNAME), Linux)
XARGS_FLAGS = --no-run-if-empty
endif
cmdTargets:=$(wildcard cmd/*)
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)))
@@ -76,16 +81,19 @@ gencopyright:
@bash scripts/gencopyright.sh pkg cmd
test:
@go test $(GO_BUILD_FLAGS) $(shell go list ./... | egrep -v 'host-image|hostimage|torrent')
@go test $(GO_BUILD_FLAGS) $(shell go list ./... | egrep -v 'host-image|hostimage')
vet:
go vet ./...
# cmd/esxi-agent: prepare_dir
# CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
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
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
$(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
rpm/%: cmd/%
$(BUILD_SCRIPT) $*
@@ -96,6 +104,21 @@ deb/%: cmd/%
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)
@@ -166,8 +189,7 @@ goimports-check:
echo "$@: working tree modified (possibly by goimports)" >&2 ; \
echo "$@: " >&2 ; \
echo "$@: import spec should be grouped in order: std, 3rd-party, yunion.io/x, yunion.io/x/onecloud" >&2 ; \
echo "$@: goimports should be installed by: \
echo "$@: git clone --depth 4 https://github.com/yunionio/tools && cd tools && go install ./cmd/goimports ; \
echo "$@: see \"yun\" branch at https://github.com/yousong/tools" >&2 ; \
false ; \
fi
.PHONY: goimports-check
@@ -185,7 +207,6 @@ 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/llm \
yunion.io/x/onecloud/cmd/monitor \
yunion.io/x/onecloud/cmd/region \
yunion.io/x/onecloud/cmd/yunionconf \
@@ -220,25 +241,10 @@ y18n-check:
.PHONY: y18n-check
define hostdeployer-grpc-gen
set -o errexit; \
set -o pipefail; \
protoc -I pkg/hostman/hostdeployer/apis \
--go_out=pkg/hostman/hostdeployer/apis \
--go_opt=paths=source_relative \
--go-grpc_out=pkg/hostman/hostdeployer/apis \
--go-grpc_opt=paths=source_relative \
pkg/hostman/hostdeployer/apis/deploy.proto
endef
hostdeployer-grpc-gen:
$(hostdeployer-grpc-gen)
check: fmt-check
check: gendocgo-check
#check: goimports-check
#check: vet-check
check: goimports-check
check: vet-check
#check: y18n-check
.PHONY: check
@@ -261,18 +267,18 @@ dep:
@echo "$$depDeprecated"
@$(MAKE) mod
RELEASE_BRANCH:=master
GOPROXY ?= direct
mod:
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get yunion.io/x/cloudmux@$(RELEASE_BRANCH)
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p' | grep -v '/cloudmux$$'))
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go mod tidy
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go mod vendor -v
go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p'))
go mod tidy
go mod vendor -v
define helpText
Build with docker
make docker-centos-build F='-j4'
make docker-centos-build F='-j4 cmd/region cmd/climc'
make docker-centos-build-stop
make docker-alpine-build F='-j4'
make docker-alpine-build F='-j4 cmd/host cmd/host-deployer'
make docker-alpine-build-stop
@@ -324,7 +330,7 @@ image:
.PHONY: image
image-telegraf-raid-plugin:
VERSION=v4.0-20260115.0 GOOS=linux ARCH=all make image telegraf-raid-plugin
VERSION=release-1.6.1 ARCH=all make image telegraf-raid-plugin
%:
@:

View File

@@ -4,11 +4,12 @@ __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:3.23-go-1.26.3-0
DockerImageAlpineBuild?=$(DockerImageRegistry)/yunionio/alpine-build:1.0-5
DockerImageCentOSBuild?=$(DockerImageRegistry)/yunionio/centos-build:1.1-4
EnvIf=$(if $($(1)),$(1)=$($(1)))
@@ -16,7 +17,6 @@ define dockerCentOSBuildCmd
set -o xtrace
set -o errexit
set -o pipefail
git config --global --add safe.directory /root/go/src/yunion.io/x/$(ModBaseName)
cd /root/go/src/yunion.io/x/$(ModBaseName)
env \
$(call EnvIf,GOARCH) \
@@ -26,16 +26,33 @@ env \
chown -R $(shell id -u):$(shell id -g) _output
endef
tmpName=$(ModBaseName)-$(shell date +"%Y%m%d.%H%M%S%3N")
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
git config --global --add safe.directory /root/go/src/yunion.io/x/$(ModBaseName)
cd /root/go/src/yunion.io/x/$(ModBaseName)
git config --global --add safe.directory /root/go/src/yunion.io/x/onecloud
env \
$(call EnvIf,GOARCH) \
$(call EnvIf,GOOS) \
@@ -46,10 +63,10 @@ endef
docker-alpine-build: export dockerAlpineBuildCmd:=$(call dockerAlpineBuildCmd,$(F))
docker-alpine-build:
docker rm --force docker-alpine-build-$(tmpName) &>/dev/null || true
docker rm --force docker-alpine-build-$(ModBaseName) &>/dev/null || true
docker run \
--rm \
--name docker-alpine-build-$(tmpName) \
--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 \
@@ -58,7 +75,7 @@ docker-alpine-build:
ls -lh _output/alpine-build/bin
docker-alpine-build-stop:
docker stop --time 0 docker-alpine-build-$(tmpName) || true
docker stop --time 0 docker-alpine-build-$(ModBaseName) || true
.PHONY: docker-alpine-build
.PHONY: docker-alpine-build-stop

13
OWNERS
View File

@@ -1,6 +1,15 @@
# See the OWNERS docs at https://go.k8s.io/owners
approvers:
- swordqiu
reviewers:
- Zexi
- ioito
- swordqiu
- tb365
- wanyaoqi
- yousong
- zhaoxiangchun
- zhasm
approvers:
- swordqiu
- yousong
- wanyaoqi
- Zexi

View File

@@ -1,122 +1,54 @@
# Cloudpods
# Yunion Cloud (云联融合云)
[![CircleCI](https://circleci.com/gh/yunionio/cloudpods.svg?style=svg)](https://circleci.com/gh/yunionio/cloudpods)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/cloudpods)](https://goreportcard.com/report/github.com/yunionio/cloudpods)
[![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)
[简体中文](./README-CN.md) | [English](./README.md)
## 什么是云联融合云?
## Cloudpods是什么?
云联融合云Yunion Cloud是一个开源的多云平台。融合云构建在用户分布于多云基础设施之上通过技术手段将分布于多云的异构IT资源统一管理将多底层多云的差异向用户屏蔽并通过网络和调度实现资源的融合与打通在多云之上进行抽象向用户呈现统一的使用界面和API接口让用户就像使用一个云平台一样使用分布于多云的资源实现一个统一的“云上之云”的云平台。
<img src="https://v1.cloudpods.org/images/cloudpods_logo_green.png" alt="Cloudpods" height="100">
鉴于企业IT基础设施的两个趋势1. 企业使用多云基础设施并且公有云是最主要的基础设施提供者2. 企业应用将逐步云原生化企业IT基础设施需要为Kubernetes优化。融合云为此架构而设计。一方面抽象管理底层的多云基础设施另一方面为多云Kubernetes提供运行环境。融合云为企业未来的的IT基础设施架构而设计。
Cloudpods是一个开源的Golang实现的云原生的融合多云/混合云的云平台也就是一个”云上之云”。Cloudpods不仅可以管理本地的虚拟机和物理机资源还可以管理多个云平台和云账号。Cloudpods隐藏了这些异构基础设施资源的数据模型和API的差异对外暴露了一套统一的API允许用户就像用一个云一样地访问多云。从而大大降低了访问多云的复杂度提升了管理多云的效率。
云联融合云具备以下功能特性:
Cloudpods还提供了 **AI 云**一个面向大语言模型LLM推理与 AI 容器应用的统一管理平台,帮助企业在同一平台完成 AI 工作负载的部署、调度与运维,与 Cloudpods 私有云/多云资源体系无缝集成。
- 多云资源统一管理
## 谁需要Cloudpods?
统一API、镜像、调度、账号体系、监控和计费等操作能够全面管理 On premises、 私有云、公有云资源。
* 将几台物理服务器虚拟化成一个私有云平台
* 需要一个紧凑而且功能相对完整的物理机全生命周期管理工具
* 将VMware vSphere虚拟化集群转换为一个可以自服务的私有云平台
* 在混合云的场景,能够在一个界面访问私有云和公有云
* 通过一个集中的入口访问分布在多个公有云平台上的多个账号
* 当前只使用一个公有云账号但希望将来使用多云的用户
* 需要部署和管理 LLM 推理服务及 AI 容器应用,并需要 GPU 调度支持的用户
- 内置私有云
## 功能
YunionCloud 内置完备的私有云实现提供对用户本地IDC的虚拟机、物理机和负载均衡等资源管理。
请访问[产品介绍](https://www.cloudpods.org/docs/introduction/)页面了解详细信息。
- 为多云Kubernetes提供运行环境
### AI 云
YunionCloud 自身为运行在Kubernetes的云原生应用并且能在多云环境部署运行Kubernetes集群。
* **AI 推理服务**:部署和管理 LLM 推理实例(支持 Ollama、vLLM、SGLang 等),支持 GPU 调度、模型挂载与推理服务地址分配。
* **AI 应用管理**:一站式部署 LLM 应用编排、智能体助手、图像生成等 AI 容器应用。
* **模型库**:统一管理模型来源、版本与缓存,支持多实例复用、离线分发,避免重复下载。
* **模板与镜像**:通过模板定义 CPU/内存/GPU 等资源规格,通过镜像管理容器运行环境,实现标准化交付。
* **GPU 运维**GPU 设备自动探测与注册,支持 NVIDIA/CUDA 环境的统一配置与管理。
欢迎安装部署云联融合云,期待大家的反馈!
支持的 AI 工作负载:
* AI 推理Ollama、vLLM、SGLang
* AI 应用OpenClaw、Dify、ComfyUI、Hermes Agent
### 支持的云平台
## 部署
* 公有云:
* AWS
* Azure
* Google Cloud Platform
* 阿里云
* 华为云
* 腾讯云
* UCloud
* 天翼云
* 移动云
* 京东云
* 火山引擎
* 百度云
* 金山云
* 青云
* Oracle Cloud
* 联通云
* 私有云:
* OpenStack
* ZStack
* Alibaba Cloud Apsara (阿里飞天)
* Huawei HCSO (华为HCSO)
* Nutanix
* BingoCloud
* OceanBase
* 本地基础设施资源:
* 基于 KVM 实现的轻量级私有云
* VMware vSphere vCenter/ESXi
* Proxmox VE
* 裸金属 (IPMI, Redfish API)
* 对象存储 (Minio, Ceph, XSky)
* NAS (Ceph)
请参考文档 [安装部署](https://docs.yunion.io/docs/setup/) 搭建 YunionCloud 集群。
### 支持的云资源
* 服务器实例、磁盘、网卡、网络、VPC、存储、宿主机、二层网络、快照、快照策略、安全组、弹性 IP、SSH 密钥对、镜像
* 负载均衡实例、监听、后端服务器组、后端服务器、TLS 证书、访问控制
* 对象存储:存储桶、对象
* NAS文件系统、权限组、挂载点
* RDS实例、账号、备份、数据库、参数、权限
* 弹性缓存:实例、账号、备份、参数
* DNSDNS 区域、DNS 记录
* VPCVPC、VPC 对等连接、跨 VPC 网络、NAT 网关、DNAT/SNAT 规则、路由表、路由条目
## 安装部署
请参考文档[安装部署](https://www.cloudpods.org/docs/getting-started/)选择合适的场景部署。
## 文档
* [Cloudpods文档](https://www.cloudpods.org/zh)
- [文档中心](https://docs.yunion.io/)
* [Swagger API文档](https://www.cloudpods.org/zh/docs/swagger/)
- [Swagger API文档](https://docs.yunion.cn/api/)
## 谁在使用Cloudpods
请在[这里](https://github.com/yunionio/cloudpods/issues/11427)查看Cloudpods用户列表。如果你正在使用Cloudpods欢迎回复留下你的信息。谢谢对Cloudpods的支持
## 架构
## 联系我们
![architecture](https://www.yunion.cn/static/frame.png)
* 请查看[联系我们](https://www.cloudpods.org/docs/contact/)。
* TG群: [cloudpods](https://t.me/cloudpods_org)
## 版本历史
请查看[发布日志](https://www.cloudpods.org/docs/release-notes/)和[Changelog](https://www.cloudpods.org/docs/development/changelog/)。
## 贡献
欢迎和感谢任何形式的贡献,不局限于贡献代码,流程细节请查看 [CONTRIBUTING](./CONTRIBUTING_zh.md)。
我们非常欢迎和感谢开发者向项目做贡献,流程细节请查看 [CONTRIBUTING.md](./CONTRIBUTING.md)
## License
Apache license 2.0详情请看 [LICENSE](./LICENSE)。
## AI生成文档
[DeepWiki](https://deepwiki.com/yunionio/cloudpods) 提供了对本项目代码详细和全面的AI解读可以参考。
YunionCloud 使用 Apache license 2.0. 详情请看 [LICENSE](./LICENSE)

126
README.md
View File

@@ -1,123 +1,55 @@
# Cloudpods
# Yunion Cloud
[![CircleCI](https://circleci.com/gh/yunionio/cloudpods.svg?style=svg)](https://circleci.com/gh/yunionio/cloudpods)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/cloudpods)](https://goreportcard.com/report/github.com/yunionio/cloudpods)
[![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)
[English](./README.md) | [简体中文](./README-CN.md)
### [README in Chinese](./README-CN.md)
## What is Cloudpods?
## What is Yunion Cloud?
<img src="https://v1.cloudpods.org/images/cloudpods_logo_green.png" alt="Cloudpods" height="100">
Yunion Cloud is an open source unified-IaaS cloud platform.
Cloudpods is a cloud-native open source unified multi/hybrid-cloud platform developed with Golang, i.e. Cloudpods is *a cloud on clouds*. Cloudpods is able to manage not only on-premise KVM/baremetals, but also resources from many cloud accounts across many cloud providers. It hides the differences of underlying cloud providers and exposes one set of APIs that allow programatically interacting with these many clouds.
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.
Cloudpods also provides **AI Cloud**, a unified management platform for large language model (LLM) inference and AI container applications, helping enterprises deploy, schedule, and operate AI workloads on a single platform, seamlessly integrated with the Cloudpods private cloud / multi-cloud resource ecosystem.
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.
## Who needs Cloudpods?
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.
* Those who need a simple solution to virtualize a few physical servers into a private cloud
* Those who need a compact and fully automatic baremetal lift-cycle management solution
* Those who want to turn a VMware vSphere virtualization cluster into a private cloud
* Those who need a cohesive view of both public and private cloud in a hybrid cloud setup
* Those who need a centric portal to access multiple accounts from multiple public clouds
* Those who is currently using a single cloud account, but will not lose the possibility to adopt multicloud strategy
* Those who need to deploy and manage LLM inference services and AI container applications with GPU support
Yunion Cloud is working on abstracting APIs for the following resources:
## Features
* Compute, including virtual machines, images, etc.
* Storage, including disks, snapshots, object storages, etc.
* Networking, including load balancers, VPC, virtual networks, NAT gateways, security groups, etc.
* Accouting and billing, etc.
* ...
See [Introduction](https://www.cloudpods.org/docs/introduction/) for details.
over the following many cloud providers:
### AI Cloud
* On-premise IT resources, including kvm VM, baremetal, VMware vsphere/ESXi, etc.
* Private clouds, including OpenStack, etc.
* Public clouds, including Aliyun, AWS, Azure, Tencent Cloud, Huawei Cloud, etc.
* **AI Inference Services**: Deploy and manage LLM inference instances (Ollama, vLLM, SGLang, and more) with GPU scheduling, model mounting, and inference service address allocation.
* **AI Application Management**: One-stop deployment of LLM application orchestration, agent assistants, image generation, and other AI container applications.
* **Model Library**: Unified management of model sources, versions, and caches, supporting multi-instance reuse and offline distribution.
* **Templates and Images**: Define resource specifications (CPU/memory/GPU) through templates, manage container runtime environments through images.
* **GPU Operations**: Automatic GPU device detection and registration, unified NVIDIA/CUDA environment configuration and management.
You are welcome to install and try Yunion Cloud. Looking forward to your feedback.
Supported AI workloads:
* AI Inference: Ollama, vLLM, SGLang
* AI Applications: OpenClaw, Dify, ComfyUI, Hermes Agent
## Installation
### Supported cloud providers
* Public Clouds:
* AWS
* Azure
* Google Cloud Platform
* Alibaba Cloud
* Huawei Cloud
* Tencent Cloud
* UCloud
* Ctyun (China Telecom)
* ECloud (China Mobile)
* JDCloud
* Volcengine
* Baidu Cloud
* Kingsoft Cloud
* QingCloud
* Oracle Cloud
* China Unicom Cloud
* Private Clouds:
* OpenStack
* ZStack
* Alibaba Cloud Apsara
* Huawei HCSO
* Nutanix
* BingoCloud
* OceanBase
* On-premise resources:
* Lightweight private cloud built on KVM
* VMware vSphere vCenter/ESXi
* Proxmox VE
* Baremetals (IPMI, Redfish API)
* Object storages (Minio, Ceph, XSky)
* NAS (Ceph)
### Supported resources
* Servers: instances, disks, network interfaces, networks, vpcs, storages, hosts, wires, snapshots, snapshot policies, security groups, elastic IPs, SSH keypairs, images
* Load Balancers: instances, listeners, backend groups, backends, TLS certificates, ACLs
* Object Storage: buckets, objects
* NAS: file_systems, access_groups, mount_targets
* RDS: instances, accounts, backups, databases, parameters, privileges
* Elastic Cache: instances, accounts, backups, parameters
* DNS: DNS zones, DNS records
* VPC: VPCs, VPC peering, inter-VPC network, NAT gateway, DNAT/SNAT rules, route tables, route entries
## Getting started
Please refer to the document [Getting Started](https://www.cloudpods.org/en/docs/getting-started/) to select the appropriate scenario for installation.
Please refers to [install & deployment](https://docs.yunion.io/docs/setup/) (currently in Chinese Only).
## Documentations
* [Cloudpods Documents](https://www.cloudpods.org/en)
- [Yunion Cloud Documents](https://docs.yunion.io/)
* [Swagger API](https://www.cloudpods.org/en/docs/swagger/)
- [Swagger API](https://docs.yunion.cn/apiv2/)
## Architecture
## Who is using Cloudpods?
Please check this [issue](https://github.com/yunionio/cloudpods/issues/11427) for the user list of Cloudpods. If you are using Cloudpods, you are welcome to leave your information by responding the issue. Thank you for your support.
## Contact
* See [Contact Us](https://www.cloudpods.org/en/docs/contact/) for details.
* Telegram: [cloudpods](https://t.me/cloudpods_org)
## Changelog
See [Release Notes](https://www.cloudpods.org/en/docs/release-notes/) and [Changelog](https://www.cloudpods.org/en/docs/development/changelog/) for details.
![architecture](https://www.yunion.cn/static/frame.png)
## Contribution
You are welcome to do any kind of contribution to the project. Please refer to [CONTRIBUTING](./CONTRIBUTING.md) for guidelines.
You are welcome to contribute to the project. Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
## License
Apache License 2.0. See [LICENSE](./LICENSE).
## AI-generated doc
[DeepWiki](https://deepwiki.com/yunionio/cloudpods) provides an amazing AI-generated doc of this project, you may refer to it for more detailed and comprehensive understanding of codes.
Apache License 2.0. See [LICENSE](./LICENSE)

View File

@@ -1 +0,0 @@
DESCRIPTION="Yunion Cloud AI Proxy Service"

View File

@@ -36,12 +36,6 @@ fi
. $ROOT/vars
BUILDROOT=$(mktemp -d 2>/dev/null || mktemp -d -t 'yunion')
function cleanup {
rm -rf "$BUILDROOT"
echo "Deleted temp working directory $BUILDROOT"
}
# register the cleanup function to be called on the EXIT signal
trap cleanup EXIT
echo "Build root ${BUILDROOT}"
@@ -50,12 +44,7 @@ echo "Build root ${BUILDROOT}"
if [ -z "$VERSION" ]; then
TAG=$(git describe --abbrev=0 --tags || echo testing)
VERSION=${TAG/\//-}
if [[ "$VERSION" =~ ^v0. ]]; then
VERSION=${VERSION/v0./}
elif [[ "$VERSION" =~ ^v ]]; then
VERSION=${VERSION/v/}
fi
VERSION=${VERSION//-/.}
VERSION=${VERSION/v/}
fi
RELEASE=`date +"%y%m%d%H"`
@@ -79,8 +68,6 @@ echo "# Yunion RPM spec
%global pkgname yunion-$PKG
%global homedir /var/run/%{owner}
%global use_systemd $SERVICE
%global debug_package %{nil}
%global __strip /usr/bin/eu-strip
Name: %{pkgname}
Version: $VERSION
@@ -112,87 +99,41 @@ if [ -d $ROOT/root ]; then
rsync -a $ROOT/root/ \$RPM_BUILD_ROOT
fi
%pre" > $SPEC_FILE
if [ -f $ROOT/preinst ]; then
cat $ROOT/preinst >> $SPEC_FILE
else
echo "
%pre
%if %{use_systemd}
getent group %{owner} >/dev/null || /usr/sbin/groupadd -r %{owner}
getent passwd %{owner} >/dev/null || /usr/sbin/useradd -r -s /sbin/nologin -d %{homedir} -M -g %{owner} %{owner}
%endif
" >> $SPEC_FILE
fi
echo "
%post" >> $SPEC_FILE
if [ -f $ROOT/postinst ]; then
cat $ROOT/postinst >> $SPEC_FILE
else
echo "
%post
%if %{use_systemd}
mkdir -p /var/run/%{owner}
chown -R %{owner}:%{owner} /var/run/%{owner}
/usr/bin/systemctl preset %{pkgname}.service >/dev/null 2>&1 ||:
%endif
" >> $SPEC_FILE
fi
echo "
%preun" >> $SPEC_FILE
if [ -f $ROOT/prerm ]; then
cat $ROOT/prerm >> $SPEC_FILE
else
echo "
%preun
%if %{use_systemd}
/usr/bin/systemctl --no-reload disable %{pkgname}.service >/dev/null 2>&1 || :
/usr/bin/systemctl stop %{pkgname}.service >/dev/null 2>&1 ||:
%endif
" >> $SPEC_FILE
fi
echo "
%postun" >> $SPEC_FILE
if [ -f $ROOT/postrm ]; then
cat $ROOT/postrm >> $SPEC_FILE
else
echo "
%postun
%if %{use_systemd}
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 ||:
%endif
" >> $SPEC_FILE
fi
echo -n "
%files
%doc
$BIN_PATH/$PKG
" >> $SPEC_FILE
for b in $EXTRA_BINS; do
echo $BIN_PATH/$b >> $SPEC_FILE
done
$(for b in $EXTRA_BINS; do echo $BIN_PATH/$b; done)
" > $SPEC_FILE
if [ -d $ROOT/root/ ]; then
find $ROOT/root/ -type f | sed -e "s:$ROOT/root::g" >> $SPEC_FILE
fi
TARGET=
case "$GOARCH" in
"arm64" | "aarch64" | "arm")
TARGET="--target aarch64-redhat-linux"
;;
"amd64" | "x86" | "i686" | "i386" | "x86_64")
TARGET="--target x86_64-redhat-linux"
;;
"riscv64")
TARGET="--target riscv64-linux"
;;
esac
rpmbuild --define "_topdir $BUILDROOT" -bb $SPEC_FILE $TARGET
rpmbuild --define "_topdir $BUILDROOT" -bb $SPEC_FILE
find $RPM_DIR -type f | while read f; do
d="$(dirname "$f")"
@@ -200,3 +141,5 @@ find $RPM_DIR -type f | while read f; do
mkdir -p "$d"
cp $f $d
done
rm -fr $BUILDROOT

View File

@@ -35,6 +35,24 @@ 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
@@ -42,134 +60,17 @@ case $(uname -m) in
aarch64)
CURRENT_ARCH=arm64
;;
riscv64)
CURRENT_ARCH=riscv64
;;
esac
if [[ -n "$GOARCH" ]]; then
case "$GOARCH" in
"arm64" | "arm" | "aarch64")
CURRENT_ARCH="arm64"
;;
"x86" | "x86_64" | "i686" | "i386" | "amd64")
CURRENT_ARCH="amd64"
;;
"riscv64")
CURRENT_ARCH="riscv64"
;;
esac
fi
if [ -z "$VERSION" ]; then
TAG=$(git describe --abbrev=0 --tags || echo 000000)
VERSION=${TAG/\//-}
VERSION=${VERSION/v/}
VERSION=${VERSION/master-/}
fi
RELEASE=`date +"%y%m%d%H"`
FULL_VERSION=$VERSION-$RELEASE
BUILDROOT=$OUTPUT_DIR/yunion-${PKG}-${FULL_VERSION}_${CURRENT_ARCH}
function cleanup {
rm -rf "$BUILDROOT"
echo "Deleted temp working directory $BUILDROOT"
}
# register the cleanup function to be called on the EXIT signal
trap cleanup EXIT
rm -rf $BUILDROOT
mkdir -p $BUILDROOT/DEBIAN
mkdir -p $BUILDROOT/$BIN_PATH
cp -rf $BIN $BUILDROOT/$BIN_PATH
if [ -d $ROOT/root ]; then
cp -rf $ROOT/root/* $BUILDROOT/
fi
echo "Build root ${BUILDROOT}"
echo "Package: yunion-$PKG
echo "Package: yunion-$1
Version: $FULL_VERSION
Section: base
Priority: optional
Architecture: $CURRENT_ARCH
Maintainer: wanyaoqi@yunionyun.com
Description: $DESCRIPTION" > $BUILDROOT/DEBIAN/control
if [ ${#REQUIRES[@]} -gt 0 ]; then
DEPS=$(IFS=, ; echo "${REQUIRES[*]}")
echo "Depends: $DEPS" >> $BUILDROOT/DEBIAN/control
fi
Description: Yunion $1
" > $BUILDROOT/DEBIAN/control
chmod 0755 $BUILDROOT/DEBIAN/control
cat $BUILDROOT/DEBIAN/control
echo "#!/bin/bash
" > $BUILDROOT/DEBIAN/preinst
if [ -f $ROOT/preinst ]; then
cat $ROOT/preinst >> $BUILDROOT/DEBIAN/preinst
else
if [ "$SERVICE" == "yes" ] && [ -n "$OWNER" ]; then
echo "
getent group ${OWNER} >/dev/null || /usr/sbin/groupadd -r ${OWNER}
getent passwd ${OWNER} >/dev/null || /usr/sbin/useradd -r -s /sbin/nologin -d /home/${OWNER} -M -g ${OWNER} ${OWNER}
" >> $BUILDROOT/DEBIAN/preinst
fi
fi
chmod 0755 $BUILDROOT/DEBIAN/preinst
echo "#!/bin/bash
" > $BUILDROOT/DEBIAN/postinst
if [ -f $ROOT/postinst ]; then
cat $ROOT/postinst >> $BUILDROOT/DEBIAN/postinst
else
if [ "$SERVICE" == "yes" ]; then
echo "
/usr/bin/systemctl preset yunion-${PKG}.service >/dev/null 2>&1 ||:
" >> $BUILDROOT/DEBIAN/postinst
fi
fi
chmod 0755 $BUILDROOT/DEBIAN/postinst
echo "#!/bin/bash
" > $BUILDROOT/DEBIAN/prerm
if [ -f $ROOT/prerm ]; then
cat $ROOT/prerm >> $BUILDROOT/DEBIAN/prerm
else
if [ "$SERVICE" == "yes" ]; then
echo "
/usr/bin/systemctl --no-reload disable yunion-${PKG}.service >/dev/null 2>&1 || :
/usr/bin/systemctl stop yunion-${PKG}.service >/dev/null 2>&1 ||:
" >> $BUILDROOT/DEBIAN/prerm
fi
fi
chmod 0755 $BUILDROOT/DEBIAN/prerm
echo "#!/bin/bash
" > $BUILDROOT/DEBIAN/postrm
if [ -f $ROOT/postrm ]; then
cat $ROOT/postrm >> $BUILDROOT/DEBIAN/postrm
else
if [ "$SERVICE" == "yes" ]; then
echo "
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 ||:
" >> $BUILDROOT/DEBIAN/postrm
fi
fi
chmod 0755 $BUILDROOT/DEBIAN/postrm
dpkg-deb --build $BUILDROOT
case "$CURRENT_ARCH" in
"amd64")
DSTARCH="x86_64"
;;
"arm64")
DSTARCH="aarch64"
;;
"riscv64")
DSTARCH="riscv64"
;;
esac
mkdir -p ${OUTPUT_DIR}/${DSTARCH}
mv ${BUILDROOT}.deb ${OUTPUT_DIR}/${DSTARCH}/
dpkg-deb --build $BUILDROOT

View File

@@ -1,19 +0,0 @@
#!/bin/bash
set -e
BASHRC=/etc/profile.d/climc.sh
grep -q rcadmin $BASHRC || echo 'source /etc/yunion/rcadmin' >> $BASHRC
source $BASHRC
climc sshkeypair-inject --admin --target-dir /root/
mkdir -p /etc/dropbear
mkdir -p /var/run/dropbear
test -f /etc/dropbear/dropbear_rsa_host_key || dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
dropbear -RFEjk -G root -p 22

View File

@@ -1,22 +1,3 @@
export PATH=/opt/yunion/bin:$PATH
if [ -f /etc/profile.d/bash_completion.sh ]; then
source /etc/profile.d/bash_completion.sh
fi
test -f /etc/yunion/rcadmin && source /etc/yunion/rcadmin
if [ -n "$OS_AUTH_TOKEN" ]; then
test -n "$OS_USERNAME" && unset OS_USERNAME
test -n "$OS_PASSWORD" && unset OS_PASSWORD
test -n "$OS_DOMAIN_NAME" && unset OS_DOMAIN_NAME
test -n "$OS_ACCESS_KEY" && unset OS_ACCESS_KEY
test -n "$OS_SECRET_KEY" && unset OS_SECRET_KEY
fi
source <(climc --completion bash)
source <(kubectl completion bash)
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

@@ -47,11 +47,6 @@ do
climc server-purge $i > /dev/null
done
for i in $(climc server-list --admin --limit 2048 --system --filter "backup_host_id.equals($HOSTID)" | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc server-delete-backup $i > /dev/null
done
echo "3. Clean disks on $HOSTNAME($HOSTID)"
for storageid in $(climc host-storage-list --host $HOSTID --show-emulated | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $4}')

View File

@@ -1,35 +0,0 @@
<?xml version="1.0"?>
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="https://www.volcengine.com/">
<SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol" WantAssertionsSigned="true">
<KeyDescriptor use="signing">
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Data>
<ds:X509Certificate>MIIDJjCCAg6gAwIBAgIUF3lH8/cdlQeyPBqt066RFnt3cI4wDQYJKoZIhvcNAQELBQAwJTEjMCEGA1UEAxMadXJuOnZvbGNlbmdpbmU6d2Vic2VydmljZXMwHhcNMjMwODA4MDIzNzI4WhcNMzMwODIxMTYwMDAwWjAlMSMwIQYDVQQDExp1cm46dm9sY2VuZ2luZTp3ZWJzZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPZ+nhODpFTe+A8PbuZYA5XDQ04WckV1A5U90tKaaUX5uKLUYfDtFA1TwMO/qG87LU/0Pxs4FhgZJkUOeBHkyYzzXZQvtfsJ9frcKkcTjX/WF4XJyitXCULSjhcclMS3gOqeI/Mo3P90KutfhNli/mAHQJaRsuPFG4ZwBusbUo8i5sqBqt/Sg8JapH7DjEU2mN1165o59gavPGSByPeEuu28EkivVFcI7Jox5ztwgMrOYY+pYP9GeSurzpyLq3CfvvahTsAJjuHDHTTnYNcq/I3VOap/y4cOU6vgxcQvBmgb+CBvGldjn0em3BIn5meQwuB6jfQ7kqBaO1PRD1nhDTMCAwEAAaNOMEwwSgYIKwYBBQUHAQEEPjA8MDoGCCsGAQUFBzABhi5odHRwOi8vbmV4dXMtcHJvZHVjdGlvbi5ieXRlZGFuY2UubmV0L3BjYS9vY3NwMA0GCSqGSIb3DQEBCwUAA4IBAQBxySDr9TPJxRN+otrFDaV8HSeFKUUSO3+r8bEVAXmS+xUsdUOZbaf2r/g+eKrW58dpn+iBWTAAKug9Jwe5KVGqB7G5r2r6k/eI5dvv5r/Fr5T7NppRCXKQTQiAhrrVlqttsagPztJ6LmVAcm4sh4Ckx99FgibQCbT/zui+c6IUyEQcVIwtmoPANl3K2Yn85t+G+Cu9xxXY0JPlZcUHntHg0R0PUWc3LuzLXnff7JWEzPyhMUBLpQk5BltxuD5cTGCA6WafJuBTAqkt48VN0MFTP5c5m3PJFz8Ro1GLY8hw1uhUEx28DKBkQSGpkZNx0oJXETIDpSBfD0dHWBvZQPd0</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</KeyDescriptor>
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos</NameIDFormat>
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:entity</NameIDFormat>
<AssertionConsumerService index="1" isDefault="true" Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://signin.volcengine.com/saml/sso"/>
<AttributeConsumingService index="1">
<ServiceName xml:lang="en">Volcengine Single Sign-On</ServiceName>
<RequestedAttribute isRequired="true" Name="https://www.volcengine.com/SAML/Attributes/Identity" FriendlyName="Identity"/>
<RequestedAttribute isRequired="true" Name="https://www.volcengine.com/SAML/Attributes/SessionName" FriendlyName="SessionName"/>
<RequestedAttribute isRequired="false" Name="https://www.volcengine.com/SAML/Attributes/SessionDuration" FriendlyName="SessionDuration"/>
</AttributeConsumingService>
</SPSSODescriptor>
<Organization>
<OrganizationName xml:lang="en">Volcengine, Inc.</OrganizationName>
<OrganizationDisplayName xml:lang="en">Volcengine</OrganizationDisplayName>
<OrganizationURL xml:lang="en">https://www.volcengine.com</OrganizationURL>
</Organization>
</EntityDescriptor>

View File

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

View File

@@ -1,8 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.0.3
# https://github.com/yunionio/telegraf/blob/yn-release-1.36/Makefile.yn#L28
# install playbook and telegraf install pkg
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.5.5 /opt/yunion/playbook /opt/yunion/playbook
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.5.5 /opt/yunion/ansible-install-pkg /opt/yunion/ansible-install-pkg
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.1.3 /opt/yunion/playbook /opt/yunion/playbook
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.1.3 /opt/yunion/ansible-install-pkg /opt/yunion/ansible-install-pkg
ADD ./_output/alpine-build/bin/ansibleserver /opt/yunion/bin/ansibleserver

View File

@@ -1,31 +1,13 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
LABEL maintainer="Yousong Zhou <zhouyousong@yunionyun.com>"
ENV TZ="UTC"
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
MAINTAINER "Yousong Zhou <zhouyousong@yunionyun.com>"
# openssh-client, for ansible ssh connection
# git, ca-certificates, for fetching ansible roles
RUN set -x \
&& apk update \
&& apk add openssh-client \
&& apk add sshpass \
&& apk add py3-pip \
&& apk add py3-paramiko \
&& apk add tzdata git ca-certificates
RUN apk add --no-cache openssh openssl curl rsync pv mariadb-client
RUN apk add --no-cache --virtual .build-dependencies \
libffi-dev openssl-dev python3-dev build-base py-setuptools rust cargo mariadb-dev
# ansible should be installed
# after setuptools and wheel
RUN rm /usr/lib/python3.*/EXTERNALLY-MANAGED
RUN pip3 install -U pip setuptools wheel \
&& pip3 install mysqlclient pywinrm \
&& pip3 install 'ansible<=9.0.0' \
&& apk del --no-network .build-dependencies \
&& rm -rf /root/.cache /root/.cargo /var/cache/apk/*
&& 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,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
ADD ./_output/alpine-build/bin/apigateway /opt/yunion/bin/apigateway
ADD ./_output/alpine-build/bin/apigateway /opt/yunion/bin/apigateway

View File

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

View File

@@ -1,8 +1,11 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.9-20260724.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN mkdir -p /opt/yunion/bin
ENV TZ="UTC"
#ADD ./_output/bin/baremetal-agent /opt/yunion/bin/baremetal-agent
#ADD ./_output/bin/.baremetal-agent.bin /opt/yunion/bin/.baremetal-agent.bin
#ADD ./_output/bin/bundles/baremetal-agent /opt/yunion/bin/bundles/baremetal-agent
RUN apk add librados librbd
ADD ./_output/alpine-build/bin/baremetal-agent /opt/yunion/bin/baremetal-agent

View File

@@ -1,89 +1,35 @@
#RUN yum install -y https://iso.yunion.cn/vm-images/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
#RUN yum install -y http://192.168.23.50:8083/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunionos:v4.0.0-20251203.0 as yunionos
FROM --platform=linux/amd64 registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 as build
RUN yum install -y https://iso.yunion.cn/vm-images/baremetal-pxerom-1.1.0-21060506.x86_64.rpm
FROM registry.cn-beijing.aliyuncs.com/cloudpods/centos:8 as grub-stage
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN dnf install -y grub2*
# make grub_booti386 firmware
RUN grub2-mkimage -d /usr/lib/grub/i386-pc/ -O i386-pc-pxe -o /root/grub_booti386 -p '/grub' pxe tftp boot linux ext2 xfs ntfs fat part_msdos part_gpt normal biosdisk
# make grub_bootx64 firmware
RUN grub2-mkimage -d /usr/lib/grub/x86_64-efi/ -O x86_64-efi -o /root/grub_bootx64.efi -p '/grub' efinet tftp boot linux ext2 xfs ntfs fat part_msdos part_gpt normal efi_gop
# make grub_arm64 firmware
RUN grub2-mkimage -d /usr/lib/grub/arm64-efi/ -O arm64-efi -o /root/grub_arm64.efi -p '/grub' efinet tftp boot linux ext2 xfs ntfs fat part_msdos part_gpt normal efi_gop
RUN mkdir -p /tftp/grub
RUN cp /root/grub_booti386 /tftp
RUN cp -rf /usr/lib/grub/i386-pc /tftp/grub
RUN cp /root/grub_bootx64.efi /tftp
RUN cp -rf /usr/lib/grub/x86_64-efi /tftp/grub
RUN cp /root/grub_arm64.efi /tftp
RUN cp -rf /usr/lib/grub/arm64-efi /tftp/grub
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
LABEL maintainer="Zexi Li <zexi.li@icloud.com>"
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
RUN mkdir -p /opt/yunion/bin
RUN apk update && \
apk add --no-cache ipmitool ethtool tzdata ca-certificates cdrkit coreutils librados librbd && \
apk add --no-cache ipmitool ethtool tzdata ca-certificates cdrkit coreutils && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /opt/cloud/yunion/baremetal
# udpate latest pci.ids
RUN wget -O /opt/cloud/yunion/baremetal/pci.ids http://pci-ids.ucw.cz/v2.2/pci.ids
# download baremetal-pxerom-*.x86_64.rpm and unpack rpm in current directory
#COPY --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
# copy grub file
COPY --from=grub-stage /tftp/grub_booti386 /opt/cloud/yunion/baremetal
COPY --from=grub-stage /tftp/grub_bootx64.efi /opt/cloud/yunion/baremetal
COPY --from=grub-stage /tftp/grub_arm64.efi /opt/cloud/yunion/baremetal
COPY --from=grub-stage /tftp/grub /opt/cloud/yunion/baremetal/grub
# copy boot files from yunionos
COPY --from=yunionos /yunionos/x86_64/kernel /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/initramfs /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/aarch64/kernel /opt/cloud/yunion/baremetal/kernel_aarch64
COPY --from=yunionos /yunionos/aarch64/initramfs /opt/cloud/yunion/baremetal/initramfs_aarch64
COPY --from=yunionos /yunionos/riscv64/kernel /opt/cloud/yunion/baremetal/kernel_riscv64
COPY --from=yunionos /yunionos/riscv64/initramfs /opt/cloud/yunion/baremetal/initramfs_riscv64
# TODO: syslinux firmwares should removed in future
COPY --from=yunionos /yunionos/x86_64/isolinux.bin /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/bootia32.efi /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/bootx64.efi /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/chain.c32 /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/initramfs /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/kernel /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/ldlinux.c32 /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/ldlinux.e32 /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/ldlinux.e64 /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/libcom32.c32 /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/libutil.c32 /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/lpxelinux.0 /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/menu.c32 /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/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,7 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:3.22.2-2
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20210508
ADD ./build/climc/root/opt /opt
RUN cp /opt/yunion/scripts/motd/climc.sh /etc/profile.d/climc.sh && ln -sf /etc/profile.d/climc.sh /root/.bashrc
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

@@ -1,24 +1,18 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETARCH
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
ENV TZ="Asia/Shanghai"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
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 ceph-common dropbear shadow && \
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim ipmitool kubectl && \
rm -rf /var/cache/apk/*
RUN usermod --shell /bin/bash root
RUN curl https://iso.yunion.cn/binaries/kubernetes-release/release/v1.22.9/bin/linux/${TARGETARCH}/kubectl -o /usr/bin/kubectl && chmod a+x /usr/bin/kubectl
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV PATH="/opt/yunion/bin:${PATH}"
RUN mkdir -p /opt/yunion/bin

View File

@@ -1,24 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETARCH
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
ENV TZ="Asia/Shanghai"
RUN mkdir -p /opt/yunion/bin
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 ceph-common dropbear shadow && \
rm -rf /var/cache/apk/*
RUN usermod --shell /bin/bash root
RUN curl -L https://iso.yunion.cn/binaries/kubernetes-release/release/v1.22.9/bin/linux/${TARGETARCH}/kubectl -o /usr/bin/kubectl && chmod a+x /usr/bin/kubectl
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /opt/yunion/bin

View File

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

View File

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

View File

@@ -1,8 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
RUN mkdir -p /etc/yunion/data/
ADD ./_output/alpine-build/bin/cloudmon \
/opt/yunion/bin/

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
# registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0
FROM debian:trixie
FROM debian:10
RUN apt update && apt install -y alien

View File

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

View File

@@ -1,6 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ADD ./_output/alpine-build/bin/dhcprelay /opt/yunion/bin/dhcprelay
ENV PATH $PATH:/opt/yunion/bin
WORKDIR /opt/yunion/bin

View File

@@ -1,3 +1,5 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
COPY ./build/esxi-agent/root/opt/ /opt/
ADD ./_output/alpine-build/bin/esxi-agent /opt/yunion/bin/esxi-agent

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

@@ -1,5 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/glance-base:3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:20200820
ENV TZ="UTC"
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
ADD ./_output/alpine-build/bin/glance /opt/yunion/bin/glance

View File

@@ -1,7 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:3.22.2-0
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN apk add --no-cache s3fs-fuse

View File

@@ -1,360 +0,0 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#
#
# Dockerfile for guacamole-server
#
# The Alpine Linux image that should be used as the basis for the guacd image
ARG ALPINE_BASE_IMAGE=3.22.2
# The target architecture of the build. Valid values are "ARM" and "X86". By
# default, this is detected automatically.
ARG BUILD_ARCHITECTURE
# The number of processes that may run simultaneously during the build. By
# default, this is detected automatically.
ARG BUILD_JOBS
# The directory that will house the guacamole-server source during the build
ARG BUILD_DIR=/tmp/guacamole-server
# FreeRDP version (default to version 2)
ARG FREERDP_VERSION=2
# The final install location for guacamole-server and all dependencies. NOTE:
# This value is hard-coded in the entrypoint. Any change to this value must be
# propagated there.
ARG PREFIX_DIR=/opt/guacamole
#
# Automatically select the latest versions of each core protocol support
# library (these can be overridden at build time if a specific version is
# needed)
#
ARG WITH_FREERDP="${FREERDP_VERSION}(\.\d+)+"
ARG WITH_LIBSSH2='libssh2-\d+(\.\d+)+'
ARG WITH_LIBTELNET='\d+(\.\d+)+'
ARG WITH_LIBVNCCLIENT='LibVNCServer-\d+(\.\d+)+'
ARG WITH_LIBWEBSOCKETS='v\d+(\.\d+)+'
ARG WITH_GUACAMOLE_SERVER='\d+(\.\d+)+'
#
# Default build options for each core protocol support library, as well as
# guacamole-server itself (these can be overridden at build time if different
# options are needed)
#
ARG FREERDP_ARM_OPTS=""
ARG FREERDP_OPTS="\
-DBUILTIN_CHANNELS=OFF \
-DCHANNEL_URBDRC=OFF \
-DWITH_ALSA=OFF \
-DWITH_CAIRO=ON \
-DWITH_CHANNELS=ON \
-DWITH_CLIENT=ON \
-DWITH_CUPS=OFF \
-DWITH_DIRECTFB=OFF \
-DWITH_FFMPEG=OFF \
-DWITH_FUSE=OFF \
-DWITH_GSM=OFF \
-DWITH_GSSAPI=OFF \
-DWITH_IPP=OFF \
-DWITH_JPEG=ON \
-DWITH_KRB5=ON \
-DWITH_LIBSYSTEMD=OFF \
-DWITH_MANPAGES=OFF \
-DWITH_OPENH264=OFF \
-DWITH_OPENSSL=ON \
-DWITH_OSS=OFF \
-DWITH_PCSC=OFF \
-DWITH_PKCS11=OFF \
-DWITH_PULSE=OFF \
-DWITH_SERVER=OFF \
-DWITH_SERVER_INTERFACE=OFF \
-DWITH_SHADOW_MAC=OFF \
-DWITH_SHADOW_X11=OFF \
-DWITH_SWSCALE=OFF \
-DWITH_WAYLAND=OFF \
-DWITH_X11=OFF \
-DWITH_X264=OFF \
-DWITH_XCURSOR=ON \
-DWITH_XEXT=ON \
-DWITH_XI=OFF \
-DWITH_XINERAMA=OFF \
-DWITH_XKBFILE=ON \
-DWITH_XRENDER=OFF \
-DWITH_XTEST=OFF \
-DWITH_XV=OFF \
-DCMAKE_CXX_FLAGS=-Wno-incompatible-pointer-types \
-DCMAKE_C_FLAGS=-Wno-incompatible-pointer-types \
-DWITH_ZLIB=ON"
ARG FREERDP_X86_OPTS=""
ARG GUACAMOLE_SERVER_ARM_OPTS=""
ARG GUACAMOLE_SERVER_OPTS="\
--disable-guaclog \
CPPFLAGS=-Wno-error=deprecated-declarations"
ARG GUACAMOLE_SERVER_X86_OPTS=""
ARG GUACAMOLE_SERVER_UNKNOWN_OPTS=""
ARG LIBSSH2_ARM_OPTS=""
ARG LIBSSH2_OPTS="\
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=ON"
ARG LIBSSH2_X86_OPTS=""
ARG LIBTELNET_ARM_OPTS=""
ARG LIBTELNET_OPTS="\
--disable-static \
--disable-util"
ARG LIBTELNET_X86_OPTS=""
ARG LIBVNCCLIENT_ARM_OPTS=""
ARG LIBVNCCLIENT_OPTS=""
ARG LIBVNCCLIENT_X86_OPTS=""
ARG LIBWEBSOCKETS_ARM_OPTS=""
ARG LIBWEBSOCKETS_OPTS="\
-DDISABLE_WERROR=ON \
-DLWS_WITHOUT_SERVER=ON \
-DLWS_WITHOUT_TESTAPPS=ON \
-DLWS_WITHOUT_TEST_CLIENT=ON \
-DLWS_WITHOUT_TEST_PING=ON \
-DLWS_WITHOUT_TEST_SERVER=ON \
-DLWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
-DLWS_WITH_STATIC=OFF"
ARG LIBWEBSOCKETS_X86_OPTS=""
#
# Base builder image that will be used by subsequent build stages, including
# for building dependencies of guacamole-server.
#
FROM alpine:${ALPINE_BASE_IMAGE} AS builder
ARG BUILD_DIR
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
# Install build dependencies
RUN apk add \
autoconf \
automake \
build-base \
cairo-dev \
cjson-dev \
cmake \
cunit-dev \
git \
grep \
krb5-dev \
libjpeg-turbo-dev \
libpng-dev \
libtool \
libwebp-dev \
make \
openssl-dev \
pango-dev \
pulseaudio-dev \
sdl2-dev \
sdl2_ttf-dev \
util-linux-dev
ARG GUAC_VER=1.6.0
RUN git clone --branch=${GUAC_VER} https://github.com/apache/guacamole-server.git ${BUILD_DIR}
#
# Build dependency: libssh2
#
FROM builder AS libssh2
ARG BUILD_DIR
ARG LIBSSH2_ARM_OPTS
ARG LIBSSH2_OPTS
ARG LIBSSH2_X86_OPTS
ARG PREFIX_DIR
ARG WITH_LIBSSH2
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "LIBSSH2" \
"https://github.com/libssh2/libssh2"
#
# Build dependency: libtelnet
#
FROM builder AS libtelnet
ARG BUILD_DIR
ARG LIBTELNET_ARM_OPTS
ARG LIBTELNET_OPTS
ARG LIBTELNET_X86_OPTS
ARG PREFIX_DIR
ARG WITH_LIBTELNET
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "LIBTELNET" \
"https://github.com/seanmiddleditch/libtelnet"
#
# Build dependency: libvncclient
#
FROM builder AS libvncclient
ARG BUILD_DIR
ARG LIBVNCCLIENT_ARM_OPTS
ARG LIBVNCCLIENT_OPTS
ARG LIBVNCCLIENT_X86_OPTS
ARG PREFIX_DIR
ARG WITH_LIBVNCCLIENT
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "LIBVNCCLIENT" \
"https://github.com/LibVNC/libvncserver"
#
# Build dependency: libwebsockets
#
FROM builder AS libwebsockets
ARG BUILD_DIR
ARG LIBWEBSOCKETS_ARM_OPTS
ARG LIBWEBSOCKETS_OPTS
ARG LIBWEBSOCKETS_X86_OPTS
ARG PREFIX_DIR
ARG WITH_LIBWEBSOCKETS
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "LIBWEBSOCKETS" \
"https://github.com/warmcat/libwebsockets"
#
# Build dependency: FreeRDP
#
FROM builder AS freerdp
ARG BUILD_DIR
ARG FREERDP_ARM_OPTS
ARG FREERDP_OPTS
ARG FREERDP_X86_OPTS
ARG PREFIX_DIR
ARG WITH_FREERDP
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "FREERDP" \
"https://github.com/FreeRDP/FreeRDP"
#
# STAGE 7: Collect dependencies built by previous stages and build
# guacamole-server.
#
FROM builder AS guacamole-server
ARG BUILD_DIR
ARG FREERDP_VERSION
ARG GUACAMOLE_SERVER_ARM_OPTS
ARG GUACAMOLE_SERVER_UNKNOWN_OPTS
ARG GUACAMOLE_SERVER_OPTS
ARG GUACAMOLE_SERVER_X86_OPTS
ARG PREFIX_DIR
ARG WITH_GUACAMOLE_SERVER
# Copy dependencies built in previous stages
COPY --from=freerdp ${PREFIX_DIR} ${PREFIX_DIR}
COPY --from=libssh2 ${PREFIX_DIR} ${PREFIX_DIR}
COPY --from=libtelnet ${PREFIX_DIR} ${PREFIX_DIR}
COPY --from=libvncclient ${PREFIX_DIR} ${PREFIX_DIR}
COPY --from=libwebsockets ${PREFIX_DIR} ${PREFIX_DIR}
# Use guacamole-server source from build context
COPY --from=builder ${BUILD_DIR} ${BUILD_DIR}
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "GUACAMOLE_SERVER" "${BUILD_DIR}"
# Determine location of the FREERDP library based on the version.
ARG FREERDP_LIB_PATH=${PREFIX_DIR}/lib/freerdp${FREERDP_VERSION}
# Record the packages of all runtime library dependencies
RUN ${BUILD_DIR}/src/guacd-docker/bin/list-dependencies.sh \
${PREFIX_DIR}/sbin/guacd \
${PREFIX_DIR}/lib/libguac-client-*.so \
${FREERDP_LIB_PATH}/*guac*.so \
> ${PREFIX_DIR}/DEPENDENCIES
#
# STAGE 8: Final, runtime image.
#
# Use same Alpine version as the base for the runtime image
FROM alpine:${ALPINE_BASE_IMAGE} AS runtime
ARG PREFIX_DIR
ARG BUILD_DIR
# Copy build artifacts into this stage
COPY --from=guacamole-server ${PREFIX_DIR} ${PREFIX_DIR}
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN cat ${PREFIX_DIR}/DEPENDENCIES
# Bring runtime environment up to date and install runtime dependencies
RUN apk add --no-cache \
ca-certificates \
font-noto-cjk \
ghostscript \
netcat-openbsd \
shadow \
terminus-font \
ttf-dejavu \
ttf-liberation \
util-linux-login && \
xargs apk add --no-cache < ${PREFIX_DIR}/DEPENDENCIES
# Runtime environment
ENV LC_ALL=C.UTF-8
ENV LD_LIBRARY_PATH=${PREFIX_DIR}/lib
# Checks the operating status every 5 minutes with a timeout of 5 seconds
HEALTHCHECK --interval=5m --timeout=5s CMD nc -z 127.0.0.1 4822 || exit 1
# Create a new user guacd
ARG UID=1000
ARG GID=1000
RUN groupadd --gid $GID guacd
RUN useradd --system --create-home --shell /sbin/nologin --uid $UID --gid $GID guacd
# Run with user guacd
USER guacd
# Expose the default listener port
EXPOSE 4822
COPY --from=guacamole-server ${BUILD_DIR}/src/guacd-docker/bin/entrypoint.sh /opt/guacamole/
#COPY
ENTRYPOINT [ "/opt/guacamole/entrypoint.sh" ]

View File

@@ -1,8 +1,9 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.9.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.4.0
LABEL maintainer="Yaoqi Wan wanyaoqi@yunionyun.com"
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ="UTC"
ENV TZ Asia/Shanghai
RUN apk add librados librbd
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/host /opt/yunion/bin/host

View File

@@ -1,9 +1,9 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:1.5.11
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:0.6
LABEL maintainer="Yaoqi Wan wanyaoqi@yunionyun.com"
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ="UTC"
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/onecloud-base:v3.22.2-0
ADD ./_output/alpine-build/bin/host-health /opt/yunion/bin/host-health

View File

@@ -1,6 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ENV TZ="UTC"
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/host-image /opt/yunion/bin/host-image

View File

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

View File

@@ -1,9 +1,4 @@
FROM alpine:3.22.2
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETARCH
FROM alpine:3.11
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositories
RUN apk update && apk add curl android-tools && rm -rf /var/cache/apk/*
RUN curl -L https://iso.yunion.cn/binaries/kubernetes-release/release/v1.22.9/bin/linux/${TARGETARCH}/kubectl -o /usr/bin/kubectl && chmod a+x /usr/bin/kubectl
RUN apk update && apk add kubectl && rm -rf /var/cache/apk/*

View File

@@ -1,8 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/lbagent-base:v0.0.5
LABEL maintainer="Yousong Zhou <zhouyousong@yunion.cn>"
ENV TZ="UTC"
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/lbagent /opt/yunion/bin/lbagent

View File

@@ -1,35 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.12.4-5
LABEL maintainer="Jian QIU <qiujian@yunion.cn>"
ENV TZ="UTC"
ENV GOPATH=/root/go
RUN sed -i 's!v3.20/!v3.22/!g' /etc/apk/repositories
RUN set -x \
&& apk update \
&& apk upgrade \
&& apk add --no-cache bash haproxy keepalived iptables \
&& apk add --no-cache --virtual .build-deps \
build-base \
make \
go \
git \
gcc \
libc-dev \
libgcc \
linux-headers
RUN set -x \
&& mkdir -p $GOPATH/src/github.com/yyyar $GOPATH/bin \
&& cd $GOPATH/src/github.com/yyyar \
&& git clone --depth 1 https://github.com/yyyar/gobetween.git \
&& cd gobetween \
&& make deps \
&& make build \
&& cp bin/gobetween /bin/gobetween \
&& rm -fr $GOPATH \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*

View File

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

View File

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

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ADD ./_output/alpine-build/bin/mcp-server /opt/yunion/bin/mcp-server

View File

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

View File

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

View File

@@ -1,14 +1,13 @@
# TODO: use 3.14 will lead 'apk add qemu-img fail on arm64'
FROM alpine:3.22.1
FROM alpine:3.11
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ="UTC"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN apk update && \
apk add --no-cache tzdata curl busybox-extras tcpdump strace ca-certificates && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

View File

@@ -1,13 +0,0 @@
FROM alpine:3.15.4
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
ENV TZ="UTC"
RUN mkdir -p /opt/yunion/bin
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN apk update && \
apk add --no-cache tzdata curl busybox-extras tcpdump strace ca-certificates && \
rm -rf /var/cache/apk/*

View File

@@ -1,13 +0,0 @@
FROM alpine:3.22.2
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
ENV TZ="UTC"
RUN mkdir -p /opt/yunion/bin
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN apk update && \
apk add --no-cache tzdata curl busybox-extras tcpdump strace ca-certificates && \
rm -rf /var/cache/apk/*

View File

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

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/region-dns /opt/yunion/bin/region-dns

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,11 +1,15 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
LABEL maintainer="Zexi Li <zexi.li@icloud.com>"
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
RUN apk update && \
apk add --no-cache qemu-img && \
apk add --no-cache tzdata ca-certificates qemu-img && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV TZ Asia/Shanghai
# add executable file torrent
# make cmd/torrent
RUN mkdir -p /opt/yunion/bin

View File

@@ -1,7 +1,6 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.12.4-5
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.10.5-1
LABEL maintainer="Yousong Zhou <zhouyousong@yunion.cn>"
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"
ENV TZ="UTC"
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/vpcagent /opt/yunion/bin/vpcagent

View File

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

View File

@@ -1,10 +1,12 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/kubectl:3.22.2-1
FROM registry.cn-beijing.aliyuncs.com/yunionio/kubectl:1.18.6
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ="UTC"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
RUN apk add --no-cache sshpass ipmitool openssh-client tzdata ca-certificates bash && \
RUN apk add --no-cache sshpass ipmitool openssh-client tzdata ca-certificates && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

View File

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

View File

@@ -1,83 +1,18 @@
REGISTRY ?= "registry.cn-beijing.aliyuncs.com/yunionio"
DOCKER_BUILD = docker build -t $(REGISTRY)
DOCKER_BUILDX = docker buildx build --platform linux/arm64,linux/amd64,linux/riscv64 --push -t $(REGISTRY)
DOCKER_BUILDX_BM = docker buildx build --platform linux/arm64,linux/amd64 --push -t $(REGISTRY)
DOCKER_BUILD = docker build -t $(REGISTRY)
DOCKER_BUILDX = docker buildx build --platform linux/arm64,linux/amd64 --push -t $(REGISTRY)
debian10-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 -f ./Dockerfile.debian-base .
ONECLOUD_BASE_VERSION = v0.3-3.13.5
ONECLOUD_BASE_VERSION_3-15-4 = v3.15.4-0
ONECLOUD_BASE_VERSION_3-22-2 = 3.22.2-0
onecloud-base:
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION) -f ./Dockerfile.onecloud-base .
onecloud-base-3-15-4:
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION_3-15-4) -f ./Dockerfile.onecloud-base-3-15-4 .
onecloud-base-3-22-2:
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION_3-22-2) -f ./Dockerfile.onecloud-base-3-22-2 .
ANSIBLESERVER_BASE = 3.22.2-0
ansibleserver-base:
$(DOCKER_BUILDX)/ansibleserver-base:$(ANSIBLESERVER_BASE) -f ./Dockerfile.ansibleserver-base .
CLIMC_BASE_VERSION = 20230731.5
CLIMC_BASE_VERSION_3-22-2 = 3.22.2-2
climc-base:
$(DOCKER_BUILDX)/climc-base:$(CLIMC_BASE_VERSION) -f ./Dockerfile.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 .
climc-base-3-22-2:
$(DOCKER_BUILDX)/climc-base:$(CLIMC_BASE_VERSION_3-22-2) -f ./Dockerfile.climc-base-3-22-2 .
BAREMETAL_BASE_VERSION = v0.3
KUBECTL_VERSION_3-22-2 = 3.22.2-1
kubectl:
$(DOCKER_BUILDX)/kubectl:$(KUBECTL_VERSION_3-22-2) -f ./Dockerfile.kubectl .
WEBCONSOLE_BASE_VERSION_3-22-2 = 3.22.2-1
webconsole-base:
$(DOCKER_BUILDX)/webconsole-base:$(WEBCONSOLE_BASE_VERSION_3-22-2) -f ./Dockerfile.webconsole-base .
BAREMETAL_BASE_VERSION = v0.3.9-20260724.0
FEDORA_RISCV64_VERSION = 42
fedora-riscv64-base:
wget -q https://dl.fedoraproject.org/pub/alt/risc-v/release/$(FEDORA_RISCV64_VERSION)/Container/riscv64/images/Fedora-Container-Base-Generic-$(FEDORA_RISCV64_VERSION).20250414-8635a3a5bfcd.riscv64.oci.tar.xz && \
xz -d Fedora-Container-Base-Generic-$(FEDORA_RISCV64_VERSION).20250414-8635a3a5bfcd.riscv64.oci.tar.xz && \
skopeo copy oci-archive:Fedora-Container-Base-Generic-$(FEDORA_RISCV64_VERSION).20250414-8635a3a5bfcd.riscv64.oci.tar docker-daemon:fedora-riscv64:$(FEDORA_RISCV64_VERSION) && \
rm -f Fedora-Container-Base-Generic-$(FEDORA_RISCV64_VERSION).20250414-8635a3a5bfcd.riscv64.oci.tar
baremetal-base-riscv: fedora-riscv64-base
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base-riscv .
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)
# TODO: support riscv64 for baremetal-base
baremetal-base:
$(DOCKER_BUILDX_BM)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)
TORRENT_VERSION = 20210815.0
TORRENT_VERSION_3-22-2 = 3.22.2-0
torrent:
$(DOCKER_BUILDX)/torrent:$(TORRENT_VERSION) -f ./Dockerfile.torrent .
GLANCE_BASE_VERSION = v0.0.1
GLANCE_BASE_VERSION_3-22-2 = 3.22.2-0
glance-base:
$(DOCKER_BUILDX)/glance-base:$(GLANCE_BASE_VERSION) -f ./Dockerfile.glance-base .
glance-base-3-22-2:
$(DOCKER_BUILDX)/glance-base:$(GLANCE_BASE_VERSION_3-22-2) -f ./Dockerfile.glance-base .
LBAGENT_BASE_VERSION = v0.0.5
lbagent-base:
$(DOCKER_BUILDX)/lbagent-base:$(LBAGENT_BASE_VERSION) -f ./Dockerfile.lbagent-base .
GUACD_VERSION=1.6.0
guacd:
$(DOCKER_BUILDX)/guacd:$(GUACD_VERSION) -f ./Dockerfile.guacd .
$(DOCKER_BUILD)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)

View File

@@ -1,17 +0,0 @@
#!/bin/bash
set -e
BASHRC=/root/.bashrc
source $BASHRC
climc sshkeypair-inject --admin
mkdir -p /etc/dropbear
mkdir -p /var/run/dropbear
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
dropbear -RFEjk -G root -p 22

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:3.22.2-go-1.24.9-0 AS build
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5 as build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN mkdir -p /root/go/src/yunion.io/x/onecloud
@@ -7,11 +7,12 @@ COPY . /root/go/src/yunion.io/x/onecloud
WORKDIR /root/go/src/yunion.io/x/onecloud
RUN make cmd/host
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.9.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.4.0
LABEL maintainer="Yaoqi Wan wanyaoqi@yunionyun.com"
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ="UTC"
ENV TZ Asia/Shanghai
RUN apk add librados librbd
RUN mkdir -p /opt/yunion/bin
COPY --from=build /root/go/src/yunion.io/x/onecloud/_output/bin/host /opt/yunion/bin/host

View File

@@ -1,22 +1,24 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:3.22.2-go-1.24.9-0 AS build
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5 as build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN mkdir -p /root/go/src/yunion.io/x/onecloud
COPY . /root/go/src/yunion.io/x/onecloud
RUN cd /root/go/src/yunion.io/x/onecloud && make cmd/torrent
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
WORKDIR /root/go/src/yunion.io/x/onecloud
RUN make cmd/torrent
LABEL maintainer="Zexi Li <zexi.li@icloud.com>"
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
RUN apk update && \
apk add --no-cache qemu-img && \
apk add --no-cache tzdata ca-certificates qemu-img && \
rm -rf /var/cache/apk/*
# TAG=20210815.0
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV TZ Asia/Shanghai
# add executable file torrent
# make cmd/torrent
RUN mkdir -p /opt/yunion/bin

View File

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

View File

@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.dmtf.org/ovf/envelope/1"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common"
xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData"
xmlns:vmw="http://www.vmware.com/schema/ovf"
xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<References>
<File ovf:href="{{ .Name }}" ovf:id="file1" ovf:size="{{ .Size }}"/>
</References>
<DiskSection>
<Info>Virtual disk information</Info>
<Disk ovf:capacity="{{ .Capacity }}" ovf:capacityAllocationUnits="byte" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="0"/>
</DiskSection>
<VirtualSystem ovf:id="{{ .ImportName }}">
<Info>A virtual machine</Info>
<Name>{{ .ImportName }}</Name>
<OperatingSystemSection ovf:id="100" vmw:osType="other26xLinux64Guest">
<Info>The kind of installed guest operating system</Info>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements</Info>
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>{{ .ImportName }}</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
</System>
<Item>
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
<rasd:Description>Number of Virtual CPUs</rasd:Description>
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:ElementName>1024MB of memory</rasd:ElementName>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>1024</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceSubType>VirtualSCSI</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:ElementName>Hard Disk 1</rasd:ElementName>
<rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
<rasd:InstanceID>9</rasd:InstanceID>
<rasd:Parent>3</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
<vmw:Config ovf:required="false" vmw:key="backing.writeThrough" vmw:value="false"/>
</Item>
</VirtualHardwareSection>
</VirtualSystem>
</Envelope>

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