Compare commits

..

471 Commits

Author SHA1 Message Date
yunion-ci-robot
40b8dfc553 Merge pull request #2526 from ioito/automated-cherry-pick-of-#2522-upstream-release-2.9.0
Automated cherry pick of #2522: fix: sync status after guest sync conf
2019-08-23 18:04:09 +08:00
ioito
3758f68d19 fix: sync status after guest sync conf 2019-08-23 17:21:25 +08:00
yunion-ci-robot
f27041df09 Merge pull request #2505 from ioito/automated-cherry-pick-of-#2499-upstream-release-2.9.0
Automated cherry pick of #2499: fix: qcloud sync unavailable storages
2019-08-23 10:56:08 +08:00
ioito
8354dbb8f5 fix: qcloud sync unavailable storages 2019-08-22 20:48:22 +08:00
yunion-ci-robot
ff805ff6c8 Merge pull request #2481 from ioito/automated-cherry-pick-of-#2451-upstream-release-2.9.0
Automated cherry pick of #2451: bugfix: 避免openstack磁盘扩容成功后未能挂载到虚拟机上
2019-08-22 11:40:07 +08:00
ioito
b3fa0b209f bugfix: 避免openstack磁盘扩容成功后未能挂载到虚拟机上 2019-08-22 10:20:33 +08:00
yunion-ci-robot
95a22c92b0 Merge pull request #2399 from ioito/automated-cherry-pick-of-#2381-upstream-release-2.9.0
Automated cherry pick of #2381: fix: httputils show error when resp body is not dict
2019-08-20 10:25:09 +08:00
ioito
e85fe5c7fd fix: httputils show error when resp body is not dict 2019-08-20 10:19:56 +08:00
yunion-ci-robot
c95ab12f39 Merge pull request #2347 from yousong/automated-cherry-pick-of-#2343-upstream-release-2.9.0
Automated cherry pick of #2343: hostman: windows: 改正批处理代码
2019-08-17 09:58:06 +08:00
Yousong Zhou
f8ab2a7f7a hostman: windows: 改正批处理代码 2019-08-16 13:22:25 +00:00
yunion-ci-robot
b1d2b5589f Merge pull request #2330 from ioito/automated-cherry-pick-of-#2326-upstream-release-2.9.0
Automated cherry pick of #2326: fix: azure快照的磁盘id应该小写
2019-08-16 16:28:04 +08:00
ioito
d0720f6c9b fix: azure快照的磁盘id应该小写 2019-08-16 15:58:57 +08:00
yunion-ci-robot
12d9e760a5 Merge pull request #2320 from ioito/automated-cherry-pick-of-#2316-upstream-release-2.9.0
Automated cherry pick of #2316: fix: create disk with project-src=local
2019-08-16 15:22:06 +08:00
ioito
5ea6136852 fix: create disk with project-src=local 2019-08-16 15:06:43 +08:00
yunion-ci-robot
303c92ce61 Merge pull request #2255 from wanyaoqi/automated-cherry-pick-of-#2250-upstream-release-2.9.0
Automated cherry pick of #2250: support get user tags
2019-08-13 18:55:03 +08:00
wanyaoqi
f94607c222 support get user tags 2019-08-13 18:40:39 +08:00
yunion-ci-robot
efaa3fed87 Merge pull request #2237 from ioito/automated-cherry-pick-of-#2234-upstream-release-2.9.0
Automated cherry pick of #2234: fix: no need to inject password by cloud-init for qcloud
2019-08-12 22:17:06 +08:00
ioito
30019cebb8 fix: no need to inject password by cloud-init for qcloud 2019-08-12 20:28:16 +08:00
yunion-ci-robot
974ec2ad2e Merge pull request #2205 from ioito/automated-cherry-pick-of-#2202-upstream-release-2.9.0
Automated cherry pick of #2202: fix: sync cloud snapshot size
2019-08-12 11:50:00 +08:00
ioito
8483d2e134 fix: sync cloud snapshot size 2019-08-10 16:35:20 +08:00
yunion-ci-robot
e5abafd7be Merge pull request #2189 from ioito/automated-cherry-pick-of-#2186-upstream-release-2.9.0
Automated cherry pick of #2186: fix: lb purge error
2019-08-08 20:06:58 +08:00
ioito
22a2d4f719 fix: lb purge error 2019-08-08 19:56:57 +08:00
yunion-ci-robot
9a32881520 Merge pull request #2184 from tb365/automated-cherry-pick-of-#2181-upstream-release-2.9.0
Automated cherry pick of #2181: cpu core bugfix
2019-08-08 19:50:59 +08:00
TangBin
de1a73c660 cpu core bugfix 2019-08-08 19:42:27 +08:00
yunion-ci-robot
25cd0a4572 Merge pull request #2085 from ioito/automated-cherry-pick-of-#2082-upstream-release-2.9.0
Automated cherry pick of #2082: fix: get openstack all customize storage type
2019-08-02 20:16:05 +08:00
ioito
21a2e680fe fix: get openstack all customize storage type 2019-08-02 20:11:06 +08:00
yunion-ci-robot
395c19ff75 Merge pull request #2052 from ioito/automated-cherry-pick-of-#2048-upstream-release-2.9.0
Automated cherry pick of #2048: fix: openstack glance image-list not list all images
2019-08-01 16:54:01 +08:00
ioito
a160c0088d fix: openstack glance image-list not list all images 2019-07-31 19:45:02 +08:00
yunion-ci-robot
ca66466e9a Merge pull request #2022 from ioito/automated-cherry-pick-of-#1982-upstream-release-2.9.0
Automated cherry pick of #1982: fix: rbd image resize not found error
2019-07-31 15:55:01 +08:00
yunion-ci-robot
3301697fd0 Merge pull request #2046 from wanyaoqi/automated-cherry-pick-of-#2043-upstream-release-2.9.0
Automated cherry pick of #2043: guest export keys add zone
2019-07-31 15:51:01 +08:00
wanyaoqi
b00f61c251 guest export keys add zone 2019-07-31 15:44:52 +08:00
ioito
e834d26013 fix: rbd image resize not found error 2019-07-30 19:11:21 +08:00
yunion-ci-robot
9c5ee15ac2 Merge pull request #2008 from ioito/automated-cherry-pick-of-#2005-upstream-release-2.9.0
Automated cherry pick of #2005: fix: add priority for openstack secgroup rule priority
2019-07-30 12:56:33 +08:00
yunion-ci-robot
56450f7515 Merge pull request #1992 from ioito/automated-cherry-pick-of-#1989-upstream-release-2.9.0
Automated cherry pick of #1989: fix: qcloud reserved first, second and last ip for internal connection
2019-07-30 12:28:31 +08:00
ioito
6abb1df37e fix: add priority for openstack secgroup rule priority 2019-07-30 11:51:00 +08:00
ioito
68fa7f8c54 fix: qcloud reserved first, second and last ip for internal connection 2019-07-29 20:04:15 +08:00
yunion-ci-robot
b0e3461cff Merge pull request #1913 from ioito/automated-cherry-pick-of-#1910-upstream-release-2.9.0
Automated cherry pick of #1910: fix: 避免镜像同步到私有云自定义镜像里面
2019-07-26 15:31:08 +08:00
ioito
3840d889d4 fix: 避免镜像同步到私有云自定义镜像里面 2019-07-25 14:41:09 +08:00
yunion-ci-robot
e8bbf80674 Merge pull request #1865 from ioito/automated-cherry-pick-of-#1860-upstream-release-2.9.0
Automated cherry pick of #1860: 添加同步安全组日志
2019-07-24 09:36:08 +08:00
ioito
1d9a3c9569 避免重复设置同一vpc底下不同安全组externalId 2019-07-23 21:55:15 +08:00
ioito
7bfe1defa2 添加同步安全组日志 2019-07-23 21:55:15 +08:00
yunion-ci-robot
8b5d44c3a0 Merge pull request #1848 from ioito/automated-cherry-pick-of-#1829-upstream-release-2.9.0
Automated cherry pick of #1829: 避免cacheimage refresh时同步azure镜像信息异常
2019-07-23 18:43:05 +08:00
ioito
62363bfe93 避免cacheimage refresh时同步azure镜像信息异常 2019-07-23 15:06:38 +08:00
yunion-ci-robot
0d3b417c26 Merge pull request #1835 from ioito/automated-cherry-pick-of-#1832-upstream-release-2.9.0
Automated cherry pick of #1832: 避免因cloudprovider disable导致账号同步失效
2019-07-23 12:03:06 +08:00
yunion-ci-robot
fc1c6c18c8 Merge pull request #1827 from ioito/automated-cherry-pick-of-#1820-upstream-release-2.9.0
Automated cherry pick of #1820: 仅忽略 no such service错误,否则以最新api结果为准
2019-07-23 11:59:05 +08:00
ioito
51a0dacb2f 避免因cloudprovider disable导致账号同步失效 2019-07-22 20:05:18 +08:00
ioito
554fbcb9ee 仅忽略 no such service错误,否则以最新api结果为准 2019-07-22 10:12:05 +08:00
yunion-ci-robot
1e32948c7f Merge pull request #1799 from ioito/automated-cherry-pick-of-#1796-upstream-release-2.9.0
Automated cherry pick of #1796: 提高openstack创建windows机器成功率
2019-07-18 15:39:00 +08:00
ioito
c0b78b1b2f 提高openstack创建windows机器成功率 2019-07-18 15:06:50 +08:00
yunion-ci-robot
2b97371b49 Merge pull request #1727 from ioito/automated-cherry-pick-of-#1724-upstream-release-2.9.0
Automated cherry pick of #1724: 修复purge backend野指针引用问题
2019-07-15 10:36:57 +08:00
ioito
e33befc386 修复purge backend野指针引用问题 2019-07-15 10:24:41 +08:00
yunion-ci-robot
fec7e2006e Merge pull request #1712 from ioito/automated-cherry-pick-of-#1709-upstream-release-2.9.0
Automated cherry pick of #1709: fix console log
2019-07-13 17:39:00 +08:00
ioito
d209472435 fix console log 2019-07-13 14:47:46 +08:00
yunion-ci-robot
96cb87faee Merge pull request #1702 from ioito/automated-cherry-pick-of-#1699-upstream-release-2.9.0
Automated cherry pick of #1699: 同优先级规则deny优先于allow规则生效
2019-07-12 12:06:57 +08:00
ioito
a203e5d507 同优先级规则deny优先于allow规则生效 2019-07-12 11:55:33 +08:00
yunion-ci-robot
4c90a1af8b Merge pull request #1684 from ioito/automated-cherry-pick-of-#1681-upstream-release-2.9.0
Automated cherry pick of #1681: 宿主机存储利用率仅计算本地存储
2019-07-12 09:07:57 +08:00
yunion-ci-robot
e546d7993f Merge pull request #1679 from ioito/automated-cherry-pick-of-#1676-upstream-release-2.9.0
Automated cherry pick of #1676: 避免重装系统时绑定秘钥后没有account信息
2019-07-11 18:30:58 +08:00
ioito
795e5b4bc0 宿主机存储利用率仅计算本地存储 2019-07-11 17:30:41 +08:00
ioito
2c95828870 避免重装系统时绑定秘钥后没有account信息 2019-07-11 17:00:36 +08:00
yunion-ci-robot
31befeba6d Merge pull request #1669 from swordqiu/automated-cherry-pick-of-#1667-upstream-release-2.9.0
Automated cherry pick of #1667: fix: task usercred should be utf8 charset
2019-07-11 12:17:56 +08:00
Qiu Jian
d886e39c34 fix: bacport variable name change 2019-07-11 12:11:44 +08:00
Qiu Jian
07257f3161 fix: task usercred should be utf8 charset 2019-07-11 12:11:06 +08:00
yunion-ci-robot
2362c8bd45 Merge pull request #1657 from ioito/automated-cherry-pick-of-#1654-upstream-release-2.9.0
Automated cherry pick of #1654: fix qcloud associate eip timeout after bind
2019-07-11 08:45:56 +08:00
ioito
f0275f1da7 fix qcloud associate eip timeout after bind 2019-07-10 21:14:49 +08:00
yunion-ci-robot
6520b73231 Merge pull request #1644 from ioito/automated-cherry-pick-of-#1641-upstream-release-2.9.0
Automated cherry pick of #1641: 统一处理ResourceNotFound返回id not find
2019-07-10 20:45:56 +08:00
ioito
ad938e80de 统一处理ResourceNotFound返回id not find 2019-07-10 16:12:29 +08:00
yunion-ci-robot
073d1f25a8 Merge pull request #1629 from ioito/automated-cherry-pick-of-#1626-upstream-release-2.9.0
Automated cherry pick of #1626: metadata permission
2019-07-09 23:23:57 +08:00
yunion-ci-robot
8ea0816fbf Merge pull request #1633 from ioito/automated-cherry-pick-of-#1622-upstream-release-2.9.0
Automated cherry pick of #1622: 兼容zone及usable参数
2019-07-09 23:03:01 +08:00
ioito
8e77c4927b 兼容zone及usable参数 2019-07-09 22:46:22 +08:00
ioito
8f2267d9cb metadata permission 2019-07-09 22:39:20 +08:00
yunion-ci-robot
5e8b257b44 Merge pull request #1608 from ioito/automated-cherry-pick-of-#1602-upstream-release-2.9.0
Automated cherry pick of #1602: add task failed code
2019-07-09 17:29:58 +08:00
yunion-ci-robot
76a3f98f59 Merge pull request #1612 from ioito/automated-cherry-pick-of-#1605-upstream-release-2.9.0
Automated cherry pick of #1605: fix clone rbd image error
2019-07-09 17:22:58 +08:00
ioito
0c55ccff3b fix clone rbd image error 2019-07-09 15:50:02 +08:00
ioito
e96be122d7 add task failed code 2019-07-09 15:46:15 +08:00
yunion-ci-robot
8ebed30dc1 Merge pull request #1576 from ioito/automated-cherry-pick-of-#1573-upstream-release-2.9.0
Automated cherry pick of #1573: add usable filter for network
2019-07-05 23:03:56 +08:00
yunion-ci-robot
deea8bef4f Merge pull request #1579 from ioito/automated-cherry-pick-of-#1551-upstream-release-2.9.0
Automated cherry pick of #1551: add without_user_meta filter
2019-07-05 22:46:54 +08:00
yunion-ci-robot
6062af7f10 Merge pull request #1566 from ioito/automated-cherry-pick-of-#1563-upstream-release-2.9.0
Automated cherry pick of #1563: add deploy failed action log
2019-07-05 22:30:07 +08:00
yunion-ci-robot
8373cd2767 Merge pull request #1557 from ioito/automated-cherry-pick-of-#1550-upstream-release-2.9.0
Automated cherry pick of #1550: fix purge aliyun account error by lbbg
2019-07-05 22:21:59 +08:00
ioito
209c46f9ae optimized tag filter 2019-07-05 22:03:52 +08:00
ioito
44add5907f add without_user_meta filter 2019-07-05 21:24:40 +08:00
ioito
ca76c9c308 add usable filter for network 2019-07-05 18:50:39 +08:00
ioito
b9d08a351f add deploy failed action log 2019-07-05 14:19:47 +08:00
ioito
9963392231 fix purge aliyun account error by lbbg 2019-07-05 10:11:03 +08:00
yunion-ci-robot
5f91f89ffb Merge pull request #1532 from ioito/automated-cherry-pick-of-#1529-upstream-release-2.9.0
Automated cherry pick of #1529: fix create image with userCred issue
2019-07-03 23:24:54 +08:00
yunion-ci-robot
4ee40ff2b5 Merge pull request #1527 from ioito/automated-cherry-pick-of-#1524-upstream-release-2.9.0
Automated cherry pick of #1524: fix azure reserved ips
2019-07-03 23:18:52 +08:00
ioito
46245b0449 fix create image with userCred issue 2019-07-03 20:58:35 +08:00
ioito
fba965daa9 fix azure reserved ips 2019-07-03 20:12:40 +08:00
yunion-ci-robot
a85da7bf99 Merge pull request #1515 from wanyaoqi/bugfix/wyq/fix-image-request-timeout
cherrypick: fix image request timeout
2019-07-03 18:07:55 +08:00
wanyaoqi
9bbe702841 fix request image timeout 2019-07-03 17:59:25 +08:00
yunion-ci-robot
a143a24fc6 Merge pull request #1482 from ioito/automated-cherry-pick-of-#1479-upstream-release-2.9.0
Automated cherry pick of #1479: fix sync openstack hoststorages issue
2019-07-03 08:56:52 +08:00
yunion-ci-robot
d8c8a4b708 Merge pull request #1493 from ioito/automated-cherry-pick-of-#1486-upstream-release-2.9.0
Automated cherry pick of #1486: fix azure set secgroup error
2019-07-03 08:28:52 +08:00
yunion-ci-robot
1f5d13d3bd Merge pull request #1498 from wanyaoqi/automated-cherry-pick-of-#1495-upstream-release-2.9.0
Automated cherry pick of #1495: fix export data
2019-07-02 22:10:52 +08:00
wanyaoqi
784b06036b fix export data 2019-07-02 22:05:15 +08:00
ioito
bb1e7f1ae2 fix azure set secgroup error 2019-07-02 21:25:02 +08:00
ioito
03a68cb926 fix sync openstack hoststorages issue 2019-07-02 20:12:50 +08:00
yunion-ci-robot
f4390241e2 Merge pull request #1477 from wanyaoqi/automated-cherry-pick-of-#1471-upstream-release-2.9.0
Automated cherry pick of #1471: fix export data, set no limit; expand timeout
2019-07-02 18:50:55 +08:00
wanyaoqi
7a325ad58e fix export data, set no limit; expand timeout 2019-07-02 18:10:38 +08:00
yunion-ci-robot
28954d781b Merge pull request #1469 from ioito/automated-cherry-pick-of-#1467-upstream-release-2.9.0
Automated cherry pick of #1467: fix create disk scheduler failed
2019-07-02 16:50:53 +08:00
ioito
cfe7f3638d fix create disk scheduler failed 2019-07-02 16:46:11 +08:00
yunion-ci-robot
200fef70a6 Merge pull request #1447 from ioito/automated-cherry-pick-of-#1420-upstream-release-2.9.0
Automated cherry pick of #1420: remove keypair info if rebuild-root net set keypair
2019-07-01 11:19:51 +08:00
ioito
3d66ca1cba remove keypair info if rebuild-root net set keypair 2019-07-01 10:30:13 +08:00
yunion-ci-robot
9e419c55a2 Merge pull request #1429 from yousong/automated-cherry-pick-of-#1421-release-2.9.0
Automated cherry pick of #1421: httperrors: 支持从msgTmpl转换为带%s的msgFmt
2019-06-29 14:31:51 +08:00
Yousong Zhou
8578b59020 validators: errors: 使用msgFmt而非包含{NN}的msgTmpl 2019-06-29 06:27:58 +00:00
Yousong Zhou
a0df67ad59 httperrors: 支持从msgTmpl转换为带%s的msgFmt 2019-06-29 06:27:58 +00:00
yunion-ci-robot
4b5eed1142 Merge pull request #1402 from yousong/automated-cherry-pick-of-#1400-release-2.9.0
Automated cherry pick of #1400: lbagent: 启动时全量取API数据
2019-06-27 17:20:54 +08:00
yunion-ci-robot
06d12af977 Merge pull request #1398 from ioito/automated-cherry-pick-of-#1396-upstream-release-2.9.0
Automated cherry pick of #1396: wait ready or running after change vm config
2019-06-27 17:17:51 +08:00
yunion-ci-robot
a91511b27c Merge pull request #1395 from wanyaoqi/feature/wyq/live-migrate-filter-cpu-model-cherrypick-2.9
Manual CherryPick: live migrate filter by cpu model and mircocode, fix guest backup sta...
2019-06-27 17:01:52 +08:00
yunion-ci-robot
d64ddd76b7 Merge pull request #1409 from yousong/automated-cherry-pick-of-#670-release-2.9.0
Automated cherry pick of #670: atexit: 添加用于记录在进程退出时执行的队列
2019-06-26 22:09:49 +08:00
Yousong Zhou
ecb8429571 cloudcommon: 添加--log-file-prefix选项
指定日志文件名,rotate 10,每个100MB
2019-06-26 14:05:15 +00:00
Yousong Zhou
842840a391 atexit: 添加用于记录在进程退出时执行的队列 2019-06-26 14:04:27 +00:00
Yousong Zhou
fd7f4fb9ef lbagent: 启动时全量取API数据
此变更之后,data/目录内容更多服务于调试作用
2019-06-26 12:26:15 +00:00
ioito
f38209ea4e wait ready or running after change vm config 2019-06-26 19:33:24 +08:00
wanyaoqi
d53b548f91 live migrate filter by cpu model and mircocode, fix guest backup status, misc bugfix 2019-06-26 13:32:46 +08:00
yunion-ci-robot
87fd14dc2e Merge pull request #1391 from wanyaoqi/automated-cherry-pick-of-#1174-upstream-release-2.9.0
Automated cherry pick of #1174: import running libvirt guests
2019-06-26 12:40:50 +08:00
wanyaoqi
87c8370e29 import running libvirt guests 2019-06-26 11:20:45 +08:00
yunion-ci-robot
1a8c5729d5 Merge pull request #1374 from wanyaoqi/automated-cherry-pick-of-#1357-upstream-release-2.9.0
Automated cherry pick of #1357: set default http client timeout
2019-06-25 23:27:02 +08:00
yunion-ci-robot
07b7dea25c Merge pull request #1382 from ioito/automated-cherry-pick-of-#1380-upstream-release-2.9.0
Automated cherry pick of #1380: clear scheduler cache afeter change host cmtbound
2019-06-25 23:15:55 +08:00
ioito
620c149dd6 clear scheduler cache afeter change host cmtbound 2019-06-25 21:01:25 +08:00
wanyaoqi
c49de843e6 set default http client timeout 2019-06-25 15:38:05 +08:00
yunion-ci-robot
2695abf1fa Merge pull request #1369 from yousong/automated-cherry-pick-of-#1367-release-2.9.0
Automated cherry pick of #1367: lbagents: 改正vrrp模板
2019-06-25 11:45:51 +08:00
Yousong Zhou
a09f7e5536 validators: 默认将pending deleted的模型排除在外 2019-06-25 02:44:04 +00:00
Yousong Zhou
1d7bcc43a5 db: 添加IPendingDeletable类型 2019-06-25 02:41:18 +00:00
Yousong Zhou
f8b6cc3447 lbagents: 改正vrrp模板 2019-06-25 02:40:37 +00:00
yunion-ci-robot
16459a1acc Merge pull request #1354 from ioito/automated-cherry-pick-of-#1352-upstream-release-2.9.0
Automated cherry pick of #1352: avoid duplicate network name
2019-06-24 12:33:49 +08:00
ioito
6f2dd84fba avoid duplicate network name 2019-06-24 11:25:01 +08:00
Zexi Li
b6e2223709 Merge pull request #1343 from Zexi/automated-cherry-pick-of-#1341-upstream-release-2.9.0
Automated cherry pick of #1341: scheduler: fix prefer avoid score
2019-06-21 14:06:17 +08:00
Zexi
5e56dc9d9e scheduler: fix prefer avoid score 2019-06-21 13:58:01 +08:00
yunion-ci-robot
9a71c2583d Merge pull request #1319 from wanyaoqi/automated-cherry-pick-of-#1316-upstream-release-2.9.0
Automated cherry pick of #1316: fix storage attach host sync status
2019-06-19 20:17:52 +08:00
wanyaoqi
3b52ac1cd8 fix storage attach host sync status 2019-06-19 20:02:29 +08:00
yunion-ci-robot
cfd62c200e Merge pull request #1307 from ioito/automated-cherry-pick-of-#1305-upstream-release-2.9.0
Automated cherry pick of #1305: dissocate and release eip optimized\
2019-06-19 18:06:51 +08:00
yunion-ci-robot
a2424e8d7d Merge pull request #1312 from ioito/automated-cherry-pick-of-#1273-upstream-release-2.9.0
Automated cherry pick of #1273: add azure region geographicinfo
2019-06-19 18:03:49 +08:00
yunion-ci-robot
cf660f6125 Merge pull request #1267 from ioito/automated-cherry-pick-of-#1265-upstream-release-2.9.0
Automated cherry pick of #1265: avoid openstack zone externalid equals
2019-06-19 17:45:52 +08:00
ioito
f98f50c539 add azure region geographicinfo 2019-06-19 17:41:53 +08:00
ioito
fc9f566d19 dissocate and release eip optimized\ 2019-06-19 16:29:38 +08:00
yunion-ci-robot
1068533dde Merge pull request #1281 from wanyaoqi/automated-cherry-pick-of-#1278-upstream-release-2.9.0
Automated cherry pick of #1278: filter storage not attached
2019-06-18 17:22:54 +08:00
wanyaoqi
e2e896adff filter storage not attached 2019-06-18 16:58:07 +08:00
yunion-ci-robot
477fea92bd Merge pull request #1252 from ioito/automated-cherry-pick-of-#1240-upstream-release-2.9.0
Automated cherry pick of #1240: choice valid storage for storagecache
2019-06-18 11:07:52 +08:00
ioito
a0a9e5f732 avoid openstack zone externalid equals 2019-06-17 21:01:28 +08:00
yunion-ci-robot
4a6396037e Merge pull request #1259 from wanyaoqi/automated-cherry-pick-of-#1256-upstream-release-2.9.0
Automated cherry pick of #1256: fix guest sync status interval
2019-06-17 15:51:53 +08:00
wanyaoqi
d11bf5439e fix guest sync status interval 2019-06-17 15:41:07 +08:00
ioito
b9229fadaf choice valid storage for storagecache 2019-06-17 10:16:25 +08:00
yunion-ci-robot
e7cbb129e3 Merge pull request #1214 from ioito/automated-cherry-pick-of-#1196-upstream-release-2.9.0
Automated cherry pick of #1196: fix balance permission error
2019-06-15 21:39:52 +08:00
ioito
de43a5d4de fix balance permission error 2019-06-15 13:49:20 +08:00
yunion-ci-robot
790fe00d39 Merge pull request #1208 from yousong/automated-cherry-pick-of-#1201-release-2.9.0
Automated cherry pick of #1201: cloudcommon: 移除非必要日志
2019-06-15 10:16:53 +08:00
Yousong Zhou
ad200c6134 cloudcommon: 移除非必要日志 2019-06-14 13:38:22 +00:00
yunion-ci-robot
3bcb2b1c47 Merge pull request #1170 from yousong/automated-cherry-pick-of-#1168-release-2.9.0
Automated cherry pick of #1168: webconsole: 改正文件权限
2019-06-13 14:23:54 +08:00
Yousong Zhou
5cff282694 webconsole: 改正文件权限
- 密钥不需要执行权限
 - 先改权限再写内容
2019-06-12 10:27:46 +00:00
yunion-ci-robot
08e0240184 Merge pull request #1166 from ioito/automated-cherry-pick-of-#1164-upstream-release-2.9.0
Automated cherry pick of #1164: 添加vpc操作日志
2019-06-12 18:01:51 +08:00
ioito
e796c6fd19 添加vpc操作日志 2019-06-12 16:59:43 +08:00
yunion-ci-robot
125e98613e Merge pull request #1155 from ioito/automated-cherry-pick-of-#1120-upstream-release-2.9.0
Automated cherry pick of #1120: network创建或删除后刷新调度缓存
2019-06-12 15:25:52 +08:00
yunion-ci-robot
a9200266a0 Merge pull request #1160 from wanyaoqi/automated-cherry-pick-of-#1158-upstream-release-2.9.0
Automated cherry pick of #1158: fix attach able storage
2019-06-12 14:43:53 +08:00
wanyaoqi
2ab4494aae fix attach able storage 2019-06-12 13:55:17 +08:00
ioito
1edabb5bee network创建或删除后刷新调度缓存 2019-06-12 11:41:37 +08:00
yunion-ci-robot
fd32813190 Merge pull request #1118 from ioito/automated-cherry-pick-of-#1116-upstream-release-2.9.0
Automated cherry pick of #1116: fix qcloud disk create name error
2019-06-12 09:04:52 +08:00
yunion-ci-robot
a16b357a5e Merge pull request #1140 from yousong/automated-cherry-pick-of-#1130-release-2.9.0
Automated cherry pick of #1130: networks: merge与split时将lbnetwork考虑进去
2019-06-11 23:05:51 +08:00
yunion-ci-robot
0c630655b0 Merge pull request #1137 from wanyaoqi/automated-cherry-pick-of-#1135-upstream-release-2.9.0
Automated cherry pick of #1135: fix disk delete task base
2019-06-11 20:32:54 +08:00
Yousong Zhou
e081b3cf97 networks: merge与split时将lbnetwork考虑进去
- 共用代码,并放到独立的文件中
 - 尽力更新,中途出错不中断,最后一起报出
2019-06-11 06:11:10 +00:00
wanyaoqi
fa0462b200 fix disk delete task base 2019-06-11 11:10:07 +08:00
yunion-ci-robot
1a7f933891 Merge pull request #1062 from Zexi/automated-cherry-pick-of-#1054-upstream-release-2.9.0
Automated cherry pick of #1054: fix: baremetal raid logical volume and block device map
2019-06-10 19:06:52 +08:00
Zexi
0892e8164d fix: baremetal find incorrect root disk 2019-06-10 18:01:26 +08:00
Zexi Li
a782c95968 Merge pull request #1124 from Zexi/automated-cherry-pick-of-#1122-upstream-release-2.9.0
Automated cherry pick of #1122: scheduler: recover panic when stop timer
2019-06-10 17:17:53 +08:00
Zexi
9eb6c11ace scheduler: recover panic when stop timer 2019-06-10 17:17:28 +08:00
ioito
1db84a7d92 fix qcloud disk create name error 2019-06-10 16:04:53 +08:00
yunion-ci-robot
5132c495cf Merge pull request #1109 from wanyaoqi/automated-cherry-pick-of-#1099-upstream-release-2.9.0
Automated cherry pick of #1099: fix reserved memory
2019-06-09 23:01:51 +08:00
wanyaoqi
7fa300e89a fix disk delete 2019-06-09 22:58:38 +08:00
wanyaoqi
9b64b9e4e4 fix reserved memory 2019-06-09 22:58:38 +08:00
yunion-ci-robot
74e8069559 Merge pull request #1105 from Zexi/automated-cherry-pick-of-#1104-upstream-release-2.9.0
Automated cherry pick of #1104: fix: disk input erase storage_id by backend
2019-06-09 11:18:51 +08:00
Zexi
71c79e85a3 fix: disk input erase storage_id by backend 2019-06-09 11:01:32 +08:00
yunion-ci-robot
ba66255113 Merge pull request #1102 from wanyaoqi/automated-cherry-pick-of-#1100-upstream-release-2.9.0
Automated cherry pick of #1100: gpfs
2019-06-09 00:59:54 +08:00
yunion-ci-robot
370437f31a Merge pull request #1094 from ioito/automated-cherry-pick-of-#1092-upstream-release-2.9.0
Automated cherry pick of #1092: 修复参数赋值问题
2019-06-06 23:25:51 +08:00
wanyaoqi
ab4d92fe62 gpfs 2019-06-06 23:23:23 +08:00
ioito
1d526124fa 修复参数赋值问题 2019-06-06 18:14:01 +08:00
yunion-ci-robot
086fa0d5b9 Merge pull request #1069 from Zexi/automated-cherry-pick-of-#1068-upstream-release-2.9.0
Automated cherry pick of #1068: fix: baremetal MegaRaid mul adapter parse error
2019-06-05 10:35:50 +08:00
Zexi
1e1d47508b fix: baremetal MegaRaid mul adapter parse error 2019-06-05 10:34:44 +08:00
yunion-ci-robot
231a98f2c0 Merge pull request #1066 from yousong/automated-cherry-pick-of-#1063-upstream-release-2.9.0
Automated cherry pick of #1063: cloudproviders: 调整lb资源清理顺序
2019-06-05 10:02:50 +08:00
Yousong Zhou
5d1845818a cloudproviders: 调整lb资源清理顺序
lbbg可能被lblis引用,应先清理lblis,再清理lbbg
2019-06-04 17:06:40 +00:00
yunion-ci-robot
cbe5d7d3f5 Merge pull request #1029 from ioito/automated-cherry-pick-of-#1024-upstream-release-2.9.0
Automated cherry pick of #1024: 避免未使用最优storage
2019-06-03 18:21:58 +08:00
yunion-ci-robot
3c37f6fe69 Merge pull request #1040 from wanyaoqi/automated-cherry-pick-of-#1038-upstream-release-2.9.0
Automated cherry pick of #1038: fix imported bm server start
2019-06-03 18:08:57 +08:00
wanyaoqi
7f0184060c fix imported bm server start 2019-06-03 15:27:42 +08:00
ioito
55aef9ba93 避免未使用最优storage 2019-06-03 10:07:13 +08:00
yunion-ci-robot
f491a57c0a Merge pull request #985 from swordqiu/automated-cherry-pick-of-#983-upstream-release-2.9.0
Automated cherry pick of #983: fix: esxi vm may fail on start or delete in batch
2019-05-31 13:52:19 +08:00
yunion-ci-robot
994a1aaa16 Merge pull request #1010 from yunion-ci-robot/cherry-pick-1009-to-release/2.9.0
[release/2.9.0] fix on guest migrate fail
2019-05-31 13:18:20 +08:00
wanyaoqi
da8af7285f fix on guest migrate fail 2019-05-31 05:15:43 +00:00
yunion-ci-robot
e874c36a0d Merge pull request #997 from yunion-ci-robot/cherry-pick-968-to-release/2.9.0
[release/2.9.0] 避免oUserData为nil时野指针访问
2019-05-30 17:49:22 +08:00
ioito
3e175495be 避免oUserData为nil时野指针访问 2019-05-30 09:37:28 +00:00
yunion-ci-robot
dda22b86ef Merge pull request #995 from yunion-ci-robot/cherry-pick-993-to-release/2.9.0
[release/2.9.0] fix guest display metadata
2019-05-30 16:56:25 +08:00
wanyaoqi
a1d49c164c fix guest display metadata 2019-05-30 08:48:52 +00:00
yunion-ci-robot
fb157228b2 Merge pull request #988 from yunion-ci-robot/cherry-pick-955-to-release/2.9.0
[release/2.9.0] 避免webconsole频繁连接server,导致IP被封禁
2019-05-30 15:16:18 +08:00
ioito
73b4a94bed 避免频繁连接server 2019-05-30 07:04:07 +00:00
Qiu Jian
677dcfe828 fix: esxi vm may fail on start or delete in batch 2019-05-30 14:43:32 +08:00
yunion-ci-robot
7b3d4ecd39 Merge pull request #981 from Zexi/automated-cherry-pick-of-#978-upstream-release-2.9.0
Automated cherry pick of #978: scheduler: add pending usage process
2019-05-29 20:40:20 +08:00
Zexi
d21c90ebed scheduler: add pending usage process 2019-05-29 19:58:37 +08:00
yunion-ci-robot
d66baab597 Merge pull request #973 from yunion-ci-robot/cherry-pick-971-to-release/2.9.0
[release/2.9.0] scheduler: fix nets result not select
2019-05-29 16:24:18 +08:00
Zexi
10cc2d2871 scheduler: fix nets result not select 2019-05-29 08:19:45 +00:00
yunion-ci-robot
e54f98e322 Merge pull request #965 from yunion-ci-robot/cherry-pick-956-to-release/2.9.0
[release/2.9.0] lb: 支持直接指定ip作为后端
2019-05-29 11:44:20 +08:00
Yousong Zhou
a01ae4f987 mcclient: options: use --loadbalancer for consistency
Fixes 2df78f
2019-05-29 01:51:47 +00:00
Yousong Zhou
4218f260c1 loadbalancerbackends: 支持直接指定IP地址 2019-05-29 01:51:47 +00:00
yunion-ci-robot
f815ff26b7 Merge pull request #963 from Zexi/automated-cherry-pick-of-#961-upstream-release-2.9.0
Automated cherry pick of #961: fix: schedule fatal error concurrent map writes
2019-05-29 09:51:19 +08:00
Zexi
a4ffa1dc20 fix: schedule fatal error concurrent map writes 2019-05-29 09:46:43 +08:00
yunion-ci-robot
07686c5d54 Merge pull request #953 from ioito/automated-cherry-pick-of-#943-upstream-release-2.9.0
Automated cherry pick of #943: 避免转换成shell格式后导致合并失败
2019-05-28 22:03:24 +08:00
yunion-ci-robot
23af7e93fc Merge pull request #959 from Zexi/hotfix/schedule-panic
backport fix: scheduler hypervisor panic
2019-05-28 20:45:18 +08:00
Zexi
2686324722 fix: scheduler hypervisor panic 2019-05-28 20:34:35 +08:00
ioito
f5fb8e7a64 避免转换成shell格式后导致合并失败 2019-05-28 17:01:01 +08:00
yunion-ci-robot
1ef132b7da Merge pull request #950 from wanyaoqi/automated-cherry-pick-of-#947-upstream-release-2.9.0
Automated cherry pick of #947: support add pid file
2019-05-28 16:13:19 +08:00
wanyaoqi
474a6960c5 support add pid file 2019-05-28 16:00:49 +08:00
yunion-ci-robot
794d1b9547 Merge pull request #941 from yunion-ci-robot/cherry-pick-933-to-release/2.9.0
[release/2.9.0] routetables: 改正同步
2019-05-28 13:41:19 +08:00
yunion-ci-robot
7227eae4b8 Merge pull request #936 from yunion-ci-robot/cherry-pick-932-to-release/2.9.0
[release/2.9.0] 补充缺失的task stage
2019-05-28 13:31:19 +08:00
yunion-ci-robot
48abeb350b Merge pull request #945 from wanyaoqi/automated-cherry-pick-of-#934-upstream-release-2.9.0
Automated cherry pick of #934: bugfix:
2019-05-28 12:13:18 +08:00
wanyaoqi
7b48d52346 bugfix:
- fix import from libvirt
- fix server deploy
- fix guest migrate
- golang host bugfix
2019-05-28 12:05:20 +08:00
Yousong Zhou
2f938a9134 routetables: default to name rtbl-<vpc.name> 2019-05-27 12:55:45 +00:00
Yousong Zhou
f8a99dfc09 routetables: sync: add vpc-awareness 2019-05-27 12:55:45 +00:00
ioito
50b1ec9cb6 补充缺失的task stage 2019-05-27 12:52:02 +00:00
yunion-ci-robot
d90c599881 Merge pull request #930 from ioito/automated-cherry-pick-of-#899-upstream-release-2.9.0
Automated cherry pick of #899: 删除账号时删除空的zone及region
2019-05-25 20:39:18 +08:00
yunion-ci-robot
ee8528d91f Merge pull request #925 from ioito/automated-cherry-pick-of-#883-upstream-release-2.9.0
Automated cherry pick of #883: 避免同步出现重复eip记录
2019-05-25 20:37:19 +08:00
ioito
8110dcbad4 删除账号时删除空的zone及region 2019-05-25 20:25:35 +08:00
ioito
ebf641a4b0 避免同步出现重复eip记录 2019-05-25 17:55:44 +08:00
yunion-ci-robot
7eed67e9f0 Merge pull request #923 from yunion-ci-robot/cherry-pick-921-to-release/2.9.0
[release/2.9.0] 校验aliyun eip带宽范围
2019-05-25 17:51:18 +08:00
ioito
1e516eb076 校验aliyun eip带宽范围 2019-05-25 09:39:28 +00:00
yunion-ci-robot
25e99cc231 Merge pull request #917 from ioito/automated-cherry-pick-of-#894-upstream-release-2.9.0
Automated cherry pick of #894: 避免keystone region中使用-导致region被截取
2019-05-25 11:02:18 +08:00
ioito
14787f2bf2 避免keystone region中使用-导致region被截取 2019-05-25 09:56:09 +08:00
yunion-ci-robot
5ad60ae964 Merge pull request #913 from wanyaoqi/automated-cherry-pick-of-#900-upstream-release-2.9.0
Automated cherry pick of #900: misc fix:
2019-05-24 14:44:19 +08:00
wanyaoqi
230f30f413 misc fix:
- fix undeploy backup guest
- fix host service cron job
- task add recover
2019-05-24 13:31:17 +08:00
yunion-ci-robot
944fc4427e Merge pull request #912 from yunion-ci-robot/cherry-pick-886-to-release/2.9.0
[release/2.9.0] huawei & ucloud bugfix
2019-05-24 12:19:17 +08:00
TangBin
962696e36e huawei & ucloud bugfix 2019-05-24 04:15:35 +00:00
yunion-ci-robot
bd72bf3f61 Merge pull request #905 from yunion-ci-robot/cherry-pick-896-to-release/2.9.0
[release/2.9.0] 修复多账号导致openstack region同步异常
2019-05-24 10:15:18 +08:00
ioito
de1dafb597 未设置正确的region prefix 2019-05-24 01:48:31 +00:00
yunion-ci-robot
c6f3946709 Merge pull request #903 from yunion-ci-robot/cherry-pick-890-to-release/2.9.0
[release/2.9.0] guests: 变更IP地址时尽量保留原网卡设定
2019-05-24 09:48:18 +08:00
Yousong Zhou
35f0d96ea3 guests: change-ipaddr: 尽量保留原网卡配置
网卡序号,带宽限定等

Reported-by: Wenlong Wang
2019-05-24 01:42:25 +00:00
yunion-ci-robot
c933fef8f6 Merge pull request #902 from yunion-ci-robot/cherry-pick-895-to-release/2.9.0
[release/2.9.0] baremetal: fix build HPSARaid and enable serial console errors
2019-05-24 09:40:17 +08:00
Zexi
12e5d02361 baremetal: fix build HPSARaid and enable serial console errors 2019-05-24 01:39:27 +00:00
yunion-ci-robot
2adc97be4c Merge pull request #884 from yousong/automated-cherry-pick-of-#880-release-2.9.0
Automated cherry pick of #880: mcclient: RouteOptions: 缩短命令行参数长度
2019-05-23 16:21:18 +08:00
yunion-ci-robot
2cf0e60db5 Merge pull request #891 from wanyaoqi/automated-cherry-pick-of-#888-upstream-release-2.9.0
Automated cherry pick of #888: - set disk storage_id not required - can't do syncstatus on guest has active tasks in last one hour - fix guestdisk index set wrong number on guest attach disk
2019-05-23 10:53:17 +08:00
wanyaoqi
158ccac14a - set disk storage_id not required - can't do syncstatus on guest has active tasks in last one hour - fix guestdisk index set wrong number on guest attach disk 2019-05-23 10:46:54 +08:00
Yousong Zhou
8ed7cbf036 climc: 在打印路由条目时显示下一跳资源id 2019-05-22 04:00:09 +00:00
Yousong Zhou
1dbeedc736 routetables: 厘清指针使用 2019-05-22 04:00:09 +00:00
Yousong Zhou
42b268130d mcclient: 使--vpc成为必选参数 2019-05-22 04:00:09 +00:00
Yousong Zhou
52666dc4af mcclient: RouteOptions: 缩短命令行参数长度 2019-05-22 04:00:09 +00:00
yunion-ci-robot
e8b1fae2da Merge pull request #876 from ioito/automated-cherry-pick-of-#875-upstream-release-2.9.0
Automated cherry pick of #875: openstack认证添加domain_name参数
2019-05-21 21:33:16 +08:00
ioito
9862bf4522 openstack认证添加domain_name参数 2019-05-21 17:30:07 +08:00
yunion-ci-robot
667a1316a1 Merge pull request #873 from ioito/automated-cherry-pick-of-#860-upstream-release-2.9.0
Automated cherry pick of #860: 使用driver注入密码,复用代码
2019-05-21 14:03:21 +08:00
ioito
27e03a104d 避免climc使用公有云镜像时未设置prefix region导致虚拟机创建失败 2019-05-21 13:32:20 +08:00
ioito
6fddbfead1 使用driver注入密码,复用代码 2019-05-21 13:32:20 +08:00
yunion-ci-robot
140828e20a Merge pull request #871 from tb365/automated-cherry-pick-of-#841-upstream-release-2.9.0
Automated cherry pick of #841: ucloud bugfix
2019-05-21 11:36:16 +08:00
TangBin
bcb6fb574d ucloud bugfix 2019-05-21 11:27:50 +08:00
yunion-ci-robot
5d7be005ae Merge pull request #867 from ioito/automated-cherry-pick-of-#866-upstream-release-2.9.0
Automated cherry pick of #866: fix openstack region sync
2019-05-20 22:40:19 +08:00
yunion-ci-robot
041742f83f Merge pull request #865 from yunion-ci-robot/cherry-pick-861-to-release/2.9.0
[release/2.9.0] fix: host undo convert not delete isolated_devices
2019-05-20 22:21:21 +08:00
ioito
fd4f6368d8 fix openstack region sync 2019-05-20 22:18:15 +08:00
yunion-ci-robot
ee8fe1827b Merge pull request #863 from ioito/automated-cherry-pick-of-#859-upstream-release-2.9.0
Automated cherry pick of #859: 不同类型的tag使用对应的参数进行过滤
2019-05-20 21:29:20 +08:00
Zexi
b5d79ff132 fix: host undo convert not delete isolated_devices 2019-05-20 13:22:49 +00:00
ioito
e10373f55d 不同类型的tag使用对应的参数进行过滤 2019-05-20 21:19:10 +08:00
yunion-ci-robot
5fec676627 Merge pull request #856 from ioito/automated-cherry-pick-of-#855-upstream-release-2.9.0
Automated cherry pick of #855: 修复调用错误方法
2019-05-20 14:06:17 +08:00
ioito
1857cfd86d 修复调用错误方法 2019-05-20 13:47:38 +08:00
yunion-ci-robot
af2740e2b6 Merge pull request #853 from ioito/automated-cherry-pick-of-#842-upstream-release-2.9.0
Automated cherry pick of #842: 删除虚拟机同时删除lb相关记录
2019-05-18 20:20:18 +08:00
yunion-ci-robot
f722a45d36 Merge pull request #852 from ioito/automated-cherry-pick-of-#840-upstream-release-2.9.0
Automated cherry pick of #840: 保持公有云镜像名称和本地镜像名称相同
2019-05-18 20:18:15 +08:00
ioito
389adf7522 删除虚拟机同时删除lb相关记录 2019-05-18 20:15:14 +08:00
ioito
9f388206b1 保持公有云镜像名称和本地镜像名称相同 2019-05-18 20:13:22 +08:00
yunion-ci-robot
19937c96c5 Merge pull request #851 from Zexi/automated-cherry-pick-of-#850-upstream-release-2.9.0
Automated cherry pick of #850: fix: SSHPartition test symbolic file exists fail
2019-05-18 19:45:17 +08:00
Zexi
122e18c8f5 fix: SSHPartition test symbolic file exists fail 2019-05-18 19:42:12 +08:00
yunion-ci-robot
8c0b29e883 Merge pull request #849 from Zexi/automated-cherry-pick-of-#848-upstream-release-2.9.0
Automated cherry pick of #848: fix: baremetal enable serial not working
2019-05-17 16:05:17 +08:00
Zexi
360dfd3d29 fix: baremetal enable serial not working 2019-05-17 15:07:57 +08:00
yunion-ci-robot
d1b1df95eb Merge pull request #847 from wanyaoqi/automated-cherry-pick-of-#846-upstream-release-2.9.0
Automated cherry pick of #846: fix guest on start failed no call task failed
2019-05-17 14:36:18 +08:00
wanyaoqi
8f6df4bf49 fix live migrate 2019-05-17 14:31:32 +08:00
wanyaoqi
9f3ee0c55e fix guest on start failed no call task failed 2019-05-17 14:31:32 +08:00
yunion-ci-robot
f649fa14cd Merge pull request #844 from Zexi/automated-cherry-pick-of-#843-upstream-release-2.9.0
Automated cherry pick of #843: use scheduler apply sched policies
2019-05-17 10:20:17 +08:00
Zexi
ec744fd900 use scheduler apply sched policies 2019-05-16 20:59:01 +08:00
yunion-ci-robot
13d5fea826 Merge pull request #839 from wanyaoqi/automated-cherry-pick-of-#836-upstream-release-2.9.0
Automated cherry pick of #836: fix set migrate capability, fix resize fs catch error
2019-05-16 17:53:28 +08:00
wanyaoqi
d6126c537e fix set migrate capability, fix resize fs catch error 2019-05-16 17:14:30 +08:00
yunion-ci-robot
fa5f16dbbd Merge pull request #837 from ioito/automated-cherry-pick-of-#810-upstream-release-2.9.0
Automated cherry pick of #810: 限制添加同一个vpc底下的虚拟机
2019-05-16 16:56:37 +08:00
ioito
9053d1a5b1 避免关不掉访问控制 2019-05-16 16:46:33 +08:00
ioito
5a25e90cfd 显示acl名称 2019-05-16 16:46:33 +08:00
ioito
92998237f5 限制添加同一个vpc底下的虚拟机 2019-05-16 16:46:33 +08:00
yunion-ci-robot
807c65453a Merge pull request #835 from yunion-ci-robot/cherry-pick-823-to-release/2.9.0
[release/2.9.0] The region service adds restful-list to display zone and zone_id information.
2019-05-16 14:49:35 +08:00
zhongcan
d382af04d6 The region service adds restful-list to display zone and zone_id information. 2019-05-16 06:47:18 +00:00
yunion-ci-robot
3df4f13203 Merge pull request #834 from Zexi/automated-cherry-pick-of-#833-upstream-release-2.9.0
Automated cherry pick of #833: baremetal: support http download kernel and initramfs for pxe boot
2019-05-16 14:44:35 +08:00
Zexi
8b24b592de baremetal: support http download kernel and initramfs for pxe boot 2019-05-16 13:44:03 +08:00
yunion-ci-robot
053f9b1bc9 Merge pull request #831 from ioito/automated-cherry-pick-of-#830-upstream-release-2.9.0
Automated cherry pick of #830: 修复删除账号错误
2019-05-16 12:34:35 +08:00
ioito
d9f618438b 修复删除账号错误 2019-05-16 12:23:14 +08:00
yunion-ci-robot
a45b1c5726 Merge pull request #828 from yunion-ci-robot/cherry-pick-827-to-release/2.9.0
[release/2.9.0] bugfix: fix host setup network
2019-05-16 00:31:35 +08:00
wanyaoqi
2324309124 fix host setup network 2019-05-15 16:29:47 +00:00
yunion-ci-robot
23ec792ceb Merge pull request #825 from yunion-ci-robot/cherry-pick-822-to-release/2.9.0
[release/2.9.0] OpenStack: 增加同步数据准确性
2019-05-15 22:49:37 +08:00
ioito
6073eae13c 增加同步数据准确性 2019-05-15 14:46:23 +00:00
yunion-ci-robot
a743e123bd Merge pull request #820 from yunion-ci-robot/cherry-pick-811-to-release/2.9.0
[release/2.9.0] bugfix: host cpuset bugfix
2019-05-15 17:08:37 +08:00
wanyaoqi
d96d0568d4 guest fix set oom_adj 2019-05-15 08:55:51 +00:00
wanyaoqi
f54e0a54d3 host cpuset bugfix 2019-05-15 08:55:51 +00:00
yunion-ci-robot
571ebebdbe Merge pull request #819 from yunion-ci-robot/cherry-pick-812-to-release/2.9.0
[release/2.9.0] 设置端口和权重后同步到公有云上
2019-05-15 16:53:35 +08:00
ioito
72e89d2a71 设置端口和权重后同步到公有云上 2019-05-15 08:51:46 +00:00
yunion-ci-robot
fa1edb4349 Merge pull request #817 from yunion-ci-robot/cherry-pick-809-to-release/2.9.0
[release/2.9.0] bugfix: disable clean iptables && fix mac equal
2019-05-15 16:49:36 +08:00
wanyaoqi
2ea7757b1e disable clean iptables && fix mac equal 2019-05-15 08:36:55 +00:00
yunion-ci-robot
82c07ea01f Merge pull request #815 from yunion-ci-robot/cherry-pick-813-to-release/2.9.0
[release/2.9.0] 避免使用错误方法损坏id
2019-05-15 14:59:34 +08:00
ioito
7f2f6dc4fd 避免使用错误方法损坏id 2019-05-15 06:58:38 +00:00
yunion-ci-robot
455c536b6c Merge pull request #807 from wanyaoqi/automated-cherry-pick-of-#755-upstream-release-2.9.0
Automated cherry pick of #755: - host dhcp srever start after guest manager init - fix cpuset out of range
2019-05-14 11:02:34 +08:00
wanyaoqi
f7008d86c0 - host dhcp srever start after guest manager init - fix cpuset out of range 2019-05-14 10:59:08 +08:00
yunion-ci-robot
cfa8c38b68 Merge pull request #805 from yunion-ci-robot/cherry-pick-802-to-release/2.9.0
[release/2.9.0] feature: disable cron jobs on slave node
2019-05-13 21:22:34 +08:00
wanyaoqi
5370edcfcd disable cron jobs on slave node 2019-05-13 13:12:23 +00:00
yunion-ci-robot
ad40b066d1 Merge pull request #800 from yunion-ci-robot/cherry-pick-784-to-release/2.9.0
[release/2.9.0] 避免创建时使用不同公有云的镜像
2019-05-13 19:20:34 +08:00
yunion-ci-robot
17f2bed403 Merge pull request #799 from yunion-ci-robot/cherry-pick-797-to-release/2.9.0
[release/2.9.0] fix: scheduler not init app db
2019-05-13 19:19:36 +08:00
ioito
99985cbe82 避免创建时使用不同公有云的镜像 2019-05-13 11:17:47 +00:00
Zexi
807bfb31c3 fix: scheduler not init app db 2019-05-13 11:15:44 +00:00
yunion-ci-robot
b3e07e87ad Merge pull request #794 from yunion-ci-robot/cherry-pick-791-to-release/2.9.0
[release/2.9.0] 避免任务完成后依然返回timeout错误
2019-05-13 17:08:34 +08:00
yunion-ci-robot
2e2afedf6b Merge pull request #792 from yunion-ci-robot/cherry-pick-790-to-release/2.9.0
[release/2.9.0] bugfix : fix start script no pid file
2019-05-13 16:59:34 +08:00
ioito
565991fc36 避免任务完成后依然返回timeout错误 2019-05-13 08:52:50 +00:00
wanyaoqi
c353e618e6 fix no pid file 2019-05-13 08:51:45 +00:00
yunion-ci-robot
96f438d3ae Merge pull request #787 from yunion-ci-robot/cherry-pick-786-to-release/2.9.0
[release/2.9.0] bugfix: fix guest delele backup log event
2019-05-13 11:27:35 +08:00
yunion-ci-robot
61daae575e Merge pull request #789 from yunion-ci-robot/cherry-pick-785-to-release/2.9.0
[release/2.9.0] fix: add host convert same disk spec check
2019-05-13 11:22:34 +08:00
Zexi
a4655a272f fix: add host convert same disk spec check 2019-05-13 03:21:46 +00:00
wanyaoqi
8ae4dc70b7 fix guest delele backup log event 2019-05-13 03:17:52 +00:00
yunion-ci-robot
37fa97efd7 Merge pull request #783 from yunion-ci-robot/cherry-pick-772-to-release/2.9.0
[release/2.9.0] add ucloud account create climc
2019-05-11 17:57:33 +08:00
yunion-ci-robot
f11c310125 Merge pull request #782 from yunion-ci-robot/cherry-pick-778-to-release/2.9.0
[release/2.9.0] 允许普通用户set manager_id
2019-05-11 17:42:34 +08:00
TangBin
2f1319b4fe ucloud subaccount name fix 2019-05-11 09:42:05 +00:00
TangBin
5536f2bd96 ucloud eip default charge type Dynamic 2019-05-11 09:42:05 +00:00
TangBin
fd09a65c55 add ucloud account create climc & get disks bugfix 2019-05-11 09:42:05 +00:00
yunion-ci-robot
ea0707fa60 Merge pull request #780 from yunion-ci-robot/cherry-pick-769-to-release/2.9.0
[release/2.9.0] 负载均衡日志补全
2019-05-11 17:30:33 +08:00
ioito
95c25a0880 允许普通用户set manager_id 2019-05-11 09:27:02 +00:00
ioito
f7834caa98 负载均衡日志补全 2019-05-11 09:24:08 +00:00
yunion-ci-robot
48678ca9f2 Merge pull request #776 from yunion-ci-robot/cherry-pick-759-to-release/2.9.0
[release/2.9.0] Aliyun: 避免cache image失败
2019-05-11 17:12:35 +08:00
ioito
e64971b697 避免cache image失败 2019-05-11 09:01:54 +00:00
yunion-ci-robot
02b466c685 Merge pull request #774 from yunion-ci-robot/cherry-pick-770-to-release/2.9.0
[release/2.9.0] bugfix:  fix host deploy windows password, user can get backup host id
2019-05-10 21:12:34 +08:00
wanyaoqi
44b76bfb8a qemu prevent oom 2019-05-10 12:54:52 +00:00
wanyaoqi
799e976f55 fix host deploy windows password 2019-05-10 12:54:52 +00:00
wanyaoqi
09abdd39d4 user can get backup host id 2019-05-10 12:54:52 +00:00
yunion-ci-robot
b707a2365b Merge pull request #768 from yunion-ci-robot/cherry-pick-767-to-release/2.9.0
[release/2.9.0] 移除多余的方法
2019-05-09 22:01:34 +08:00
ioito
91f53b1d50 移除多余的方法 2019-05-09 11:50:45 +00:00
yunion-ci-robot
12e2018326 Merge pull request #765 from yunion-ci-robot/cherry-pick-747-to-release/2.9.0
[release/2.9.0] sku provider filter by zone
2019-05-09 18:20:34 +08:00
yunion-ci-robot
c2f6c8813d Merge pull request #763 from yunion-ci-robot/cherry-pick-762-to-release/2.9.0
[release/2.9.0] 避免显示脏的image信息
2019-05-09 18:19:34 +08:00
TangBin
3543d0ce00 sku providerFilter add more comment 2019-05-09 09:53:11 +00:00
TangBin
30c6091813 sku provider filter by region 2019-05-09 09:53:11 +00:00
TangBin
c177c7d5b5 sku provider filter by zone 2019-05-09 09:53:11 +00:00
ioito
d33bb4aa97 避免显示脏的image信息 2019-05-09 09:51:45 +00:00
yunion-ci-robot
b0350b9e2c Merge pull request #760 from wanyaoqi/automated-cherry-pick-of-#758-upstream-release-2.9.0
Automated cherry pick of #758: fix go vet report bugs
2019-05-09 15:11:35 +08:00
wanyaoqi
011e808286 Readme add go reporter 2019-05-09 15:06:15 +08:00
wanyaoqi
349d98d6b1 fix go vet report bugs 2019-05-09 15:06:15 +08:00
yunion-ci-robot
3abce7094a Merge pull request #756 from yunion-ci-robot/cherry-pick-754-to-release/2.9.0
[release/2.9.0] bugfix :fix get storage by access path
2019-05-08 18:25:34 +08:00
wanyaoqi
e4e933577d fix get storage by access path 2019-05-08 10:23:05 +00:00
yunion-ci-robot
c779d71f06 Merge pull request #752 from yunion-ci-robot/cherry-pick-749-to-release/2.9.0
[release/2.9.0] fix: admaster bug, disk-purge nil pointer error
2019-05-08 13:29:34 +08:00
Qiu Jian
f455c7dda9 fix: admaster bug, disk-purge nil pointer error 2019-05-08 05:27:44 +00:00
yunion-ci-robot
f6e055220c Merge pull request #750 from yunion-ci-robot/cherry-pick-748-to-release/2.9.0
[release/2.9.0] bugfix: fix sync status on stoping
2019-05-08 13:15:33 +08:00
wanyaoqi
a9c02dcf4c fix sync status on stoping 2019-05-08 04:53:50 +00:00
yunion-ci-robot
891e23db39 Merge pull request #743 from yunion-ci-robot/cherry-pick-726-to-release/2.9.0
[release/2.9.0] set host is import && fix notify template
2019-05-07 13:08:15 +08:00
yunion-ci-robot
5cc2311c30 Merge pull request #741 from yunion-ci-robot/cherry-pick-725-to-release/2.9.0
[release/2.9.0] bugfix: fix host image service, disable https
2019-05-07 13:07:16 +08:00
yunion-ci-robot
7313d86969 Merge pull request #740 from yunion-ci-robot/cherry-pick-731-to-release/2.9.0
[release/2.9.0] remove gpu passthrough params addr
2019-05-07 13:06:14 +08:00
wanyaoqi
e828e7f5a4 set host is import && fix notify template 2019-05-07 04:32:26 +00:00
wanyaoqi
db8c960289 fix host image service, disable https 2019-05-07 04:31:33 +00:00
yunion-ci-robot
2941d21682 Merge pull request #738 from yunion-ci-robot/cherry-pick-736-to-release/2.9.0
[release/2.9.0] fix: resource set schedtags
2019-05-07 12:18:15 +08:00
wanyaoqi
56fe3d052d remove gpu passthrough params addr 2019-05-07 04:17:50 +00:00
Zexi
0f20051eab fix: resource set schedtags 2019-05-07 04:16:46 +00:00
yunion-ci-robot
55b7e96916 Merge pull request #735 from yunion-ci-robot/cherry-pick-730-to-release/2.9.0
[release/2.9.0] fix: FetchModelExtraCountProperties find empty method name
2019-05-07 12:10:17 +08:00
Qiu Jian
0b2fcd4d0d fix: FetchModelExtraCountProperties find empty method name 2019-05-07 03:57:25 +00:00
yunion-ci-robot
df9c8a2121 Merge pull request #734 from yunion-ci-robot/cherry-pick-732-to-release/2.9.0
[release/2.9.0] update host batch register
2019-05-07 11:32:15 +08:00
TangBin
0842c17549 update host batch register 2019-05-07 03:30:28 +00:00
yunion-ci-robot
d1d3f0a1ff Merge pull request #729 from yunion-ci-robot/cherry-pick-728-to-release/2.9.0
[release/2.9.0] fix: fail to create network in default vpc
2019-05-06 21:21:15 +08:00
Qiu Jian
c9f87f08c7 fix: fail to create network in default vpc 2019-05-06 13:15:33 +00:00
yunion-ci-robot
b22bdf23cb Merge pull request #722 from yunion-ci-robot/cherry-pick-719-to-release/2.9.0
[release/2.9.0] fix: create backup server panic when schedule
2019-05-05 21:14:14 +08:00
Zexi
5adb5797a8 fix: create backup server panic when schedule 2019-05-05 13:10:29 +00:00
yunion-ci-robot
185c098430 Merge pull request #720 from Zexi/automated-cherry-pick-of-#716-upstream-release-2.9.0
Automated cherry pick of #716: fix baremetal disk config auto extend not work and ipmi_info not record
2019-05-05 20:51:13 +08:00
Zexi
12f54ef044 fix baremetal disk config auto extend not work and ipmi_info not record 2019-05-05 20:10:47 +08:00
yunion-ci-robot
0a1d39619c Merge pull request #717 from yunion-ci-robot/cherry-pick-711-to-release/2.9.0
[release/2.9.0] bugfix:  fix delete backup status
2019-05-05 19:54:15 +08:00
wanyaoqi
f6c07a838d fix backup status 2019-05-05 11:06:26 +00:00
yunion-ci-robot
b261b81c98 Merge pull request #714 from yunion-ci-robot/cherry-pick-710-to-release/2.9.0
[release/2.9.0] 设置镜像hw_qemu_guest_agent属性
2019-05-05 16:52:15 +08:00
yunion-ci-robot
6d13364b30 Merge pull request #713 from yunion-ci-robot/cherry-pick-699-to-release/2.9.0
[release/2.9.0] bugfix: fix baremetal online prepare!
2019-05-05 16:51:15 +08:00
ioito
3af6ae567f 设置镜像hw_qemu_guest_agent属性 2019-05-05 08:36:26 +00:00
wanyaoqi
41673924d4 fix baremetal online prepare! 2019-05-05 04:36:05 +00:00
yunion-ci-robot
8ef8969392 Merge pull request #709 from tb365/automated-cherry-pick-of-#366-upstream-release-2.9.0
Automated cherry pick of #366: add ucloud operations
2019-05-05 11:56:13 +08:00
TangBin
ecddd5021f ucloud normalizeOsName bugfix 2019-05-05 11:47:18 +08:00
TangBin
03938baee9 fix comment 2019-05-05 11:47:17 +08:00
TangBin
581938e372 fix ucloudcli instance-create 2019-05-05 11:47:17 +08:00
TangBin
4792047cfb fix comment 2019-05-05 11:47:17 +08:00
TangBin
46d573401b add ucloud operations 2019-05-05 11:47:17 +08:00
yunion-ci-robot
242c6cde8c Merge pull request #707 from yunion-ci-robot/cherry-pick-456-to-release/2.9.0
[release/2.9.0] 添加阿里云lb监听参数校验
2019-05-05 11:27:13 +08:00
ioito
4a765bdda9 添加阿里云lb监听参数校验 2019-05-05 03:18:25 +00:00
yunion-ci-robot
9944417443 Merge pull request #706 from yunion-ci-robot/cherry-pick-690-to-release/2.9.0
[release/2.9.0] fix: 1. ignore yunioncloud temp VMs when syncing 2. start esxi VM on same host with lock
2019-05-02 12:05:14 +08:00
Qiu Jian
8ba76a67f2 fix: 1. ignore yunioncloud temp VMs when syncing 2. start esxi VM on same host with lock 2019-05-02 04:03:41 +00:00
yunion-ci-robot
19f3d6a6ac Merge pull request #703 from yunion-ci-robot/cherry-pick-700-to-release/2.9.0
[release/2.9.0] feature: golang host support linux bridge
2019-05-02 10:42:13 +08:00
wanyaoqi
237e861704 golang host support linux bridge 2019-05-02 02:35:32 +00:00
yunion-ci-robot
40dfc7cd91 Merge pull request #701 from yunion-ci-robot/cherry-pick-671-to-release/2.9.0
[release/2.9.0] 修复腾讯云本地和云上out方向规则为空语义不一致问题
2019-05-01 12:02:14 +08:00
ioito
795491d2b3 修复腾讯云本地和云上out方向规则为空语义不一致问题 2019-05-01 03:52:26 +00:00
yunion-ci-robot
8eeaa08841 Merge pull request #698 from yunion-ci-robot/cherry-pick-696-to-release/2.9.0
[release/2.9.0] fix: deploy_configs was removed when invoke SetCreateParams
2019-04-30 16:43:18 +08:00
Zexi
84190d147c fix: deploy_configs was removed when invoke SetCreateParams 2019-04-30 08:26:18 +00:00
yunion-ci-robot
3c5407051b Merge pull request #695 from yunion-ci-robot/cherry-pick-693-to-release/2.9.0
[release/2.9.0] fix: isolated_device dev_type field not set
2019-04-30 14:34:14 +08:00
Zexi
665fa8f325 fix: isolated_device dev_type field not set 2019-04-30 06:30:42 +00:00
yunion-ci-robot
84aadaa880 Merge pull request #692 from yunion-ci-robot/cherry-pick-689-to-release/2.9.0
[release/2.9.0] netio&diskio fix
2019-04-30 14:28:13 +08:00
TangBin
88a40f0609 rename addNetio variable name 2019-04-30 02:43:35 +00:00
TangBin
972c5b4793 netio&diskio fix 2019-04-30 02:43:35 +00:00
yunion-ci-robot
d7b7930f27 Merge pull request #682 from yunion-ci-robot/cherry-pick-679-to-release/2.9.0
[release/2.9.0] bugfix: host register add version record, fix getBmAgentUrl
2019-04-29 14:29:12 +08:00
yunion-ci-robot
ed89158113 Merge pull request #685 from yunion-ci-robot/cherry-pick-659-to-release/2.9.0
[release/2.9.0] fix: keep order of network interface for baremetal
2019-04-29 14:27:16 +08:00
Qiu Jian
c446585812 fix: keep order of network interface for baremetal 2019-04-29 06:24:46 +00:00
yunion-ci-robot
02ba19b7d4 Merge pull request #680 from yunion-ci-robot/cherry-pick-678-to-release/2.9.0
[release/2.9.0] fix: host convert params to ServerCreateInput
2019-04-29 14:21:13 +08:00
wanyaoqi
d83b885c2b host register add version record, fix getBmAgentUrl 2019-04-29 05:38:27 +00:00
Zexi
577d310abd fix: host convert params to ServerCreateInput 2019-04-29 05:36:29 +00:00
yunion-ci-robot
d821c37c3e Merge pull request #676 from yunion-ci-robot/cherry-pick-675-to-release/2.9.0
[release/2.9.0] scheduler forecast select_candidate not add count
2019-04-28 21:58:13 +08:00
Zexi
c7e601171c fix: scheduler forecast select_candidate not add count 2019-04-28 13:55:30 +00:00
yunion-ci-robot
e0c4e2c267 Merge pull request #673 from yunion-ci-robot/cherry-pick-672-to-release/2.9.0
[release/2.9.0] 统一使用const,避免city命名不一致
2019-04-28 17:03:12 +08:00
ioito
5758d04e2e 统一使用const,避免city命名不一致 2019-04-28 07:48:49 +00:00
yunion-ci-robot
28fa859061 Merge pull request #667 from yunion-ci-robot/cherry-pick-665-to-release/2.9.0
[release/2.9.0] 修复未返回templateId
2019-04-27 21:31:17 +08:00
ioito
64a5ee2b9f 修复未返回templateId 2019-04-27 13:24:57 +00:00
yunion-ci-robot
531c7b24db Merge pull request #661 from yunion-ci-robot/cherry-pick-660-to-release/2.9.0
[release/2.9.0] 避免nil指针访问
2019-04-27 17:23:13 +08:00
ioito
4e1dffcbfb 避免nil指针访问 2019-04-27 09:21:24 +00:00
yunion-ci-robot
5d0093603d Merge pull request #655 from yunion-ci-robot/cherry-pick-600-to-release/2.9.0
[release/2.9.0] OpenStack加入重装系统参数校验
2019-04-26 22:24:20 +08:00
yunion-ci-robot
8e85e9d6fd Merge pull request #653 from yunion-ci-robot/cherry-pick-646-to-release/2.9.0
[release/2.9.0] fix: do not directly manage ESXi host that is managed by vcenter
2019-04-26 21:43:12 +08:00
ioito
06c73d203b 加入重装系统参数校验 2019-04-26 13:42:25 +00:00
Qiu Jian
59e5c1afac fix: do not directly manage ESXi host that is managed by vcenter 2019-04-26 13:19:37 +00:00
yunion-ci-robot
778363e732 Merge pull request #649 from yunion-ci-robot/cherry-pick-648-to-release/2.9.0
[release/2.9.0] fix: use db.FetchModelObjects to batch Query objects
2019-04-26 21:08:14 +08:00
Qiu Jian
3549907e75 fix: use db.FetchModelObjects to batch Query objects 2019-04-26 07:46:29 +00:00
yunion-ci-robot
15222c3520 Merge pull request #641 from yunion-ci-robot/cherry-pick-628-to-release/2.9.0
[release/2.9.0] Azure: 修复因系统盘大小导致重装系统失败
2019-04-26 02:08:12 +08:00
yunion-ci-robot
2f82b6d493 Merge pull request #642 from yunion-ci-robot/cherry-pick-634-to-release/2.9.0
[release/2.9.0] 手动同步的也更新last_auto_sync时间
2019-04-26 02:07:14 +08:00
ioito
7f5eefebc6 手动同步的也更新last_auto_sync时间 2019-04-25 16:42:34 +00:00
ioito
1d6bfd28eb Azure: 修复因系统盘大小导致重装系统失败 2019-04-25 16:42:30 +00:00
yunion-ci-robot
b9db1e0264 Merge pull request #637 from yunion-ci-robot/cherry-pick-611-to-release/2.9.0
[release/2.9.0] baremetal schedule net bonding check
2019-04-26 00:42:16 +08:00
yunion-ci-robot
dbcf04e589 Merge pull request #635 from yunion-ci-robot/cherry-pick-633-to-release/2.9.0
[release/2.9.0] 避免返回不是id not found,导致network一直删除失败
2019-04-26 00:41:14 +08:00
Zexi
3adf64b303 baremetal schedule net bonding check 2019-04-25 16:40:25 +00:00
ioito
912acf5ea4 避免返回不是id not found,导致network一直删除失败 2019-04-25 16:39:25 +00:00
yunion-ci-robot
015b95a0ae Merge pull request #629 from yunion-ci-robot/cherry-pick-624-to-release/2.9.0
[release/2.9.0] cloud-init users支持加上default
2019-04-25 21:50:20 +08:00
ioito
8423e75793 cloud-init users支持加上default 2019-04-25 13:29:27 +00:00
yunion-ci-robot
279fb9bc10 Merge pull request #625 from yunion-ci-robot/cherry-pick-610-to-release/2.9.0
[release/2.9.0] 避免同步时删除vpc失败,导致不同步vpc底下资源
2019-04-25 21:04:16 +08:00
ioito
d3b0a1f2b8 避免同步时删除vpc失败,导致不同步vpc底下资源 2019-04-25 12:51:29 +00:00
yunion-ci-robot
c4cc91cf40 Merge pull request #612 from yunion-ci-robot/cherry-pick-609-to-release/2.9.0
[release/2.9.0] Hotfix/qj failed prepaid recycle vm 2.8.0
2019-04-25 20:24:12 +08:00
yunion-ci-robot
32c912f11e Merge pull request #617 from yunion-ci-robot/cherry-pick-613-to-release/2.9.0
[release/2.9.0] Azure: 修复虚拟机时未设置keypair路径
2019-04-25 19:00:14 +08:00
yunion-ci-robot
dde3fb8cc5 Merge pull request #621 from yunion-ci-robot/cherry-pick-614-to-release/2.9.0
[release/2.9.0] bugfix: field host_id not found
2019-04-25 18:59:12 +08:00
wanyaoqi
fff91e6f7c bugfix: filed host_id not found 2019-04-25 10:57:45 +00:00
ioito
749fe93dee Azure: 修复虚拟机时未设置keypair路径 2019-04-25 10:49:27 +00:00
yunion-ci-robot
8f7c87eb54 Merge pull request #615 from yunion-ci-robot/cherry-pick-608-to-release/2.9.0
[release/2.9.0] huawei import keypair & rebuild root & skus filter fix
2019-04-25 18:49:15 +08:00
TangBin
da229f6c8e huawei import keypair & rebuild root & skus filter fix 2019-04-25 10:41:27 +00:00
Qiu Jian
4b50da3fa1 update vendor 2019-04-25 08:29:25 +00:00
Qiu Jian
8c70c86baa fix: 1. network interface for prepaid-recycle VM incorrect 2. aliyun not support import image of RHEL 2019-04-25 08:29:25 +00:00
yunion-ci-robot
ff1b67b6a1 Merge pull request #607 from yunion-ci-robot/cherry-pick-605-to-release/2.9.0
[release/2.9.0] fix: baremetal server deploy auto restart not work
2019-04-25 11:15:11 +08:00
Zexi
e793065967 fix: baremetal server deploy auto restart not work 2019-04-25 03:07:29 +00:00
yunion-ci-robot
f0c6c7c146 Merge pull request #601 from yunion-ci-robot/cherry-pick-586-to-release/2.9.0
[release/2.9.0] 支持批量添加标签api
2019-04-24 23:00:12 +08:00
ioito
e8ea9ab63f 支持批量添加标签api 2019-04-24 14:58:46 +00:00
yunion-ci-robot
2027dfb01d Merge pull request #597 from yunion-ci-robot/cherry-pick-577-to-release/2.9.0
[release/2.9.0] Azure重装系统支持初始化密码
2019-04-24 22:25:15 +08:00
ioito
fe7ed5e8a9 修复typo错误 2019-04-24 14:13:33 +00:00
ioito
e6a66e67a5 重装系统支持初始化密码 2019-04-24 14:13:32 +00:00
yunion-ci-robot
9374ce776a Merge pull request #596 from yunion-ci-robot/cherry-pick-585-to-release/2.9.0
[release/2.9.0] hotfix: import from libvirt , use link replace mv
2019-04-24 22:08:14 +08:00
wanyaoqi
6b8a634ab4 import from libvirt link disk, do not move 2019-04-24 13:52:29 +00:00
yunion-ci-robot
e543b001b2 Merge pull request #595 from yunion-ci-robot/cherry-pick-591-to-release/2.9.0
[release/2.9.0] fix: prepaid recycle host not check storage types
2019-04-24 20:59:12 +08:00
Zexi
35685580a9 fix: prepaid recycle host not check storage types 2019-04-24 12:55:44 +00:00
yunion-ci-robot
cb892f79e6 Merge pull request #574 from swordqiu/automated-cherry-pick-of-#525-upstream-release-2.9.0
Automated cherry pick of #525: fix: clearn up codes that impacted by query.Count return value changes
2019-04-24 19:23:11 +08:00
Qiu Jian
b838d0d00a update query.Count to query.CountWithError 2019-04-24 18:53:29 +08:00
Qiu Jian
1d8b7857b0 update vendor 2019-04-24 18:53:29 +08:00
Qiu Jian
c993fba16c fix: clearn up codes that impacted by query.Count return value changes 2019-04-24 18:53:28 +08:00
yunion-ci-robot
1da586c554 Merge pull request #588 from yunion-ci-robot/cherry-pick-587-to-release/2.9.0
[release/2.9.0] fix: validate baremetal raid config
2019-04-24 18:43:11 +08:00
Zexi
9915a78d05 fix: validate baremetal raid config 2019-04-24 10:41:26 +00:00
yunion-ci-robot
be5a9d174a Merge pull request #582 from yunion-ci-robot/cherry-pick-581-to-release/2.9.0
[release/2.9.0] fix: baremetal server create params not override disks
2019-04-24 12:19:13 +08:00
Zexi
6f92ceb4d3 fix: baremetal server create params not override disks 2019-04-24 04:13:23 +00:00
yunion-ci-robot
8f847d6797 Merge pull request #580 from yunion-ci-robot/cherry-pick-578-to-release/2.9.0
[release/2.9.0] 新增编译:host baremetal-agent 两个 rpm
2019-04-24 10:11:12 +08:00
Zhang Dongliang
c3c64567cd 新增编译:host baremetal-agent 两个 rpm 2019-04-24 02:09:02 +00:00
yunion-ci-robot
5055e1e95d Merge pull request #575 from yunion-ci-robot/cherry-pick-558-to-release/2.9.0
[release/2.9.0] fix: convert billingcycle to aliyun renew period error
2019-04-23 17:33:12 +08:00
Qiu Jian
c875905f26 fix: convert billingcycle to aliyun renew period error 2019-04-23 09:31:22 +00:00
yunion-ci-robot
5f50073b46 Merge pull request #569 from yunion-ci-robot/cherry-pick-557-to-release/2.9.0
[release/2.9.0] feature: server migrate add auto start
2019-04-23 17:28:12 +08:00
yunion-ci-robot
ded76dadd2 Merge pull request #568 from ioito/automated-cherry-pick-of-#535-upstream-release-2.9.0
Automated cherry pick of #535: 同步公有云资源创建时间
2019-04-23 17:12:14 +08:00
yunion-ci-robot
f20c4d7c0d Merge pull request #572 from yunion-ci-robot/cherry-pick-549-to-release/2.9.0
[release/2.9.0] Bugfix/ningyu meteralert project support
2019-04-23 17:04:11 +08:00
ningyu
b952652813 fix: 余额/消费报警引入了项目归属的概念,在创建、列出规则时都需要指定是哪个项目 2019-04-23 09:01:26 +00:00
yunion-ci-robot
bcf0f8729b Merge pull request #565 from yunion-ci-robot/cherry-pick-477-to-release/2.9.0
[release/2.9.0] aws rebuild root ignore password/key
2019-04-23 16:57:12 +08:00
yunion-ci-robot
2824683687 Merge pull request #564 from yunion-ci-robot/cherry-pick-531-to-release/2.9.0
[release/2.9.0] 避免qcloud password和keypair冲突
2019-04-23 16:50:15 +08:00
wanyaoqi
8cd748ba26 server migrate add auto start 2019-04-23 08:49:22 +00:00
ioito
66ba5c3e0e 同步公有云资源创建时间 2019-04-23 16:47:09 +08:00
tangbin
29d1cedf80 string format bugfix 2019-04-23 08:43:19 +00:00
TangBin
4371e6fb58 aws rebuild root ignore password/key 2019-04-23 08:43:19 +00:00
ioito
191550e89a 避免qcloud password和keypair冲突 2019-04-23 08:41:59 +00:00
yunion-ci-robot
c257ddda97 Merge pull request #560 from yunion-ci-robot/cherry-pick-537-to-release/2.9.0
[release/2.9.0] ip子网支持city过滤
2019-04-23 16:37:11 +08:00
yunion-ci-robot
c6205d6728 Merge pull request #563 from yunion-ci-robot/cherry-pick-536-to-release/2.9.0
[release/2.9.0] bugfix: fix aliyun snapshot delete failed, delete linked images first
2019-04-23 16:34:11 +08:00
wanyaoqi
83dff1843f fix aliyun snapshot delete failed, delete linked images first 2019-04-23 08:31:19 +00:00
ioito
29a23277c6 ip子网支持city过滤 2019-04-23 08:25:38 +00:00
yunion-ci-robot
5e28ea2833 Merge pull request #551 from yunion-ci-robot/cherry-pick-550-to-release/2.9.0
[release/2.9.0] 修复azure拼写错误
2019-04-23 15:28:11 +08:00
yunion-ci-robot
2e007249fa Merge pull request #555 from yunion-ci-robot/cherry-pick-538-to-release/2.9.0
[release/2.9.0] bugfix: fix query networks not set model manager
2019-04-23 14:13:12 +08:00
wanyaoqi
c57d2939ab fix query networks not set model manager 2019-04-23 06:10:28 +00:00
ioito
148aad03c1 修复azure拼写错误 2019-04-23 05:54:26 +00:00
yunion-ci-robot
489434b4e1 Merge pull request #545 from yunion-ci-robot/cherry-pick-539-to-release/2.9.0
[release/2.9.0] loadbalancernetwork: 支持lbnetwork-list --details
2019-04-22 23:34:14 +08:00
yunion-ci-robot
4130b49bc1 Merge pull request #546 from yunion-ci-robot/cherry-pick-540-to-release/2.9.0
[release/2.9.0] fix: domain-config-update rpc method panic
2019-04-22 23:32:12 +08:00
Zexi
ad4ce0bc17 fix: domain-config-update rpc method panic 2019-04-22 15:03:25 +00:00
Yousong Zhou
a8a0ee90ff loadbalancernetwork: 支持lbnetwork-list --details 2019-04-22 15:03:21 +00:00
yunion-ci-robot
60f964a8d5 Merge pull request #542 from yunion-ci-robot/cherry-pick-541-to-release/2.9.0
[release/2.9.0] bugfix: fix host clean recycle bin
2019-04-22 21:14:13 +08:00
wanyaoqi
c76aa7b6f9 fix host clean recycle bin 2019-04-22 12:50:31 +00:00
9924 changed files with 616171 additions and 1548760 deletions

29
.circleci/Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM centos:7
MAINTAINER Yousong Zhou <zhouyousong@yunion.cn>
RUN true \
&& yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
&& yum install -y git wget \
&& yum groupinstall -y "Development Tools" \
&& : ceph for cmd/host \
&& rpm --import 'https://download.ceph.com/keys/release.asc' \
&& yum install -y https://download.ceph.com/rpm-luminous/el7/noarch/ceph-release-1-1.el7.noarch.rpm \
&& yum install -y libcephfs-devel librbd-devel librados-devel \
&& yum clean all
WORKDIR /opt
RUN true \
&& wget https://dl.google.com/go/go1.12.1.linux-amd64.tar.gz \
&& tar xzf go1.12.1.linux-amd64.tar.gz \
&& rm -vf go1.12.1.linux-amd64.tar.gz \
&& true
ENV GOROOT="/opt/go"
ENV PATH="/opt/go/bin:${PATH}"
RUN useradd -c "OneCloud Builder" --create-home --home-dir /home/build --shell /bin/bash build
USER build
ENV HOME /home/build
WORKDIR /home/build
ENV GOPATH="/home/build/go"
ENV PATH="${GOPATH}/bin:${PATH}"

View File

@@ -3,82 +3,41 @@
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
check:
docker:
- image: yunionio/centos-build:1.0-1
environment:
ONECLOUD_CI_BUILD: "1"
working_directory: /root/go/onecloud
steps:
- checkout
- run:
command: |
make -j3 check
build:
requires:
- check
docker:
- image: yunionio/centos-build:1.0-1
environment:
ONECLOUD_CI_BUILD: "1"
- image: yunionio/onecloud-ci:20190328
#### TEMPLATE_NOTE: go expects specific checkout path representing url
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /root/go/onecloud
working_directory: /home/build/go/src/yunion.io/x/onecloud
parallelism: 4
steps:
- checkout
- restore_cache:
key: onecloud-build-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
- run:
command: |
targets="$(circleci tests glob "cmd/*" | grep -v cmd/host-image | circleci tests split)"
echo $targets | tr ' ' '\n'
make -j2 $targets
make $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.0-1
environment:
GO111MODULE: "on"
working_directory: /root/go/onecloud
parallelism: 4
- image: yunionio/onecloud-ci:20190328
working_directory: /home/build/go/src/yunion.io/x/onecloud
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
command: make test
- run:
name: generate_code_coverage
command: ./scripts/coverage.sh --codecov
workflows:
version: 2
build_and_test:
jobs:
- check
- build:
requires:
- check
- test:
requires:
- check
- build
- test

View File

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

View File

@@ -2,131 +2,49 @@
kind: pipeline
name: build
clone:
depth: 1
workspace:
base: /home/build/go
base: /go
path: src/yunion.io/x/onecloud
steps:
- name: build
image: yunion/onecloud-ci:latest
image: d3lx/golang:yunion
commands:
- CGO_ENABLED=0 make -j 4 cmd/apigateway cmd/baremetal-agent cmd/climc cmd/keystone
- CGO_ENABLED=0 make -j 4 cmd/logger cmd/region cmd/scheduler cmd/webconsole
- CGO_ENABLED=0 make -j 4 cmd/yunionconf cmd/glance cmd/torrent
- make
when:
event:
- pull_request
- tag
- name: image-baremetal-agent
trigger:
event:
- pull_request
- tag
---
kind: pipeline
name: release
steps:
- name: release-img
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/baremetal-agent
repo: registry.cn-beijing.aliyuncs.com/yunionio/onecloud
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.baremetal-agent
tags: "${DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: image-climc
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/climc
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.climc
tags: "${DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: image-keystone
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/keystone
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.keystone
tags: "${DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: image-logger
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/logger
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.logger
tags: "${DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: image-region
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/region
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.region
tags: "${DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: image-scheduler
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/scheduler
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.scheduler
tags: "${DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: image-yunionconf
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/yunionconf
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.yunionconf
tags: "${DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: image-apigateway
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/apigateway
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.apigateway
tags: "${DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: image-glance
image: plugins/docker
settings:
repo: registry.cn-beijing.aliyuncs.com/yunionio/glance
registry: registry.cn-beijing.aliyuncs.com
dockerfile: build/docker/Dockerfile.glance
tags: "${DRONE_TAG}"
tags: "{DRONE_TAG}"
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- tag
trigger:
event:
- tag
status:
- success
depends_on:
- build

View File

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

View File

@@ -1,15 +1,9 @@
**这个 PR 实现什么功能/修复什么问题**:
<!--
- [ ] 功能、bugfix描述
- [ ] 冒烟测试
- [ ] 单元测试编写
-->
**是否需要 backport 到之前的 release 分支**:
<!--
如果不需要,填写 "NONE".
如果需要,就以下面 item 的格式写 release 分支名,并提交对应的 cherry-pick PR:
- release/3.2
- release/2.8.0
- release/2.6.0
-->

View File

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

8
.gitignore vendored
View File

@@ -30,14 +30,6 @@ _output
/relay
/structargtest
.idea
.vscode
intellij.yaml
GPATH
GRTAGS
GTAGS
pkg/generated
*.orig
# gotext extracted
out.gotext.json

View File

@@ -1,29 +1,22 @@
# This is how to tell Travis to use the fast container-based test
# runner instead of the slow VM-based one.
sudo: false
dist: bionic
dist: xenial
addons:
apt:
sources:
- sourceline: "deb https://download.ceph.com/debian-luminous/ bionic main"
key_url: "https://download.ceph.com/keys/release.asc"
packages:
- build-essential
- libcephfs-dev
- librbd-dev
- librados-dev
services:
- docker
language: go
go:
- 1.14.x
go_import_path: yunion.io/x/onecloud
cache:
directories:
- $HOME/.cache/go-build
go_import_path: yunion.io/x/onecloud
go:
- "1.12.x"
# Only clone the most recent commit.
git:
depth: 8
depth: 1
script:
- make -j$(nproc) ONECLOUD_CI_BUILD=1
- ls -lh _output/bin
- make docker_build

View File

@@ -1,3 +0,0 @@
# 开发贡献参考
详情见文档 [开发贡献](https://docs.yunion.io/docs/contribute/)

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM alpine:3.8
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ Asia/Shanghai
# Fix binary file not found, see:
# https://stackoverflow.com/questions/34729748/installed-go-binary-not-found-in-path-on-alpine-linux-docker
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
RUN mkdir -p /opt/yunion/bin
ADD ./_output/bin/climc /opt/yunion/bin/climc
ADD ./_output/bin/cloudir /opt/yunion/bin/cloudir
ADD ./_output/bin/glance /opt/yunion/bin/glance
ADD ./_output/bin/region /opt/yunion/bin/region
ADD ./_output/bin/region-dns /opt/yunion/bin/region-dns
ADD ./_output/bin/scheduler /opt/yunion/bin/scheduler
ADD ./_output/bin/webconsole /opt/yunion/bin/webconsole
ADD ./_output/bin/yunionconf /opt/yunion/bin/yunionconf

1932
Gopkg.lock generated Normal file

File diff suppressed because it is too large Load Diff

216
Gopkg.toml Normal file
View File

@@ -0,0 +1,216 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true
[[constraint]]
name = "github.com/pierrec/lz4"
version = "2.0.7"
[[constraint]]
name = "github.com/360EntSecGroup-Skylar/excelize"
version = "1.4.0"
[[constraint]]
name = "github.com/Azure/azure-sdk-for-go"
version = "=19.1.0"
[[constraint]]
branch = "master"
name = "github.com/Microsoft/azure-vhd-utils"
[[constraint]]
name = "github.com/aliyun/alibaba-cloud-sdk-go"
version = "0.7.4"
[[constraint]]
name = "github.com/aliyun/aliyun-oss-go-sdk"
version = "1.9.1"
[[constraint]]
name = "github.com/aokoli/goutils"
version = "1.0.1"
[[constraint]]
name = "github.com/aws/aws-sdk-go"
version = "=1.15.73"
[[constraint]]
name = "github.com/bitly/go-simplejson"
version = "0.5.0"
[[constraint]]
name = "github.com/c-bata/go-prompt"
version = "=0.2.1"
[[constraint]]
name = "github.com/coredns/coredns"
version = "v1.2.0"
[[constraint]]
name = "github.com/fatih/color"
version = "1.7.0"
[[constraint]]
name = "github.com/go-sql-driver/mysql"
version = "1.4.0"
[[constraint]]
name = "github.com/golang-plus/uuid"
version = "1.0.0"
[[constraint]]
branch = "master"
name = "github.com/googollee/go-socket.io"
[[constraint]]
name = "github.com/gorilla/mux"
version = "1.6.2"
[[constraint]]
name = "github.com/gorilla/websocket"
version = "1.4.0"
[[constraint]]
name = "github.com/koding/websocketproxy"
branch = "master"
[[constraint]]
branch = "master"
name = "github.com/gosuri/uitable"
[[constraint]]
name = "github.com/hako/durafmt"
version = "1.0.0"
[[constraint]]
name = "github.com/jinzhu/gorm"
version = "1.9.1"
[[constraint]]
name = "github.com/kr/pty"
version = "1.1.3"
[[constraint]]
name = "github.com/mholt/caddy"
version = "0.10.11"
[[constraint]]
name = "github.com/miekg/dns"
version = "1.0.15"
[[constraint]]
branch = "master"
name = "github.com/moul/http2curl"
[[constraint]]
name = "github.com/nelsonken/cos-go-sdk-v5"
version = "1.21.0"
[[constraint]]
branch = "master"
name = "github.com/serialx/hashring"
[[constraint]]
name = "github.com/stretchr/testify"
version = "1.3.0"
[[constraint]]
name = "github.com/tencentcloud/tencentcloud-sdk-go"
version = "=3.0.30"
[[constraint]]
branch = "master"
name = "github.com/tredoe/osutil"
[[constraint]]
name = "github.com/vmware/govmomi"
version = "0.19.0"
[[constraint]]
branch = "master"
name = "golang.org/x/crypto"
[[constraint]]
name = "gopkg.in/gin-gonic/gin.v1"
version = "1.2.0"
[[constraint]]
name = "k8s.io/api"
version = "kubernetes-1.12.0"
[[constraint]]
branch = "master"
name = "k8s.io/apimachinery"
[[constraint]]
name = "k8s.io/client-go"
version = "9.0.0"
[[constraint]]
branch = "master"
name = "github.com/anacrolix/torrent"
[[constraint]]
branch = "master"
name = "yunion.io/x/jsonutils"
[[constraint]]
branch = "master"
name = "yunion.io/x/log"
[[constraint]]
branch = "master"
name = "yunion.io/x/pkg"
[[constraint]]
branch = "master"
name = "yunion.io/x/sqlchemy"
[[constraint]]
branch = "master"
name = "github.com/pkg/errors"
[[constraint]]
branch = "master"
name = "yunion.io/x/structarg"
[[override]]
name = "github.com/apache/thrift"
revision = "e59b73d3c2bf1c328ccb78e683c0462fa1a473c7"
[prune]
go-tests = true
unused-packages = true
[[constraint]]
name = "github.com/shirou/gopsutil"
version = "2.18.10"
[[constraint]]
name="github.com/ceph/go-ceph"
branch = "master"
[[constraint]]
branch = "master"
name = "github.com/libvirt/libvirt-go-xml"

246
Makefile
View File

@@ -1,26 +1,18 @@
#####################################################
REPO_PREFIX := yunion.io/x/onecloud
VERSION_PKG := yunion.io/x/pkg/util/version
VENDOR_PATH := $(REPO_PREFIX)/vendor
VERSION_PKG := $(VENDOR_PATH)/yunion.io/x/pkg/util/version
ROOT_DIR := $(CURDIR)
BUILD_DIR := $(ROOT_DIR)/_output
BIN_DIR := $(BUILD_DIR)/bin
BUILD_SCRIPT := $(ROOT_DIR)/build/build.sh
DEB_BUILD_SCRIPT := $(ROOT_DIR)/build/build_deb.sh
ifeq ($(ONECLOUD_CI_BUILD),)
GIT_COMMIT := $(shell git rev-parse --short HEAD)
GIT_BRANCH := $(shell git branch -r --contains | head -1 | sed -E -e "s%(HEAD ->|origin|upstream)/?%%g" | xargs)
GIT_VERSION := $(shell git describe --always --tags --abbrev=14 $(GIT_COMMIT)^{commit})
GIT_TREE_STATE := $(shell s=`git status --porcelain 2>/dev/null`; if [ -z "$$s" ]; then echo "clean"; else echo "dirty"; fi)
BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
else
GIT_COMMIT:=x
GIT_BRANCH:=x
GIT_VERSION:=x
BUILD_TREE_STATE:=clean
BUILD_DATE=2099-07-01T07:11:09Z
endif
GIT_COMMIT := $(shell git rev-parse --short HEAD)
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
GIT_VERSION := $(shell git describe --tags --abbrev=14 $(GIT_COMMIT)^{commit})
GIT_TREE_STATE := $(shell s=`git status --porcelain 2>/dev/null`; if [ -z "$$s" ]; then echo "clean"; else echo "dirty"; fi)
BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
LDFLAGS := "-w \
-X $(VERSION_PKG).gitVersion=$(GIT_VERSION) \
@@ -33,12 +25,8 @@ LDFLAGS := "-w \
#####################################################
ifneq ($(DLV),)
GO_BUILD_FLAGS += -gcflags "all=-N -l"
LDFLAGS = ""
endif
GO_BUILD_FLAGS+=-mod vendor -ldflags $(LDFLAGS)
GO_BUILD := go build $(GO_BUILD_FLAGS)
GO_BUILD := go build -ldflags $(LDFLAGS)
GO_INSTALL := go install -ldflags $(LDFLAGS)
GO_TEST := go test
@@ -48,25 +36,13 @@ 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
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}
export CGO_LDFLAGS = ${X_CGO_LDFLAGS}
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
XARGS_FLAGS = --no-run-if-empty
endif
cmdTargets:=$(filter-out cmd/host-image,$(wildcard cmd/*))
rpmTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),rpm/$(b)))
debTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),deb/$(b)))
all: build
@@ -77,56 +53,33 @@ install: prepare_dir
done
build: gendoc
$(MAKE) $(filter-out cmd/host-image, $(wildcard cmd/*))
gendoc:
@sh build/gendoc.sh
gencopyright:
@bash scripts/gencopyright.sh pkg cmd
@sh scripts/gencopyright.sh pkg cmd
test:
@go test $(GO_BUILD_FLAGS) $(shell go list ./... | egrep -v 'host-image|hostimage')
@go test $(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/fetcherfs: prepare_dir
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/%: prepare_dir
cmd/%: prepare_dir fmt
$(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
rpm/%: cmd/%
$(BUILD_SCRIPT) $*
deb/%: cmd/%
$(DEB_BUILD_SCRIPT) $*
pkg/%: prepare_dir
pkg/%: prepare_dir fmt
$(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)
# a hack
rpm:
$(MAKE) $(rpmTargets)
deb:
$(MAKE) $(debTargets)
$(MAKE) $(patsubst %,cmd/%,$(filter-out $@,$(MAKECMDGOALS)))
$(foreach cmd,$(filter-out $@,$(MAKECMDGOALS)),$(BUILD_SCRIPT) $(cmd);)
rpmclean:
rm -fr $(BUILD_DIR)/rpms
@@ -141,8 +94,14 @@ bin_dir: output_dir
output_dir:
@mkdir -p $(BUILD_DIR)
dep_clean:
rm -fr $(GOPATH)/pkg/dep/sources/*
.PHONY: all build prepare_dir clean rpm
dep_install:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
.PHONY: all build prepare_dir clean fmt rpm
clean:
@@ -150,147 +109,14 @@ clean:
fmt:
@git ls-files --exclude '*' '*.go' \
| grep -v '^vendor/' \
| while read f; do \
if ! grep -m1 -q '^// Code generated .* DO NOT EDIT\.$$' "$$f"; then \
echo "$$f"; \
fi ; \
done \
| xargs $(XARGS_FLAGS) gofmt -w
@find . -type f -name "*.go" -not -path "./_output/*" \
-not -path "./vendor/*" | xargs gofmt -s -w
fmt-check: fmt
@if git status --short | grep -E '^.M .*/[^.]+.go'; then \
git diff | cat; \
echo "$@: working tree modified (possibly by gofmt)" >&2 ; \
false ; \
fi
.PHONY: fmt fmt-check
gendocgo:
@sh build/gendoc.sh
adddocgo:
@git ls-files --others '*/doc.go' | xargs $(XARGS_FLAGS) -- git add
gendocgo-check: gendocgo
@n="$$(git ls-files --others '*/doc.go' | wc -l)"; \
if test "$$n" -gt 0; then \
git ls-files --others '*/doc.go' | sed -e 's/^/ /'; \
echo "$@: untracked doc.go file(s) exist in working directory" >&2 ; \
false ; \
fi
.PHONY: gendocgo adddocgo gendocgo-check
goimports-check:
@goimports -w -local "yunion.io/x/:yunion.io/x/onecloud" pkg cmd; \
if git status --short | grep -E '^.M .*/[^.]+.go'; then \
git diff | cat; \
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 "$@: see \"yun\" branch at https://github.com/yousong/tools" >&2 ; \
false ; \
fi
.PHONY: goimports-check
vet-check:
./scripts/vet.sh gen
./scripts/vet.sh chk
.PHONY: vet-check
check: fmt-check
check: gendocgo-check
check: goimports-check
check: vet-check
.PHONY: check
define depDeprecated
OneCloud now requires using go-mod for dependency management. dep target,
vendor files will be removed in future versions
Follow the following link to find out more about go-mod
- https://blog.golang.org/using-go-modules
- https://github.com/golang/go/wiki/Modules
Switching to "make mod"...
endef
dep: export depDeprecated:=$(depDeprecated)
dep:
@echo "$$depDeprecated"
@$(MAKE) mod
mod:
go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p'))
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
Tidy up go modules and vendor directory
make mod
endef
help: export helpText:=$(helpText)
help:
@echo "$$helpText"
.PHONY: help
gen-model-api-check:
which model-api-gen || (GO111MODULE=off go get -u yunion.io/x/code-generator/cmd/model-api-gen)
gen-model-api: gen-model-api-check
$(ROOT_DIR)/scripts/codegen.py model-api
gen-swagger-check:
which swagger || (GO111MODULE=off go get -u github.com/go-swagger/go-swagger/cmd/swagger)
which swagger-gen || (GO111MODULE=off go get -u yunion.io/x/code-generator/cmd/swagger-gen)
which swagger-serve || (GO111MODULE=off go get -u yunion.io/x/code-generator/cmd/swagger-serve)
gen-swagger: gen-swagger-check
$(ROOT_DIR)/scripts/codegen.py swagger-code
$(ROOT_DIR)/scripts/codegen.py swagger-yaml
swagger-serve-only:
$(ROOT_DIR)/scripts/codegen.py swagger-serve
swagger-serve: gen-model-api gen-swagger swagger-serve-only
swagger-site: gen-model-api gen-swagger
$(ROOT_DIR)/scripts/codegen.py swagger-site
.PHONY: gen-model-api-check gen-model-api gen-swagger-check gen-swagger swagger-serve swagger-site
REGISTRY ?= "registry.cn-beijing.aliyuncs.com/yunionio"
VERSION ?= $(shell git describe --exact-match 2> /dev/null || \
git describe --match=$(git rev-parse --short=8 HEAD) --always --dirty --abbrev=8)
image:
mkdir -p $(ROOT_DIR)/_output
DEBUG=$(DEBUG) ARCH=$(ARCH) TAG=$(VERSION) REGISTRY=$(REGISTRY) $(ROOT_DIR)/scripts/docker_push.sh $(filter-out $@,$(MAKECMDGOALS))
.PHONY: image
image-telegraf-raid-plugin:
VERSION=release-1.6.1 ARCH=all make image telegraf-raid-plugin
cd $(ROOT_DIR) && dep ensure -v -update $(shell for p in $$(ls vendor/yunion.io/x/); do echo "yunion.io/x/$$p"; done | xargs)
%:
@:
ModName:=yunion.io/x/onecloud
include $(CURDIR)/Makefile.common.mk
docker_build:
$(ROOT_DIR)/build/docker_build.sh

View File

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

6
OWNERS
View File

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

View File

@@ -1,54 +0,0 @@
# Yunion Cloud (云联融合云)
[![CircleCI](https://circleci.com/gh/yunionio/yunioncloud.svg?style=svg)](https://circleci.com/gh/yunionio/yunioncloud)
[![Build Status](https://travis-ci.com/yunionio/yunioncloud.svg?branch=master)](https://travis-ci.org/yunionio/yunioncloud)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/yunioncloud)](https://goreportcard.com/report/github.com/yunionio/yunioncloud)
## 什么是云联融合云?
云联融合云Yunion Cloud是一个开源的多云平台。融合云构建在用户分布于多云基础设施之上通过技术手段将分布于多云的异构IT资源统一管理将多底层多云的差异向用户屏蔽并通过网络和调度实现资源的融合与打通在多云之上进行抽象向用户呈现统一的使用界面和API接口让用户就像使用一个云平台一样使用分布于多云的资源实现一个统一的“云上之云”的云平台。
鉴于企业IT基础设施的两个趋势1. 企业使用多云基础设施并且公有云是最主要的基础设施提供者2. 企业应用将逐步云原生化企业IT基础设施需要为Kubernetes优化。融合云为此架构而设计。一方面抽象管理底层的多云基础设施另一方面为多云Kubernetes提供运行环境。融合云为企业未来的的IT基础设施架构而设计。
云联融合云具备以下功能特性:
- 多云资源统一管理
统一API、镜像、调度、账号体系、监控和计费等操作能够全面管理 On premises、 私有云、公有云资源。
- 内置私有云
YunionCloud 内置完备的私有云实现提供对用户本地IDC的虚拟机、物理机和负载均衡等资源管理。
- 为多云Kubernetes提供运行环境
YunionCloud 自身为运行在Kubernetes的云原生应用并且能在多云环境部署运行Kubernetes集群。
欢迎安装部署云联融合云,期待大家的反馈!
## 部署
请参考文档 [安装部署](https://docs.yunion.io/docs/setup/) 搭建 YunionCloud 集群。
## 文档
- [文档中心](https://docs.yunion.io/)
- [Swagger API文档](https://docs.yunion.cn/api/)
## 架构
![architecture](https://www.yunion.cn/static/frame.png)
## 贡献
我们非常欢迎和感谢开发者向项目做贡献,流程细节请查看 [CONTRIBUTING.md](./CONTRIBUTING.md) 。
## License
YunionCloud 使用 Apache license 2.0. 详情请看 [LICENSE](./LICENSE) 。

View File

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

View File

@@ -1,10 +0,0 @@
region = 'Yunion'
address = '10.168.222.136'
port = 8890
auth_uri = 'http://10.168.222.136:35357/v3'
admin_user = 'yunionansible'
admin_password = 'xxxxxxxxxxxxxxxx'
admin_tenant_name = 'system'
sql_connection = 'mysql+pymysql://yunionansible:9YuQL9KEZn1mppaK@localhost:3306/yunionansible?charset=utf8'
auto_sync_table = True

View File

@@ -1,5 +0,0 @@
DESCRIPTION="Yunion Ansible Controller"
REQUIRES=(
"ansible"
)

View File

@@ -1,6 +1 @@
DESCRIPTION="Baremetal Agent Command Line Utility"
REQUIRES=(
ipmitool
mkisofs
)
DESCRIPTION="Baremetal Agent Command Line Utility"

View File

@@ -13,7 +13,6 @@ SRC_BUILD=$ROOT_DIR/build
OUTPUT_DIR=$ROOT_DIR/_output/rpms
PKG=$1
BIN_PATH=${2:-/opt/yunion/bin}
if [ -z "$PKG" ]; then
echo "Usage: $0 <package>"
@@ -91,9 +90,9 @@ $DESCRIPTION
%build
%install
install -D -m 0755 $BIN \$RPM_BUILD_ROOT$BIN_PATH/$PKG
install -D -m 0755 $BIN \$RPM_BUILD_ROOT/opt/yunion/bin/$PKG
for bin in $EXTRA_BINS; do
install -D -m 0755 $SRC_BIN/\$bin \$RPM_BUILD_ROOT$BIN_PATH/\$bin
install -D -m 0755 $SRC_BIN/\$bin \$RPM_BUILD_ROOT/opt/yunion/bin/\$bin
done
if [ -d $ROOT/root ]; then
rsync -a $ROOT/root/ \$RPM_BUILD_ROOT
@@ -125,8 +124,8 @@ getent passwd %{owner} >/dev/null || /usr/sbin/useradd -r -s /sbin/nologin -d %{
%files
%doc
$BIN_PATH/$PKG
$(for b in $EXTRA_BINS; do echo $BIN_PATH/$b; done)
/opt/yunion/bin/$PKG
$(for b in $EXTRA_BINS; do echo /opt/yunion/bin/$b; done)
" > $SPEC_FILE
if [ -d $ROOT/root/ ]; then
@@ -135,11 +134,7 @@ fi
rpmbuild --define "_topdir $BUILDROOT" -bb $SPEC_FILE
find $RPM_DIR -type f | while read f; do
d="$(dirname "$f")"
d="$OUTPUT_DIR/${d#$RPM_DIR}"
mkdir -p "$d"
cp $f $d
done
mkdir -p $OUTPUT_DIR
cp -fr $RPM_DIR/* $OUTPUT_DIR/
rm -fr $BUILDROOT

View File

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

View File

@@ -1,10 +0,0 @@
policy:
'*':
'*':
'*': allow
create: deny
delete: deny
perform:
purge: deny
clone: deny
'*': allow

View File

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

View File

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

View File

@@ -1,42 +0,0 @@
#!/bin/bash
set -e
pushd $(dirname $BASH_SOURCE) > /dev/null
CUR_DIR=$(pwd -P)
popd > /dev/null
ACCOUNT=$1
if [ -z "$ACCOUNT" ]; then
echo "Usage: $0 <cloud-acount-id-or-name>"
exit 1
fi
ACCOUNT_ID=$(climc cloud-account-show $ACCOUNT | grep -w " id " | awk '{print $4}')
ACCOUNT_NAME=$(climc cloud-account-show $ACCOUNT | grep -w " name " | awk '{print $4}')
if [ -z "$ACCOUNT_ID" ]; then
echo "Cloud account $ACCOUNT not found"
exit 1
fi
echo "Ready to clean cloud account $ACCOUNT_NAME($ACCOUNT_ID)..."
echo "1. Disable cloud account $ACCOUNT_NAME($ACCOUNT_ID) ..."
climc cloud-account-disable $ACCOUNT_ID
echo "2. Clean all providers ..."
for provider_id in $(climc cloud-provider-list --account $ACCOUNT_ID --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
echo "### to clean cloud provider $provider_id ..."
$CUR_DIR/clean_provider.sh $provider_id
done
echo "3. Delete cloud account ..."
climc cloud-account-delete $ACCOUNT_ID

View File

@@ -1,27 +0,0 @@
#/bin/bash
set -e
EIP=$1
if [ -z "$EIP" ]; then
echo "Usage: $0 <eip_id_or_name>"
exit 1
fi
EIP_NAME=$(climc eip-show $EIP | grep -w " name " | awk '{print $4}')
EIP_ID=$(climc eip-show $EIP | grep -w " id " | awk '{print $4}')
if [ -z "$EIP_ID" ]; then
echo "Cannot find eip $EIP_ID"
exit 1
fi
echo "To clean eip $EIP_NAME($EIP_ID)..."
clean_eip() {
local EID=$1
climc eip-purge $EID
}
clean_eip $EIP_ID

View File

@@ -1,80 +0,0 @@
#!/bin/bash
set -e
HOST=$1
if [ -z "$HOST" ]; then
echo "Usage: $0 <host_id_or_name>"
exit 1
fi
error_exit() {
echo "Error: $1"
exit 1
}
HOSTID=$(climc host-show $HOST | grep -w " id " | awk '{print $4}')
HOSTNAME=$(climc host-show $HOST | grep -w " name " | awk '{print $4}')
if [ -z "$HOSTNAME" ]; then
error_exit "Cannot find host $HOST"
fi
if [ -z "$HOSTID" ]; then
error_exit "Cannot find host $HOST"
fi
echo "Ready to purge host $HOSTNAME($HOSTID)..."
echo "1. Disable $HOSTNAME($HOSTID)"
if ! climc host-disable $HOSTID > /dev/null; then
error_exit "Fail to disable $HOST"
fi
echo "2. Clean servers on $HOSTNAME($HOSTID)"
for i in $(climc server-list --host $HOSTID --admin --limit 2048 --system | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc server-update --delete enable $i > /dev/null
climc server-purge $i > /dev/null
done
for i in $(climc server-list --host $HOSTID --admin --limit 2048 --pending-delete --system | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc server-purge $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}')
do
STORAGENAME=$(climc storage-show $storageid | grep -w " name " | awk '{print $4}')
STORAGE_TYPE=$(climc storage-show $storageid | grep -w " storage_type " | awk '{print $4}')
if [ "$STORAGE_TYPE" == "local" ]; then
for diskid in $(climc disk-list --admin --system --details --search $storageid --limit 2048 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc disk-purge $diskid > /dev/null
done
for diskid in $(climc disk-list --admin --system --details --search $storageid --pending-delete --limit 2048 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc disk-purge $diskid > /dev/null
done
fi
done
echo "4. Remove host $HOSTNAME($HOSTID)"
BAREMETAL=$(climc host-show $HOSTID | grep -w " is_baremetal " | awk '{print $4}')
HOSTTYPE=$(climc host-show $HOSTID | grep -w " host_type " | awk '{print $4}')
if [ "$BAREMETAL" == "true" ] && [ "$HOSTTYPE" != "baremetal" ]; then
climc host-update --host-type baremetal $HOSTID > /dev/null
fi
climc host-delete $HOSTID > /dev/null
echo "DONE."

View File

@@ -1,27 +0,0 @@
#!/bin/bash
set -e
LB=$1
if [ -z "$LB" ]; then
echo "Usage: $0 <loadbalancer_id_or_name>"
exit 1
fi
LB_ID=$(climc lb-show $LB | grep -w " id " | awk '{print $4}')
LB_NAME=$(climc lb-show $LB | grep -w " name " | awk '{print $4}')
if [ -z "$LB_ID" ]; then
echo "Loadbalancer $LB not found"
exit 1
fi
echo "Ready to remove loadbalancer $LB_NAME($LB_ID) ..."
clean_loadbalancer() {
local LID=$1
climc lb-purge $LID
}
clean_loadbalancer $LB_ID

View File

@@ -1,27 +0,0 @@
#!/bin/bash
set -e
LB_ACL=$1
if [ -z "$LB_ACL" ]; then
echo "Usage: $0 <loadbalancer_id_or_name>"
exit 1
fi
LB_ACL_ID=$(climc lbacl-show $LB_ACL | grep -w " id " | awk '{print $4}')
LB_ACL_NAME=$(climc lbacl-show $LB_ACL | grep -w " name " | awk '{print $4}')
if [ -z "$LB_ACL_ID" ]; then
echo "Loadbalancer ACL $LB_ACL_ID not found"
exit 1
fi
echo "Ready to remove loadbalancer acl $LB_ACL_NAME($LB_ACL_ID) ..."
clean_loadbalancer_acl() {
local LID=$1
climc lbacl-purge $LID
}
clean_loadbalancer_acl $LB_ACL_ID

View File

@@ -1,27 +0,0 @@
#!/bin/bash
set -e
LB_CERT=$1
if [ -z "$LB_CERT" ]; then
echo "Usage: $0 <loadbalancer_id_or_name>"
exit 1
fi
LB_CERT_ID=$(climc lbcert-show $LB_CERT | grep -w " id " | awk '{print $4}')
LB_CERT_NAME=$(climc lbcert-show $LB_CERT | grep -w " name " | awk '{print $4}')
if [ -z "$LB_CERT_ID" ]; then
echo "Loadbalancer certificate $LB_CERT_ID not found"
exit 1
fi
echo "Ready to remove loadbalancer certificate $LB_CERT_NAME($LB_CERT_ID) ..."
clean_loadbalancer_cert() {
local LID=$1
climc lbcert-purge $LID
}
clean_loadbalancer_cert $LB_CERT_ID

View File

@@ -1,96 +0,0 @@
#!/bin/bash
set -e
pushd $(dirname $BASH_SOURCE) > /dev/null
CUR_DIR=$(pwd -P)
popd > /dev/null
PROVIDER=$1
if [ -z "$PROVIDER" ]; then
echo "Usage: $0 <cloud-provider-id-or-name>"
exit 1
fi
PROVIDER_ID=$(climc cloud-provider-show $PROVIDER | grep -w " id " | awk '{print $4}')
PROVIDER_NAME=$(climc cloud-provider-show $PROVIDER | grep -w " name " | awk '{print $4}')
if [ -z "$PROVIDER_ID" ]; then
echo "Cloud provider $PROVIDER not found"
exit 1
fi
echo "Ready to clean cloud provider $PROVIDER_NAME($PROVIDER_ID)..."
echo "1. Disable cloud provider $PROVIDER_NAME($PROVIDER_ID) ..."
climc cloud-provider-disable $PROVIDER_ID
echo "2. Clean all hosts ..."
for hostid in $(climc host-list --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
$CUR_DIR/clean_host.sh $hostid
done
echo "3. Clean all loadbalancer ..."
for lbid in $(climc lb-list --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
$CUR_DIR/clean_loadbalancer.sh $lbid
done
echo "4. Clean all loadbalancer acl ..."
for lbaclid in $(climc lbacl-list --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
$CUR_DIR/clean_loadbalancer_acl.sh $lbaclid
done
echo "5. Clean all loadbalancer certificate ..."
for lbcertid in $(climc lbcert-list --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
$CUR_DIR/clean_loadbalancer_certificate.sh $lbcertid
done
echo "6. Clean all vpc ..."
for vpcid in $(climc vpc-list --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
$CUR_DIR/clean_vpc.sh $vpcid
done
echo "7. Clean all eips ..."
for eipid in $(climc eip-list --admin --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
$CUR_DIR/clean_eip.sh $eipid
done
echo "8. Clean all snapshots ..."
for snapid in $(climc snapshot-list --admin --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
echo "to clean snapshot $snapid ..."
$CUR_DIR/clean_snapshot.sh $snapid
done
echo "9. Clean all storagecache ..."
for cacheid in $(climc storage-cache-list --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
$CUR_DIR/clean_storagecache.sh $cacheid
done
echo "10. Clean all storages ..."
for storeid in $(climc storage-list --manager $PROVIDER_ID --admin --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
$CUR_DIR/clean_storage.sh $storeid
done
echo "Delete cloud provider ..."
climc cloud-provider-delete $PROVIDER_ID

View File

@@ -1,27 +0,0 @@
#/bin/bash
set -e
SNAPSHOT=$1
if [ -z "$SNAPSHOT" ]; then
echo "Usage: $0 <snapshot_id_or_name>"
exit 1
fi
SNAPSHOT_NAME=$(climc snapshot-show $SNAPSHOT | grep -w " name " | awk '{print $4}')
SNAPSHOT_ID=$(climc snapshot-show $SNAPSHOT | grep -w " id " | awk '{print $4}')
if [ -z "$SNAPSHOT_ID" ]; then
echo "Cannot find snapshot $SNAPSHOT_ID"
exit 1
fi
echo "To clean snapshot $SNAPSHOT_NAME($SNAPSHOT_ID)..."
clean_snapshot() {
local SNAP_ID=$1
climc snapshot-purge $SNAP_ID > /dev/null
}
clean_snapshot $SNAPSHOT_ID

View File

@@ -1,34 +0,0 @@
#!/bin/bash
set -e
STORAGE=$1
if [ -z "$STORAGE" ]; then
echo "Usage: $0 <storage_id_or_name>"
exit 1
fi
STORAGE_ID=$(climc storage-show $STORAGE | grep -w " id " | awk '{print $4}')
STORAGE_NAME=$(climc storage-show $STORAGE | grep -w " name " | awk '{print $4}')
if [ -z "$STORAGE_ID" ]; then
echo "Storage $STORAGE not found"
exit 1
fi
echo "Clean disks on storage $STORAGE_NAME($STORAGE_ID) ..."
for disk_id in $(climc disk-list --admin --storage $STORAGE_ID --show-emulated --limit 2048 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc disk-purge $disk_id > /dev/null
done
for disk_id in $(climc disk-list --admin --storage $STORAGE_ID --show-emulated --pending-delete --limit 2048 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc disk-purge $disk_id > /dev/null
done
# CACHE_ID=$(climc storage-show $STORAGE_ID | grep -w " storagecache_id " | awk '{print $4}')
climc storage-delete $STORAGE_ID > /dev/null

View File

@@ -1,28 +0,0 @@
#!/bin/bash
set -e
CACHE=$1
if [ -z "$CACHE" ]; then
echo "Usage: $0 <storage_cache_id_or_name>"
exit 1
fi
CACHE_ID=$(climc storage-cache-show $CACHE | grep -w " id " | awk '{print $4}')
CACHE_NAME=$(climc storage-cache-show $CACHE | grep -w " name " | awk '{print $4}')
if [ -z "$CACHE_ID" ]; then
echo "Storage cache $CACHE not found"
exit 1
fi
echo "Ready to remove storagecache $CACHE_NAME($CACHE_ID) ..."
for imgid in $(climc storage-cached-image-list --storagecache $CACHE_ID --show-emulated --limit 0 | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $4}')
do
climc storagecache-uncache-image $CACHE_ID $imgid --force # > /dev/null
done
climc storage-cache-delete $CACHE_ID > /dev/null

View File

@@ -1,55 +0,0 @@
#/bin/bash
set -e
VPC=$1
if [ -z "$VPC" ]; then
echo "Usage: $0 <vpc_id_or_name>"
exit 1
fi
VPC_NAME=$(climc vpc-show $VPC | grep -w " name " | awk '{print $4}')
VPC_ID=$(climc vpc-show $VPC | grep -w " id " | awk '{print $4}')
if [ -z "$VPC_ID" ]; then
echo "Cannot find vpc $VPC"
exit 1
fi
echo "To clean vpc $VPC_NAME($VPC_ID)..."
clean_network() {
climc network-purge $1 > /dev/null
}
clean_wire() {
local WIRE_ID=$1
for net_id in $(climc network-list --admin --wire $WIRE_ID --show-emulated | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
clean_network $net_id
done
climc wire-delete $wire_id > /dev/null
}
clean_vpc() {
local VPC_ID=$1
climc vpc-purge $VPC_ID > /dev/null
}
echo "1. Clean wires ..."
for wire_id in $(climc wire-list --vpc $VPC_ID --show-emulated | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
clean_wire $wire_id
done
echo "2. Clean route tables ..."
for routetable_id in $(climc routetable-list --vpc $VPC_ID --show-emulated | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc routetable-purge $routetable_id >/dev/null
done
echo "3. clean vpc ..."
clean_vpc $VPC_ID

View File

@@ -1 +0,0 @@
DESCRIPTION="Yunion Cloudevent"

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,47 +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="urn:alibaba:cloudcomputing">
<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>MIIDXjCCAkagAwIBAgIEXHToLjANBgkqhkiG9w0BAQsFADBwMQswCQYDVQQGEwJDTjERMA8GA1UE
CBMISGFuZ3pob3UxKTAnBgNVBAsTIEFsaWJhYmEgQ2xvdWQgQ29tcHV0aW5nIENvLiBMdGQuMSMw
IQYDVQQDExp1cm46YWxpYmFiYTpjbG91ZGNvbXB1dGluZzAgFw0xOTAyMjYwNzE4MDZaGA8yMTE5
MDIwMjA3MTgwNlowcDELMAkGA1UEBhMCQ04xETAPBgNVBAgTCEhhbmd6aG91MSkwJwYDVQQLEyBB
bGliYWJhIENsb3VkIENvbXB1dGluZyBDby4gTHRkLjEjMCEGA1UEAxMadXJuOmFsaWJhYmE6Y2xv
dWRjb21wdXRpbmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDDjD53ZENEHoYNXAOf
OIbVBJhj7SCWKmdjnbnxq8WAFWEeZtS6hZLPpWh1z7b0NjJkvCf5oFVqBJYbbW5kEKV+9CpV6VHZ
qOXmsIRlkvZB+Wnc3SduwiiiUR9JojSPxVQvSf4WLT+HDASlrBztuRV2vHj9utLbvy+6bgVBqF8g
emL9Pcif1robDH8HlqUcADXLAt18E4MbToldVoHjpFc6fAKUXujWH5feAL8g0CKlmf/JVlHLEtu4
vKPxBQ8sgkysk6EnrjXl6Q4a4t+vbPG5uczA1ouTkDupMCRlaWHIHaJL/AoDGabn8sVXdaVJUKC5
54FNkRznBhRQll+Nuc2rAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAE8k4S4HvOglthJwF3aMQXGi
LKW6Becs9SljA0/5VtZQDrDf2By/1BIMvWfZ/dFnO+MylDLVdS6XWvWat/DW0fOGxU4s1WNfshX7
DJDGR2G1XgtGoDZEYIDahUp5katAPypCkY57fGZlI0d3nq46/2qT/Zpne+pFE3DI/x8klZMniniw
YjNXbG96y/M4DYi1J7RR8mLIfVvz5o1SMGT4Ta2p/USE2M9F6O7/zc2j62dQgXiYa9OONo31RiXR
TmvGEUNuQoBZhVrFIvOnNjIfFT7Xd3CUowwJKP1floserrx4B5jScRAi9yK3x2a2lhfc+PksXfTs
aqIr5TQL4OorLEE=</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.aliyun.com/saml-role/sso"/>
<AttributeConsumingService index="1">
<ServiceName xml:lang="en">Alibaba Cloud Console Single Sign-On</ServiceName>
<RequestedAttribute isRequired="true" Name="https://www.aliyun.com/SAML-Role/Attributes/Role" FriendlyName="RoleEntitlement"/>
<RequestedAttribute isRequired="true" Name="https://www.aliyun.com/SAML-Role/Attributes/RoleSessionName" FriendlyName="RoleSessionName"/>
<RequestedAttribute isRequired="false" Name="https://www.aliyun.com/SAML-Role/Attributes/SessionDuration" FriendlyName="SessionDuration"/>
</AttributeConsumingService>
</SPSSODescriptor>
<Organization>
<OrganizationName xml:lang="en">Alibaba Cloud Computing Co. Ltd.</OrganizationName>
<OrganizationDisplayName xml:lang="en">AlibabaCloud</OrganizationDisplayName>
<OrganizationURL xml:lang="en">https://www.aliyun.com</OrganizationURL>
</Organization>
</EntityDescriptor>

View File

@@ -1,67 +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="urn:amazon:webservices" validUntil="2021-06-02T00:00:00Z">
<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>MIIDbTCCAlWgAwIBAgIEFWIThjANBgkqhkiG9w0BAQsFADBnMR8wHQYDVQQDExZ1
cm46YW1hem9uOndlYnNlcnZpY2VzMSIwIAYDVQQKExlBbWF6b24gV2ViIFNlcnZp
Y2VzLCBJbmMuMRMwEQYDVQQIEwpXYXNoaW5ndG9uMQswCQYDVQQGEwJVUzAeFw0y
MDA2MDIwMDAwMDBaFw0yMTA2MDIwMDAwMDBaMGcxHzAdBgNVBAMTFnVybjphbWF6
b246d2Vic2VydmljZXMxIjAgBgNVBAoTGUFtYXpvbiBXZWIgU2VydmljZXMsIElu
Yy4xEzARBgNVBAgTCldhc2hpbmd0b24xCzAJBgNVBAYTAlVTMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwKA4yDh4wAjlkhjJoXARGX9DQWsGTgp9GzoX
NebntY+DjB8H6hIkYRR3++yEDY90qldbZzOaOKRm2jyL7i+MgNt+ktx6wYGD7HBg
e8Z0Zh6eHRIwKbvu4/heMLdqqu+hlXkrC15T4N/LqiwT5JhPTrO4V1KG3ljR1ONG
7aLblVH2aRENV+X9la/AVAPesUpCnoUcTkuCJrcwHrv6hqWmadW8pJy/ISCCM4Fe
JuOAJD0whxg0qRFvE6xcdnKBTWjR03VHqJnyYQGVUKXOlgj8HiKO0JaJkoUAs5ox
WCRBZwSQW+qbP1VKSUfFeBtTMx/TSg4nBRYHinego/e8O1mu6wIDAQABoyEwHzAd
BgNVHQ4EFgQUz1SuekLVxYNvvLpUDRXc/gp2WdAwDQYJKoZIhvcNAQELBQADggEB
AIkUzM9MXr11vp9gBOOXyqyj7sBgoUQHW3mEfKD3DkEOZWUPW5UI7NM9ZHvhdOwd
C1noUK/QMjLkTHp0QB2bxCIpgThXSNFDYNRxf1/aUqTfxQ8a+i0q7l/utRiWyY3p
kLOFx0n81a2bSNz+B0nPS338xNaBtuNjHedXjxN6BjUCUfFHFsQmg/y6ZbBRN/9P
+i2yy3CjLduh0yeD0Of3vAoIh19MuNgnIy1pMsK/H59E8bAaCFvND9fnsqAfH29W
ppmt9c8QaiAya5R7akl/C0Rx8khQrba+wMcSultqLU+6YVIAAEKZ/S/ZfN74wn5X
RXwSXp4MSmOKYqRWshvRegQ=</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.aws.amazon.com/saml"/>
<AttributeConsumingService index="1">
<ServiceName xml:lang="en">AWS Management Console Single Sign-On</ServiceName>
<RequestedAttribute isRequired="true" Name="https://aws.amazon.com/SAML/Attributes/Role" FriendlyName="RoleEntitlement"/>
<RequestedAttribute isRequired="true" Name="https://aws.amazon.com/SAML/Attributes/RoleSessionName" FriendlyName="RoleSessionName"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.1" FriendlyName="eduPersonAffiliation"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.2" FriendlyName="eduPersonNickname"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.3" FriendlyName="eduPersonOrgDN"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.4" FriendlyName="eduPersonOrgUnitDN"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.5" FriendlyName="eduPersonPrimaryAffiliation"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" FriendlyName="eduPersonPrincipalName"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.7" FriendlyName="eduPersonEntitlement"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.8" FriendlyName="eduPersonPrimaryOrgUnitDN"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.9" FriendlyName="eduPersonScopedAffiliation"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" FriendlyName="eduPersonTargetedID"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.11" FriendlyName="eduPersonAssurance"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.2" FriendlyName="eduOrgHomePageURI"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.3" FriendlyName="eduOrgIdentityAuthNPolicyURI"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.4" FriendlyName="eduOrgLegalName"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.5" FriendlyName="eduOrgSuperiorURI"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.6" FriendlyName="eduOrgWhitePagesURI"/>
<RequestedAttribute isRequired="false" Name="urn:oid:2.5.4.3" FriendlyName="cn"/>
</AttributeConsumingService>
</SPSSODescriptor>
<Organization>
<OrganizationName xml:lang="en">Amazon Web Services, Inc.</OrganizationName>
<OrganizationDisplayName xml:lang="en">AWS</OrganizationDisplayName>
<OrganizationURL xml:lang="en">https://aws.amazon.com</OrganizationURL>
</Organization>
</EntityDescriptor>

View File

@@ -1,67 +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="urn:amazon:webservices:cn-north-1" validUntil="2021-05-13T00:00:00Z">
<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>MIIDfzCCAmegAwIBAgIEY1tz5jANBgkqhkiG9w0BAQsFADBwMSgwJgYDVQQDEx91
cm46YW1hem9uOndlYnNlcnZpY2VzOmNuLW5vcnRoMSIwIAYDVQQKExlBbWF6b24g
V2ViIFNlcnZpY2VzLCBJbmMuMRMwEQYDVQQIEwpXYXNoaW5ndG9uMQswCQYDVQQG
EwJVUzAeFw0yMDA1MTMwMDAwMDBaFw0yMTA1MTMwMDAwMDBaMHAxKDAmBgNVBAMT
H3VybjphbWF6b246d2Vic2VydmljZXM6Y24tbm9ydGgxIjAgBgNVBAoTGUFtYXpv
biBXZWIgU2VydmljZXMsIEluYy4xEzARBgNVBAgTCldhc2hpbmd0b24xCzAJBgNV
BAYTAlVTMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2HLuzEnEGVT
C5W215HWuwFLM54v3oHoNy52GGN79VLn7sxm2Z0K+AVijV/rxCbPaNxO6tm/MmN6
XJkU8g8p7ghT6p+EN/61WG+KgoXIHcl/aZBbkoNTKKPXRvR9EEcyAPdLDBJVJHF5
lgCkSMHBL3VcCcrpVxFCtUhW+vT3pie2KHLEVb5Ocpq9pO8dNvY2iM7TSIvRu0kL
IZWUbRF0bP4cpDIVoMEsSJ3gFBCD3yf53UfU2dxjp2mnMjphPucHwml3AcsXN3XT
Y5j2qksO5xXgFrCZz76l3P7emj5eHIvkxuieU/7u+cYu0HppP+4xszzqvUcoHFRA
1fC/eFFRAwIDAQABoyEwHzAdBgNVHQ4EFgQUZkQfgy0NWq7kAO8mTQPeSDayJ3Ew
DQYJKoZIhvcNAQELBQADggEBACmLLD2qBA+KCxv7CiCfznT8XWOLAVf9xP3YMk0N
WCnugpd30d0YzxtI2PA29cNB2pyuGbaVg+zGqpsfAznaBHvnnEx1fJHNyfXxhAry
0MdabmbvhMfJPUYRFx/7r6Km8d52e+nv28pP/WrbWs4I0Swm+Rwaj3t32EgCBxQS
8WWEkG+L00slRgSPkfY8OgOM4QkBThHjGgw0TKFTEvQNVqXOJKQREq0MejyarUSC
4am+OJeRcWKtPcRo1jUlGWG6eun0ybuw232ZEZHUv33B247aRMuvTgcRTz3s6tUE
7RoeaMpl3/Y1MKtB2qURiu0Cib27Rl1mckhmfdA+awl3s4s=</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.amazonaws.cn/saml"/>
<AttributeConsumingService index="1">
<ServiceName xml:lang="en">AWS Management Console Single Sign-On</ServiceName>
<RequestedAttribute isRequired="true" Name="https://aws.amazon.com/SAML/Attributes/Role" FriendlyName="RoleEntitlement"/>
<RequestedAttribute isRequired="true" Name="https://aws.amazon.com/SAML/Attributes/RoleSessionName" FriendlyName="RoleSessionName"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.1" FriendlyName="eduPersonAffiliation"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.2" FriendlyName="eduPersonNickname"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.3" FriendlyName="eduPersonOrgDN"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.4" FriendlyName="eduPersonOrgUnitDN"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.5" FriendlyName="eduPersonPrimaryAffiliation"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" FriendlyName="eduPersonPrincipalName"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.7" FriendlyName="eduPersonEntitlement"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.8" FriendlyName="eduPersonPrimaryOrgUnitDN"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.9" FriendlyName="eduPersonScopedAffiliation"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" FriendlyName="eduPersonTargetedID"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.11" FriendlyName="eduPersonAssurance"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.2" FriendlyName="eduOrgHomePageURI"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.3" FriendlyName="eduOrgIdentityAuthNPolicyURI"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.4" FriendlyName="eduOrgLegalName"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.5" FriendlyName="eduOrgSuperiorURI"/>
<RequestedAttribute isRequired="false" Name="urn:oid:1.3.6.1.4.1.5923.1.2.1.6" FriendlyName="eduOrgWhitePagesURI"/>
<RequestedAttribute isRequired="false" Name="urn:oid:2.5.4.3" FriendlyName="cn"/>
</AttributeConsumingService>
</SPSSODescriptor>
<Organization>
<OrganizationName xml:lang="en">Amazon Web Services, Inc.</OrganizationName>
<OrganizationDisplayName xml:lang="en">AWS</OrganizationDisplayName>
<OrganizationURL xml:lang="en">https://aws.amazon.com</OrganizationURL>
</Organization>
</EntityDescriptor>

View File

@@ -1,25 +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="google.com" validUntil="2021-06-02T00:00:00Z">
<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>
</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://www.google.com/a/yunion-hk.com/acs"/>
<AttributeConsumingService index="1">
<RequestedAttribute isRequired="false" Name="user.email" FriendlyName="user.email"/>
</AttributeConsumingService>
</SPSSODescriptor>
</EntityDescriptor>

View File

@@ -1,25 +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="google.com/a/yunion-hk.com" validUntil="2021-06-02T00:00:00Z">
<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>
</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://www.google.com/a/yunion-hk.com/acs"/>
<AttributeConsumingService index="1">
<RequestedAttribute isRequired="false" Name="user.email" FriendlyName="user.email"/>
</AttributeConsumingService>
</SPSSODescriptor>
</EntityDescriptor>

View File

@@ -1,79 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" ID="M349b8f2417d474387360e922ef39baa" entityID="https://auth.huaweicloud.com/"><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference URI="#M349b8f2417d474387360e922ef39baa"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>diBMwyuN633Q/kBf0M+SQZ4fNCI=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>k6+6QX8T5+S5wEIWlxwvd5a48xLWmp4Jd0bcs33vNaQVQ93YiztGcroUUqnLYK8uqAsmk2ZP4NtKFL/MyqoznrStglSi7uycwX6X3fswMwvkHJ9UVhH6Gp2Txl2JQ9/0vXy/tlXjQNFbfqzLhqxKC/K/PmKd684XkPYXlkiEJa6nGibu0gse9rvP2hE0G9bDMfdiyQnanfBvN+oNRte3xyI3DWh2P/jDTAPJMYzGM76JIneS8jLPa4gKDz5KcumG/8JV7GUWTDTZZ4ftujsjEuUFdPzKqwMYogMXOnTt8wbisSF8ZlLSMH/TIj6xAO9aSkEAo8HtlHJbekYlVA5Tz5IamLLzfaPpf7+NghLSuATIwY8/pvBZ8qhY8PVOjzRCeoEZJUrlFOcZ2CvO9zVKYdkEa1JC3mUW7CgeQc7G2/9niub7Vu00eyp9AAd9nkPfLoiWam8/yg2TBPRRJ9VKsv2UMFuITWrcFJayjezlTzY3dI3tI8lfoIMEVRaEP1v1D8XbxnxiaiKZXsGQHtpTSLc1ZL441jeZDLa661raUJDlGA6mBc1QukJklEocGg+Q+FeU33MJCaN/rIZCGvrjIZNng3yKFw1+R7/CqeJJlFWw0hPJQGiy6wfrDYSmhwuXJ2vQn3dTHjlT3kWsniiZtuOUi2TjHbq8gVHqlxmPxSs=</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIIF6TCCA9GgAwIBAgIEPHSCijANBgkqhkiG9w0BAQsFADCBpDELMAkGA1UEBhMCQ04xEjAQBgNV
BAgTCUd1YW5nRG9uZzERMA8GA1UEBxMIU2hlblpoZW4xJTAjBgNVBAoTHEh1YXdlaSBUZWNobm9s
b2dpZXMgQ28uLCBMdGQxKDAmBgNVBAsTH1NlcnZpY2UgUHJvdmlkZXIgT3BlcmF0aW9uIERlcHQx
HTAbBgNVBAMTFGF1dGguaHVhd2VpY2xvdWQuY29tMB4XDTE4MDYyMTEzMjUwMFoXDTI4MDYxODEz
MjUwMFowgaQxCzAJBgNVBAYTAkNOMRIwEAYDVQQIEwlHdWFuZ0RvbmcxETAPBgNVBAcTCFNoZW5a
aGVuMSUwIwYDVQQKExxIdWF3ZWkgVGVjaG5vbG9naWVzIENvLiwgTHRkMSgwJgYDVQQLEx9TZXJ2
aWNlIFByb3ZpZGVyIE9wZXJhdGlvbiBEZXB0MR0wGwYDVQQDExRhdXRoLmh1YXdlaWNsb3VkLmNv
bTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJisHObeLOPs2mJ4eJBcruMZl9FjvRQe
DmofxgOcIcmybt6qlDqAv7275JMMQfQFcEoxH3GqcCTYqvSaSnHPaJB1xljPIKAWtd7p1ymevcSy
F2HdCZ8gPJKg3Q6+ZjwTipKS/nZr7xmpUQ0WvwRkgZ7zfslAW+y5PCgkDrgmEjG92rLArj8iPhmu
jajXaTPQKVHuZMxBzS735uo4yjVwYE3+0mE4HTZjK+6n6Ffu+JhLzhcKGulmrT/6qHisMbIXAZyE
egBDavomb+5zu/CUQwii5IAPrRTwwegYpG4+uYJ2cHfrUdHqw9lSCSbQzu1yW1AS4zB16sjoHZdV
rxYyktlswNmJ1/MyRH5bO90e2kvVwV4l34Hi5HEFvFFjL8TAsbN4mGvA9fgohXp30x97UdPVV8Ji
NNAKZjdZSEdG9xqrTRfe4+LQg/hzLNSwsko3nDnH8qhCgtb8qIipQ3s7niCa53AQWYR82lEViols
/dbWU9qYeldVvGNAgJSqHLB7qLwcQW78+2V1446KhQqzqPeLI4ANGaLFKw8fGzgh85RKOjrIetb4
wAOZmhrrUJrRg47DYQQjNv3glDg53ijLPFunzRqUoqLphrZ1XpEA4y21OtTP6OMYAM0lSOj1gjvb
ubTDo8XOQs5YGtTOyHn4CQ4GR8NNo7UrwVEmoZHA+AKbAgMBAAGjITAfMB0GA1UdDgQWBBTt05QW
9dyXi7eMekKOH0bn4xKrkDANBgkqhkiG9w0BAQsFAAOCAgEACv9zgzUgxxQ8t9ldOXmirxzSOrHx
MCL8SKsu+c+Y4hoHma5LFjylv6x76NWTAFSE6GgqfuNI/gPj/2AWqObAvsHd8lsPjJ96ZoSaTmS8
NrtU6HuT1Lc+CmVfeGd3/G+KspQECjg2JeBrfyEw9B8KUAQV20DQukGfAHtKKQPOZmKm0Qm3ExWC
eXz1TR2KP+Lrhny/yG43g4iVUKq65HFHs5cRzRk0iR0/NLpggl5+Op0rxMxBn+bCrnJBi0n9/PIM
fWNhkEBl+B++EifPUQxQaOEsnxTgFo1O4ksK9hDFcLbr+1qCDgVIMkyC1xMBBikCgLvIdzy3SXBN
ndIEUq+QgOORxLlq1WqrfLFO22TxZm8XaB5g36UMk5PGoVHGnjALReAHjC0C5sIiKMJSgQOPd71X
mQSsw3G9NsMKf/H3xJXkq/b672ls/l1JBslm52DAk2k5UlLkf/1p4I7WHOfm5ZNpDjj1rTP6SiAc
tWLtqXIU28fLa2sA+zHXA5acDGOm6eIrMme5HpsV/KoUOW1MXGugK59zofeueCFDGRfbyoS2lj0S
W+CbJVa72CLf3xPh2nWH0cK9de+wyCx8uI0KGPyV4I9/XBLHhvkb3XPaUfnkzYkcrG/39cOaxuPF
z+haXwI1lvI964zvmTgwdDjdf/0asA09S7EEK2KyzXUREM4=</ds:X509Certificate></ds:X509Data></ds:KeyInfo></ds:Signature><md:SPSSODescriptor AuthnRequestsSigned="true" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"><md:KeyDescriptor use="signing"><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:X509Data><ds:X509Certificate>MIIF6TCCA9GgAwIBAgIEPHSCijANBgkqhkiG9w0BAQsFADCBpDELMAkGA1UEBhMCQ04xEjAQBgNV
BAgTCUd1YW5nRG9uZzERMA8GA1UEBxMIU2hlblpoZW4xJTAjBgNVBAoTHEh1YXdlaSBUZWNobm9s
b2dpZXMgQ28uLCBMdGQxKDAmBgNVBAsTH1NlcnZpY2UgUHJvdmlkZXIgT3BlcmF0aW9uIERlcHQx
HTAbBgNVBAMTFGF1dGguaHVhd2VpY2xvdWQuY29tMB4XDTE4MDYyMTEzMjUwMFoXDTI4MDYxODEz
MjUwMFowgaQxCzAJBgNVBAYTAkNOMRIwEAYDVQQIEwlHdWFuZ0RvbmcxETAPBgNVBAcTCFNoZW5a
aGVuMSUwIwYDVQQKExxIdWF3ZWkgVGVjaG5vbG9naWVzIENvLiwgTHRkMSgwJgYDVQQLEx9TZXJ2
aWNlIFByb3ZpZGVyIE9wZXJhdGlvbiBEZXB0MR0wGwYDVQQDExRhdXRoLmh1YXdlaWNsb3VkLmNv
bTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJisHObeLOPs2mJ4eJBcruMZl9FjvRQe
DmofxgOcIcmybt6qlDqAv7275JMMQfQFcEoxH3GqcCTYqvSaSnHPaJB1xljPIKAWtd7p1ymevcSy
F2HdCZ8gPJKg3Q6+ZjwTipKS/nZr7xmpUQ0WvwRkgZ7zfslAW+y5PCgkDrgmEjG92rLArj8iPhmu
jajXaTPQKVHuZMxBzS735uo4yjVwYE3+0mE4HTZjK+6n6Ffu+JhLzhcKGulmrT/6qHisMbIXAZyE
egBDavomb+5zu/CUQwii5IAPrRTwwegYpG4+uYJ2cHfrUdHqw9lSCSbQzu1yW1AS4zB16sjoHZdV
rxYyktlswNmJ1/MyRH5bO90e2kvVwV4l34Hi5HEFvFFjL8TAsbN4mGvA9fgohXp30x97UdPVV8Ji
NNAKZjdZSEdG9xqrTRfe4+LQg/hzLNSwsko3nDnH8qhCgtb8qIipQ3s7niCa53AQWYR82lEViols
/dbWU9qYeldVvGNAgJSqHLB7qLwcQW78+2V1446KhQqzqPeLI4ANGaLFKw8fGzgh85RKOjrIetb4
wAOZmhrrUJrRg47DYQQjNv3glDg53ijLPFunzRqUoqLphrZ1XpEA4y21OtTP6OMYAM0lSOj1gjvb
ubTDo8XOQs5YGtTOyHn4CQ4GR8NNo7UrwVEmoZHA+AKbAgMBAAGjITAfMB0GA1UdDgQWBBTt05QW
9dyXi7eMekKOH0bn4xKrkDANBgkqhkiG9w0BAQsFAAOCAgEACv9zgzUgxxQ8t9ldOXmirxzSOrHx
MCL8SKsu+c+Y4hoHma5LFjylv6x76NWTAFSE6GgqfuNI/gPj/2AWqObAvsHd8lsPjJ96ZoSaTmS8
NrtU6HuT1Lc+CmVfeGd3/G+KspQECjg2JeBrfyEw9B8KUAQV20DQukGfAHtKKQPOZmKm0Qm3ExWC
eXz1TR2KP+Lrhny/yG43g4iVUKq65HFHs5cRzRk0iR0/NLpggl5+Op0rxMxBn+bCrnJBi0n9/PIM
fWNhkEBl+B++EifPUQxQaOEsnxTgFo1O4ksK9hDFcLbr+1qCDgVIMkyC1xMBBikCgLvIdzy3SXBN
ndIEUq+QgOORxLlq1WqrfLFO22TxZm8XaB5g36UMk5PGoVHGnjALReAHjC0C5sIiKMJSgQOPd71X
mQSsw3G9NsMKf/H3xJXkq/b672ls/l1JBslm52DAk2k5UlLkf/1p4I7WHOfm5ZNpDjj1rTP6SiAc
tWLtqXIU28fLa2sA+zHXA5acDGOm6eIrMme5HpsV/KoUOW1MXGugK59zofeueCFDGRfbyoS2lj0S
W+CbJVa72CLf3xPh2nWH0cK9de+wyCx8uI0KGPyV4I9/XBLHhvkb3XPaUfnkzYkcrG/39cOaxuPF
z+haXwI1lvI964zvmTgwdDjdf/0asA09S7EEK2KyzXUREM4=</ds:X509Certificate></ds:X509Data></ds:KeyInfo></md:KeyDescriptor><md:KeyDescriptor use="encryption"><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:X509Data><ds:X509Certificate>MIIF6TCCA9GgAwIBAgIEPHSCijANBgkqhkiG9w0BAQsFADCBpDELMAkGA1UEBhMCQ04xEjAQBgNV
BAgTCUd1YW5nRG9uZzERMA8GA1UEBxMIU2hlblpoZW4xJTAjBgNVBAoTHEh1YXdlaSBUZWNobm9s
b2dpZXMgQ28uLCBMdGQxKDAmBgNVBAsTH1NlcnZpY2UgUHJvdmlkZXIgT3BlcmF0aW9uIERlcHQx
HTAbBgNVBAMTFGF1dGguaHVhd2VpY2xvdWQuY29tMB4XDTE4MDYyMTEzMjUwMFoXDTI4MDYxODEz
MjUwMFowgaQxCzAJBgNVBAYTAkNOMRIwEAYDVQQIEwlHdWFuZ0RvbmcxETAPBgNVBAcTCFNoZW5a
aGVuMSUwIwYDVQQKExxIdWF3ZWkgVGVjaG5vbG9naWVzIENvLiwgTHRkMSgwJgYDVQQLEx9TZXJ2
aWNlIFByb3ZpZGVyIE9wZXJhdGlvbiBEZXB0MR0wGwYDVQQDExRhdXRoLmh1YXdlaWNsb3VkLmNv
bTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJisHObeLOPs2mJ4eJBcruMZl9FjvRQe
DmofxgOcIcmybt6qlDqAv7275JMMQfQFcEoxH3GqcCTYqvSaSnHPaJB1xljPIKAWtd7p1ymevcSy
F2HdCZ8gPJKg3Q6+ZjwTipKS/nZr7xmpUQ0WvwRkgZ7zfslAW+y5PCgkDrgmEjG92rLArj8iPhmu
jajXaTPQKVHuZMxBzS735uo4yjVwYE3+0mE4HTZjK+6n6Ffu+JhLzhcKGulmrT/6qHisMbIXAZyE
egBDavomb+5zu/CUQwii5IAPrRTwwegYpG4+uYJ2cHfrUdHqw9lSCSbQzu1yW1AS4zB16sjoHZdV
rxYyktlswNmJ1/MyRH5bO90e2kvVwV4l34Hi5HEFvFFjL8TAsbN4mGvA9fgohXp30x97UdPVV8Ji
NNAKZjdZSEdG9xqrTRfe4+LQg/hzLNSwsko3nDnH8qhCgtb8qIipQ3s7niCa53AQWYR82lEViols
/dbWU9qYeldVvGNAgJSqHLB7qLwcQW78+2V1446KhQqzqPeLI4ANGaLFKw8fGzgh85RKOjrIetb4
wAOZmhrrUJrRg47DYQQjNv3glDg53ijLPFunzRqUoqLphrZ1XpEA4y21OtTP6OMYAM0lSOj1gjvb
ubTDo8XOQs5YGtTOyHn4CQ4GR8NNo7UrwVEmoZHA+AKbAgMBAAGjITAfMB0GA1UdDgQWBBTt05QW
9dyXi7eMekKOH0bn4xKrkDANBgkqhkiG9w0BAQsFAAOCAgEACv9zgzUgxxQ8t9ldOXmirxzSOrHx
MCL8SKsu+c+Y4hoHma5LFjylv6x76NWTAFSE6GgqfuNI/gPj/2AWqObAvsHd8lsPjJ96ZoSaTmS8
NrtU6HuT1Lc+CmVfeGd3/G+KspQECjg2JeBrfyEw9B8KUAQV20DQukGfAHtKKQPOZmKm0Qm3ExWC
eXz1TR2KP+Lrhny/yG43g4iVUKq65HFHs5cRzRk0iR0/NLpggl5+Op0rxMxBn+bCrnJBi0n9/PIM
fWNhkEBl+B++EifPUQxQaOEsnxTgFo1O4ksK9hDFcLbr+1qCDgVIMkyC1xMBBikCgLvIdzy3SXBN
ndIEUq+QgOORxLlq1WqrfLFO22TxZm8XaB5g36UMk5PGoVHGnjALReAHjC0C5sIiKMJSgQOPd71X
mQSsw3G9NsMKf/H3xJXkq/b672ls/l1JBslm52DAk2k5UlLkf/1p4I7WHOfm5ZNpDjj1rTP6SiAc
tWLtqXIU28fLa2sA+zHXA5acDGOm6eIrMme5HpsV/KoUOW1MXGugK59zofeueCFDGRfbyoS2lj0S
W+CbJVa72CLf3xPh2nWH0cK9de+wyCx8uI0KGPyV4I9/XBLHhvkb3XPaUfnkzYkcrG/39cOaxuPF
z+haXwI1lvI964zvmTgwdDjdf/0asA09S7EEK2KyzXUREM4=</ds:X509Certificate></ds:X509Data></ds:KeyInfo></md:KeyDescriptor><md:ArtifactResolutionService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://auth.huaweicloud.com/authui/saml/SAMLAssertionConsumer" index="0" isDefault="true" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"/><md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://auth.huaweicloud.com/authui/saml/LogoutServiceHTTPRedirect" ResponseLocation="https://auth.huaweicloud.com/authui/saml/LogoutServiceHTTPRedirectResponse" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"/><md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://auth.huaweicloud.com/authui/saml/LogoutServiceHTTPPost" ResponseLocation="https://auth.huaweicloud.com/authui/saml/LogoutServiceHTTPPostResponse" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"/><md:ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://auth.huaweicloud.com/authui/saml/ManageNameIDServiceHTTPPost" ResponseLocation="https://auth.huaweicloud.com/authui/saml/ManageNameIDServiceHTTPPostResponse"/><md:ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://auth.huaweicloud.com/authui/saml/ManageNameIDServiceHTTPRedirect" ResponseLocation="https://auth.huaweicloud.com/authui/saml/ManageNameIDServiceHTTPRedirectResponse"/><md:ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://auth.huaweicloud.com/authui/saml/ManageNameIDServiceSOAP" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"/><md:NameIDFormat xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata">urn:oasis:names:tc:SAML:2.0:nameid-format:transient</md:NameIDFormat><md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://auth.huaweicloud.com/authui/saml/SAMLAssertionConsumer" index="0" isDefault="true" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"/></md:SPSSODescriptor></md:EntityDescriptor>

View File

@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml="urn:oasis:names:tc:SAML:2.0:AssertionConsumerService" entityID="cloud.tencent.com" validUntil="2059-08-15T06:24:31Z">
<SPSSODescriptor WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<KeyDescriptor use="signing">
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>MIIEWzCCA0OgAwIBAgIJAP2Wa/iz6Zn+MA0GCSqGSIb3DQEBBQUAMIHDMQswCQYDVQQGEwJDTjESMBAGA1UECAwJZ3Vhbmdkb25nMREwDwYDVQQHDAhzaGVuemhlbjE2MDQGA1UECgwtVGVuY2VudCBUZWNobm9sb2d5IChTaGVuemhlbikgQ29tcGFueSBMaW1pdGVkMRYwFAYDVQQLDA1UZW5jZW50IENsb3VkMRowGAYDVQQDDBFjbG91ZC50ZW5jZW50LmNvbTEhMB8GCSqGSIb3DQEJARYScWNsb3VkQHRlbmNlbnQuY29tMB4XDTE4MDgxNTA2MjQzMVoXDTE5MDgxNTA2MjQzMVowgcMxCzAJBgNVBAYTAkNOMRIwEAYDVQQIDAlndWFuZ2RvbmcxETAPBgNVBAcMCHNoZW56aGVuMTYwNAYDVQQKDC1UZW5jZW50IFRlY2hub2xvZ3kgKFNoZW56aGVuKSBDb21wYW55IExpbWl0ZWQxFjAUBgNVBAsMDVRlbmNlbnQgQ2xvdWQxGjAYBgNVBAMMEWNsb3VkLnRlbmNlbnQuY29tMSEwHwYJKoZIhvcNAQkBFhJxY2xvdWRAdGVuY2VudC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC7z2KMtR6GS4IzwfFYLSULCrKrr6iUVRlxUhn0y/CjpWXGg31nwvXYmJZaCwjUlorTd3pYDmStmd4xoL3xrGFnqX0xqKw7S+vbB9wo5tSHww15vkiYPanjsgeaiXihBBB6jvsV8+4iuVk8JA3x990/0wic/ZuKIhCI4mLCaQYLXbsYopUPQ5p+dwkCY9pYxP+zjOQathA0cjzKyzp9io2pcH2vtj7RzM+j4sLTsTC+OGfh7k9LQO5/fswQTQKr1B4tmtI8Cq7pUP0Fud1YLjMpod/NRVv1/xIF6cJFP8QARfmC45FPjHToORiXVUV8hii8l4EkXw2bAQO+wqodXJaZAgMBAAGjUDBOMB0GA1UdDgQWBBQ6e8nFUT7oKF+LbOYFH200WR5I0zAfBgNVHSMEGDAWgBQ6e8nFUT7oKF+LbOYFH200WR5I0zAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQBAIaZDjgCLkWq6fFpp/ViwdEBtLbKNNx2K28z91kTZNE+lepYagqWQIPpTGo69GmO9Qdf/mkspY3Y80Q3MpUO09V3gsiqXQBHD5ZfyRHwmqDjDudLA1SGzMjMT+48XuMq4fdonO1o5fyDh/My9w1LuRZzWw5ZE0JEpKgXq1ynQYz0uEip7KrUVUNoAS2n9jT8APfs16M4p5VRpIYlugnBwR9P2bZba+9fR/SPTa7FX4S8sU649wGPR+49uvic2kwc8FP6AXGurJZhd7mZ44j58q0M/LXm/6wiyUslZ/I0uGhxmRav0cTQz4T1dXKdh2pJZBwz8yMv2P6fuxcFlUeR6</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:entity</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:WindowsDomainQualifiedName</NameIDFormat>
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://cloud.tencent.com/login/saml" index="1" isDefault="true"/>
<AttributeConsumingService index="1">
<ServiceName xml:lang="en"/>
<RequestedAttribute FriendlyName="RoleEntitlement" Name="https://cloud.tencent.com/SAML/Attributes/Role" isRequired="true"/>
<RequestedAttribute FriendlyName="RoleSessionName" Name="https://cloud.tencent.com/SAML/Attributes/RoleSessionName" isRequired="true"/>
</AttributeConsumingService>
</SPSSODescriptor>
<Organization>
<OrganizationName xml:lang="en">Tencent Cloud Services, Inc.</OrganizationName>
<OrganizationDisplayName xml:lang="en">Tencent Cloud</OrganizationDisplayName>
<OrganizationURL xml:lang="en">https://cloud.tencent.com</OrganizationURL>
</Organization>
</EntityDescriptor>

View File

@@ -1 +0,0 @@
DESCRIPTION="Yunion CloudId"

View File

@@ -1,10 +0,0 @@
region = 'Yunion'
address = '10.168.222.136'
port = 8891
auth_uri = 'http://10.168.222.136:35357/v3'
admin_user = 'cloudnetadmin'
admin_password = 'xxxxxxxxxxxxxxxx'
admin_tenant_name = 'system'
sql_connection = 'mysql+pymysql://yunionansible:9YuQL9KEZn1mppaK@localhost:3306/yunionansible?charset=utf8'
auto_sync_table = True

View File

@@ -1 +0,0 @@
DESCRIPTION="Yunion Cloudnet"

View File

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

View File

@@ -1 +0,0 @@
DESCRIPTION="Yunion DevTools Server"

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.0.2
ADD ./_output/alpine-build/bin/ansibleserver /opt/yunion/bin/ansibleserver

View File

@@ -1,12 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
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 ansible \
&& apk add tzdata git ca-certificates \
&& rm -rf /var/cache/apk/*

View File

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

View File

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

View File

@@ -1,36 +0,0 @@
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-21080303.x86_64.rpm
#RUN yum install -y http://192.168.122.112:8083/baremetal-pxerom-1.1.0-21080303.x86_64.rpm
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
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 && \
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

View File

@@ -1,5 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20210701
ADD ./build/climc/root/opt /opt
ADD ./_output/alpine-build/bin/climc ./_output/alpine-build/bin/*cli /opt/yunion/bin/

View File

@@ -1,16 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV PATH="/opt/yunion/bin:${PATH}"
RUN mkdir -p /opt/yunion/bin

View File

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

View File

@@ -1,4 +0,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,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
ADD ./_output/alpine-build/bin/cloudnet /opt/yunion/bin/cloudnet

View File

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

View File

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

View File

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

@@ -1,6 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:20200820
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/glance /opt/yunion/bin/glance

View File

@@ -1,9 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.3
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
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 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:0.6
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
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:v0.2
ADD ./_output/alpine-build/bin/keystone /opt/yunion/bin/keystone

View File

@@ -1,4 +0,0 @@
FROM alpine:3.11
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositories
RUN apk update && apk add kubectl && rm -rf /var/cache/apk/*

View File

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

View File

@@ -1,4 +0,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,13 +0,0 @@
FROM alpine:3.11
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
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,4 +0,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 +0,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 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
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:v0.2
ADD ./_output/alpine-build/bin/scheduler /opt/yunion/bin/scheduler

View File

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

View File

@@ -1,16 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
RUN apk update && \
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
ADD ./_output/alpine-build/bin/torrent /opt/yunion/bin/torrent

View File

@@ -1,6 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.10.4-1
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/vpcagent /opt/yunion/bin/vpcagent

View File

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

View File

@@ -1,12 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/kubectl:1.18.6
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
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 +0,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,20 +0,0 @@
REGISTRY ?= "registry.cn-beijing.aliyuncs.com/yunionio"
DOCKER_BUILD = docker build -t $(REGISTRY)
DOCKER_BUILDX = docker buildx build --platform linux/arm64,linux/amd64 --push -t $(REGISTRY)
debian10-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 -f ./Dockerfile.debian-base .
CLIMC_BASE_VERSION = 20210701
climc-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/climc-base:$(CLIMC_BASE_VERSION) -f ./Dockerfile.climc-base .
BAREMETAL_BASE_VERSION = v0.3.2
baremetal-base:
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)

View File

@@ -1,18 +0,0 @@
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
WORKDIR /root/go/src/yunion.io/x/onecloud
RUN make cmd/host
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.3
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
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,2 +0,0 @@
_output/alpine-build/_cache

View File

@@ -1,25 +0,0 @@
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
WORKDIR /root/go/src/yunion.io/x/onecloud
RUN make cmd/torrent
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
RUN apk update && \
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
COPY --from=build /root/go/src/yunion.io/x/onecloud/_output/bin/torrent /opt/yunion/bin/torrent

18
build/docker_build.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
SRC_ROOT=$(realpath $(dirname "${BASH_SOURCE[0]}")/..)
BIN_DIR=$SRC_ROOT/_output/bin
WORK_DIR="/go/src/yunion.io/x/onecloud"
docker run --rm -it \
-w $WORK_DIR \
-v $SRC_ROOT:$WORK_DIR \
d3lx/golang:yunion \
make
echo "Build finish"
ls -alh $BIN_DIR

View File

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

View File

@@ -1,2 +0,0 @@
DESCRIPTION="Esxi Agent"
# SERVICE="yes"

View File

@@ -1,18 +0,0 @@
[Unit]
Description=Yunion Command Executor
Documentation=https://docs.yunion.cn
[Service]
Type=simple
User=root
Group=root
ExecStart=/opt/yunion/bin/executor-server
WorkingDirectory=/opt/yunion/bin
KillMode=process
Restart=always
RestartSec=30
LimitNOFILE=500000
LimitNPROC=500000
[Install]
WantedBy=multi-user.target

View File

@@ -1,2 +0,0 @@
DESCRIPTION="Yunion Executor Server Command Line Utility"
SERVICE="yes"

View File

@@ -1 +0,0 @@
DESCRIPTION="Fetcherfs Utility"

View File

@@ -1 +0,0 @@
您的{{ .os_type }}镜像{{ .name }}上传成功

View File

@@ -1 +0,0 @@
镜像{{ .name }}上传成功

View File

@@ -1,19 +0,0 @@
[Unit]
Description=Yunion Host Deploy Agent
Documentation=https://docs.yunion.cn
After=network.target httpd.service
[Service]
Type=simple
User=root
Group=root
ExecStart=/opt/yunion/bin/host-deployer --conf /etc/yunion/host.conf
WorkingDirectory=/opt/yunion/bin
KillMode=process
Restart=always
RestartSec=30
LimitNOFILE=500000
LimitNPROC=500000
[Install]
WantedBy=multi-user.target

View File

@@ -1,2 +0,0 @@
DESCRIPTION="Yunion Host Deploy Agent"
SERVICE="yes"

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