Compare commits

..

1919 Commits

Author SHA1 Message Date
Zexi Li
70be65707a Merge pull request #6626 from ioito/automated-cherry-pick-of-#6619-upstream-release-2.12
Automated cherry pick of #6619: fix: 避免azure卸载磁盘失败
2020-05-27 17:52:28 +08:00
Qu Xuan
e67ded4478 fix: 避免azure卸载磁盘失败 2020-05-27 15:58:23 +08:00
Zexi Li
ef28c00820 Merge pull request #6563 from ioito/automated-cherry-pick-of-#6558-upstream-release-2.12
Automated cherry pick of #6558: fix: 避免openstack以镜像做系统盘创建失败
2020-05-22 22:45:57 +08:00
Qu Xuan
ea846d06b9 fix: 避免openstack以镜像做系统盘创建失败 2020-05-22 20:19:30 +08:00
Zexi Li
cbd7d4f652 Merge pull request #6343 from swordqiu/automated-cherry-pick-of-#6338-upstream-release-2.12
Automated cherry pick of #6338: fix: avoid using background context
2020-05-14 18:19:13 +08:00
Qiu Jian
90d90eac2d fix: avoid using background context 2020-05-14 17:07:05 +08:00
Zexi Li
95d196b465 Merge pull request #6313 from ioito/automated-cherry-pick-of-#6306-upstream-release-2.12
Automated cherry pick of #6306: fix: openstack 安全组规则同步
2020-05-13 12:42:11 +08:00
Qu Xuan
f6c16dd0b3 fix: openstack 安全组规则同步 2020-05-12 17:58:34 +08:00
Zexi Li
c7faaa18b8 Merge pull request #6100 from ioito/automated-cherry-pick-of-#6095-upstream-release-2.12
Automated cherry pick of #6095: fix: 普通用户可获取rds账号密码
2020-04-29 13:08:31 +08:00
yunion-ci-robot
20eedc000d Merge pull request #6108 from ioito/automated-cherry-pick-of-#6103-upstream-release-2.12
Automated cherry pick of #6103: fix: 修复openstack存储同步问题
2020-04-28 23:36:36 +08:00
Qu Xuan
95ff50e23b fix: 修复openstack存储同步问题 2020-04-28 14:49:11 +08:00
Qu Xuan
4f22331673 fix: 普通用户可获取rds账号密码 2020-04-28 10:45:47 +08:00
Zexi Li
03ca3febfe Merge pull request #6067 from rainzm/automated-cherry-pick-of-#6062-upstream-release-2.12
Automated cherry pick of #6062: fix/notify: Add deadline for rpc client
2020-04-27 12:48:20 +08:00
Rain
4aa53ae8fe fix/notify: Add deadline for rpc client 2020-04-27 10:45:54 +08:00
Zexi Li
a4cabafcfb Merge pull request #6033 from ioito/automated-cherry-pick-of-#6028-upstream-release-2.12
Automated cherry pick of #6028: fix: json unmarshal
2020-04-26 18:19:13 +08:00
Qu Xuan
25d4f102df fix: json unmarshal 2020-04-26 15:54:10 +08:00
Zexi Li
a5ce661648 Merge pull request #5926 from ioito/automated-cherry-pick-of-#5919-upstream-release-2.12
Automated cherry pick of #5919: fix: 非私有云同步region name
2020-04-23 00:04:43 +08:00
Zexi Li
9816ed5878 Merge pull request #5936 from ioito/automated-cherry-pick-of-#5931-upstream-release-2.12
Automated cherry pick of #5931: fix: 转换非标准存储类型到lrs
2020-04-22 23:57:51 +08:00
Qu Xuan
bcae0c1d81 fix: 转换非标准存储类型到lrs 2020-04-22 18:55:12 +08:00
Qu Xuan
0579fc4bb9 fix: 非私有云同步region name 2020-04-22 18:01:17 +08:00
Zexi Li
d2868a7af2 Merge pull request #5889 from ioito/automated-cherry-pick-of-#5884-upstream-release-2.12
Automated cherry pick of #5884: fix: 仅当变更domainId时才需要更新projectId
2020-04-22 10:32:50 +08:00
Qu Xuan
0055a08350 fix: 仅当变更domainId时才需要更新projectId 2020-04-21 21:15:45 +08:00
Zexi Li
10e902a837 Merge pull request #5829 from ioito/automated-cherry-pick-of-#5825-upstream-release-2.12
Automated cherry pick of #5825: fix: 尽量避免secgroup重名问题
2020-04-17 00:03:23 +08:00
Zexi Li
b704a0b067 Merge pull request #5809 from ioito/automated-cherry-pick-of-#5805-upstream-release-2.12
Automated cherry pick of #5805: fix: 优化rds sku list查询速度
2020-04-16 18:01:22 +08:00
Qu Xuan
29fd7507f1 fix: 尽量避免secgroup重名问题 2020-04-16 16:42:34 +08:00
Qu Xuan
7bbbccee47 fix: 优化rds sku list查询速度 2020-04-15 18:03:06 +08:00
yunion-ci-robot
b02f01c969 Merge pull request #5778 from ioito/automated-cherry-pick-of-#5774-upstream-release-2.12
Automated cherry pick of #5774: fix: azure重装系统删除不必要的参数
2020-04-12 00:33:44 +08:00
Qu Xuan
9aa90a3b06 fix: azure重装系统删除不必要的参数 2020-04-11 15:13:45 +08:00
Zexi Li
52f33b0420 Merge pull request #5690 from ioito/automated-cherry-pick-of-#5686-upstream-release-2.12
Automated cherry pick of #5686: fix: 修复重装系统时未能更换指定image问题
2020-04-03 19:43:41 +08:00
Zexi Li
023b8c6de0 Merge pull request #5675 from ioito/automated-cherry-pick-of-#5671-upstream-release-2.12
Automated cherry pick of #5671: fix: 华为云rds使用自身的存储类型
2020-04-03 19:41:58 +08:00
Qu Xuan
b3a603bcc8 fix: 修复重装系统时未能更换指定image问题 2020-04-03 11:36:52 +08:00
Qu Xuan
36e0ce4f87 fix: 华为云rds使用自身的存储类型 2020-04-02 17:30:56 +08:00
yunion-ci-robot
799bb49451 Merge pull request #5610 from swordqiu/automated-cherry-pick-of-#5608-upstream-release-2.12
Automated cherry pick of #5608: fix: allow list loadbalancer cluster by default
2020-03-28 09:47:41 +08:00
Qiu Jian
93f79bec1b fix: allow list loadbalancer cluster by default 2020-03-28 09:04:21 +08:00
Zexi Li
fe6b0e38e6 Merge pull request #5598 from ioito/automated-cherry-pick-of-#5596-upstream-release-2.12
Automated cherry pick of #5596: fix: 避免onecloud lb未返回provider及brand信息
2020-03-26 10:41:55 +08:00
Qu Xuan
eae3b06b96 fix: 避免onecloud lb未返回provider及brand信息 2020-03-25 18:28:37 +08:00
Zexi Li
d91086def8 Merge pull request #5559 from rainzm/automated-cherry-pick-of-#5555-upstream-release-2.12
Automated cherry pick of #5555: feat(notify): Compatibility and repair
2020-03-19 10:06:47 +08:00
yunion-ci-robot
2b94a9062d Merge pull request #5494 from ioito/automated-cherry-pick-of-#5490-upstream-release-2.12
Automated cherry pick of #5490: fix: class action 统一使用keywords包裹
2020-03-19 08:47:20 +08:00
Rain
e42dc01341 feat(notify): Compatibility and repair 2020-03-18 21:22:47 +08:00
Zexi Li
399844eef2 Merge pull request #5549 from swordqiu/automated-cherry-pick-of-#5545-upstream-release-2.12
Automated cherry pick of #5545: fix: policy fetcher not retry after initial failure
2020-03-18 10:52:58 +08:00
Qu Xuan
e440019097 fix: class action 统一使用keywords包裹 2020-03-17 18:45:15 +08:00
Qiu Jian
f3f13e18cb fix: policy fetcher not retry after initial failure 2020-03-17 18:31:58 +08:00
yunion-ci-robot
91ed14d40e Merge pull request #5533 from ioito/automated-cherry-pick-of-#5529-upstream-release-2.12
Automated cherry pick of #5529: fix: 避免重装系统失败后imageId依然发生改变
2020-03-17 08:20:15 +08:00
yunion-ci-robot
33ac4a6edf Merge pull request #5527 from ioito/automated-cherry-pick-of-#5452-upstream-release-2.12
Automated cherry pick of #5452: fix: 优化rds sku同步逻辑
2020-03-16 15:19:13 +08:00
Zexi Li
ab6260d8bc Merge pull request #5510 from swordqiu/automated-cherry-pick-of-#5506-upstream-release-2.12
Automated cherry pick of #5506: fix: recode cloudprovider usable filter
2020-03-16 13:00:08 +08:00
Zexi Li
bf2589d4fd Merge pull request #5523 from ioito/automated-cherry-pick-of-#5519-upstream-release-2.12
Automated cherry pick of #5519: fix: 避免未传递prority参数导致校验未通过
2020-03-16 12:56:25 +08:00
Qu Xuan
42138c82a9 fix: 避免重装系统失败后imageId依然发生改变 2020-03-16 11:31:08 +08:00
Qu Xuan
ce72c82bea fix: 优化rds sku同步逻辑 2020-03-16 10:43:04 +08:00
Qu Xuan
543f83c1c1 fix: 避免未传递prority参数导致校验未通过 2020-03-15 13:14:47 +08:00
yunion-ci-robot
d5d6ed39c6 Merge pull request #5512 from zexi/automated-cherry-pick-of-#5511-upstream-release-2.12
Automated cherry pick of #5511: scheduler: fix disk allocated not balanced
2020-03-14 17:51:05 +08:00
Zexi Li
7716881286 scheduler: fix disk allocated not balanced 2020-03-14 16:44:55 +08:00
Qiu Jian
cdcf3b6ebf fix: recode cloudprovider usable filter 2020-03-14 09:13:44 +08:00
yunion-ci-robot
017f8adf36 Merge pull request #5489 from wanyaoqi/automated-cherry-pick-of-#5484-upstream-release-2.12
Automated cherry pick of #5484: download handler set no timeout
2020-03-13 13:32:50 +08:00
wanyaoqi
70e859ad67 download handler set no timeout 2020-03-13 12:03:29 +08:00
Zexi Li
dca8d06739 Merge pull request #5468 from rainzm/feat/vendor_2.12
feat: Update Vendor for release/2.12
2020-03-12 12:07:38 +08:00
Rain
c5335acf5c feat: Update Vendor for release/2.12 2020-03-12 11:59:49 +08:00
Zexi Li
31abdc46a2 Merge pull request #5451 from zexi/automated-cherry-pick-of-#5447-upstream-release-2.12
Automated cherry pick of #5447: region: host update storage set enabled
2020-03-11 15:58:36 +08:00
Zexi Li
d779fc0528 region: host update storage set enabled 2020-03-11 15:59:51 +08:00
Zexi Li
16880022d6 Merge pull request #5423 from swordqiu/automated-cherry-pick-of-#5419-upstream-release-2.12
Automated cherry pick of #5419: fix: fail to find esxi admin vnic, use vnic with default IPv4 route
2020-03-10 14:45:50 +08:00
yunion-ci-robot
ae97d9fa90 Merge pull request #5425 from rainzm/automated-cherry-pick-of-#5424-upstream-release-2.12
Automated cherry pick of #5424: fix(esxi): Add two account with same account name
2020-03-10 11:03:59 +08:00
Rain
0b3d80e359 fix(esxi): Add two account with same account name 2020-03-09 17:56:23 +08:00
Qiu Jian
3a8aae5a55 fix: fail to find esxi admin vnic, use vnic with default IPv4 route 2020-03-09 16:07:41 +08:00
Zexi Li
950aae9895 Merge pull request #5418 from zexi/automated-cherry-pick-of-#5414-upstream-release-2.12
Automated cherry pick of #5414: opslog: notes use text column
2020-03-09 12:36:52 +08:00
Zexi Li
8d002a8e78 opslog: notes use text column 2020-03-09 12:32:10 +08:00
Zexi Li
94b5c8f6df Merge pull request #5407 from swordqiu/automated-cherry-pick-of-#5403-upstream-release-2.12
Automated cherry pick of #5403: fix: cloudprovider performEnable should also enable its cloudaccount
2020-03-09 12:30:45 +08:00
Qiu Jian
946d3232c7 fix: cloudprovider performEnable should also enable its cloudaccount 2020-03-08 18:31:55 +08:00
Zexi Li
e95c7165c4 Merge pull request #5396 from swordqiu/automated-cherry-pick-of-#5392-upstream-release-2.12
Automated cherry pick of #5392: fix: scoped resource should override FetchOwnerId
2020-03-07 15:51:30 +08:00
Qiu Jian
58d5bc0f89 fix: scoped resource should override FetchOwnerId 2020-03-07 15:47:46 +08:00
yunion-ci-robot
25e8ce027a Merge pull request #5386 from rainzm/automated-cherry-pick-of-#5378-upstream-release-2.12
Automated cherry pick of #5378: fix: Add 'scope=system' and 'system' for Caches when querying from Keystone.
2020-03-06 19:16:50 +08:00
Zexi Li
841c59e8c3 Merge pull request #5376 from swordqiu/automated-cherry-pick-of-#5372-upstream-release-2.12
Automated cherry pick of #5372: fix: no scope shcedtag should be visible to all
2020-03-06 18:32:43 +08:00
Rain
6869846840 fix: Add 'scope=system' and 'system' for Caches when querying from Keystone.
1. Query 'scope=system' and 'system=true' is neccessary when fetching all users
   or groups from Keystone.
   Without these, users and groups in other domains (non-caller domains),
   as well as system-level users, cannot be detected.
2. Query 'scope=system' is neccessary when fetching all project from Keystone.
2020-03-06 17:18:24 +08:00
Qiu Jian
ee196529f6 fix: no scope shcedtag should be visible to all 2020-03-06 15:24:51 +08:00
Zexi Li
249db7d9d5 Merge pull request #5370 from rainzm/automated-cherry-pick-of-#5366-upstream-release-2.12
Automated cherry pick of #5366: fix/notify: Fix the resend mechanism
2020-03-06 12:46:19 +08:00
Rain
8508032c60 fix/notify: Fix the resend mechanism 2020-03-06 11:13:49 +08:00
yunion-ci-robot
55fb6930f7 Merge pull request #5354 from rainzm/automated-cherry-pick-of-#5353-upstream-release-2.12
Automated cherry pick of #5353: feature(notify): Add query and return value for contact UPDATE interface
2020-03-05 19:05:50 +08:00
Rain
f4b7e4c93f fix the conflict 2020-03-05 17:17:26 +08:00
Rain
fe2add1563 feature(notify): Add query and return value for contact UPDATE interface
1. Add same return value with contact GET interface when updating
2. Add pull params for query to pull subcontact by mobile number.
   For example, pull user_id from dingtalk throught user's mobile
   number.
3. Add corresponding feature based on above for climc.
4. UserCache will try FetchByName if there is no id matched user when
   fetching users from KeyStone.
2020-03-05 17:11:41 +08:00
yunion-ci-robot
fe2eeaf97c Merge pull request #5319 from ioito/automated-cherry-pick-of-#5315-upstream-release-2.12
Automated cherry pick of #5315: fix: 避免旧套餐下架zone信息未知,导致同步rds异常
2020-03-03 02:19:46 +08:00
Qu Xuan
d156d2a648 fix: 避免旧套餐下架zone信息未知,导致同步rds异常 2020-03-02 17:10:23 +08:00
yunion-ci-robot
5283c09784 Merge pull request #5311 from ioito/automated-cherry-pick-of-#5307-upstream-release-2.12
Automated cherry pick of #5307: 修复aliyun没有权限获取余额问题
2020-02-28 21:59:25 +08:00
yunion-ci-robot
b38a17bbc1 Merge pull request #5298 from tb365/bugfix/tb-bugfix-022801
vpc list add param vpc_usable
2020-02-28 21:15:21 +08:00
yunion-ci-robot
f951a08008 Merge pull request #5285 from wanyaoqi/automated-cherry-pick-of-#5255-upstream-release-2.12
Automated cherry pick of #5255: fix nic get pci address
2020-02-28 21:06:20 +08:00
Qu Xuan
a9043c3423 修复aliyun没有权限获取余额问题 2020-02-28 19:56:37 +08:00
TangBin
971ed7aee5 vpc list add param vpc_usable 2020-02-28 14:35:50 +08:00
yunion-ci-robot
e8d6024b65 Merge pull request #5294 from ioito/automated-cherry-pick-of-#5290-upstream-release-2.12
Automated cherry pick of #5290: 添加azure region city信息
2020-02-28 13:15:20 +08:00
Qu Xuan
2702fd9419 添加azure region city信息 2020-02-28 11:38:09 +08:00
wanyaoqi
f876e3ec66 fix nic get pci address 2020-02-27 23:06:20 +08:00
yunion-ci-robot
13972ead36 Merge pull request #5235 from ioito/automated-cherry-pick-of-#5231-upstream-release-2.12
Automated cherry pick of #5231: fix: 添加磁盘回滚snapshot日志
2020-02-26 15:56:13 +08:00
yunion-ci-robot
64bf28f065 Merge pull request #5246 from ioito/automated-cherry-pick-of-#5242-upstream-release-2.12
Automated cherry pick of #5242: fix: 避免根磁盘小于镜像大小导致创建失败
2020-02-26 10:15:11 +08:00
yunion-ci-robot
6afb54f2ff Merge pull request #5251 from ioito/automated-cherry-pick-of-#5247-upstream-release-2.12
Automated cherry pick of #5247: fix: 返回azure api 错误信息
2020-02-25 21:05:12 +08:00
Qu Xuan
fd556c8cb3 fix: 返回azure api 错误信息 2020-02-25 19:32:09 +08:00
Qu Xuan
26657d8213 fix: 避免根磁盘小于镜像大小导致创建失败 2020-02-25 15:41:28 +08:00
Qu Xuan
a2ab3e2e37 fix: 添加磁盘回滚snapshot日志 2020-02-24 16:11:19 +08:00
yunion-ci-robot
f7b7c2ca79 Merge pull request #5230 from rainzm/automated-cherry-pick-of-#5186-upstream-release-2.12
Automated cherry pick of #5186: feature(notify): Validate config
2020-02-24 15:23:08 +08:00
Rain
7e4b8c2f54 feature(notify): Validate config 2020-02-24 14:13:00 +08:00
Zexi Li
ae5199417b Merge pull request #5209 from swordqiu/automated-cherry-pick-of-#5208-upstream-release-2.12
Automated cherry pick of #5208: fix: reset paging limit to 2048 from 20
2020-02-21 16:46:18 +08:00
Zexi Li
84d9282f61 Merge pull request #5221 from rainzm/automated-cherry-pick-of-#5217-upstream-release-2.12
Automated cherry pick of #5217: fix: Storage filter not work for Esxi
2020-02-21 16:44:56 +08:00
yunion-ci-robot
c8642a5055 Merge pull request #5204 from tb365/automated-cherry-pick-of-#5199-upstream-release-2.12
Automated cherry pick of #5199: cloud region city list add default limit 2048
2020-02-21 16:06:40 +08:00
Rain
0001287411 fix: Storage filter not work for Esxi
1. SESXiGuestDriver.DoScheduleStorageFilter should return true.
2. ESXi's SHost.GetStorageSizeMB should return the capacity of all the
storage belonging to it.
2020-02-21 15:14:55 +08:00
yunion-ci-robot
8bbbe29d74 Merge pull request #5203 from ioito/automated-cherry-pick-of-#5198-upstream-release-2.12
Automated cherry pick of #5198: fix: 修复azure坐标问题,添加新的azure region城市信息
2020-02-20 20:58:29 +08:00
yunion-ci-robot
33efca986e Merge pull request #5195 from ioito/automated-cherry-pick-of-#5191-upstream-release-2.12
Automated cherry pick of #5191: fix: add aliyun new region info
2020-02-20 16:14:30 +08:00
TangBin
9463d2647a huawei cloud create bugfix 2020-02-20 15:34:06 +08:00
TangBin
4c9a53e119 huawei cloud create bugfix 2020-02-20 15:33:08 +08:00
TangBin
055edec299 cloud region city list add default limit 2048 2020-02-20 15:33:08 +08:00
Qiu Jian
9e8a0ec8c4 fix: reset paging limit to 2048 from 20 2020-02-20 15:19:41 +08:00
Qu Xuan
96ba08a0be fix: 修复azure坐标问题,添加新的azure region城市信息 2020-02-20 14:59:09 +08:00
Qu Xuan
c0d220b0be fix: add aliyun new region info 2020-02-20 11:08:26 +08:00
yunion-ci-robot
1c6e52e23b Merge pull request #5182 from tb365/automated-cherry-pick-of-#5181-upstream-release-2.12
Automated cherry pick of #5181: aws listener sync fix
2020-02-19 19:19:27 +08:00
tangbin
6482f61358 huawei http listener sync fix 2020-02-19 18:46:27 +08:00
tangbin
2cb5c91d3f aws rebuild root fix 2020-02-19 18:46:27 +08:00
tangbin
efce8fcce2 aws listener sync fix 2020-02-19 18:46:27 +08:00
yunion-ci-robot
4c9789a3cf Merge pull request #5147 from tb365/automated-cherry-pick-of-#5145-upstream-release-2.12
Automated cherry pick of #5145: qcloud elb sync
2020-02-19 16:07:29 +08:00
Yousong Zhou
39d6ec3f99 Merge pull request #5174 from swordqiu/automated-cherry-pick-of-#5173-upstream-release-2.12
Automated cherry pick of #5173: fix: sync cloud provider should change its cloud account's sync_status
2020-02-19 16:02:36 +08:00
yunion-ci-robot
d6ea55819a Merge pull request #5163 from tb365/automated-cherry-pick-of-#5162-upstream-release-2.12
Automated cherry pick of #5162: huawei elb backend vpc validate fix
2020-02-19 13:48:28 +08:00
yunion-ci-robot
ea2cbcb9dd Merge pull request #5171 from ioito/automated-cherry-pick-of-#5167-upstream-release-2.12
Automated cherry pick of #5167: fix: 避免将虚拟机ip同步到弹性网卡
2020-02-19 12:34:28 +08:00
Qiu Jian
6630b2b616 fix: sync cloud provider should change its cloud account's sync_status 2020-02-19 11:54:29 +08:00
Zexi Li
fc81a230d8 Merge pull request #5152 from swordqiu/automated-cherry-pick-of-#5151-upstream-release-2.12
Automated cherry pick of #5151: fix: 1. adjust default response header timer to 30 seconds 2. set default paging limit to 20
2020-02-19 02:29:49 +08:00
Qu Xuan
c187b8815d fix: 避免将虚拟机ip同步到弹性网卡 2020-02-18 15:40:13 +08:00
yunion-ci-robot
ac8deb50c9 Merge pull request #5142 from ioito/automated-cherry-pick-of-#5138-upstream-release-2.12
Automated cherry pick of #5138: fix: 避免未过滤掉同一个network底下的guest
2020-02-18 14:41:40 +08:00
tangbin
3910867270 huawei elb backend vpc validate fix 2020-02-18 14:18:32 +08:00
Qiu Jian
f3e172f9cf fix: 1. adjust default response header timer to 30 seconds 2. set default paging limit to 20 2020-02-18 08:53:59 +08:00
TangBin
9ec6f25468 qcloud elb sync 2020-02-17 22:29:29 +08:00
Qu Xuan
9de5c4b12e fix: 避免未过滤掉同一个network底下的guest 2020-02-17 20:53:42 +08:00
yunion-ci-robot
e2e456f71c Merge pull request #5107 from rainzm/automated-cherry-pick-of-#5106-upstream-release-2.12
Automated cherry pick of #5106: fix(notify): Set some default template
2020-02-14 12:24:04 +08:00
Rain
41ec0eef0c fix(notify): Set some default template 2020-02-13 16:51:33 +08:00
yunion-ci-robot
5d52afc364 Merge pull request #5093 from bistuzx/automated-cherry-pick-of-#5092-upstream-release-2.12
Automated cherry pick of #5092: update account bucket options
2020-02-13 03:49:04 +08:00
张旭
ea34a7eaf8 update account bucket options 2020-02-12 18:27:00 +08:00
yunion-ci-robot
bd81f14238 Merge pull request #5076 from ioito/automated-cherry-pick-of-#5072-upstream-release-2.12
Automated cherry pick of #5072: fix: 忽略无权限的资源标签
2020-02-11 17:20:58 +08:00
Qu Xuan
425ee89d02 fix: 忽略无权限的资源标签 2020-02-10 16:41:40 +08:00
yunion-ci-robot
93146a9906 Merge pull request #5068 from swordqiu/automated-cherry-pick-of-#5065-upstream-release-2.12
Automated cherry pick of #5065: fix: allow empty domain for windows deployment
2020-02-10 10:34:56 +08:00
Qiu Jian
a8ade5bcec fix: allow empty domain for windows deployment 2020-02-10 09:23:30 +08:00
yunion-ci-robot
4dfc5ea305 Merge pull request #5058 from swordqiu/automated-cherry-pick-of-#5054-upstream-release-2.12
Automated cherry pick of #5054: fix: createdAt should not be synced when update
2020-02-09 22:09:57 +08:00
Qiu Jian
ba1c114ef8 fix: createdAt should not be synced when update 2020-02-08 21:30:36 +08:00
yunion-ci-robot
1ba74bed22 Merge pull request #5034 from tb365/automated-cherry-pick-of-#5032-upstream-release-2.12
Automated cherry pick of #5032: aws create with eip fix
2020-02-07 04:50:52 +08:00
tangbin
4e9c24192f aws create with eip fix 2020-02-06 17:57:06 +08:00
yunion-ci-robot
32066e5273 Merge pull request #5025 from ioito/automated-cherry-pick-of-#5021-upstream-release-2.12
Automated cherry pick of #5021: fix: 避免因大小写导致linux未注入默认用户
2020-02-06 13:48:52 +08:00
Qu Xuan
aab846429a fix: 避免因大小写导致linux未注入默认用户 2020-02-06 12:06:17 +08:00
yunion-ci-robot
f44a20ca9b Merge pull request #5017 from swordqiu/automated-cherry-pick-of-#5014-upstream-release-2.12
Automated cherry pick of #5014: fix: support empty dns domain
2020-02-06 09:47:48 +08:00
Qiu Jian
3cddd57f3f fix: support empty dns domain 2020-02-06 03:27:04 +08:00
yunion-ci-robot
cf4f9b5dc2 Merge pull request #5002 from ioito/automated-cherry-pick-of-#4999-upstream-release-2.12
Automated cherry pick of #4999: fix: 避免私有云调整配置匹配不到sku
2020-02-03 16:16:44 +08:00
Qu Xuan
4e34329c79 fix: 避免私有云调整配置匹配不到sku 2020-02-03 12:42:30 +08:00
Zexi Li
220b061ebb Merge pull request #4984 from swordqiu/automated-cherry-pick-of-#4983-upstream-release-2.12
Automated cherry pick of #4983: fix: try allocate host access ip from reserved pool
2020-01-19 10:37:28 +08:00
Qiu Jian
4eecb6ec9b fix: try allocate host access ip from reserved pool 2020-01-19 00:25:52 +08:00
Zexi Li
2a47a4497e Merge pull request #4969 from swordqiu/automated-cherry-pick-of-#4968-upstream-release-2.12
Automated cherry pick of #4968: fix: network-reserve-ip ignores expired reserved ips
2020-01-18 16:04:26 +08:00
Qiu Jian
a28b075517 fix: resolve backport compilation error 2020-01-18 14:38:17 +08:00
Qiu Jian
f50b15c4ef fix: network-reserve-ip ignores expired reserved ips 2020-01-18 14:26:44 +08:00
yunion-ci-robot
155d7c0d21 Merge pull request #4949 from ioito/automated-cherry-pick-of-#4946-upstream-release-2.12
Automated cherry pick of #4946: fix: 腾讯云主机带宽跟随eip带宽变化而变化
2020-01-17 19:44:10 +08:00
Qu Xuan
b7f15ba70a fix: 腾讯云主机带宽跟随eip带宽变化而变化 2020-01-17 13:37:47 +08:00
yunion-ci-robot
2c73e172ce Merge pull request #4882 from tb365/automated-cherry-pick-of-#4880-upstream-release-2.12
Automated cherry pick of #4880: huawei remove backend group bugfix
2020-01-17 11:01:10 +08:00
yunion-ci-robot
302556814a Merge pull request #4908 from ioito/automated-cherry-pick-of-#4904-upstream-release-2.12
Automated cherry pick of #4904: fix: 避免创建azure时指定高级ssd失效
2020-01-16 09:49:07 +08:00
Qu Xuan
08c24e78c3 fix: 避免创建azure时指定高级ssd失效 2020-01-15 18:03:01 +08:00
Zexi Li
3b812a74ce Merge pull request #4896 from rainzm/automated-cherry-pick-of-#4895-upstream-release-2.12
Automated cherry pick of #4895: fix(notify): Update template
2020-01-14 18:23:41 +08:00
Rain
ddfbaefe15 fix(notify): Update template 2020-01-14 18:11:51 +08:00
TangBin
e69130e2d3 aliyun backendgroup bugfix 2020-01-14 15:52:28 +08:00
TangBin
60fa2466d0 aws backendgroup delete bugfix 2020-01-14 15:52:28 +08:00
TangBin
33a1c9ad9f aws sync routetable 2020-01-14 15:52:28 +08:00
TangBin
0b4bf4ad75 huawei remove backend group bugfix 2020-01-14 15:52:28 +08:00
yunion-ci-robot
40633d71b2 Merge pull request #4867 from ioito/automated-cherry-pick-of-#4862-upstream-release-2.12
Automated cherry pick of #4862: fix: 仅kvm需要去判断是否需要关机调整配置,公有云私有云默认不需要
2020-01-14 03:00:03 +08:00
yunion-ci-robot
ed4880dedd Merge pull request #4841 from ioito/automated-cherry-pick-of-#4837-upstream-release-2.12
Automated cherry pick of #4837: fix: 添加磁盘创建失败日志
2020-01-14 02:56:03 +08:00
yunion-ci-robot
a7b33d0763 Merge pull request #4853 from ioito/automated-cherry-pick-of-#4849-upstream-release-2.12
Automated cherry pick of #4849: fix: aliyun rule fix
2020-01-14 02:22:02 +08:00
Zexi Li
06ef8007de Merge pull request #4846 from ioito/automated-cherry-pick-of-#4842-upstream-release-2.12
Automated cherry pick of #4842: fix: 添加安全组操作日志
2020-01-13 20:50:31 +08:00
Qu Xuan
dd4f1f5e2b fix: 仅kvm需要去判断是否需要关机调整配置,公有云私有云默认不需要 2020-01-13 19:17:35 +08:00
Qu Xuan
5ef620eda6 fix: aliyun rule fix 2020-01-13 17:45:32 +08:00
Qu Xuan
8af74bde26 fix: 添加安全组操作日志 2020-01-13 15:28:20 +08:00
Qu Xuan
10970b5293 fix: 添加磁盘创建失败日志 2020-01-13 14:56:09 +08:00
yunion-ci-robot
0dc76d6fce Merge pull request #4803 from tb365/automated-cherry-pick-of-#4801-upstream-release-2.12
Automated cherry pick of #4801: kvm elb listener update bugfix
2020-01-10 19:53:01 +08:00
TangBin
713274cb76 kvm elb listener update bugfix 2020-01-10 18:49:36 +08:00
yunion-ci-robot
3c442a2ceb Merge pull request #4772 from wanyaoqi/automated-cherry-pick-of-#4768-upstream-release-2.12
Automated cherry pick of #4768: fix guest start no task complete
2020-01-10 10:24:59 +08:00
yunion-ci-robot
59f44aa283 Merge pull request #4788 from yousong/automated-cherry-pick-of-#4784-upstream-release-2.12
Automated cherry pick of #4784: dnsrecords: add helper methods
2020-01-10 10:16:59 +08:00
Yousong Zhou
2bc6f73bf3 dns: chain load records for cname 2020-01-09 23:24:26 +08:00
Yousong Zhou
c47aa60243 dns: prepare for responding with A record of cname value 2020-01-09 23:24:26 +08:00
Yousong Zhou
d7e1879274 dnsrecords: add helper methods 2020-01-09 23:24:25 +08:00
wanyaoqi
b10450232b fix guest start no task complete 2020-01-09 17:14:39 +08:00
yunion-ci-robot
fd30e1f7d6 Merge pull request #4747 from yousong/automated-cherry-pick-of-#4724-upstream-release-2.12
Automated cherry pick of #4724: wires: lift name length, charset constraint
2020-01-08 23:43:00 +08:00
Yousong Zhou
2c4b5d83ba wires: lift name length, charset constraint 2020-01-08 19:15:56 +08:00
yunion-ci-robot
b822543513 Merge pull request #4732 from ioito/automated-cherry-pick-of-#4728-upstream-release-2.12
Automated cherry pick of #4728: fix: eip duplicate name
2020-01-08 19:03:59 +08:00
Qu Xuan
c5ad5c4fd5 fix: eip duplicate name 2020-01-08 18:12:37 +08:00
yunion-ci-robot
24c3b516ba Merge pull request #4696 from rainzm/automated-cherry-pick-of-#4695-upstream-release-2.12
Automated cherry pick of #4695: fix(glance): Cancel pending usage of image quota correctly
2020-01-08 16:13:57 +08:00
yunion-ci-robot
ea0f474128 Merge pull request #4702 from tb365/automated-cherry-pick-of-#4701-upstream-release-2.12
Automated cherry pick of #4701: azure skus sync fix
2020-01-08 15:58:57 +08:00
Zexi Li
6f70d31f6e Merge pull request #4718 from wanyaoqi/automated-cherry-pick-of-#4714-upstream-release-2.12
Automated cherry pick of #4714: set subimage some field nullable
2020-01-08 15:43:03 +08:00
wanyaoqi
5e67253bcc set subimage some field nullable 2020-01-08 15:38:21 +08:00
yunion-ci-robot
650888c10f Merge pull request #4688 from yousong/automated-cherry-pick-of-#4683-upstream-release-2.12
Automated cherry pick of #4683: hostman: distro name OpenWrt instead of OpenWRT
2020-01-08 12:55:57 +08:00
yunion-ci-robot
24c645025f Merge pull request #4654 from ioito/automated-cherry-pick-of-#4650-upstream-release-2.12
Automated cherry pick of #4650: fix: 避免创建rds account, database后未设置exteranl_id
2020-01-08 11:40:59 +08:00
yunion-ci-robot
5faa172bda Merge pull request #4641 from ioito/automated-cherry-pick-of-#4636-upstream-release-2.12
Automated cherry pick of #4636: fix: 加强密码校验
2020-01-08 11:36:58 +08:00
TangBin
481599ec59 huawei redis sync fix 2020-01-08 11:31:51 +08:00
TangBin
f73152496f huawei network default gateway fix 2020-01-08 11:31:39 +08:00
TangBin
51ccda9d6e network create GuestIpPrefix fix 2020-01-08 11:31:39 +08:00
Rain
72bc05401f fix(glance): Cancel pending usage of image quota correctly
ImageNumber always be zero because the 'image_number' in data was
removed so that canceling pending usage not work.
2020-01-08 11:27:48 +08:00
yunion-ci-robot
574b3fe93d Merge pull request #4693 from ioito/automated-cherry-pick-of-#4685-upstream-release-2.12
Automated cherry pick of #4685: fix: next marker format
2020-01-08 10:07:58 +08:00
Zexi Li
e1fc0dac25 Merge pull request #4679 from swordqiu/automated-cherry-pick-of-#4676-upstream-release-2.12
Automated cherry pick of #4676: fix: guest network default share scope should be system if non-default-domain-projects is off
2020-01-07 19:30:24 +08:00
yunion-ci-robot
d1b60cb99f Merge pull request #4670 from ioito/automated-cherry-pick-of-#4656-upstream-release-2.12
Automated cherry pick of #4656: fix: 避免拥有带宽包的腾讯云创建机器失败
2020-01-07 18:05:57 +08:00
Qu Xuan
7939127ce1 fix: next marker format 2020-01-07 18:05:18 +08:00
Yousong Zhou
674c1a278c hostman: openwrt: deploy public key for root 2020-01-07 18:01:57 +08:00
Yousong Zhou
cffa941453 hostman: split DeployAuthorizedKeys() 2020-01-07 18:01:57 +08:00
Yousong Zhou
4e7ca3eddb hostman: openwrt: support deploy networking scripts 2020-01-07 18:01:57 +08:00
Yousong Zhou
6e2a684330 hostman: openwrt: deploy hostname with board config 2020-01-07 18:01:57 +08:00
Yousong Zhou
d19a14ec78 hostman: distro name OpenWrt instead of OpenWRT 2020-01-07 18:01:57 +08:00
yunion-ci-robot
cb2f1aa4b1 Merge pull request #4662 from ioito/automated-cherry-pick-of-#4658-upstream-release-2.12
Automated cherry pick of #4658: fix: 避免同步安全组失败后,没有任何日志记录
2020-01-07 17:07:56 +08:00
Qiu Jian
ce8c31c84a fix: guest network default share scope should be system if non-default-domain-projects is off 2020-01-07 16:53:02 +08:00
Qu Xuan
4f5f4a60e2 fix: 避免拥有带宽包的腾讯云创建机器失败 2020-01-07 15:05:49 +08:00
Qu Xuan
7e040d7aff fix: 避免同步安全组失败后,没有任何日志记录 2020-01-07 11:50:19 +08:00
yunion-ci-robot
91af65ca94 Merge pull request #4646 from swordqiu/automated-cherry-pick-of-#4645-upstream-release-2.12
Automated cherry pick of #4645: fix: comment out TestDialTimeout
2020-01-06 15:12:59 +08:00
Qu Xuan
0eadd02531 fix: 避免创建rds account, database后未设置exteranl_id 2020-01-06 13:39:56 +08:00
Qiu Jian
eb9b413e43 fix: comment out TestDialTimeout 2020-01-06 13:09:48 +08:00
Qu Xuan
4bb58627e3 fix: 加强密码校验 2020-01-06 11:52:21 +08:00
Zexi Li
c15e23d96d Merge pull request #4626 from swordqiu/automated-cherry-pick-of-#4557-upstream-release-2.12
Automated cherry pick of #4557: add cloud account create&update options
2020-01-05 11:09:59 +08:00
Qiu Jian
cf4241894e fix: fail to compile climc 2020-01-05 09:39:18 +08:00
张旭
0c367976e0 add cloud account create&update options 2020-01-05 09:34:50 +08:00
Zexi Li
6cb171533d Merge pull request #4613 from ioito/automated-cherry-pick-of-#4609-upstream-release-2.12
Automated cherry pick of #4609: fix: 避免仅删除value时,行为演变为删除标签
2020-01-04 23:18:13 +08:00
Zexi Li
b1984e6634 Merge pull request #4605 from rainzm/automated-cherry-pick-of-#4602-upstream-release-2.12
Automated cherry pick of #4602: fix(notify): Fix the error of filter about contacts
2020-01-04 22:29:38 +08:00
Rain
aff70fedc1 fix(notify): Fix the error of filter about contacts 2020-01-04 22:23:54 +08:00
Qu Xuan
7f37e300ef fix: 避免仅删除value时,行为演变为删除标签 2020-01-04 22:17:32 +08:00
Zexi Li
be2491a89b Merge pull request #4573 from bistuzx/automated-cherry-pick-of-#4557-upstream-release-2.12
Automated cherry pick of #4557: add cloud account create&update options
2020-01-04 21:10:42 +08:00
Jian Qiu
6960dbbf54 Automated cherry pick of #4527: fix: httpclient timeout value cleanup, use notimeout client for oss (#4528)
* fix: httpclient timeout value cleanup, use notimeout client for oss

* Adaptive timeout client

* more test cases

* remove resolve timeout test case

* use adptive timeout only if timeout = 0

* add GetFreePort methods
2020-01-04 20:51:36 +08:00
yunion-ci-robot
a1963e5837 Merge pull request #4578 from ioito/automated-cherry-pick-of-#4574-upstream-release-2.12
Automated cherry pick of #4574: fix: 子网删除忽略弹性网卡
2020-01-04 20:31:40 +08:00
张旭
f5a40c3e02 add cloud account create&update options 2020-01-04 20:25:42 +08:00
yunion-ci-robot
bccf1dc67f Merge pull request #4585 from ioito/automated-cherry-pick-of-#4581-upstream-release-2.12
Automated cherry pick of #4581: fix: 修复zstack安全组创建失败问题
2020-01-04 20:13:37 +08:00
Qu Xuan
fd05116707 fix: 修复zstack安全组创建失败问题 2020-01-04 20:02:32 +08:00
yunion-ci-robot
30e451afa7 Merge pull request #4562 from ioito/automated-cherry-pick-of-#4558-upstream-release-2.12
Automated cherry pick of #4558: fix: openstack eip dissociate optimized
2020-01-04 19:59:36 +08:00
Zexi Li
c808bfc47d Merge pull request #4565 from swordqiu/automated-cherry-pick-of-#4564-upstream-release-2.12
Automated cherry pick of #4564: fix: minio fail to set object metadata
2020-01-04 19:52:25 +08:00
Qu Xuan
ebd9c788aa fix: 子网删除忽略弹性网卡 2020-01-04 19:25:10 +08:00
Qu Xuan
6b0d54f9c2 fix: openstack eip dissociate optimized 2020-01-04 18:44:35 +08:00
Qiu Jian
164de8a9cd fix: minio fail to set object metadata 2020-01-04 18:36:43 +08:00
Zexi Li
74865802ba Merge pull request #4524 from zexi/automated-cherry-pick-of-#4520-upstream-release-2.12
Automated cherry pick of #4520: baremetal: fix megaraid check jbod always disabled
2020-01-03 21:52:14 +08:00
yunion-ci-robot
0b2eb093af Merge pull request #4517 from ioito/automated-cherry-pick-of-#4513-upstream-release-2.12
Automated cherry pick of #4513: fix: 腾讯云不支持描述字段参数
2020-01-03 21:31:41 +08:00
Zexi Li
02982f7850 baremetal: fix megaraid check jbod always disabled 2020-01-03 21:23:05 +08:00
Qu Xuan
1db48ed31f fix: 腾讯云不支持描述字段参数 2020-01-03 20:46:29 +08:00
Zexi Li
4422faf411 Merge pull request #4499 from swordqiu/automated-cherry-pick-of-#4498-upstream-release-2.12
Automated cherry pick of #4498: fix: allow delete cloudaccount with auto-sync enabled
2020-01-03 19:06:29 +08:00
yunion-ci-robot
a907289d0f Merge pull request #4503 from rainzm/automated-cherry-pick-of-#4497-upstream-release-2.12
Automated cherry pick of #4497: fix(huawei): Add 'X-Project-ID' header for huawei nat reuqest
2020-01-03 19:05:35 +08:00
yunion-ci-robot
3d40f4dd9d Merge pull request #4496 from ioito/automated-cherry-pick-of-#4492-upstream-release-2.12
Automated cherry pick of #4492: fix: 修复provider为空的套餐
2020-01-03 18:36:35 +08:00
Rain
194f8f9916 fix(huawei): Add 'X-Project-ID' header for huawei nat reuqest 2020-01-03 17:19:59 +08:00
Qiu Jian
f912464b49 fix: allow delete cloudaccount with auto-sync enabled 2020-01-03 17:13:35 +08:00
Qu Xuan
d8f148f791 fix: 修复provider为空的套餐 2020-01-03 15:55:39 +08:00
Zexi Li
58a4a5cc29 Merge pull request #4484 from rainzm/automated-cherry-pick-of-#4483-upstream-release-2.12
Automated cherry pick of #4483: fix(notify): Always update websocket config
2020-01-03 11:22:29 +08:00
Zexi Li
1acaac1241 Merge pull request #4482 from swordqiu/automated-cherry-pick-of-#4478-upstream-release-2.12
Automated cherry pick of #4478: fix: bucket list object may skip first matched object
2020-01-03 11:01:37 +08:00
Rain
58645ae956 fix(notify): Always update websocket config 2020-01-02 18:17:09 +08:00
Qiu Jian
d718738084 fix: sort objects and directories 2020-01-02 17:48:58 +08:00
Qiu Jian
9944c0d655 fix: bucket list object may skip first matched object 2020-01-02 17:48:58 +08:00
yunion-ci-robot
de741bd1e3 Merge pull request #4466 from yousong/automated-cherry-pick-of-#4464-upstream-release-2.12
Automated cherry pick of #4464: networks: 确保外部network也有ifname_hint
2020-01-01 15:31:34 +08:00
Yousong Zhou
19a1f90a54 networks: 确保外部network也有ifname_hint 2020-01-01 10:52:37 +08:00
yunion-ci-robot
123b7de76e Merge pull request #4461 from ioito/automated-cherry-pick-of-#4459-upstream-release-2.12
Automated cherry pick of #4459: fix: openstack image: vmdk -> qcow2
2020-01-01 09:30:33 +08:00
yunion-ci-robot
4c83dc9e21 Merge pull request #4458 from ioito/automated-cherry-pick-of-#4455-upstream-release-2.12
Automated cherry pick of #4455: fix: 避免nova external_id duplicate
2019-12-31 23:29:33 +08:00
Qu Xuan
c8878ca5a5 fix: openstack image: vmdk -> qcow2 2019-12-31 19:55:54 +08:00
Qu Xuan
ae8d10e18e fix: 避免nova external_id duplicate 2019-12-31 18:47:44 +08:00
yunion-ci-robot
710e27ea40 Merge pull request #4447 from wanyaoqi/automated-cherry-pick-of-#4445-upstream-release-2.12
Automated cherry pick of #4445: not return on recv packet failed
2019-12-31 17:29:32 +08:00
yunion-ci-robot
b8bd0afeeb Merge pull request #4437 from yousong/automated-cherry-pick-of-#4435-upstream-release-2.12
Automated cherry pick of #4435: networks: newIfnameHint: 可读性改善
2019-12-31 17:13:33 +08:00
wanyaoqi
49eb90b3d2 not return on recv packet failed 2019-12-31 17:04:27 +08:00
Yousong Zhou
4ddf168402 guestnetworks: 加强ifname内容判断 2019-12-31 14:24:39 +08:00
Yousong Zhou
cafdab7d61 networks: newIfnameHint: 可读性改善 2019-12-31 14:24:39 +08:00
yunion-ci-robot
71d38f4b88 Merge pull request #4425 from wanyaoqi/automated-cherry-pick-of-#4423-upstream-release-2.12
Automated cherry pick of #4423: region MakeCloudProviderInfo instance snapshots
2019-12-31 01:28:32 +08:00
yunion-ci-robot
ba6045f875 Merge pull request #4400 from ioito/automated-cherry-pick-of-#4398-upstream-release-2.12
Automated cherry pick of #4398: fix: 避免创建时localstorage为空导致校验失败
2019-12-31 01:21:33 +08:00
yunion-ci-robot
a96d820651 Merge pull request #4382 from ioito/automated-cherry-pick-of-#4380-upstream-release-2.12
Automated cherry pick of #4380: fix: 支持过滤有admin_secgrp的虚拟机
2019-12-31 01:03:32 +08:00
yunion-ci-robot
529a01df4f Merge pull request #4389 from ioito/automated-cherry-pick-of-#4387-upstream-release-2.12
Automated cherry pick of #4387: fix: 避免私有云找不到对应的套餐
2019-12-31 00:53:36 +08:00
yunion-ci-robot
39b8b501fe Merge pull request #4396 from ioito/automated-cherry-pick-of-#4394-upstream-release-2.12
Automated cherry pick of #4394: fix: 避免同步将eip同步到弹性网卡里面
2019-12-31 00:48:33 +08:00
Zexi Li
2fc2ff8721 Merge pull request #4407 from wanyaoqi/automated-cherry-pick-of-#4405-upstream-release-2.12
Automated cherry pick of #4405: fix panic on fstab no content
2019-12-31 00:43:14 +08:00
yunion-ci-robot
2d923f2dcf Merge pull request #4422 from tb365/automated-cherry-pick-of-#4420-upstream-release-2.12
Automated cherry pick of #4420: update rbac default policy
2019-12-31 00:22:32 +08:00
wanyaoqi
e662b4a750 region MakeCloudProviderInfo instance snapshots
- MakeCloudProviderInfo: fix panic on account is nil
- GetSnapshotsNotInInstanceSnapshot: add filter disk_id
2019-12-30 21:20:17 +08:00
TangBin
bf945704b6 update rbac default policy 2019-12-30 19:14:45 +08:00
yunion-ci-robot
20468aab12 Merge pull request #4414 from yousong/automated-cherry-pick-of-#4412-upstream-release-2.12
Automated cherry pick of #4412: networks: make ifname hint also valid qemu identifier
2019-12-30 18:54:33 +08:00
Yousong Zhou
e4fad874ac networks: make ifname hint also valid qemu identifier 2019-12-30 18:14:37 +08:00
Zexi Li
11facb6d01 Merge pull request #4403 from swordqiu/automated-cherry-pick-of-#4401-upstream-release-2.12
Automated cherry pick of #4401: fix: host-update ipmi and host-sync-config support
2019-12-30 17:59:03 +08:00
wanyaoqi
238ba18829 fix panic on fstab no content 2019-12-30 16:27:03 +08:00
Qiu Jian
081f6de5f7 fix: host-update ipmi and host-sync-config support 2019-12-30 16:14:22 +08:00
Qu Xuan
dd23fabbd4 fix: 避免创建时localstorage为空导致校验失败 2019-12-30 15:34:44 +08:00
Qu Xuan
065cd2a5a6 fix: 避免同步将eip同步到弹性网卡里面 2019-12-30 14:55:12 +08:00
Qu Xuan
8d953b6937 fix: 支持过滤有admin_secgrp的虚拟机 2019-12-30 10:51:56 +08:00
Qu Xuan
71ad4a7baf fix: 避免私有云找不到对应的套餐 2019-12-30 10:42:36 +08:00
yunion-ci-robot
6c0a2b94fb Merge pull request #4349 from ioito/automated-cherry-pick-of-#4347-upstream-release-2.12
Automated cherry pick of #4347: fix: 支持同步经典网络ip地址
2019-12-30 09:18:31 +08:00
yunion-ci-robot
e02b675ee1 Merge pull request #4365 from ioito/automated-cherry-pick-of-#4362-upstream-release-2.12
Automated cherry pick of #4362: fix: 更正腾讯云磁盘创建时间
2019-12-29 22:04:39 +08:00
yunion-ci-robot
ae0df7f083 Merge pull request #4385 from ioito/automated-cherry-pick-of-#4383-upstream-release-2.12
Automated cherry pick of #4383: fix: 修复接收参数异常问题
2019-12-28 14:18:33 +08:00
Qu Xuan
6c51584720 fix: 支持同步经典网络ip地址 2019-12-28 13:18:37 +08:00
Qu Xuan
7ee8d72fe3 fix: 更正腾讯云磁盘创建时间 2019-12-28 13:07:28 +08:00
yunion-ci-robot
4491605dad Merge pull request #4377 from ioito/automated-cherry-pick-of-#4375-upstream-release-2.12
Automated cherry pick of #4375: fix: 避免因太多锁导致删除安全组task失败
2019-12-28 09:53:35 +08:00
Qu Xuan
7555e13ed6 fix: 修复接收参数异常问题 2019-12-27 20:35:12 +08:00
Qu Xuan
8518ce8ab5 fix: 避免因太多锁导致删除安全组task失败 2019-12-27 16:24:01 +08:00
Zexi Li
3a48f06c6e Merge pull request #4370 from swordqiu/automated-cherry-pick-of-#4368-upstream-release-2.12
Automated cherry pick of #4368: fix: alter user email charset to utf8
2019-12-27 14:28:59 +08:00
Qiu Jian
7f4f49e05b fix: alter user email charset to utf8 2019-12-27 14:12:55 +08:00
yunion-ci-robot
fd2843b2aa Merge pull request #4356 from swordqiu/automated-cherry-pick-of-#4354-upstream-release-2.12
Automated cherry pick of #4354: fix: cloudaccount try get info of empty project
2019-12-27 11:28:31 +08:00
yunion-ci-robot
338a00de6d Merge pull request #4351 from ioito/automated-cherry-pick-of-#4336-upstream-release-2.12
Automated cherry pick of #4336: fix: 优化支持openstack重装系统
2019-12-27 01:14:30 +08:00
yunion-ci-robot
1e182fdf78 Merge pull request #4298 from wanyaoqi/automated-cherry-pick-of-#4296-upstream-release-2.12
Automated cherry pick of #4296: snapshot misc bugfix
2019-12-27 01:10:30 +08:00
yunion-ci-robot
a720cd7a4d Merge pull request #4335 from wanyaoqi/automated-cherry-pick-of-#4333-upstream-release-2.12
Automated cherry pick of #4333: eip add distinct account
2019-12-27 01:02:35 +08:00
Qiu Jian
c7f3b5014e fix: cloudaccount try get info of empty project 2019-12-26 22:43:12 +08:00
Qu Xuan
447c1149b3 fix: 优化支持openstack重装系统 2019-12-26 21:53:27 +08:00
Zexi Li
c6b9908536 Merge pull request #4328 from swordqiu/automated-cherry-pick-of-#4326-upstream-release-2.12
Automated cherry pick of #4326: fix: baremetal diskconfig empty adaptor index
2019-12-26 21:15:59 +08:00
Zexi Li
047492e6ea Merge pull request #4346 from swordqiu/automated-cherry-pick-of-#4344-upstream-release-2.12
Automated cherry pick of #4344: fix: reduce action log for keystone authentication event
2019-12-26 21:12:21 +08:00
Qiu Jian
74b9311d33 fix: reduce action log for keystone authentication event 2019-12-26 20:55:31 +08:00
yunion-ci-robot
555178c3eb Merge pull request #4324 from swordqiu/automated-cherry-pick-of-#4322-upstream-release-2.12
Automated cherry pick of #4322: fix: SyncEip时同步项目应该在同步主机信息之前
2019-12-26 15:53:34 +08:00
Zexi Li
48bd78fd68 Merge pull request #4321 from swordqiu/automated-cherry-pick-of-#4319-upstream-release-2.12
Automated cherry pick of #4319: fix: bucket list objects with marker and limit
2019-12-26 15:46:41 +08:00
wanyaoqi
a7269ed6e1 eip add distinct account 2019-12-26 14:46:50 +08:00
yunion-ci-robot
080dc22420 Merge pull request #4301 from yousong/automated-cherry-pick-of-#4299-upstream-release-2.12
Automated cherry pick of #4299: hostman: different error message for different error reason
2019-12-26 11:05:32 +08:00
yunion-ci-robot
44daad6372 Merge pull request #4315 from ioito/automated-cherry-pick-of-#4313-upstream-release-2.12
Automated cherry pick of #4313: fix: 避免在域管理后台rules不可见
2019-12-26 01:55:15 +08:00
yunion-ci-robot
08cb53823f Merge pull request #4309 from ioito/automated-cherry-pick-of-#4307-upstream-release-2.12
Automated cherry pick of #4307: fix: 同步openstack宿主机关闭服务后状态
2019-12-26 01:51:14 +08:00
Qiu Jian
481b8cf1a2 fix: baremetal diskconfig empty adaptor index 2019-12-26 01:13:16 +08:00
Qiu Jian
d46f1a6f4c fix: SyncEip时同步项目应该在同步主机信息之前 2019-12-26 01:02:09 +08:00
Qiu Jian
ace9f6e2d4 remove httperrors 2019-12-26 00:51:40 +08:00
Qiu Jian
4cc6f3e999 fix fmt issue 2019-12-26 00:50:40 +08:00
Qiu Jian
d6f9eed05a fix: minor fix 2019-12-26 00:50:40 +08:00
Qiu Jian
8827d2b15c fix: bucket list objects with marker and limit 2019-12-26 00:50:40 +08:00
Qu Xuan
9e4efab13c fix: 避免在域管理后台rules不可见 2019-12-25 17:15:01 +08:00
yunion-ci-robot
2835fed7dc Merge pull request #4306 from ioito/automated-cherry-pick-of-#4304-upstream-release-2.12
Automated cherry pick of #4304: fix: 支持忽略cloudaccount健康检查
2019-12-25 17:11:13 +08:00
Qu Xuan
39753f5a76 fix: 同步openstack宿主机关闭服务后状态 2019-12-25 16:27:51 +08:00
Qu Xuan
c7f577e08e fix: 支持忽略cloudaccount健康检查 2019-12-25 16:10:03 +08:00
yunion-ci-robot
22239cb5ab Merge pull request #4295 from ioito/automated-cherry-pick-of-#4293-upstream-release-2.12
Automated cherry pick of #4293: fix: 避免未接收到tenant参数
2019-12-25 16:03:15 +08:00
Yousong Zhou
bd80c3a399 hostman: fsdriver: fix hostname deployment for openwrt
We will need to add native uci support later
2019-12-25 16:02:23 +08:00
Yousong Zhou
7c5cd59d90 hostman: add default values for host config 2019-12-25 16:02:23 +08:00
Yousong Zhou
ac6a97fea6 networks: different indent level for asymmetric branches 2019-12-25 16:02:23 +08:00
Yousong Zhou
a81d7c749a hostman: different error message for different error reason 2019-12-25 16:02:23 +08:00
wanyaoqi
265e3f6732 snapshot misc bugfix 2019-12-25 15:53:27 +08:00
Qu Xuan
c17b058baa fix: 避免未接收到tenant参数 2019-12-25 14:41:15 +08:00
yunion-ci-robot
ea12386358 Merge pull request #4275 from rainzm/automated-cherry-pick-of-#4274-upstream-release-2.12
Automated cherry pick of #4274: fix(notify): Fix for user cache and list contacts
2019-12-23 21:11:15 +08:00
Rain
72a787da9a fix(notify): Fix for user cache and list contacts 2019-12-23 20:49:25 +08:00
yunion-ci-robot
f0b166a302 Merge pull request #4279 from tb365/automated-cherry-pick-of-#4277-upstream-release-2.12
Automated cherry pick of #4277: add services query permission
2019-12-23 18:35:12 +08:00
TangBin
68fadf1c18 add services query permission 2019-12-23 18:14:52 +08:00
yunion-ci-robot
a448a6f3b9 Merge pull request #4271 from swordqiu/automated-cherry-pick-of-#4270-upstream-release-2.12
Automated cherry pick of #4270: feature: support centos 8 deployment. centos 8 requiest NetworkManager
2019-12-23 10:43:14 +08:00
Qiu Jian
f6a3a487d8 feature: support centos 8 deployment. centos 8 requiest NetworkManager 2019-12-21 18:43:42 +08:00
yunion-ci-robot
372e52b638 Merge pull request #4230 from yousong/automated-cherry-pick-of-#4228-upstream-release-2.12
Automated cherry pick of #4228: mcclient: proxy setting aware by using httputils' transport
2019-12-20 21:28:06 +08:00
yunion-ci-robot
37460bddb9 Merge pull request #4243 from rainzm/automated-cherry-pick-of-#4232-upstream-release-2.12
Automated cherry pick of #4232: Fix(notify): Unified the api params and fix some bug.
2019-12-20 16:04:07 +08:00
Rain
c968eb3fe1 feat(notify): Add default email tempalte with topic IMAGE_ACTIVED 2019-12-20 11:41:59 +08:00
Rain
3e3a1381a7 Fix(notify): Unified the api params and fix some bug.
1. Config Verify 和 Contact 的 InitalizeData 写得过于直接了。
会导致正常的数据被覆盖。实际上,数据的Init只需要更换数据
库的时候更新,如何判断数据库要被更新了,就是判断新出现的
column 有没有非零值的,如果有,就说明数据库不是第一次更新。

2. 前端的请求经过yunionapi,最终会调用climc里面注册的ResourceManager,
所以这个地方一定要和后端的参数处理统一。之前因为添加 uname
的支持破坏了这个地方的统一,虽然climc可以调用成功但是前端接口调用会失败。

3. Resend 的bug,会导致任务的阻塞。

4. 为了兼容kapacitor对climc
notify的调用,分成了notify和notify-batch两个命令。
2019-12-20 11:41:59 +08:00
yunion-ci-robot
e4666ffb85 Merge pull request #4234 from tb365/automated-cherry-pick-of-#4184-upstream-release-2.12
Automated cherry pick of #4184: elastic skus query bugfix
2019-12-20 11:27:04 +08:00
yunion-ci-robot
bd0f6b9771 Merge pull request #4240 from zexi/automated-cherry-pick-of-#4238-upstream-release-2.12
Automated cherry pick of #4238: baremetal: fix register input params lost
2019-12-20 00:16:06 +08:00
Zexi Li
90bf94ad5e baremetal: fix register input params lost 2019-12-19 21:12:48 +08:00
TangBin
aedb61c647 add cache skus query params 2019-12-19 18:17:40 +08:00
TangBin
fd4434d7af add zone service filter 2019-12-19 18:17:40 +08:00
TangBin
7045af048c zone customize columns add region_external_id 2019-12-19 18:17:40 +08:00
TangBin
aa93908f6d get elasitc cache account password api 2019-12-19 18:17:40 +08:00
TangBin
ec63cb5d05 elastic skus query bugfix 2019-12-19 18:17:40 +08:00
Yousong Zhou
8999868e5f httputils: unset DisableCompression=true 2019-12-19 15:04:04 +08:00
Yousong Zhou
ae2a798926 mcclient: proxy setting aware by using httputils' transport 2019-12-19 15:04:04 +08:00
yunion-ci-robot
e4d2d67cd2 Merge pull request #4222 from rainzm/automated-cherry-pick-of-#4221-upstream-release-2.12
Automated cherry pick of #4221: fix(region): Fix the bug of snapshotpolicy's list with details
2019-12-19 11:10:05 +08:00
Rain
72e5e95a0a fix(region): Fix the bug of snapshotpolicy's list with details
snapshotpolicy的GetCustomizeColumns和GetExtraDetails本来写的就有问题,
不过在2.12版本没有展示出来,因为2.13版本参数结构化的原因,details获取
的时候extraDict和jsonDict的更新逻辑有所改变,使得query携带着list第一
个item的数据一直存在整个循环之中,最终数据都是一样的。
2019-12-19 10:50:37 +08:00
Zexi Li
211653ea5f Merge pull request #4218 from rainzm/automated-cherry-pick-of-#4217-upstream-release-2.12
Automated cherry pick of #4217: bugfix(notify): Fix the bug of notify config and verify
2019-12-18 20:49:40 +08:00
Rain
6895168a6c bugfix(notify): Fix the bug of notify config and verify
1. 优化了报错信息
2. 将验证信息的发送由异步改成了同步,这样前端可以方便的展示验证消息发送失败的原因
3. 主动初始化webconsole的配置信息,使得websocket能够马上正常工作
4. 修复了验证信息发送失败之后联系方式状态不正确的bug
5. 去掉有关email回调地址的api
6. 修复了 update config 首次不起作用的 bug
2019-12-18 19:01:52 +08:00
yunion-ci-robot
6b659bec11 Merge pull request #4214 from yousong/automated-cherry-pick-of-#4212-upstream-release-2.12
Automated cherry pick of #4212: guestnetworks: ignore empty preferIfname
2019-12-18 19:01:07 +08:00
Yousong Zhou
2771bd990e guestnetworks: ignore empty preferIfname
Fixes cc02ac74 ("guestnetworks: check ifname uniqueness across different
networks")
2019-12-18 09:17:25 +00:00
yunion-ci-robot
86002e3c33 Merge pull request #4209 from swordqiu/automated-cherry-pick-of-#4207-upstream-release-2.12
Automated cherry pick of #4207: fix: ESXi fakeDC ID should matches any datacenter
2019-12-17 22:38:04 +08:00
Qiu Jian
29597ae0b5 fix: ESXi fakeDC ID should matches any datacenter 2019-12-17 18:50:52 +08:00
yunion-ci-robot
f8813618a2 Merge pull request #4205 from rainzm/automated-cherry-pick-of-#4204-upstream-release-2.12
Automated cherry pick of #4204: fix(notify): Fix the bugs of user cache and some api's params
2019-12-17 17:27:10 +08:00
Rain
f4811f3509 fix(notify): Fix the bugs of user cache and some api's params 2019-12-17 17:20:27 +08:00
yunion-ci-robot
ef14598cea Merge pull request #4179 from ioito/automated-cherry-pick-of-#4177-upstream-release-2.12
Automated cherry pick of #4177: fix: 增强host-list --usable限制
2019-12-17 17:03:03 +08:00
yunion-ci-robot
b686f609f8 Merge pull request #4197 from ioito/automated-cherry-pick-of-#4194-upstream-release-2.12
Automated cherry pick of #4194: fix: 标签过滤和框架保持一致
2019-12-17 16:35:05 +08:00
yunion-ci-robot
504d0e3bdf Merge pull request #4195 from swordqiu/automated-cherry-pick-of-#4193-upstream-release-2.12
Automated cherry pick of #4193: fix: fetch hosts if no permission to access datacenter
2019-12-17 16:23:02 +08:00
Qu Xuan
bfadc7b6e7 fix: 标签过滤和框架保持一致 2019-12-17 15:57:29 +08:00
Qiu Jian
4ea2d318e0 fix: fetch hosts if no permission to access datacenter 2019-12-17 15:56:33 +08:00
Qu Xuan
db98eee265 fix: 增强host-list --usable限制 2019-12-17 14:49:12 +08:00
yunion-ci-robot
dd54ff6c6c Merge pull request #4190 from swordqiu/automated-cherry-pick-of-#4188-upstream-release-2.12
Automated cherry pick of #4188: fix: disabling cloud account should not turn off auto sync switch
2019-12-17 14:02:04 +08:00
yunion-ci-robot
518b05216f Merge pull request #4187 from swordqiu/automated-cherry-pick-of-#4128-upstream-release-2.12
Automated cherry pick of #4128: feaute: object storage support set/get http headers
2019-12-17 14:01:03 +08:00
yunion-ci-robot
e1fe28ab95 Merge pull request #4191 from wanyaoqi/bugfix/wyq/make-mod
release/2.12: make mod
2019-12-17 13:50:03 +08:00
wanyaoqi
6610e57293 make mod 2019-12-17 13:19:00 +08:00
Qiu Jian
5c77969718 fix: disabling cloud account should not turn off auto sync switch 2019-12-17 01:20:23 +08:00
yunion-ci-robot
bc607d8f68 Merge pull request #4169 from ioito/automated-cherry-pick-of-#4168-upstream-release-2.12
Automated cherry pick of #4168: fix: 避免创建安全组规则时未能接收到安全组参数
2019-12-16 23:54:01 +08:00
Qiu Jian
59bed062f8 fix: minor fixes 2019-12-16 23:46:03 +08:00
Qiu Jian
26826e3218 fix: bucket-object-upload not work 2019-12-16 23:13:21 +08:00
Qiu Jian
61e5f5eb74 misc imporvements 2019-12-16 23:09:36 +08:00
Qiu Jian
23096b9164 feaute: object storage support set/get http headers 2019-12-16 21:44:31 +08:00
yunion-ci-robot
7e39c89c4a Merge pull request #4173 from rainzm/automated-cherry-pick-of-#4103-upstream-release-2.12
Automated cherry pick of #4103: feat(notify): Available uname in api & Unified template management
2019-12-16 11:44:01 +08:00
yunion-ci-robot
9867fb7dba Merge pull request #4171 from ioito/automated-cherry-pick-of-#4170-upstream-release-2.12
Automated cherry pick of #4170: fix: 避免频繁同步rds sku信息
2019-12-16 11:26:00 +08:00
Rain
f5cf95fa8b feat(notify): Available uname in api & Unified template management
1. Uname is availbale now in api via adding "uname=true" in query.
So we can use uname in climc which is much more visual and use uid in
web client which avoid time-consuming remote calls that may occur.

2. Previously, the template for the message was managed by the
individual sending components. Now, these templats was managed uniformly
by Notify Service so that we can easily add and remove.

3. Now, failure to send a validation message will trigger a notification
to the user via websocket.
2019-12-16 11:05:45 +08:00
Qu Xuan
08cb039c98 fix: 避免频繁同步rds sku信息 2019-12-16 11:03:21 +08:00
Qu Xuan
0dbd655c17 fix: 避免创建安全组规则时未能接收到安全组参数 2019-12-16 10:22:53 +08:00
yunion-ci-robot
59ec24d13a Merge pull request #4154 from ioito/automated-cherry-pick-of-#4152-upstream-release-2.12
Automated cherry pick of #4152: fix: 私有云同步的sku归属于default region
2019-12-14 11:31:01 +08:00
yunion-ci-robot
d0edfcb351 Merge pull request #4144 from tb365/automated-cherry-pick-of-#4141-upstream-release-2.12
Automated cherry pick of #4141: huawei sync instance offset bugfix
2019-12-14 11:08:00 +08:00
yunion-ci-robot
6d5e1ccab3 Merge pull request #4161 from ioito/automated-cherry-pick-of-#4159-upstream-release-2.12
Automated cherry pick of #4159: fix: 增强host-list --usable限制
2019-12-14 10:53:00 +08:00
Qu Xuan
e12943ea8f fix: 增强host-list --usable限制 2019-12-13 20:29:55 +08:00
Qu Xuan
3d1bd111fb fix: 私有云同步的sku归属于default region 2019-12-13 17:39:33 +08:00
TangBin
fe688862f0 huawei sync instance offset bugfix 2019-12-13 15:46:12 +08:00
yunion-ci-robot
651ded2b8f Merge pull request #4136 from swordqiu/automated-cherry-pick-of-#4134-upstream-release-2.12
Automated cherry pick of #4134: fix: misc bugfix for esxi 20191213
2019-12-13 12:59:00 +08:00
yunion-ci-robot
b10f4d839d Merge pull request #4125 from yousong/automated-cherry-pick-of-#4123-upstream-release-2.12
Automated cherry pick of #4123: guestnetworks: check ifname uniqueness across different networks
2019-12-13 12:57:01 +08:00
Qiu Jian
872a217b5a fix: misc bugfix for esxi 20191213 2019-12-13 12:35:26 +08:00
yunion-ci-robot
2718f39c67 Merge pull request #4131 from ioito/automated-cherry-pick-of-#4129-upstream-release-2.12
Automated cherry pick of #4129: fix: 避免插入时出现duplicate primary key error
2019-12-13 11:38:59 +08:00
Qu Xuan
ab692d05fd fix: 避免插入时出现duplicate primary key error 2019-12-13 10:46:01 +08:00
Yousong Zhou
ca578b4848 guestnetworks: check ifname uniqueness across different networks
With PerformChangeIpAddr, it can happen that a guestnetwork from network
A can take a name that was originally allocated by network B
2019-12-12 15:47:13 +00:00
yunion-ci-robot
40b52e027c Merge pull request #4114 from bistuzx/automated-cherry-pick-of-#4113-upstream-release-2.12
Automated cherry pick of #4113: delete duplicate param brand
2019-12-12 15:35:59 +08:00
张旭
ac5584caae delete duplicate param brand 2019-12-12 15:26:47 +08:00
yunion-ci-robot
2bf1ef40b2 Merge pull request #4110 from bistuzx/automated-cherry-pick-of-#4109-upstream-release-2.12
Automated cherry pick of #4109: add associated_bills & modify meter version
2019-12-12 12:41:01 +08:00
张旭
6886e20ba3 add associated_bills & modify meter version 2019-12-12 11:59:58 +08:00
yunion-ci-robot
54ced32814 Merge pull request #4099 from ioito/automated-cherry-pick-of-#4097-upstream-release-2.12
Automated cherry pick of #4097: fix: 避免zstack参数含有中文,未编码导致请求失败
2019-12-12 11:02:38 +08:00
Qu Xuan
f295ac0066 fix: 避免zstack参数含有中文,未编码导致请求失败 2019-12-11 23:20:56 +08:00
yunion-ci-robot
33924e56cc Merge pull request #4106 from wanyaoqi/automated-cherry-pick-of-#4104-upstream-release-2.12
Automated cherry pick of #4104: fix image upload log event
2019-12-11 22:30:45 +08:00
wanyaoqi
7af90dc0a5 fix image upload log event 2019-12-11 20:41:01 +08:00
yunion-ci-robot
11cc8c7891 Merge pull request #4094 from yousong/automated-cherry-pick-of-#4092-upstream-release-2.12
Automated cherry pick of #4092: loadbalancerbackends: janitor: move to InitializeData
2019-12-11 20:14:43 +08:00
Yousong Zhou
c7c11a6d5a loadbalancerbackends: janitor: move to InitializeData
The janitor only makes sense when inside region service
2019-12-11 08:24:01 +00:00
yunion-ci-robot
c83aeefc09 Merge pull request #4074 from ioito/automated-cherry-pick-of-#4072-upstream-release-2.12
Automated cherry pick of #4072: fix: 导出用户标签不加user:前缀
2019-12-11 15:07:39 +08:00
Yousong Zhou
f40cbe41b6 Automated cherry pick of #4084: httputils: use http.ProxyFromEnvironment by default (#4086)
* vendor: update aliyun-oss-go-sdk to v2.0.4

To use ClientOption oss.HTTPClient

* aliyun: use a http client that respects env proxy settings

* httputils: use http.ProxyFromEnvironment by default
2019-12-10 21:15:47 +08:00
屈轩
345f008916 fix: 子订阅更改项目时也同步更新external project项目信息 (#4070) 2019-12-10 21:12:41 +08:00
Qu Xuan
7be54fefee fix: 导出用户标签不加user:前缀 2019-12-09 21:45:48 +08:00
yunion-ci-robot
0a4d5b63a0 Merge pull request #4059 from ioito/automated-cherry-pick-of-#4057-upstream-release-2.12
Automated cherry pick of #4057: fix: 避免在初始化model时设置rds skuhandler
2019-12-09 10:45:37 +08:00
屈轩
7ce699990a fix: 避免在初始化model时设置rds skuhandler 2019-12-08 12:43:18 +08:00
yunion-ci-robot
a51f74e2d8 Merge pull request #4043 from ioito/automated-cherry-pick-of-#4040-upstream-release-2.12
Automated cherry pick of #4040: fix: 返回region external_id
2019-12-07 17:42:36 +08:00
yunion-ci-robot
1fe3213b6e Merge pull request #4049 from wanyaoqi/automated-cherry-pick-of-#4047-upstream-release-2.12
Automated cherry pick of #4047: region misc bugfix
2019-12-07 17:16:37 +08:00
yunion-ci-robot
cd094ebb32 Merge pull request #4037 from ioito/automated-cherry-pick-of-#4035-upstream-release-2.12
Automated cherry pick of #4035: fix: 避免普通用户添加规则到系统安全组
2019-12-06 23:23:38 +08:00
Qu Xuan
f11f3298d7 fix: 返回region external_id 2019-12-06 20:36:22 +08:00
yunion-ci-robot
41c9dd1c5a Merge pull request #4034 from tb365/automated-cherry-pick-of-#4032-upstream-release-2.12
Automated cherry pick of #4032: image upload bugfix
2019-12-06 18:26:35 +08:00
wanyaoqi
df49302e12 region misc bugfix
- fix capabilities filter disabled account
- fix kvm guest start no logevent
- fix guest restart not set guest status immediately
2019-12-06 17:10:47 +08:00
yunion-ci-robot
1668e2eba0 Merge pull request #4029 from tb365/automated-cherry-pick-of-#4028-upstream-release-2.12
Automated cherry pick of #4028: huawei reset password bugfix
2019-12-06 15:50:34 +08:00
Qu Xuan
f175a3eb4e fix: 避免普通用户添加规则到系统安全组 2019-12-06 14:47:01 +08:00
TangBin
8a1ee68c05 image upload bugfix 2019-12-06 10:06:34 +08:00
yunion-ci-robot
210b8c7349 Merge pull request #4023 from wanyaoqi/automated-cherry-pick-of-#4021-upstream-release-2.12
Automated cherry pick of #4021: add socket used check of deploy server
2019-12-05 14:36:35 +08:00
TangBin
264ffc5cc8 add elastic cache skus capability api 2019-12-05 11:21:48 +08:00
TangBin
235dabdfae elastic cache task bugfix 2019-12-05 11:21:48 +08:00
TangBin
7e04910c9c huawei reset password bugfix 2019-12-05 11:21:48 +08:00
yunion-ci-robot
a40cf5e478 Merge pull request #4001 from tb365/automated-cherry-pick-of-#3999-upstream-release-2.12
Automated cherry pick of #3999: cloudregion cities filter
2019-12-04 16:12:35 +08:00
TangBin
81baf01309 yunionmeta offline data using gzip files disk billing type error fix 2019-12-04 14:50:00 +08:00
TangBin
95e7368f2e cloudregion cities filter 2019-12-04 14:50:00 +08:00
wanyaoqi
d1049ca209 add socket used check of deploy server 2019-12-04 11:41:47 +08:00
yunion-ci-robot
c10748991b Merge pull request #4018 from yousong/automated-cherry-pick-of-#4016-upstream-release-2.12
Automated cherry pick of #4016: hostman: hostinfo: turn off report_ignored_msrs
2019-12-04 11:04:34 +08:00
yunion-ci-robot
ee1dd15bf6 Merge pull request #4014 from swordqiu/automated-cherry-pick-of-#4013-upstream-release-2.12
Automated cherry pick of #4013: fix: network-addresses add created_at column
2019-12-04 10:46:33 +08:00
yunion-ci-robot
cf9f709f9a Merge pull request #3996 from ioito/automated-cherry-pick-of-#3994-upstream-release-2.12
Automated cherry pick of #3994: fix: 避免每次重启region同步rds sku, 避免新加公有云账号未能及时同步sku问题
2019-12-04 10:34:36 +08:00
Yousong Zhou
b1f1ed5048 hostman: hostinfo: turn off report_ignored_msrs
Quote mainline linux commit fab0aa3b ("KVM: x86: Allow suppressing
prints on RDMSR/WRMSR of unhandled MSRs")

> Some guests use these unhandled MSRs very frequently.
> This cause dmesg to be populated with lots of aggregated messages on
> usage of ignored MSRs. As ignore_msrs=true means that the user is
> well-aware his guest use ignored MSRs, allow to also disable the
> prints on their usage.
>
> An example of such guest is ESXi which tends to access a lot to MSR
> 0x34 (MSR_SMI_COUNT) very frequently.
>
> In addition, we have observed this to cause unnecessary delays to
> guest execution. Such an example is ESXi which experience networking
> delays in it's guests (L2 guests) because of these prints (even when
> prints are rate-limited). This can easily be reproduced by pinging
> from one L2 guest to another.  Once in a while, a peak in ping RTT
> will be observed. Removing these unhandled MSR prints solves the
> issue.
>
> Because these prints can help diagnose issues with guests,
> this commit only suppress them by a module parameter instead of
> removing them from code entirely.
2019-12-04 02:23:10 +00:00
yunion-ci-robot
a0d2d1961a Merge pull request #4011 from ioito/automated-cherry-pick-of-#4009-upstream-release-2.12
Automated cherry pick of #4009: fix: 未设置密码时,使用随机密码
2019-12-04 10:16:33 +08:00
yunion-ci-robot
bed7635ff1 Merge pull request #4006 from ioito/automated-cherry-pick-of-#4004-upstream-release-2.12
Automated cherry pick of #4004: fix: 忽略名称条件,只要cpu,mem一致就不再同步
2019-12-04 10:14:34 +08:00
Qiu Jian
40af1680ed fix: network-addresses add created_at column 2019-12-04 10:04:37 +08:00
Qu Xuan
8b067089e1 fix: 未设置密码时,使用随机密码 2019-12-03 19:19:16 +08:00
Qu Xuan
76db8ff957 fix: 忽略名称条件,只要cpu,mem一致就不再同步 2019-12-03 16:29:51 +08:00
yunion-ci-robot
834963ec18 Merge pull request #3984 from yousong/automated-cherry-pick-of-#3978-upstream-release-2.12
Automated cherry pick of #3978: cloudnet: fix validating "action"
2019-12-03 00:40:33 +08:00
Qu Xuan
21bc1ccd42 fix: 避免每次重启region同步rds sku, 避免新加公有云账号未能及时同步sku问题 2019-12-02 17:54:55 +08:00
yunion-ci-robot
6bf4b4f168 Merge pull request #3991 from ioito/automated-cherry-pick-of-#3989-upstream-release-2.12
Automated cherry pick of #3989: fix: avoid index out of range
2019-12-02 17:40:35 +08:00
Zexi Li
37d19a591f Merge pull request #3981 from rainzm/automated-cherry-pick-of-#3979-upstream-release-2.12
Automated cherry pick of #3979: feat(region): Add suspend feature for vmware guest
2019-12-02 10:35:19 +08:00
Qu Xuan
74c8d17700 fix: avoid index out of range 2019-12-02 10:24:32 +08:00
郑雨
c5dfc0dbe8 feat(region): Add suspend feature for vmware guest 2019-11-29 16:10:31 +08:00
Yousong Zhou
f33f1cb540 cloudnet: return non-nil data on validata create data pass 2019-11-29 08:03:07 +00:00
Yousong Zhou
52c8c32d3b climc: cloudnet: fix passing invalid port on creating rules 2019-11-29 08:03:07 +00:00
Yousong Zhou
7c9659225d cloudnet: fix validating "action" 2019-11-29 08:03:07 +00:00
yunion-ci-robot
75b71f6c30 Merge pull request #3971 from rainzm/automated-cherry-pick-of-#3932-upstream-release-2.12
Automated cherry pick of #3932: fix(notify): Check input parameters and return when error occury
2019-11-29 11:49:30 +08:00
郑雨
165a83adfb fix(notify): Check input parameters and return when error occury 2019-11-29 11:16:00 +08:00
yunion-ci-robot
cf50b302a9 Merge pull request #3965 from ioito/automated-cherry-pick-of-#3957-upstream-release-2.12
Automated cherry pick of #3957: fix: 修复rds普通后台下账号权限问题
2019-11-28 18:21:30 +08:00
Qu Xuan
8c238edba6 fix: 修复rds普通后台下账号权限问题 2019-11-28 17:38:14 +08:00
yunion-ci-robot
2a49903ec4 Merge pull request #3960 from wanyaoqi/automated-cherry-pick-of-#3958-upstream-release-2.12
Automated cherry pick of #3958: add lock on host detected offline
2019-11-28 14:15:31 +08:00
wanyaoqi
9cfa0baee4 add lock on host detected offline 2019-11-28 11:22:42 +08:00
yunion-ci-robot
9f5bae0848 Merge pull request #3956 from ioito/automated-cherry-pick-of-#3939-upstream-release-2.12
Automated cherry pick of #3939: fix: 避免解绑eip后可以立即syncstatus操作导致同步eip出现问题
2019-11-27 22:08:29 +08:00
屈轩
f929b7d04c Merge branch 'release/2.12' into automated-cherry-pick-of-#3939-upstream-release-2.12 2019-11-27 21:40:04 +08:00
Qu Xuan
57c21a2eb7 fix: 避免解绑eip后可以立即syncstatus操作导致同步eip出现问题 2019-11-27 21:30:40 +08:00
yunion-ci-robot
3312592a6e Merge pull request #3953 from ioito/automated-cherry-pick-of-#3943-upstream-release-2.12
Automated cherry pick of #3943: fix: remove rds accout,database tenant attr
2019-11-27 21:26:28 +08:00
yunion-ci-robot
115fbc9f6c Merge pull request #3935 from ioito/automated-cherry-pick-of-#3933-upstream-release-2.12
Automated cherry pick of #3933: fix: 抽离disable delete,避免删除账号失败
2019-11-27 21:05:28 +08:00
yunion-ci-robot
1bd2cc7c2a Merge pull request #3949 from wanyaoqi/automated-cherry-pick-of-#3922-upstream-release-2.12
Automated cherry pick of #3922: snapshot show storage type
2019-11-27 20:58:31 +08:00
yunion-ci-robot
d20b7cd8d1 Merge pull request #3942 from tb365/automated-cherry-pick-of-#3940-upstream-release-2.12
Automated cherry pick of #3940: 修复不支持redis的公有云账号会频繁读取oss数据的问题
2019-11-27 20:54:29 +08:00
Zexi Li
2c3e420c9e Merge pull request #3951 from swordqiu/automated-cherry-pick-of-#3950-upstream-release-2.12
Automated cherry pick of #3950: fix: 1. service-config not support key=value pair 2. sync_purge_removed_resources not working
2019-11-27 20:51:58 +08:00
Qu Xuan
fedbcb7e62 fix: remove rds accout,database tenant attr 2019-11-27 20:50:34 +08:00
yunion-ci-robot
2c56e3c0ea Merge pull request #3946 from wanyaoqi/automated-cherry-pick-of-#3944-upstream-release-2.12
Automated cherry pick of #3944: fix image set chksum
2019-11-27 20:48:33 +08:00
Qiu Jian
940626f02b fix: 1. service-config not support key=value pair 2. sync_purge_removed_resources not working 2019-11-27 20:43:53 +08:00
Qu Xuan
6279046908 fix: 抽离disable delete,避免删除账号失败 2019-11-27 20:32:21 +08:00
Zexi Li
ae4ac10a9d Merge pull request #3937 from swordqiu/automated-cherry-pick-of-#3936-upstream-release-2.12
Automated cherry pick of #3936: fix: cloud account may not be visible temporarily after create
2019-11-27 20:25:51 +08:00
TangBin
603deb46b2 elastic cache owner 2019-11-27 19:33:09 +08:00
TangBin
9b338f1ac1 validate prepaid resource delete condition 2019-11-27 19:33:09 +08:00
TangBin
7b95e9ffcb 修复不支持redis的公有云账号会频繁读取oss数据的问题 2019-11-27 19:33:09 +08:00
wanyaoqi
dd932abdea snapshot show storage type 2019-11-27 19:17:10 +08:00
wanyaoqi
4442ec9ef5 fix image set chksum 2019-11-27 18:27:45 +08:00
Qiu Jian
04118849ca fix: cloud account may not be visible temporarily after create 2019-11-27 16:23:26 +08:00
yunion-ci-robot
fb93c05e8c Merge pull request #3909 from ioito/automated-cherry-pick-of-#3907-upstream-release-2.12
Automated cherry pick of #3907: fix: rds创建账号所属项目跟随rds实例
2019-11-27 09:09:27 +08:00
yunion-ci-robot
4c7962d4f9 Merge pull request #3900 from tb365/automated-cherry-pick-of-#3897-upstream-release-2.12
Automated cherry pick of #3897: huawei disk detach bugfix
2019-11-27 09:06:28 +08:00
yunion-ci-robot
cc0ad1bf6c Merge pull request #3912 from ioito/automated-cherry-pick-of-#3910-upstream-release-2.12
Automated cherry pick of #3910: fix: 避免有,Azure更新安全组规则出错
2019-11-27 08:57:28 +08:00
yunion-ci-robot
9d6cf8c9bb Merge pull request #3904 from ioito/automated-cherry-pick-of-#3902-upstream-release-2.12
Automated cherry pick of #3902: fix: 普通后台也返回cloudregion_id信息
2019-11-27 08:54:28 +08:00
Qu Xuan
5e9ca17c0e fix: 避免有,Azure更新安全组规则出错 2019-11-26 20:51:27 +08:00
Qu Xuan
3efd386239 fix: rds创建账号所属项目跟随rds实例 2019-11-26 20:39:03 +08:00
Qu Xuan
d11deb726e fix: 普通后台也返回cloudregion_id信息 2019-11-26 19:12:51 +08:00
Zexi Li
00409a5afd Merge pull request #3893 from swordqiu/automated-cherry-pick-of-#3892-upstream-release-2.12
Automated cherry pick of #3892: fix: baremetal restart fail after deployment
2019-11-26 17:46:02 +08:00
Zexi Li
20895d9d3a Merge pull request #3885 from swordqiu/automated-cherry-pick-of-#3884-upstream-release-2.12
Automated cherry pick of #3884: fix: error in service config format cause service halt
2019-11-26 15:45:39 +08:00
yunion-ci-robot
6858c0bf42 Merge pull request #3878 from wanyaoqi/automated-cherry-pick-of-#3876-upstream-release-2.12
Automated cherry pick of #3876: misc fix
2019-11-26 13:38:27 +08:00
yunion-ci-robot
016812079e Merge pull request #3875 from ioito/automated-cherry-pick-of-#3873-upstream-release-2.12
Automated cherry pick of #3873: fix: 修复rds重置密码未正确接收参数问题
2019-11-26 13:32:28 +08:00
TangBin
98b74e228e huawei disk detach bugfix 2019-11-26 11:41:55 +08:00
Qiu Jian
9e2bf1d7e9 fix: error in service config format cause service halt 2019-11-26 02:55:19 +08:00
Qiu Jian
f91a3d75e1 fix: baremetal restart fail after deployment 2019-11-26 02:42:47 +08:00
Zexi Li
7c5f0144e2 Merge pull request #3890 from swordqiu/automated-cherry-pick-of-#3887-upstream-release-2.12
Automated cherry pick of #3887: fix: host-add-netif requires index
2019-11-26 00:44:31 +08:00
Zexi Li
303c250b5c Merge pull request #3880 from swordqiu/automated-cherry-pick-of-#3879-upstream-release-2.12
Automated cherry pick of #3879: fix: keystone project resource count not set set to zero
2019-11-26 00:41:15 +08:00
Qiu Jian
af4e49da15 fix: host-add-netif requires index 2019-11-25 23:47:49 +08:00
Qiu Jian
39c7b262cd fix: keystone project resource count not set set to zero 2019-11-25 22:26:49 +08:00
wanyaoqi
b99e734ee7 misc fix
- image list filter by uefi
- fix instance sanpshot delete
- guest clean expire server exclude pending deleted servers
- host register abort on network not match
2019-11-25 21:27:18 +08:00
Qu Xuan
a5eb231c7b fix: 修复rds重置密码未正确接收参数问题 2019-11-25 19:19:36 +08:00
yunion-ci-robot
a322c4eccb Merge pull request #3870 from ioito/automated-cherry-pick-of-#3868-upstream-release-2.12
Automated cherry pick of #3868: fix: 避免openstack重装系统,过不了镜像系统盘大小校验
2019-11-25 17:19:28 +08:00
Qu Xuan
392ae25406 fix: 避免openstack重装系统,过不了镜像系统盘大小校验 2019-11-25 15:04:16 +08:00
yunion-ci-robot
ab27e69059 Merge pull request #3865 from zexi/automated-cherry-pick-of-#3863-upstream-release-2.12
Automated cherry pick of #3863: baremetal: fix init baremetals fatal exit
2019-11-25 10:22:27 +08:00
Zexi Li
482f91b598 baremetal: fix init baremetals fatal exit 2019-11-25 09:40:13 +08:00
yunion-ci-robot
24b9d520af Merge pull request #3838 from tb365/automated-cherry-pick-of-#3837-upstream-release-2.12
Automated cherry pick of #3837: redis prepaid instance create bugfix
2019-11-22 22:18:27 +08:00
yunion-ci-robot
fea8acee9c Merge pull request #3859 from ioito/automated-cherry-pick-of-#3857-upstream-release-2.12
Automated cherry pick of #3857: fix: 避免旧密码覆盖新重置的密码
2019-11-22 21:53:26 +08:00
Qu Xuan
6c486bea93 fix: 避免旧密码覆盖新重置的密码 2019-11-22 20:46:29 +08:00
TangBin
f3cab30db7 redis prepaid instance create bugfix 2019-11-22 19:03:53 +08:00
yunion-ci-robot
5faa9d37ad Merge pull request #3842 from wanyaoqi/automated-cherry-pick-of-#3840-upstream-release-2.12
Automated cherry pick of #3840: instance snapshot bugfix
2019-11-22 18:57:25 +08:00
Zexi Li
6c2dfb0d95 Merge pull request #3855 from swordqiu/automated-cherry-pick-of-#3854-upstream-release-2.12
Automated cherry pick of #3854: fix: cloud-region filter by domain not support share_mode
2019-11-22 18:05:31 +08:00
Zexi Li
1deec8fff8 Merge pull request #3849 from swordqiu/automated-cherry-pick-of-#3848-upstream-release-2.12
Automated cherry pick of #3848: fix: user join read-only group response timeout
2019-11-22 18:04:25 +08:00
Qiu Jian
8b8f133bd6 fix: cloud-region filter by domain not support share_mode 2019-11-22 17:44:41 +08:00
Qiu Jian
3c969c5b44 fix: user join read-only group response timeout 2019-11-22 16:19:01 +08:00
Zexi Li
ede5310326 Merge pull request #3845 from rainzm/automated-cherry-pick-of-#3844-upstream-release-2.12
Automated cherry pick of #3844: fix(region): Fix the panic of nil map when syncing snapshotpolicy
2019-11-22 11:38:53 +08:00
郑雨
10b0bdc458 fix(region): Fix the panic of nil map when syncing snapshotpolicy 2019-11-22 10:29:39 +08:00
wanyaoqi
9acd1caf31 instance snapshot bugfix 2019-11-21 20:47:37 +08:00
yunion-ci-robot
98a834ea97 Merge pull request #3835 from wanyaoqi/automated-cherry-pick-of-#3833-upstream-release-2.12
Automated cherry pick of #3833: host complie error
2019-11-21 18:50:26 +08:00
wanyaoqi
6f575a0c36 host complie error 2019-11-21 18:42:03 +08:00
Zexi Li
5ca79012a2 Merge pull request #3826 from wanyaoqi/automated-cherry-pick-of-#3824-upstream-release-2.12
Automated cherry pick of #3824: fix resize disk
2019-11-21 18:22:19 +08:00
yunion-ci-robot
42f788cf60 Merge pull request #3831 from ioito/automated-cherry-pick-of-#3829-upstream-release-2.12
Automated cherry pick of #3829: fix: 清理aliyun rds多余的包年包月参数转换
2019-11-21 16:23:24 +08:00
yunion-ci-robot
f55e44a94c Merge pull request #3817 from tb365/automated-cherry-pick-of-#3813-upstream-release-2.12
Automated cherry pick of #3813: aws upload image bugfix & huawei change default disk type to SAS
2019-11-21 15:37:25 +08:00
Qu Xuan
0b74750d07 fix: 清理aliyun rds多余的包年包月参数转换 2019-11-21 14:59:54 +08:00
wanyaoqi
46d01a63ad fix host register 2019-11-21 10:49:45 +08:00
Zexi Li
3bd0e0578d Merge pull request #3811 from wanyaoqi/automated-cherry-pick-of-#3749-upstream-release-2.12
Automated cherry pick of #3749: hugepage fix
2019-11-21 00:23:09 +08:00
Zexi Li
51f13cb6f1 Merge pull request #3815 from swordqiu/automated-cherry-pick-of-#3809-upstream-release-2.12
Automated cherry pick of #3809: feature: add network-status methods to change status of on-premise network
2019-11-21 00:22:07 +08:00
yunion-ci-robot
ae4a5f73fe Merge pull request #3823 from wanyaoqi/automated-cherry-pick-of-#3798-upstream-release-2.12
Automated cherry pick of #3798: instance snapshot save secgrps
2019-11-21 00:16:23 +08:00
yunion-ci-robot
19db4ea583 Merge pull request #3819 from rainzm/automated-cherry-pick-of-#3786-upstream-release-2.12
Automated cherry pick of #3786: fix(region): Add public/private feature for Guest Image
2019-11-21 00:05:24 +08:00
yunion-ci-robot
a03084b80e Merge pull request #3794 from yousong/automated-cherry-pick-of-#3787-upstream-release-2.12
Automated cherry pick of #3787: networks: 改进创建错误处理
2019-11-20 22:24:24 +08:00
wanyaoqi
2e4c8bdc90 fix resize disk 2019-11-20 22:03:38 +08:00
yunion-ci-robot
16b66b0043 Merge pull request #3807 from tb365/automated-cherry-pick-of-#3806-upstream-release-2.12
Automated cherry pick of #3806: redis acl update bugfix
2019-11-20 21:22:23 +08:00
wanyaoqi
c41df78db9 instance snapshot save secgrps 2019-11-20 21:21:06 +08:00
TangBin
078f7f87d3 add elastic cache extra details 2019-11-20 20:03:20 +08:00
TangBin
724c82c2b1 vm create bugfix 2019-11-20 20:03:20 +08:00
TangBin
11cd177576 eip associate bugfix 2019-11-20 20:03:20 +08:00
TangBin
441e533a43 redis backup restore bugfix 2019-11-20 20:03:20 +08:00
TangBin
26d22319cd redis acl update bugfix 2019-11-20 20:03:20 +08:00
郑雨
0d82b55f79 fix(region): Add public/private feature for Guest Image
Public/private subimages firstly when do public/private for guest image.
Add cmd "guest-image-public" and "guest-image-private".
2019-11-20 19:10:35 +08:00
TangBin
49062aa3f9 aws upload image bugfix & huawei change default disk type to SAS 2019-11-20 19:07:33 +08:00
Qiu Jian
b9c89511a1 feature: add network-status methods to change status of on-premise network 2019-11-20 19:03:37 +08:00
wanyaoqi
cdb676ef90 hugepage fix 2019-11-20 18:44:54 +08:00
Zexi Li
36e853e275 Merge pull request #3803 from rainzm/automated-cherry-pick-of-#3802-upstream-release-2.12
Automated cherry pick of #3802: feat(notify): Add interface contacts/users for Notify
2019-11-20 17:55:26 +08:00
Rain
0218b6ca00 feat(notify): Add interface contacts/users for Notify
The interface "contacts/users" return the users who has contacts or not.
2019-11-20 17:00:19 +08:00
yunion-ci-robot
780d5022d3 Merge pull request #3799 from rainzm/automated-cherry-pick-of-#3772-upstream-release-2.12
Automated cherry pick of #3772: refactor(region): Optimization for snapshotpolicy sync
2019-11-20 16:13:24 +08:00
郑雨
2e06d2ab46 refactor(region): Optimization for snapshotpolicy sync
If the number of added cloudsnapshotpolicy more than 5, we do
clustering for all snapshotpolicies and find suitable one from these.
Otherwise, we find suitable one from database everytimes.
2019-11-20 15:10:47 +08:00
Zexi Li
6bb97acb1e Merge pull request #3796 from swordqiu/automated-cherry-pick-of-#3795-upstream-release-2.12
Automated cherry pick of #3795: fix: recover baremetal status after cdrom operations
2019-11-20 14:35:22 +08:00
Qiu Jian
228fae2d73 fix: recover baremetal status after cdrom operations 2019-11-20 10:13:23 +08:00
Yousong Zhou
7f6435a48a cloudregions: 统一"OneCloud" provider过滤条件 2019-11-20 01:56:16 +00:00
Yousong Zhou
96372ac317 networks: 改进创建错误处理 2019-11-20 01:56:16 +00:00
yunion-ci-robot
ceccc16d86 Merge pull request #3790 from yousong/automated-cherry-pick-of-#3788-upstream-release-2.12
Automated cherry pick of #3788: lbagent: pidfile: add PidFile
2019-11-19 23:23:23 +08:00
yunion-ci-robot
e3582e9bd4 Merge pull request #3783 from yousong/automated-cherry-pick-of-#3778-upstream-release-2.12
Automated cherry pick of #3778: treewide: 避免使用fmt.Print记录日志
2019-11-19 23:16:25 +08:00
Yousong Zhou
26ea46bac2 lbagent: pidfile: remove ReadPidFile() 2019-11-19 12:27:44 +00:00
Yousong Zhou
062cc32f7b lbagent: stop daemons: use agentutils.PidFile 2019-11-19 12:27:44 +00:00
Yousong Zhou
13795ae495 lbagent: haproxy: use agentutils.PidFile 2019-11-19 12:27:44 +00:00
Yousong Zhou
3180fab209 lbagent: gobetween: use agentutils.PidFile 2019-11-19 12:27:44 +00:00
Yousong Zhou
467756521c lbagent: telegraf: use agentutils.PidFile 2019-11-19 12:27:44 +00:00
Yousong Zhou
7a1c1b1daa lbagent: keepalived: use agentutils.PidFile 2019-11-19 12:27:44 +00:00
Yousong Zhou
a648ef13e4 lbagent: pidfile: add PidFile 2019-11-19 12:27:44 +00:00
yunion-ci-robot
bf34e20c3e Merge pull request #3780 from tb365/automated-cherry-pick-of-#3779-upstream-release-2.12
Automated cherry pick of #3779: redis create bugfix & redis acl create bugfix
2019-11-19 19:42:25 +08:00
Yousong Zhou
3834490cca vendor: update sqlchemy 2019-11-19 11:24:57 +00:00
Yousong Zhou
9fb52fd57d treewide: 避免使用fmt.Print记录日志 2019-11-19 11:24:57 +00:00
TangBin
6ea039d2a4 redis create bugfix & redis acl create bugfix 2019-11-19 17:58:07 +08:00
Zexi Li
9506c4a914 Merge pull request #3775 from ioito/automated-cherry-pick-of-#3773-upstream-release-2.12
Automated cherry pick of #3773: fix: 调整存储容量后刷新调度缓存
2019-11-19 16:10:00 +08:00
Qu Xuan
9aa0a87ce8 fix: 调整存储容量后刷新调度缓存 2019-11-19 14:34:34 +08:00
yunion-ci-robot
24c1f2f3ff Merge pull request #3771 from tb365/automated-cherry-pick-of-#3769-upstream-release-2.12
Automated cherry pick of #3769: elastic cache auth_mode status & password reset bugfix
2019-11-19 12:53:25 +08:00
TangBin
894f54bd30 elastic cache auth_mode status & password reset bugfix 2019-11-19 11:48:37 +08:00
Zexi Li
cbcc0f1137 Merge pull request #3764 from swordqiu/automated-cherry-pick-of-#3763-upstream-release-2.12
Automated cherry pick of #3763: fix: cloudaccount list duplicate entries due to join with cloudproviders
2019-11-19 10:49:23 +08:00
Zexi Li
ee1e9cf07f Merge pull request #3733 from yousong/automated-cherry-pick-of-#3731-upstream-release-2.12
Automated cherry pick of #3731: build: 避免并发构建rpm时触发file exists错误
2019-11-19 10:48:08 +08:00
yunion-ci-robot
6b229bec67 Merge pull request #3767 from zexi/automated-cherry-pick-of-#3766-upstream-release-2.12
Automated cherry pick of #3766: region: host list filter by cdrom_boot
2019-11-19 10:13:22 +08:00
Zexi Li
918c2e2fdf region: host list filter by cdrom_boot 2019-11-19 01:45:00 +08:00
yunion-ci-robot
b10e34f90a Merge pull request #3762 from wanyaoqi/automated-cherry-pick-of-#3760-upstream-release-2.12
Automated cherry pick of #3760: allow delete standard and shared image
2019-11-18 21:52:26 +08:00
Qiu Jian
af98bc824b fix: cloudaccount list duplicate entries due to join with cloudproviders 2019-11-18 21:51:26 +08:00
wanyaoqi
f5b871f9a9 allow delete standard and shared image 2019-11-18 21:17:06 +08:00
yunion-ci-robot
5ee81acd38 Merge pull request #3758 from rainzm/automated-cherry-pick-of-#3757-upstream-release-2.12
Automated cherry pick of #3757: fix(region): Cluster automatically when syncing snapshotpolicy
2019-11-18 21:10:23 +08:00
郑雨
07b8db5bd1 fix(region): Cluster automatically when syncing snapshotpolicy
Fix two bug about listing snapshotpolicycache:
1. no accont info 2. filter error
The func 'Key' of snapshotpolicy generate a Identification for
snapshotpolicy. If the key of cloud snapshotpolicy is same with local
snaphotpolicy, the cloud sp became a cache of this local sp.
2019-11-18 20:54:11 +08:00
yunion-ci-robot
38950466e2 Merge pull request #3756 from wanyaoqi/automated-cherry-pick-of-#3754-upstream-release-2.12
Automated cherry pick of #3754: fix login key on clone
2019-11-18 19:44:23 +08:00
yunion-ci-robot
f7767adc4d Merge pull request #3722 from tb365/automated-cherry-pick-of-#3721-upstream-release-2.12
Automated cherry pick of #3721: add elastic cache sku default policy
2019-11-18 19:43:24 +08:00
yunion-ci-robot
2bbaf4e81a Merge pull request #3751 from swordqiu/automated-cherry-pick-of-#3750-upstream-release-2.12
Automated cherry pick of #3750: fix: quick fix user password verification failure
2019-11-18 19:41:25 +08:00
yunion-ci-robot
391dabc4f9 Merge pull request #3716 from tb365/automated-cherry-pick-of-#3711-upstream-release-2.12
Automated cherry pick of #3711: create vm attach eip fix
2019-11-18 19:32:24 +08:00
wanyaoqi
0fd5ff9ecb fix login key on clone 2019-11-18 19:24:17 +08:00
yunion-ci-robot
17dfc3d34d Merge pull request #3691 from tb365/automated-cherry-pick-of-#3690-upstream-release-2.12
Automated cherry pick of #3690: remove useless aws instance type config
2019-11-18 19:22:22 +08:00
yunion-ci-robot
40acdc8c3f Merge pull request #3714 from ioito/automated-cherry-pick-of-#3712-upstream-release-2.12
Automated cherry pick of #3712: fix: 避免匹配到售罄的套餐
2019-11-18 19:14:24 +08:00
Zexi Li
ce73403de9 Merge pull request #3753 from swordqiu/automated-cherry-pick-of-#3679-upstream-release-2.12
Automated cherry pick of #3679: feature: cloud account share_mode support
2019-11-18 17:48:34 +08:00
Qiu Jian
83769d4d58 feature: cloud account share_mode support 2019-11-18 17:45:51 +08:00
TangBin
33a3dbeaaa create vm attach eip fix 2019-11-18 17:44:03 +08:00
TangBin
451de216a0 huawei elastic change spec bugfix 2019-11-18 17:33:14 +08:00
TangBin
13ca3a82b8 add elastic cache sku default policy 2019-11-18 17:33:14 +08:00
Qiu Jian
b6d7e9f238 fix: quick fix user password verification failure 2019-11-18 16:58:36 +08:00
yunion-ci-robot
d5a9e68a71 Merge pull request #3747 from rainzm/automated-cherry-pick-of-#3746-upstream-release-2.12
Automated cherry pick of #3746: fix(region): Set name and status when creating and syncing snapshotpolicycache
2019-11-18 16:15:23 +08:00
郑雨
49cf5caec0 fix(region): Set name and status when creating and syncing snapshotpolicycache
That snapshotpolicycaches has same name is ok. Set name and status
directly when creating and syncing snapshotpolicycache.
2019-11-18 15:38:43 +08:00
yunion-ci-robot
dee8c2d705 Merge pull request #3744 from swordqiu/automated-cherry-pick-of-#3743-upstream-release-2.12
Automated cherry pick of #3743: fix: filter out expire user passwords
2019-11-18 14:50:23 +08:00
yunion-ci-robot
24216d97ca Merge pull request #3729 from swordqiu/automated-cherry-pick-of-#3728-upstream-release-2.12
Automated cherry pick of #3728: fix: always lock login-failed user when PasswordErrorLockCount not initialized
2019-11-18 14:49:22 +08:00
Qiu Jian
7d1d6469d9 fix: filter out expire user passwords 2019-11-18 14:33:24 +08:00
yunion-ci-robot
7754887614 Merge pull request #3741 from rainzm/automated-cherry-pick-of-#3739-upstream-release-2.12
Automated cherry pick of #3739: fix(region): Fix the return value when sycning snapshotpolicy
2019-11-18 14:31:26 +08:00
郑雨
a6dccf3fb6 fix(region): Fix the return value when sycning snapshotpolicy
This is a big bug: the return value of SyncSnapshotPolicies is a empty
value.
2019-11-18 12:50:58 +08:00
yunion-ci-robot
7c4d703271 Merge pull request #3737 from rainzm/automated-cherry-pick-of-#3736-upstream-release-2.12
Automated cherry pick of #3736: fix(region): Add snapshotpolicycache module for yunionapi
2019-11-18 12:46:24 +08:00
郑雨
96d89e4ec7 fix(region): Add snapshotpolicycache module for yunionapi
Remove extra 'models.SnapshotPolicyCache' in the first loop in
handlers.go.
Registered the moduels of snapshotpolicycache for yunionapi.
2019-11-18 11:40:16 +08:00
Yousong Zhou
92e492e00e build: 避免并发构建rpm时触发file exists错误 2019-11-18 02:44:08 +00:00
yunion-ci-robot
6b9a50eb5b Merge pull request #3702 from ioito/automated-cherry-pick-of-#3700-upstream-release-2.12
Automated cherry pick of #3700: fix: 避免仅返回一个zone信息
2019-11-18 09:18:22 +08:00
Qiu Jian
94e3217702 fix: always lock login-failed user when PasswordErrorLockCount not initialized 2019-11-18 08:53:29 +08:00
Zexi Li
db9ce1114e Merge pull request #3726 from swordqiu/automated-cherry-pick-of-#3724-upstream-release-2.12
Automated cherry pick of #3724: update vendor for qcloud cos-go-sdk
2019-11-18 00:36:11 +08:00
Qiu Jian
5f586ec8cd update vendor for qcloud cos-go-sdk 2019-11-16 15:20:25 +08:00
yunion-ci-robot
ee5559801f Merge pull request #3718 from ioito/automated-cherry-pick-of-#3699-upstream-release-2.12
Automated cherry pick of #3699: fix: cpuCmtbound sync for zstack
2019-11-15 20:22:21 +08:00
Qu Xuan
b4c4a14af0 fix: cpuCmtbound sync for zstack 2019-11-15 19:08:01 +08:00
Zexi Li
ec8d401cf1 Merge pull request #3697 from swordqiu/automated-cherry-pick-of-#3696-upstream-release-2.12
Automated cherry pick of #3696: fix: network-delete may fail immidiately after deleting vm
2019-11-15 18:41:07 +08:00
Qu Xuan
48c754b194 fix: 避免匹配到售罄的套餐 2019-11-15 17:52:35 +08:00
yunion-ci-robot
2b2b99a950 Merge pull request #3708 from ioito/automated-cherry-pick-of-#3593-upstream-release-2.12
Automated cherry pick of #3593: fix: 避免公有云绑定秘钥后解密密码为空
2019-11-15 17:18:21 +08:00
yunion-ci-robot
54eed99893 Merge pull request #3671 from tb365/automated-cherry-pick-of-#3670-upstream-release-2.12
Automated cherry pick of #3670: * 修复redis新建无密码及公网访问地址未同步的问题
2019-11-15 16:54:21 +08:00
Qu Xuan
01b6ff6516 fix: 避免公有云绑定秘钥后解密密码为空 2019-11-15 16:15:05 +08:00
Zexi Li
6631b2cc65 Merge pull request #3695 from wanyaoqi/automated-cherry-pick-of-#3693-upstream-release-2.12
Automated cherry pick of #3693: bm register find network
2019-11-15 16:03:07 +08:00
yunion-ci-robot
ea7aaa640a Merge pull request #3689 from tb365/automated-cherry-pick-of-#3687-upstream-release-2.12
Automated cherry pick of #3687: elastic cache purge bugfix
2019-11-15 15:56:21 +08:00
Zexi Li
addfe349f1 Merge pull request #3705 from zexi/automated-cherry-pick-of-#3703-upstream-release-2.12
Automated cherry pick of #3703: webconsole: skip spice access interval check
2019-11-15 15:06:49 +08:00
Zexi Li
36468628cb webconsole: skip spice access interval check 2019-11-15 15:06:45 +08:00
Qu Xuan
d86171f906 fix: 避免仅返回一个zone信息 2019-11-15 14:36:56 +08:00
Qiu Jian
8361b96ef8 fix: network-delete may fail immidiately after deleting vm 2019-11-15 12:40:44 +08:00
wanyaoqi
45177492a5 bm register find network 2019-11-15 12:08:47 +08:00
TangBin
ba2da6707f huawei config vm config fix 2019-11-15 11:45:07 +08:00
TangBin
6efd09592f remove useless aws instance type config 2019-11-15 11:45:06 +08:00
TangBin
4141bd2b7d elastic cache purge bugfix 2019-11-15 11:38:28 +08:00
TangBin
5adeeb145a * 修复redis新建无密码及公网访问地址未同步的问题 2019-11-15 11:34:02 +08:00
yunion-ci-robot
02a8de8993 Merge pull request #3686 from ioito/automated-cherry-pick-of-#3684-upstream-release-2.12
Automated cherry pick of #3684: fix: 避免有些云不能创建default名称安全组
2019-11-15 10:59:20 +08:00
yunion-ci-robot
353e7658dc Merge pull request #3682 from swordqiu/automated-cherry-pick-of-#3681-upstream-release-2.12
Automated cherry pick of #3681: fix: baremetal server rebuild root fail to cache image
2019-11-15 10:32:21 +08:00
Qu Xuan
b4e712fe7d fix: 避免有些云不能创建default名称安全组 2019-11-15 10:31:28 +08:00
yunion-ci-robot
8b9d903098 Merge pull request #3659 from tb365/automated-cherry-pick-of-#3657-upstream-release-2.12
Automated cherry pick of #3657: user-project create api bugfix
2019-11-15 09:35:22 +08:00
Qiu Jian
95dd972ff2 fix: baremetal server rebuild root fail to cache image 2019-11-15 02:35:02 +08:00
yunion-ci-robot
4fcfbf8c08 Merge pull request #3668 from wanyaoqi/automated-cherry-pick-of-#3666-upstream-release-2.12
Automated cherry pick of #3666: gpu add export keys
2019-11-14 23:56:22 +08:00
yunion-ci-robot
fd0eb3e12c Merge pull request #3675 from ioito/automated-cherry-pick-of-#3673-upstream-release-2.12
Automated cherry pick of #3673: fix: 避免region同名问题
2019-11-14 22:07:21 +08:00
yunion-ci-robot
d76f9635f0 Merge pull request #3665 from ioito/automated-cherry-pick-of-#3663-upstream-release-2.12
Automated cherry pick of #3663: fix: aws 安全组desc为必传字段
2019-11-14 21:59:21 +08:00
Qu Xuan
26bc4b10ad fix: 避免region同名问题 2019-11-14 18:31:01 +08:00
wanyaoqi
f9e57aad03 gpu add export keys 2019-11-14 16:23:45 +08:00
Qu Xuan
e6f12a7d35 fix: aws 安全组desc为必传字段 2019-11-14 14:37:19 +08:00
yunion-ci-robot
50fc75aab6 Merge pull request #3661 from swordqiu/automated-cherry-pick-of-#3660-upstream-release-2.12
Automated cherry pick of #3660: fix: check password complexity even if password length is zero
2019-11-14 13:11:20 +08:00
Qiu Jian
5aab6a4672 fix: check password complexity even if password length is zero 2019-11-14 12:55:55 +08:00
yunion-ci-robot
004f7f78ba Merge pull request #3655 from swordqiu/automated-cherry-pick-of-#3654-upstream-release-2.12
Automated cherry pick of #3654: fix: send full reason body for *_fail_reason
2019-11-14 12:41:19 +08:00
yunion-ci-robot
eb92a59297 Merge pull request #3652 from swordqiu/automated-cherry-pick-of-#3649-upstream-release-2.12
Automated cherry pick of #3649: fix: agent-list show zone info
2019-11-14 12:39:20 +08:00
yunion-ci-robot
8ddc46a09f Merge pull request #3647 from wanyaoqi/automated-cherry-pick-of-#3645-upstream-release-2.12
Automated cherry pick of #3645: baremetal register optimize
2019-11-14 12:37:20 +08:00
TangBin
4a3088e23e user-project create api bugfix 2019-11-14 11:56:21 +08:00
Qiu Jian
4b1ae7ee6a fix: send full reason body for *_fail_reason 2019-11-14 11:35:10 +08:00
yunion-ci-robot
6155e6b83e Merge pull request #3608 from yousong/automated-cherry-pick-of-#3606-upstream-release-2.12
Automated cherry pick of #3606: influxdb: 记录结果中的tags
2019-11-14 00:25:20 +08:00
yunion-ci-robot
52542c4797 Merge pull request #3638 from ioito/automated-cherry-pick-of-#3636-upstream-release-2.12
Automated cherry pick of #3636: fix: 避免associationtype异常
2019-11-14 00:10:20 +08:00
Qiu Jian
23288535f0 fix: agent-list show zone info 2019-11-13 23:33:45 +08:00
yunion-ci-robot
d94401c81f Merge pull request #3580 from ioito/automated-cherry-pick-of-#3578-upstream-release-2.12
Automated cherry pick of #3578: fix: 创建数据库时指定账号权限时,避免数据库出现中间状态
2019-11-13 20:31:21 +08:00
wanyaoqi
0a91b14974 baremetal register optimize 2019-11-13 20:24:38 +08:00
Qu Xuan
a349f18ac8 fix: 避免associationtype异常 2019-11-13 19:57:17 +08:00
yunion-ci-robot
0122a10d13 Merge pull request #3596 from tb365/automated-cherry-pick-of-#3595-upstream-release-2.12
Automated cherry pick of #3595: elastic cache sync bugfix
2019-11-13 19:50:19 +08:00
yunion-ci-robot
608a81f23d Merge pull request #3633 from ioito/automated-cherry-pick-of-#3631-upstream-release-2.12
Automated cherry pick of #3631: fix: 避免匹配到64导致version是6
2019-11-13 19:46:19 +08:00
yunion-ci-robot
13e9e0bac2 Merge pull request #3623 from swordqiu/automated-cherry-pick-of-#3621-upstream-release-2.12
Automated cherry pick of #3621: fix: nic teaming/bonding not working properly
2019-11-13 17:49:19 +08:00
Zexi Li
1967734321 Merge pull request #3643 from zexi/automated-cherry-pick-of-#3641-upstream-release-2.12
Automated cherry pick of #3641: climc: fix k8s sa not register
2019-11-13 16:49:53 +08:00
Zexi Li
0472ad2099 climc: fix k8s sa not register 2019-11-13 16:49:01 +08:00
Qu Xuan
1b86e01fa0 fix: 避免匹配到64导致version是6 2019-11-13 14:50:20 +08:00
yunion-ci-robot
a10dbb815a Merge pull request #3629 from rainzm/automated-cherry-pick-of-#3628-upstream-release-2.12
Automated cherry pick of #3628: fix(region): Init database table 'guestgroup_tbl'
2019-11-13 11:37:19 +08:00
郑雨
fb667b4fa1 fix(region): Init database table 'guestgroup_tbl'
That delete models.GroupguestManager in the second loop of InitHandlers
because of useless Groupguest's api cause table 'guestgroup_tbl' will
not init in a new system. So add models.GroupguestManager to the first
loop to accomplish the goal.
2019-11-13 11:34:11 +08:00
TangBin
9731377ad7 elastic cache sync bugfix 2019-11-13 11:09:15 +08:00
Yousong Zhou
16d4459c87 climc: 添加lblistener{,rule}-backend-status命令 2019-11-13 02:42:09 +00:00
Yousong Zhou
df785375cd lblis, lbr: 增加查询后端状态接口 2019-11-13 02:42:09 +00:00
Yousong Zhou
064ee8cba5 lbbackends: 使用yunion.io/pkg/errors 2019-11-13 02:42:09 +00:00
Yousong Zhou
82ba269249 influxdb: 记录结果中的tags 2019-11-13 02:42:09 +00:00
Qu Xuan
90bfc06ddc fix: 创建数据库时指定账号权限时,避免数据库出现中间状态 2019-11-13 10:23:07 +08:00
yunion-ci-robot
14697aea1f Merge pull request #3613 from wanyaoqi/automated-cherry-pick-of-#3611-upstream-release-2.12
Automated cherry pick of #3611: fix resie fs
2019-11-13 01:40:19 +08:00
yunion-ci-robot
4f42e496d1 Merge pull request #3600 from ioito/automated-cherry-pick-of-#3598-upstream-release-2.12
Automated cherry pick of #3598: fix: 支持创建时指定多个安全组
2019-11-13 01:30:19 +08:00
yunion-ci-robot
8c8c2220ca Merge pull request #3592 from wanyaoqi/automated-cherry-pick-of-#3577-upstream-release-2.12
Automated cherry pick of #3577: postpaid expire support premise
2019-11-13 01:18:20 +08:00
yunion-ci-robot
504442e11e Merge pull request #3617 from yousong/automated-cherry-pick-of-#3523-upstream-release-2.12
Automated cherry pick of #3523: lockman: log bug with Errorf
2019-11-13 00:50:19 +08:00
yunion-ci-robot
c8add2b3e4 Merge pull request #3574 from ioito/automated-cherry-pick-of-#3569-upstream-release-2.12
Automated cherry pick of #3569: fix: avolid duplicate secgroup name error when create secgroup
2019-11-13 00:41:20 +08:00
Qiu Jian
e577937dc7 fix: nic teaming/bonding not working properly 2019-11-13 00:10:01 +08:00
Yousong Zhou
1912ba138b vendor: restore a few files to locally managed version 2019-11-12 15:24:40 +00:00
Yousong Zhou
6b4cb1d1b2 vendor: update 2019-11-12 15:24:40 +00:00
yunion-ci-robot
7b8ddc12d3 Merge pull request #3604 from swordqiu/automated-cherry-pick-of-#3603-upstream-release-2.12
Automated cherry pick of #3603: fix: create baremetal server with iso, baremetal register support redfish
2019-11-12 21:44:26 +08:00
yunion-ci-robot
fe5cf5c175 Merge pull request #3584 from ioito/automated-cherry-pick-of-#3582-upstream-release-2.12
Automated cherry pick of #3582: fix: 避免Openstack越过存储检查
2019-11-12 21:43:33 +08:00
Yousong Zhou
d9c6cc2dc4 lockman: test multiple lockman 2019-11-12 13:26:09 +00:00
Yousong Zhou
4348939bcd cloudcommon: options: new options for etcd lockman 2019-11-12 13:26:09 +00:00
Yousong Zhou
2e5cc6bb85 lockman: distributed lockman with etcd 2019-11-12 13:26:09 +00:00
Yousong Zhou
789b09d092 lockman: log bug with Errorf 2019-11-12 13:26:09 +00:00
wanyaoqi
20fb6991c9 fix resie fs 2019-11-12 21:07:35 +08:00
Qiu Jian
30e3c6ac14 fix: create baremetal server with iso, baremetal register support redfish 2019-11-12 20:16:36 +08:00
Qu Xuan
da3122840e fix: 支持创建时指定多个安全组 2019-11-12 20:02:21 +08:00
Zexi Li
5dfdb10a93 Merge pull request #3587 from rainzm/automated-cherry-pick-of-#3576-upstream-release-2.12
Automated cherry pick of #3576: fix(region): Check if group and guest belong to same project
2019-11-12 17:48:02 +08:00
wanyaoqi
1d90829e3a postpaid expire support premise 2019-11-12 17:25:42 +08:00
郑雨
f38a4ec148 fix(region): Check if group and guest belong to same project
If group and guest belong to different projects, return httperrors.ForbiddenError.
Fix the bug that disabled instance group can be binded.
2019-11-12 16:41:45 +08:00
Qu Xuan
fa649cf1c4 fix: 避免Openstack越过存储检查 2019-11-12 15:17:24 +08:00
Qu Xuan
f9639714e4 fix: avolid duplicate secgroup name error when create secgroup 2019-11-12 10:13:08 +08:00
yunion-ci-robot
e4d6d88f99 Merge pull request #3538 from ioito/automated-cherry-pick-of-#3537-upstream-release-2.12
Automated cherry pick of #3537: fix: 添加rds zone返回信息
2019-11-12 01:02:18 +08:00
yunion-ci-robot
44845c2992 Merge pull request #3572 from ioito/automated-cherry-pick-of-#3571-upstream-release-2.12
Automated cherry pick of #3571: fix: 赋予rds账号权限失败后进行重试
2019-11-12 00:57:20 +08:00
yunion-ci-robot
334ffc4134 Merge pull request #3568 from wanyaoqi/automated-cherry-pick-of-#3566-upstream-release-2.12
Automated cherry pick of #3566: fix instance-snapshot create
2019-11-12 00:55:17 +08:00
yunion-ci-robot
2573715ca5 Merge pull request #3563 from tb365/automated-cherry-pick-of-#3558-upstream-release-2.12
Automated cherry pick of #3558: huawei disk attach bugfix
2019-11-12 00:31:18 +08:00
Qu Xuan
28367a8043 fix: 赋予rds账号权限失败后进行重试 2019-11-11 21:38:19 +08:00
yunion-ci-robot
6b33fa643c Merge pull request #3544 from ioito/automated-cherry-pick-of-#3535-upstream-release-2.12
Automated cherry pick of #3535: fix: remove private cloud server sku brand and provider attribute
2019-11-11 21:05:19 +08:00
wanyaoqi
cb79971c1e fix instance-snapshot create 2019-11-11 19:36:45 +08:00
yunion-ci-robot
81051293b3 Merge pull request #3560 from tb365/automated-cherry-pick-of-#3557-upstream-release-2.12
Automated cherry pick of #3557: redis sync fix
2019-11-11 17:41:17 +08:00
Qu Xuan
2047cf53e2 fix: 添加rds zone返回信息 2019-11-11 16:04:43 +08:00
yunion-ci-robot
82e8e9edcb Merge pull request #3556 from swordqiu/automated-cherry-pick-of-#3555-upstream-release-2.12
Automated cherry pick of #3555: feature: keystone add service config API and allow config services by API
2019-11-11 15:53:17 +08:00
tangbin
42cef92b51 add elastic cache delete protect 2019-11-11 14:18:37 +08:00
tangbin
93a99771ea redis sync fix 2019-11-11 14:18:37 +08:00
yunion-ci-robot
ca8c93212f Merge pull request #3567 from rainzm/automated-cherry-pick-of-#3545-upstream-release-2.12
Automated cherry pick of #3545: fix(image): Change the update process of guest image
2019-11-11 12:08:19 +08:00
郑雨
2dabbb575f fix(image): Change the update process of guest image
At the very beginning, updating subimage of guest image is a
asynchronous process so that a intermediate state was need for web
client. But guest image's status has a little particularity. Now, the
update process is synchronous and use errgroup.Group to update subimage
in a concurrent manner.
Add 'size' and 'status' for subimages belong to a guest image.
2019-11-11 11:56:39 +08:00
yunion-ci-robot
9827b3ded5 Merge pull request #3565 from swordqiu/automated-cherry-pick-of-#3564-upstream-release-2.12
Automated cherry pick of #3564: fix: cleanup host/baremetal status code
2019-11-11 11:23:20 +08:00
Qiu Jian
375a18b4ca fix: cleanup host/baremetal status code 2019-11-11 11:17:11 +08:00
tangbin
48b121398c huawei disk attach bugfix 2019-11-11 10:38:59 +08:00
yunion-ci-robot
132b1076a8 Merge pull request #3551 from swordqiu/automated-cherry-pick-of-#3550-upstream-release-2.12
Automated cherry pick of #3550: fix: simplify object delete-fail-reason message
2019-11-11 10:00:17 +08:00
yunion-ci-robot
aa012568c7 Merge pull request #3549 from swordqiu/automated-cherry-pick-of-#3548-upstream-release-2.12
Automated cherry pick of #3548: fix: normalize baremetal sysinfo manufacture
2019-11-11 09:58:18 +08:00
yunion-ci-robot
d1c8b0317d Merge pull request #3547 from swordqiu/automated-cherry-pick-of-#3546-upstream-release-2.12
Automated cherry pick of #3546: fix: unify network used address query
2019-11-11 09:57:19 +08:00
yunion-ci-robot
774f004077 Merge pull request #3543 from swordqiu/automated-cherry-pick-of-#3542-upstream-release-2.12
Automated cherry pick of #3542: fix: server-list details report nil pointer panic
2019-11-11 09:53:18 +08:00
Qiu Jian
e6e71b0072 fix: normalize baremetal sysinfo manufacture 2019-11-10 03:52:14 +08:00
Qiu Jian
38f7cea4de feature: keystone add service config API and allow config services by API 2019-11-10 03:37:28 +08:00
Qiu Jian
bb149a364d fix: simplify object delete-fail-reason message 2019-11-08 22:56:05 +08:00
Qiu Jian
eb0e0abfd8 fix: unify network used address query 2019-11-08 21:04:21 +08:00
Qu Xuan
2979327e03 fix: remove private cloud server sku brand and provider attribute 2019-11-08 18:20:22 +08:00
Qiu Jian
3d94db7057 fix: server-list details report nil pointer panic 2019-11-08 18:13:50 +08:00
Zexi Li
020fcae072 Merge pull request #3540 from zexi/automated-cherry-pick-of-#3539-upstream-release-2.12
Automated cherry pick of #3539: climc: k8s api update
2019-11-08 18:04:34 +08:00
Zexi Li
cc3697b5fc climc: k8s api update 2019-11-08 17:54:54 +08:00
yunion-ci-robot
8982e3726a Merge pull request #3533 from tb365/automated-cherry-pick-of-#3524-upstream-release-2.12
Automated cherry pick of #3524: 1.elb certificate usable fix 2.aws tcp&udp backendgroup create bugfix 3.aws backendgroup create bugfix 4.aws create listener bugfix 5.aws delete loadbalancer bugfix 6.aws backendgroup cache query fix 7.aws delete loadbalancer listener fix 8.aws create backendgroup fix 9.aws delete backend fix 10.loadbalancer listener rule add is_default column 11.huawei elb backendgroup sync fix 12.aws https listener sync fix
2019-11-08 17:46:15 +08:00
yunion-ci-robot
596b453e6f Merge pull request #3503 from tb365/automated-cherry-pick-of-#3423-upstream-release-2.12
Automated cherry pick of #3423: add rpc createuser & createproject
2019-11-08 17:15:16 +08:00
TangBin
c47a9db2a6 add rpc createuser & createproject 2019-11-08 16:21:53 +08:00
yunion-ci-robot
f2a14d0191 Merge pull request #3520 from ioito/automated-cherry-pick-of-#3486-upstream-release-2.12
Automated cherry pick of #3486: fix: 从aliyun对象存储上面同步dbinstance sku信息
2019-11-08 16:14:16 +08:00
Zexi Li
5469b661c3 Merge pull request #3499 from swordqiu/automated-cherry-pick-of-#3498-upstream-release-2.12
Automated cherry pick of #3498: fix: reserve probed ipaddr
2019-11-08 14:55:01 +08:00
yunion-ci-robot
466264f375 Merge pull request #3529 from zexi/automated-cherry-pick-of-#3528-upstream-release-2.12
Automated cherry pick of #3528: webconsole: fix baremetal ipmitool sol payload active on another session
2019-11-08 13:35:15 +08:00
TangBin
7a14386505 1.elb certificate usable fix 2.aws tcp&udp backendgroup create bugfix 3.aws backendgroup create bugfix 4.aws create listener bugfix 5.aws delete loadbalancer bugfix 6.aws backendgroup cache query fix 7.aws delete loadbalancer listener fix 8.aws create backendgroup fix 9.aws delete backend fix 10.loadbalancer listener rule add is_default column 11.huawei elb backendgroup sync fix 12.aws https listener sync fix 2019-11-08 11:49:16 +08:00
yunion-ci-robot
ea77dd581e Merge pull request #3525 from ioito/automated-cherry-pick-of-#3518-upstream-release-2.12
Automated cherry pick of #3518: fix: 虚拟机漂移后设置新的hostId
2019-11-08 11:46:17 +08:00
Zexi Li
dd5a16b0d0 webconsole: fix baremetal ipmitool sol payload active on another session 2019-11-08 11:37:01 +08:00
Qu Xuan
8cbfd26419 fix: 从aliyun对象存储上面同步dbinstance sku信息 2019-11-08 11:15:00 +08:00
yunion-ci-robot
6a2b3a06eb Merge pull request #3519 from ioito/automated-cherry-pick-of-#3505-upstream-release-2.12
Automated cherry pick of #3505: fix: 避免因backup删除失败导致删除rds无限失败
2019-11-08 11:07:16 +08:00
Qu Xuan
e5bb7abf9f fix: 虚拟机漂移后设置新的hostId 2019-11-08 10:46:24 +08:00
yunion-ci-robot
839112e721 Merge pull request #3522 from swordqiu/automated-cherry-pick-of-#3521-upstream-release-2.12
Automated cherry pick of #3521: fix: baremetal failed to register due to duplicate storagecache
2019-11-08 10:30:15 +08:00
yunion-ci-robot
ac71a92f45 Merge pull request #3515 from ioito/automated-cherry-pick-of-#3492-upstream-release-2.12
Automated cherry pick of #3492: fix: 避免version输出不正确
2019-11-08 00:55:15 +08:00
Qiu Jian
ae00ae0afa fix: reserve probed ipaddr 2019-11-08 00:46:22 +08:00
Qiu Jian
848f8046a0 fix: baremetal failed to register due to duplicate storagecache 2019-11-07 22:45:20 +08:00
Qu Xuan
6c32814d2b fix: 避免因backup删除失败导致删除rds无限失败 2019-11-07 21:34:19 +08:00
yunion-ci-robot
14f8f39007 Merge pull request #3514 from ioito/automated-cherry-pick-of-#3500-upstream-release-2.12
Automated cherry pick of #3500: fix: 避免dbinstance created_at为空
2019-11-07 17:55:17 +08:00
Qu Xuan
0d410b0fa2 fix: 避免version输出不正确 2019-11-07 17:42:40 +08:00
Qu Xuan
8cf6328830 fix: 避免dbinstance created_at为空 2019-11-07 17:39:58 +08:00
yunion-ci-robot
17b3c83719 Merge pull request #3511 from ioito/automated-cherry-pick-of-#3510-upstream-release-2.12
Automated cherry pick of #3510: fix: 避免删除安全组失败
2019-11-07 17:22:15 +08:00
Zexi Li
4a6294bf32 Merge pull request #3506 from rainzm/automated-cherry-pick-of-#3502-upstream-release-2.12
Automated cherry pick of #3502: fix: Fix that fail to create vm with unforced instance group
2019-11-07 17:09:38 +08:00
Zexi Li
df26f2b35d Merge pull request #3509 from wanyaoqi/automated-cherry-pick-of-#3493-upstream-release-2.12
Automated cherry pick of #3493: fix isolated device attach
2019-11-07 17:08:34 +08:00
Qu Xuan
425deaeff3 fix: 避免删除安全组失败 2019-11-07 17:00:51 +08:00
yunion-ci-robot
db9b415dca Merge pull request #3504 from rainzm/automated-cherry-pick-of-#3491-upstream-release-2.12
Automated cherry pick of #3491: feat(region): Add list and delelte apis for snapshot policy cache
2019-11-07 16:56:16 +08:00
wanyaoqi
738f41ef26 add auto_start after detach or attach isolated device 2019-11-07 16:54:40 +08:00
wanyaoqi
fe7927d834 instance snapshot fix 2019-11-07 16:54:40 +08:00
wanyaoqi
63545e9012 fix isolated device attach 2019-11-07 16:54:40 +08:00
yunion-ci-robot
2119345bc8 Merge pull request #3508 from rainzm/automated-cherry-pick-of-#3507-upstream-release-2.12
Automated cherry pick of #3507: fix(region): Pass 'auto_start' parameter to GuestSaveGuestImageTask if have
2019-11-07 16:54:17 +08:00
郑雨
80f36e4bbc fix(region): Pass 'auto_start' parameter to GuestSaveGuestImageTask if have
The parameter 'auto_start' from client was not pass to GuestSaveGuestImageTask.
2019-11-07 16:41:30 +08:00
郑雨
8d7305953a modify import package order 2019-11-07 16:16:11 +08:00
郑雨
5f68ccd930 fix: Fix that fail to create vm with unforced instance group
1. This is a bug because of latest modify about scheduler's instance_group_predicate.
Should set minFree as zero when founding that host can't be used to create vm
with requested forced instance group.
2. Fix some little error of instance group.
3. Add PerformEnable and PerformDisable for instance group.
4. Clean scheduler desc cache after having attached or detached guests and groups
and enabled group. Cleaning was necessary when disable group because disabled
group is prohibited.
5. Add package 'golang.org/x/sync/errgroup'.
2019-11-07 16:16:11 +08:00
郑雨
b930bf7775 feat(region): Add list and delelte apis for snapshot policy cache
Now, you can take the initiative to push snapshotpolicy to cloud and
view the caches of a snasphotpolicy or delete them.
Add status for snapshotpolicy cache: ready, deleting and delete_failed.
2019-11-07 15:28:31 +08:00
Zexi Li
6e1a684ca0 Merge pull request #3497 from swordqiu/automated-cherry-pick-of-#3494-upstream-release-2.12
Automated cherry pick of #3494: fix: skip esxi vm with nil config
2019-11-07 15:14:22 +08:00
yunion-ci-robot
4038238163 Merge pull request #3485 from tb365/automated-cherry-pick-of-#3478-upstream-release-2.12
Automated cherry pick of #3478: region sync fix
2019-11-07 15:08:18 +08:00
yunion-ci-robot
23a4807319 Merge pull request #3490 from swordqiu/automated-cherry-pick-of-#3487-upstream-release-2.12
Automated cherry pick of #3487: fix: nil pointer panic when auth decode body failed
2019-11-07 10:18:17 +08:00
Qiu Jian
6622036058 fix: skip esxi vm with nil config 2019-11-06 22:15:54 +08:00
Qiu Jian
d106f9f155 fix: nil pointer panic when auth decode body failed 2019-11-06 19:43:56 +08:00
yunion-ci-robot
b1dbb1c39e Merge pull request #3482 from rainzm/automated-cherry-pick-of-#3472-upstream-release-2.12
Automated cherry pick of #3472: fix: Add operational restrictions and fix some bugs for guest image
2019-11-06 14:36:15 +08:00
TangBin
c59e5827fb region sync fix 2019-11-06 14:33:55 +08:00
yunion-ci-robot
08f1d538f3 Merge pull request #3481 from Mjoycarry/automated-cherry-pick-of-#3431-upstream-release-2.12
Automated cherry pick of #3431: feat & fix: Add batch operator and fix some bugs for instance group
2019-11-06 13:20:15 +08:00
郑雨
7c938846c3 fix: Add operational restrictions and fix some bugs for guest image
1. Support generate_name for guest image
2. Only allow subimage of guest image to update description
3. Add support for creating vm from guest image in fetchDiskInfo(disk.go)
4. Fix the bug vm can't start automatically after build guest image
5. Fix the bug that project of guest image is incorrect
6. Fix the bug about updating guest image
2019-11-06 13:17:54 +08:00
Rain
a6f27d1883 feat & fix: Add batch operator and fix some bugs for instance group
Feature:
1. Add apis: list server by group, list group by server, bind
servers, unbind servers, bind groups, unbind groups.
2. Add climc command and docs corresponding to the above newly added apis
3. Add log about binding and unbinding operator.
4. Support enable and disable instance group.
Fix:
1. Set capacity zeor if there are not enough resource aboue forced
instance group in one host.
2. Change the stage(real delete => pending delete) that guest leave all groups.
2019-11-06 13:15:48 +08:00
yunion-ci-robot
4d2fb41a51 Merge pull request #3477 from swordqiu/automated-cherry-pick-of-#3476-upstream-release-2.12
Automated cherry pick of #3476: fix: baremetal-event-list support since/until filter
2019-11-06 12:50:14 +08:00
yunion-ci-robot
989d292e9d Merge pull request #3474 from swordqiu/automated-cherry-pick-of-#3473-upstream-release-2.12
Automated cherry pick of #3473: fix: baremetal-prepare report admin ip using ssh client host
2019-11-06 12:46:14 +08:00
yunion-ci-robot
b57aa0e685 Merge pull request #3469 from yousong/automated-cherry-pick-of-#3468-upstream-release-2.12
Automated cherry pick of #3468: azure: fix tmp image file handling
2019-11-06 12:44:15 +08:00
yunion-ci-robot
26f17ffc1f Merge pull request #3467 from tb365/automated-cherry-pick-of-#3466-upstream-release-2.12
Automated cherry pick of #3466: redis sku sync
2019-11-06 11:03:14 +08:00
yunion-ci-robot
215dca1ab9 Merge pull request #3465 from tb365/automated-cherry-pick-of-#3463-upstream-release-2.12
Automated cherry pick of #3463: elb sync fix
2019-11-06 10:28:13 +08:00
Qiu Jian
30b460d1b7 fix: baremetal-event-list support since/until filter 2019-11-05 22:35:04 +08:00
Qiu Jian
50dde5db4b fix: baremetal-prepare report admin ip using ssh client host 2019-11-05 20:15:06 +08:00
Yousong Zhou
fc58ea1e23 azure: storagecache: fix writing sparse image file 2019-11-05 09:10:02 +00:00
Yousong Zhou
63518b29cc fileutils: add SparseFileWriter 2019-11-05 09:10:02 +00:00
Yousong Zhou
aab6c7ad00 webconsole: always do session close on pty stop 2019-11-05 09:10:02 +00:00
Yousong Zhou
6221fb8a4d fileutils: SReadSeeker: fix closing tmpfile fd 2019-11-05 09:10:02 +00:00
Yousong Zhou
2a953da906 seclib2: add doc describing the protocol on removal of tmpfile 2019-11-05 09:10:02 +00:00
Yousong Zhou
44c9fc1d1e aliyun: fix tmp image file handling 2019-11-05 09:10:02 +00:00
Yousong Zhou
e8b8a287f5 azure: fix tmp image file handling 2019-11-05 09:10:02 +00:00
TangBin
5615429875 elb sync fix 2019-11-05 16:30:58 +08:00
TangBin
4dc5989257 redis sku sync 2019-11-05 16:23:59 +08:00
yunion-ci-robot
31ed1f3f88 Merge pull request #3444 from ioito/automated-cherry-pick-of-#3428-upstream-release-2.12
Automated cherry pick of #3428: fix: 避免创建vmware磁盘快照
2019-11-04 23:04:15 +08:00
yunion-ci-robot
8df1b5a690 Merge pull request #3456 from swordqiu/automated-cherry-pick-of-#3454-upstream-release-2.12
Automated cherry pick of #3454: fix: aliyun eip associate instance ignores IncorrectInstanceStatus error
2019-11-04 22:47:14 +08:00
yunion-ci-robot
e2221d18ab Merge pull request #3433 from swordqiu/automated-cherry-pick-of-#3432-upstream-release-2.12
Automated cherry pick of #3432: fix: user details add password expiration info
2019-11-04 22:44:17 +08:00
yunion-ci-robot
561108903c Merge pull request #3424 from ioito/automated-cherry-pick-of-#3422-upstream-release-2.12
Automated cherry pick of #3422: fix: 添加华为云Rds privilege校验
2019-11-04 22:14:14 +08:00
yunion-ci-robot
958ffb23e5 Merge pull request #3453 from Mjoycarry/automated-cherry-pick-of-#3413-upstream-release-2.12
Automated cherry pick of #3413: fix: cancel the merge in service level and resource level of Keystone Policy.
2019-11-04 22:09:14 +08:00
yunion-ci-robot
e1057ad381 Merge pull request #3458 from yousong/automated-cherry-pick-of-#3457-upstream-release-2.12
Automated cherry pick of #3457: build: show diffs made by checks
2019-11-04 22:02:14 +08:00
Qu Xuan
0f7c166c53 fix: 避免创建vmware磁盘快照 2019-11-04 21:54:40 +08:00
yunion-ci-robot
9dc04ebd11 Merge pull request #3450 from ioito/automated-cherry-pick-of-#3430-upstream-release-2.12
Automated cherry pick of #3430: fix: 标准镜像version
2019-11-04 21:39:15 +08:00
yunion-ci-robot
8d6f8699dd Merge pull request #3447 from ioito/automated-cherry-pick-of-#3429-upstream-release-2.12
Automated cherry pick of #3429: fix: 梳理磁盘reset条件
2019-11-04 21:24:15 +08:00
yunion-ci-robot
b42ceada76 Merge pull request #3443 from tb365/automated-cherry-pick-of-#3439-upstream-release-2.12
Automated cherry pick of #3439: elb bugfix & aws client init bugfix
2019-11-04 17:12:14 +08:00
Yousong Zhou
9d080e9f37 build: show diffs made by checks 2019-11-04 07:19:37 +00:00
Qiu Jian
8d6f7dbaa6 fix: aliyun eip associate instance ignores IncorrectInstanceStatus error 2019-11-04 14:41:30 +08:00
郑雨
57af89ab29 fix: cancel the merge in service level and resource level of Keystone Policy. 2019-11-04 12:35:52 +08:00
TangBin
14fa2fc258 elb bugfix & aws client init bugfix 2019-11-04 10:59:09 +08:00
yunion-ci-robot
515e293648 Merge pull request #3436 from swordqiu/automated-cherry-pick-of-#3434-upstream-release-2.12
Automated cherry pick of #3434: fix: bucket invalid status due to disabled cloud provider
2019-11-04 10:33:14 +08:00
Qu Xuan
be9a3b5882 fix: 标准镜像version 2019-11-04 10:21:02 +08:00
yunion-ci-robot
d6568c4c37 Merge pull request #3441 from swordqiu/automated-cherry-pick-of-#3440-upstream-release-2.12
Automated cherry pick of #3440: feature: add api to get all allocated addresses of a network
2019-11-04 10:19:13 +08:00
yunion-ci-robot
8cfd1b4d7d Merge pull request #3438 from swordqiu/automated-cherry-pick-of-#3437-upstream-release-2.12
Automated cherry pick of #3437: fix: missing action log for baremetal create and prepare events
2019-11-04 10:16:14 +08:00
Qu Xuan
ce364c72bf fix: 梳理磁盘reset条件 2019-11-04 10:15:05 +08:00
屈轩
7fc5251077 Merge branch 'release/2.12' into automated-cherry-pick-of-#3422-upstream-release-2.12 2019-11-04 10:10:34 +08:00
Qiu Jian
9f0aedf129 feature: add api to get all allocated addresses of a network 2019-11-04 09:45:40 +08:00
Qiu Jian
787c277486 fix: missing action log for baremetal create and prepare events 2019-11-02 19:53:11 +08:00
Qiu Jian
e168467767 fix: bucket invalid status due to disabled cloud provider 2019-11-01 22:13:57 +08:00
Qiu Jian
44f7166ba0 fix: user details add password expiration info 2019-11-01 20:13:20 +08:00
yunion-ci-robot
588a7e412b Merge pull request #3427 from Mjoycarry/automated-cherry-pick-of-#3426-upstream-release-2.12
Automated cherry pick of #3426: feature: add support for rpm build of notify
2019-11-01 13:41:12 +08:00
郑雨
beecc6faf2 feature: add support for rpm build of notify 2019-11-01 13:37:50 +08:00
yunion-ci-robot
d70e229933 Merge pull request #3425 from tb365/automated-cherry-pick-of-#3421-upstream-release-2.12
Automated cherry pick of #3421: redis support 2
2019-11-01 11:33:11 +08:00
Qu Xuan
12334d7dc4 fix: 添加华为云Rds privilege校验 2019-11-01 10:42:57 +08:00
TangBin
72fe3ac8f5 redis support 2 2019-11-01 09:52:15 +08:00
yunion-ci-robot
608b279d0e Merge pull request #3420 from Mjoycarry/automated-cherry-pick-of-#3411-upstream-release-2.12
Automated cherry pick of #3411: feature: Add update interface for guest image; add 'disk_format','min_disk_size','min_ram_size' for guest image fix: input.Disks's length maybe zero when creating vm that will trigger panic
2019-10-31 13:02:11 +08:00
Rain
f28afd6a1e feature: Add update interface for guest image; add 'disk_format','min_disk_size','min_ram_size' for guest image fix: input.Disks's length maybe zero when creating vm that will trigger panic 2019-10-31 12:00:39 +08:00
yunion-ci-robot
52af23afeb Merge pull request #3415 from ioito/automated-cherry-pick-of-#3414-upstream-release-2.12
Automated cherry pick of #3414: fix: avoid create dbinstance without secgroup
2019-10-30 23:42:11 +08:00
Yousong Zhou
4f5797c088 Merge pull request #3409 from swordqiu/automated-cherry-pick-of-#3408-upstream-release-2.12
Automated cherry pick of #3408: feature: support password polices: minimal length, repeat check, password expiration, multi auth failures locks user
2019-10-30 21:57:11 +08:00
Zexi Li
4270cf1459 Merge pull request #3410 from swordqiu/automated-cherry-pick-of-#3407-upstream-release-2.12
Automated cherry pick of #3407: feature: baremetal cronjobs: status probe, fetch bmc logs and report power/themal metrics
2019-10-30 21:56:52 +08:00
yunion-ci-robot
63273a66ef Merge pull request #3416 from ioito/automated-cherry-pick-of-#3412-upstream-release-2.12
Automated cherry pick of #3412: fix: add latitude for huawei cloud
2019-10-30 21:38:11 +08:00
Qu Xuan
7561d83313 add: dbinstance_sku qps,tps and maxconnections 2019-10-30 21:36:31 +08:00
Qu Xuan
b0d75d0877 fix: avoid create dbinstance without secgroup 2019-10-30 21:36:31 +08:00
Qu Xuan
dc52a9414b fix: add latitude for huawei cloud 2019-10-30 21:30:16 +08:00
Qiu Jian
66161f75b9 feature: baremetal cronjobs: status probe, fetch bmc logs and report power/themal metrics 2019-10-30 20:51:42 +08:00
Qiu Jian
2a87d401f3 feature: support password polices: minimal length, repeat check, password expiration, multi auth failures locks user 2019-10-30 20:29:53 +08:00
yunion-ci-robot
f7b544aa74 Merge pull request #3399 from wanyaoqi/automated-cherry-pick-of-#3398-upstream-release-2.12
Automated cherry pick of #3398: change config add log event
2019-10-29 23:41:12 +08:00
Zexi Li
d6260c4b19 Merge pull request #3369 from swordqiu/automated-cherry-pick-of-#3368-upstream-release-2.12
Automated cherry pick of #3368: fix: ilo read logs failure
2019-10-29 11:27:43 +08:00
Zexi Li
d67d787583 Merge pull request #3367 from swordqiu/automated-cherry-pick-of-#3366-upstream-release-2.12
Automated cherry pick of #3366: feature: guest add cdrom_support attribute
2019-10-29 11:27:22 +08:00
yunion-ci-robot
052194e9e5 Merge pull request #3402 from ioito/automated-cherry-pick-of-#3363-upstream-release-2.12
Automated cherry pick of #3363: fix: 避免虚拟机正常磁盘在回收站
2019-10-28 22:15:09 +08:00
yunion-ci-robot
c9a37067a7 Merge pull request #3365 from ioito/automated-cherry-pick-of-#3364-upstream-release-2.12
Automated cherry pick of #3364: fix: realdelete secgroupcache
2019-10-28 22:07:09 +08:00
ioito
887ed77c0f fix: 避免虚拟机正常磁盘在回收站 2019-10-28 21:55:47 +08:00
yunion-ci-robot
78cf572fd7 Merge pull request #3375 from yousong/automated-cherry-pick-of-#3374-upstream-release-2.12
Automated cherry pick of #3374: lb: 创建时校验不通过返回httperrors
2019-10-28 21:44:11 +08:00
yunion-ci-robot
f3fae23de3 Merge pull request #3392 from wanyaoqi/automated-cherry-pick-of-#3391-upstream-release-2.12
Automated cherry pick of #3391: instance snapshot fix
2019-10-28 21:41:10 +08:00
yunion-ci-robot
f8c8595b84 Merge pull request #3394 from wanyaoqi/automated-cherry-pick-of-#3390-upstream-release-2.12
Automated cherry pick of #3390: disk list add manual snapshot count
2019-10-28 21:32:10 +08:00
yunion-ci-robot
4a065a4bd7 Merge pull request #3397 from Mjoycarry/automated-cherry-pick-of-#3380-upstream-release-2.12
Automated cherry pick of #3380: fix: local snapshot's ownerId should be same with its disk even if extsnapshot's project has corresponding cloud project
2019-10-28 21:21:10 +08:00
wanyaoqi
37d221b4cf change config add log event 2019-10-28 21:17:07 +08:00
郑雨
ee35ea3422 fix: local snapshot's ownerId should be same with its disk even if extsnapshot's project has corresponding cloud project 2019-10-28 21:01:55 +08:00
wanyaoqi
f692cf9d71 disk list add manual snapshot count 2019-10-28 20:52:54 +08:00
wanyaoqi
6b398d12e8 instance snapshot fix 2019-10-28 20:48:13 +08:00
yunion-ci-robot
9bbd5e3a33 Merge pull request #3387 from wanyaoqi/automated-cherry-pick-of-#3386-upstream-release-2.12
Automated cherry pick of #3386: support hmp
2019-10-28 20:05:10 +08:00
wanyaoqi
f9cb32013d support hmp 2019-10-28 19:05:34 +08:00
yunion-ci-robot
99c86b461d Merge pull request #3382 from yousong/automated-cherry-pick-of-#3381-upstream-release-2.12
Automated cherry pick of #3381: .circleci: yunionio/onecloud-ci: bump golang version to 1.13.3
2019-10-28 15:41:08 +08:00
Yousong Zhou
5d4010f527 goimports: first run 2019-10-28 06:27:08 +00:00
Yousong Zhou
a69a1c5001 build: add goimports-check 2019-10-28 06:26:14 +00:00
Yousong Zhou
f666dbaad4 .circleci: use yunionio/onecloud-ci:v1.0.3 2019-10-28 06:26:14 +00:00
Yousong Zhou
5adf743317 .circleci: yunionio/onecloud-ci: bundle custom goimports 2019-10-28 06:26:14 +00:00
Yousong Zhou
4f2c83b756 .circleci: yunionio/onecloud-ci: run as user "build" 2019-10-28 06:26:14 +00:00
Yousong Zhou
c15e7b7823 .circleci: yunionio/onecloud-ci: bump golang version to 1.13.3 2019-10-28 06:26:14 +00:00
Yousong Zhou
4074599dc8 Merge pull request #3379 from yousong/automated-cherry-pick-of-#3378-upstream-release-2.12
Automated cherry pick of #3378: cloudnet: 重命名样例配置文件
2019-10-28 11:16:06 +08:00
Yousong Zhou
251942c7df cloudnet: 重命名样例配置文件 2019-10-28 03:15:04 +00:00
Yousong Zhou
73d8f7638e cloudcommon: db: 允许普通用户获得pending_deleted字段
Convenient for testing
2019-10-28 02:30:32 +00:00
Yousong Zhou
a2610ec884 lb: 创建时校验不通过返回httperrors 2019-10-28 02:30:32 +00:00
yunion-ci-robot
e957e5ca0b Merge pull request #3373 from swordqiu/automated-cherry-pick-of-#3370-upstream-release-2.12
Automated cherry pick of #3370: fix: host-wire-update param rename
2019-10-28 09:43:11 +08:00
Qiu Jian
97e4d7ffcd fix: hostwire update user network name as wireId 2019-10-27 14:28:44 +08:00
Qiu Jian
07c7b445ee fix: host-wire-update param rename 2019-10-27 14:28:44 +08:00
Qiu Jian
4677b97f7b fix: ilo read logs failure 2019-10-26 12:00:36 +08:00
Qiu Jian
d54354be62 feature: guest add cdrom_support attribute 2019-10-26 10:05:05 +08:00
ioito
2b52e412b2 fix: realdelete secgroupcache 2019-10-25 17:48:45 +08:00
yunion-ci-robot
7d0a5c9610 Merge pull request #3353 from ioito/automated-cherry-pick-of-#3352-upstream-release-2.12
Automated cherry pick of #3352: update vendor
2019-10-25 17:23:07 +08:00
yunion-ci-robot
410fdce557 Merge pull request #3342 from tb365/automated-cherry-pick-of-#3340-upstream-release-2.12
Automated cherry pick of #3340: huawei & qcloud & aws bugfix
2019-10-25 17:01:06 +08:00
ioito
7ae0315987 update vendor 2019-10-25 16:54:31 +08:00
TangBin
226d28e2f7 huawei & qcloud & aws bugfix 2019-10-25 16:13:45 +08:00
Zexi Li
0910ef7808 Merge pull request #3360 from Mjoycarry/automated-cherry-pick-of-#3358-upstream-release-2.12
Automated cherry pick of #3358: fix: eip display info will contains 'associate_name' even if associate_type is not vm; eip-dissociate will add log to eip now; eip-dissociate for natgateway will check if natgatway has nat rules with this eip.
2019-10-25 15:37:36 +08:00
Rain
5eac3df8db fix: eip display info will contains 'associate_name' even if associate_type is not vm; eip-dissociate will add log to eip now; eip-dissociate for natgateway will check if natgatway has nat rules with this eip. 2019-10-25 15:22:24 +08:00
yunion-ci-robot
81f17cfcf0 Merge pull request #3357 from Mjoycarry/automated-cherry-pick-of-#3355-upstream-release-2.12
Automated cherry pick of #3355: fix: shoule purge snat table and dnat table when sync remove local natgateway; nat rule's 'real_name'.
2019-10-25 12:15:07 +08:00
Rain
817123545d fix: shoule purge snat table and dnat table when sync remove local natgateway; nat rule's 'real_name'. 2019-10-25 12:03:41 +08:00
yunion-ci-robot
4245e978e9 Merge pull request #3351 from ioito/automated-cherry-pick-of-#3179-upstream-release-2.12
Automated cherry pick of #3179: add rds operation
2019-10-24 14:49:06 +08:00
yunion-ci-robot
f556069be1 Merge pull request #3348 from ioito/automated-cherry-pick-of-#3347-upstream-release-2.12
Automated cherry pick of #3347: fix: 更正stoping状态
2019-10-24 14:10:08 +08:00
ioito
d2ac329184 add rds operation 2019-10-24 11:43:10 +08:00
ioito
596648a3d5 fix: 更正stoping状态 2019-10-24 10:50:46 +08:00
yunion-ci-robot
8217fbb763 Merge pull request #3335 from swordqiu/automated-cherry-pick-of-#3332-upstream-release-2.12
Automated cherry pick of #3332: fix: allow multi-guest-dhcp
2019-10-24 10:47:06 +08:00
yunion-ci-robot
a3889775c7 Merge pull request #3344 from ioito/automated-cherry-pick-of-#3343-upstream-release-2.12
Automated cherry pick of #3343: fix: 避免update存储tag信息异常
2019-10-24 07:46:05 +08:00
yunion-ci-robot
33750b586a Merge pull request #3337 from yousong/automated-cherry-pick-of-#3336-upstream-release-2.12
Automated cherry pick of #3336: dns: 添加k8s_skip选项
2019-10-24 07:29:05 +08:00
yunion-ci-robot
0d61d8cc41 Merge pull request #3330 from zexi/automated-cherry-pick-of-#3329-upstream-release-2.12
Automated cherry pick of #3329: baremetal: add cdrom boot schedule
2019-10-24 02:03:06 +08:00
yunion-ci-robot
84033ff4de Merge pull request #3326 from ioito/automated-cherry-pick-of-#3325-upstream-release-2.12
Automated cherry pick of #3325: fix: 避免解绑eip更新状态不及时导致再次同步出现public ip问题
2019-10-24 01:55:06 +08:00
yunion-ci-robot
5c86a4dd0f Merge pull request #3310 from wanyaoqi/automated-cherry-pick-of-#3309-upstream-release-2.12
Automated cherry pick of #3309: fix snapshot-list list created_by, migrate add auto-converge
2019-10-24 01:51:06 +08:00
yunion-ci-robot
d0ff19638c Merge pull request #3291 from ioito/automated-cherry-pick-of-#3281-upstream-release-2.12
Automated cherry pick of #3281: feature: 支持预cache secgroup到云上
2019-10-24 01:44:06 +08:00
Qiu Jian
4a4fd158eb fix: allow multi-guest-dhcp 2019-10-24 01:16:31 +08:00
ioito
428e63c182 fix: 避免update存储tag信息异常 2019-10-23 20:53:12 +08:00
Yousong Zhou
9bf04f4296 dns: 添加k8s_skip选项 2019-10-23 08:45:08 +00:00
Zexi Li
120ee83d08 baremetal: add cdrom boot schedule 2019-10-23 11:20:20 +08:00
ioito
c63497dbdf fix: 避免解绑eip更新状态不及时导致再次同步出现public ip问题 2019-10-22 21:57:34 +08:00
yunion-ci-robot
87642fa9ab Merge pull request #3296 from swordqiu/automated-cherry-pick-of-#3295-upstream-release-2.12
Automated cherry pick of #3295: feature: baremetal support iso operation
2019-10-22 21:01:05 +08:00
ioito
48b8cbbe22 feature: 支持预cache secgroup到云上 2019-10-22 19:55:30 +08:00
Zexi Li
6e0a63217d Merge pull request #3322 from zexi/automated-cherry-pick-of-#3321-upstream-release-2.12
Automated cherry pick of #3321: climc: k8s import cluster support
2019-10-22 19:12:21 +08:00
Zexi Li
0ac610e863 climc: k8s import cluster support 2019-10-22 19:06:13 +08:00
yunion-ci-robot
1bf0f8603b Merge pull request #3320 from Mjoycarry/automated-cherry-pick-of-#3317-upstream-release-2.12
Automated cherry pick of #3317: Bugfix: add parameter deepsync to command 'cloud-provider-sync' and 'cloud-account-sync'; fix the bug when syncing eip.
2019-10-22 19:06:05 +08:00
yunion-ci-robot
420fdec354 Merge pull request #3318 from Mjoycarry/automated-cherry-pick-of-#2960-upstream-release-2.12
Automated cherry pick of #2960: feature: guest image create from vm, delete, update, list; create vm from guest image.
2019-10-22 18:35:05 +08:00
Rain
a0c5296020 Bugfix: add parameter deepsync to command 'cloud-provider-sync' and 'cloud-account-sync'; fix the bug when syncing eip. 2019-10-22 18:21:50 +08:00
Rain
793140d5e0 feature: guest image create from vm, delete, update, list; create vm from guest image. 2019-10-22 18:07:17 +08:00
yunion-ci-robot
460b983cb0 Merge pull request #3316 from Mjoycarry/automated-cherry-pick-of-#3314-upstream-release-2.12
Automated cherry pick of #3314: Bugfix: add the operation log of natgateway; display correctly multiple eip of snat rule in huawei cloud; bind ip to natgateway automatically when creating nat rule in aliyun cloud and try to unbind when deleting; fill or unfill the fields AssociateType, AssociateId when creating or deleting nat rule in huawei cloud; add SNatEntry and SNatEntryManager which has common field and function of SNat and DNat.
2019-10-22 16:05:06 +08:00
Rain
5ff26dc620 Bugfix: add the operation log of natgateway; display correctly multiple eip of snat rule in huawei cloud; bind ip to natgateway automatically when creating nat rule in aliyun cloud and try to unbind when deleting; fill or unfill the fields AssociateType, AssociateId when creating or deleting nat rule in huawei cloud; add SNatEntry and SNatEntryManager which has common field and function of SNat and DNat. 2019-10-22 15:59:08 +08:00
yunion-ci-robot
2a789d8032 Merge pull request #3313 from Mjoycarry/automated-cherry-pick-of-#3260-upstream-release-2.12
Automated cherry pick of #3260: fix: The domain and project info between disk and disk's cloudprovider maybe different and the new snapshot synced from cloud should have same domain and project info with disk. Project of snapshot with undeleted disk should always be same with disk's. Project of snapshot whose disk has been deleted should not change in SyncWithCloudSnapshot.
2019-10-22 12:04:06 +08:00
Rain
5d8df48312 fix: The domain and project info between disk and disk's cloudprovider maybe different and the new snapshot synced from cloud should have same domain and project info with disk. Project of snapshot with undeleted disk should always be same with disk's. Project of snapshot whose disk has been deleted should not change in SyncWithCloudSnapshot. 2019-10-22 11:31:19 +08:00
wanyaoqi
883e709ebe fix snapshot-list list created_by, migrate add auto-converge 2019-10-22 11:03:24 +08:00
Qiu Jian
df32ce25bb feature: support fetch baremetal uuid and use uuid to identify baremetal 2019-10-22 10:56:01 +08:00
Qiu Jian
27ff58cc28 feature: baremetal support iso operation 2019-10-22 10:56:00 +08:00
yunion-ci-robot
6a69fe0362 Merge pull request #3302 from ioito/automated-cherry-pick-of-#3301-upstream-release-2.12
Automated cherry pick of #3301: fix: 修复华为云ucloud安全组同步问题
2019-10-22 02:26:05 +08:00
yunion-ci-robot
b8e146ee2a Merge pull request #3306 from zexi/automated-cherry-pick-of-#3305-upstream-release-2.12
Automated cherry pick of #3305: baremetal: cancel password complex check
2019-10-22 02:22:04 +08:00
Zexi Li
50828c28e3 baremetal: cancel password complex check 2019-10-21 15:16:18 +08:00
ioito
017327e846 fix: 修复华为云ucloud安全组同步问题 2019-10-21 11:51:35 +08:00
yunion-ci-robot
f2e801a17d Merge pull request #3300 from swordqiu/automated-cherry-pick-of-#3297-upstream-release-2.12
Automated cherry pick of #3297: fix: esxi change vm instance type always timeout
2019-10-21 09:28:08 +08:00
yunion-ci-robot
7529732670 Merge pull request #3294 from swordqiu/automated-cherry-pick-of-#3292-upstream-release-2.12
Automated cherry pick of #3292: fix: policy support description
2019-10-21 09:27:06 +08:00
Qiu Jian
0a158f5f22 fix: esxi change vm instance type always timeout 2019-10-21 01:30:58 +08:00
Qiu Jian
481b96c3e7 fix: policy support description 2019-10-20 19:02:26 +08:00
yunion-ci-robot
08d9835046 Merge pull request #3269 from wanyaoqi/automated-cherry-pick-of-#3268-upstream-release-2.12
Automated cherry pick of #3268: delete snapshots on delete disk or guest, instance snapshot fix
2019-10-18 21:06:03 +08:00
yunion-ci-robot
edb6cdf0de Merge pull request #3284 from yousong/automated-cherry-pick-of-#3283-upstream-release-2.12
Automated cherry pick of #3283: lbagent: fix listing filter on manager_id
2019-10-18 20:10:05 +08:00
yunion-ci-robot
ac53238936 Merge pull request #3158 from yousong/automated-cherry-pick-of-#2837-upstream-release-2.12
Automated cherry pick of #2837: Feature/yousong cloudnet
2019-10-18 20:02:03 +08:00
yunion-ci-robot
e7a376908c Merge pull request #3288 from tb365/automated-cherry-pick-of-#3287-upstream-release-2.12
Automated cherry pick of #3287: huawei eip disassociate bugfix
2019-10-18 16:13:02 +08:00
TangBin
2e109075c8 huawei eip disassociate bugfix 2019-10-18 15:25:48 +08:00
Yousong Zhou
d263ebefbb lbagent: fix listing filter on manager_id 2019-10-18 06:15:43 +00:00
Yousong Zhou
2b228db0ad vendor 未合并的文件 2019-10-18 03:42:43 +00:00
Yousong Zhou
8e446566ab vendor: make mod 2019-10-18 03:42:43 +00:00
Yousong Zhou
7bc6e26ce4 cloudnet: initial version 2019-10-18 03:42:43 +00:00
Yousong Zhou
2832144c88 ansibleserver: v2 models for exporting more features 2019-10-18 03:42:43 +00:00
Yousong Zhou
48a8cf006e util: ansiblev2: new package for exporting more features 2019-10-18 03:42:43 +00:00
Yousong Zhou
a440e4e4d5 util: ansible: session manager manages runnable 2019-10-18 03:42:43 +00:00
Yousong Zhou
0ad0200290 util: firewalld: new package 2019-10-18 03:42:43 +00:00
Yousong Zhou
a90dc96f9d validators: actor joined by more tests 2019-10-18 03:42:43 +00:00
Yousong Zhou
c8789c32d4 validators: add ValidatorByActor 2019-10-18 03:42:43 +00:00
Yousong Zhou
ba046de7ec validators: add sshkey validator 2019-10-18 03:42:43 +00:00
Yousong Zhou
ba598f1bb3 validators: add string length validator 2019-10-18 03:42:43 +00:00
yunion-ci-robot
0f52e6eff9 Merge pull request #3275 from wanyaoqi/automated-cherry-pick-of-#3270-upstream-release-2.12
Automated cherry pick of #3270: fix reserved memory is zero
2019-10-17 21:32:04 +08:00
Zexi Li
1623daab0e Merge pull request #3280 from zexi/automated-cherry-pick-of-#3278-upstream-release-2.12
Automated cherry pick of #3278: region: fix get disk detail panic
2019-10-17 16:26:09 +08:00
Zexi Li
9648db23eb region: fix get disk detail panic 2019-10-17 16:19:56 +08:00
wanyaoqi
0d3bccc9e7 fix reserved memory is zero 2019-10-17 15:18:17 +08:00
Zexi Li
12c8e31696 Merge pull request #3274 from Mjoycarry/automated-cherry-pick-of-#3235-upstream-release-2.12
Automated cherry pick of #3235: Feature: Unforced Group which prioritize scheduling guest to host with enough resources of InstanceGroup and then to host even if this hosts has no enough resources. Add groups desc in SGuest.ToSchedDesc. The backup guest also occupies InstanceGroup resources now.
2019-10-17 13:34:32 +08:00
Rain
e729de4846 Feature: Unforced Group which prioritize scheduling guest to host with enough resources of InstanceGroup and then to host even if this hosts has no enough resources. Add groups desc in SGuest.ToSchedDesc. The backup guest also occupies InstanceGroup resources now. 2019-10-17 13:04:05 +08:00
Zexi Li
de931f2cbc Merge pull request #3272 from zexi/automated-cherry-pick-of-#3271-upstream-release-2.12
Automated cherry pick of #3271: region: capability public network count filter by host type
2019-10-17 12:49:22 +08:00
Zexi Li
53cd722adc region: capability public network count filter by host type 2019-10-17 12:46:26 +08:00
yunion-ci-robot
d5cd197fb1 Merge pull request #3265 from ioito/automated-cherry-pick-of-#3264-upstream-release-2.12
Automated cherry pick of #3264: fix: 避免返回nil, nil
2019-10-16 21:07:01 +08:00
wanyaoqi
b7b95114bb delete snapshots on delete disk or guest, instance snapshot fix 2019-10-16 20:51:05 +08:00
ioito
5c2f833cde fix: 避免返回nil, nil 2019-10-16 18:12:46 +08:00
yunion-ci-robot
917e689e9e Merge pull request #3263 from swordqiu/automated-cherry-pick-of-#3115-upstream-release-2.12
Automated cherry pick of #3115: redfish api support
2019-10-16 16:07:01 +08:00
Qiu Jian
260dd061a7 add doc and copyright 2019-10-16 15:20:14 +08:00
Qiu Jian
2cf6ed5d51 redfish api support 2019-10-16 15:20:13 +08:00
yunion-ci-robot
0615430778 Merge pull request #3258 from ioito/automated-cherry-pick-of-#3257-upstream-release-2.12
Automated cherry pick of #3257: optimized: 优化安全组规则,支持逗号分隔的规则
2019-10-16 15:09:02 +08:00
ioito
fe1cda072b optimized: 优化安全组规则,支持逗号分隔的规则 2019-10-16 12:51:17 +08:00
Zexi Li
3296bc5bf6 Merge pull request #3256 from zexi/automated-cherry-pick-of-#3253-upstream-release-2.12
Automated cherry pick of #3253: baremetal: fix stop task hang
2019-10-16 11:51:14 +08:00
Zexi Li
fc32e6ef8d baremetal: fix stop task hang 2019-10-16 11:50:01 +08:00
yunion-ci-robot
b963b27a22 Merge pull request #3250 from ioito/automated-cherry-pick-of-#3187-upstream-release-2.12
Automated cherry pick of #3187: fix: 创建云账号时指定tenant生效
2019-10-16 01:01:00 +08:00
ioito
bde74cb23b optimized cloud account create 2019-10-15 22:01:39 +08:00
ioito
b64543f325 fix: 创建云账号时指定tenant生效 2019-10-15 22:01:39 +08:00
yunion-ci-robot
53cd44609c Merge pull request #3246 from wanyaoqi/automated-cherry-pick-of-#3230-upstream-release-2.12
Automated cherry pick of #3230: gpu mutil attach by model type, fix network hint name
2019-10-15 21:50:02 +08:00
yunion-ci-robot
4621180a4c Merge pull request #3232 from ioito/automated-cherry-pick-of-#3231-upstream-release-2.12
Automated cherry pick of #3231: fix: 避免删除azure失败
2019-10-15 21:49:01 +08:00
yunion-ci-robot
077b5ec5e4 Merge pull request #3243 from Mjoycarry/automated-cherry-pick-of-#3241-upstream-release-2.12
Automated cherry pick of #3241: fix: the input parameters is wrong when create snapshotpolicy with repeatweekday Sunday for qcloud.
2019-10-15 21:45:01 +08:00
yunion-ci-robot
c1ede13adb Merge pull request #3249 from tb365/automated-cherry-pick-of-#3240-upstream-release-2.12
Automated cherry pick of #3240: qcloud elb bugfix
2019-10-15 21:44:02 +08:00
wanyaoqi
71edb16174 gpu mutil attach by model type, fix network hint name 2019-10-15 20:53:39 +08:00
TangBin
27d8c1b5b9 attach disk wait sucess 2019-10-15 20:34:44 +08:00
TangBin
6b54ec8e47 qcloud elb bugfix 2019-10-15 20:34:44 +08:00
Rain
281eeee914 fix: the input parameters is wrong when create snapshotpolicy with repeatweekday Sunday for qcloud. 2019-10-15 19:47:42 +08:00
Zexi Li
8a26dfc59e Merge pull request #3237 from zexi/automated-cherry-pick-of-#3236-upstream-release-2.12
Automated cherry pick of #3236: scheduler: adjust skip network filter condition
2019-10-15 16:23:37 +08:00
Zexi Li
8c29e6f5cd scheduler: adjust skip network filter condition 2019-10-15 16:22:26 +08:00
yunion-ci-robot
0260e8f9e5 Merge pull request #3222 from swordqiu/automated-cherry-pick-of-#3220-upstream-release-2.12
Automated cherry pick of #3220: fix: azure ListObject should skip current folder
2019-10-15 16:15:03 +08:00
yunion-ci-robot
b19d0e6e98 Merge pull request #3227 from ioito/automated-cherry-pick-of-#3189-upstream-release-2.12
Automated cherry pick of #3189: fix: openstack上传镜像时也指定os_type及额外信息
2019-10-15 16:13:02 +08:00
yunion-ci-robot
8763b855e3 Merge pull request #3223 from wanyaoqi/automated-cherry-pick-of-#2983-upstream-release-2.12
Automated cherry pick of #2983: - instance snapshot
2019-10-15 16:10:02 +08:00
ioito
0d47996cfd fix: 避免删除azure失败 2019-10-15 15:16:39 +08:00
ioito
7dacb0609d fix: openstack上传镜像时也指定os_type及额外信息 2019-10-15 10:42:09 +08:00
yunion-ci-robot
37b29b82b6 Merge pull request #3226 from Mjoycarry/automated-cherry-pick-of-#3224-upstream-release-2.12
Automated cherry pick of #3224: fix: Should not leave groups in SGuest.RealDelete; SGuest.LeaveAllGroups will be call in purge and guest_delete_task.
2019-10-14 21:41:01 +08:00
wanyaoqi
91ad83c3ac - instance snapshot
- instance clone

- create form snapshot don't reset passwd
2019-10-14 21:37:50 +08:00
Rain
5087dcbeed fix: Should not leave groups in SGuest.RealDelete; SGuest.LeaveAllGroups will be call in purge and guest_delete_task. 2019-10-14 21:32:37 +08:00
Qiu Jian
7b87675289 fix: azure ListObject should skip current folder 2019-10-14 20:10:19 +08:00
yunion-ci-robot
eb9b945227 Merge pull request #3218 from swordqiu/automated-cherry-pick-of-#3216-upstream-release-2.12
Automated cherry pick of #3216: fix: recover can_update field and add update_fail_reason field
2019-10-14 17:57:02 +08:00
yunion-ci-robot
22bb16cc22 Merge pull request #3215 from swordqiu/automated-cherry-pick-of-#3213-upstream-release-2.12
Automated cherry pick of #3213: fix: aliyun bucket sync cancel local limit
2019-10-14 17:56:04 +08:00
yunion-ci-robot
3a0d25a52c Merge pull request #3212 from swordqiu/automated-cherry-pick-of-#3210-upstream-release-2.12
Automated cherry pick of #3210: fix: azure blob storage empty blob error
2019-10-14 17:55:00 +08:00
yunion-ci-robot
ef4dc12c49 Merge pull request #3206 from ioito/automated-cherry-pick-of-#3205-upstream-release-2.12
Automated cherry pick of #3205: fix: 返回网卡所在的网络名称信息
2019-10-14 16:44:01 +08:00
Qiu Jian
06ee0b7d52 fix: recover can_update field and add update_fail_reason field 2019-10-14 16:25:57 +08:00
Qiu Jian
5a2102acfd fix: azure blob storage empty blob error 2019-10-14 15:59:47 +08:00
Qiu Jian
61d5829a8c fix: aliyun bucket sync cancel local limit 2019-10-14 15:52:00 +08:00
yunion-ci-robot
e6e7fdb9e5 Merge pull request #3209 from Mjoycarry/automated-cherry-pick-of-#3127-upstream-release-2.12
Automated cherry pick of #3127: fix
2019-10-14 12:46:41 +08:00
yunion-ci-robot
ca8314fcd8 Merge pull request #3197 from ioito/automated-cherry-pick-of-#3195-upstream-release-2.12
Automated cherry pick of #3195: fix: 避免部分套餐无法列出
2019-10-14 12:05:41 +08:00
yunion-ci-robot
0d8a05f8fd Merge pull request #3178 from tb365/automated-cherry-pick-of-#3161-upstream-release-2.12
Automated cherry pick of #3161: loadbalancer cache create api
2019-10-14 12:04:39 +08:00
yunion-ci-robot
2d17fba2c4 Merge pull request #3201 from tb365/automated-cherry-pick-of-#3200-upstream-release-2.12
Automated cherry pick of #3200: huawei & aws bugfix
2019-10-14 11:58:44 +08:00
Rain
1b17103268 fix
log for snapshotpolicy

docs

auto sync

add performCache for snapshotpolicy

detach snapshotpolicy after detach disk and guest

fix sync snapshot of disk in qcloud
2019-10-14 11:33:18 +08:00
yunion-ci-robot
71041cfb84 Merge pull request #3191 from ioito/automated-cherry-pick-of-#3190-upstream-release-2.12
Automated cherry pick of #3190: fix: 创建相同配置时返回正确的eip信息
2019-10-14 07:41:41 +08:00
yunion-ci-robot
4295fda2bd Merge pull request #3181 from ioito/automated-cherry-pick-of-#3180-upstream-release-2.12
Automated cherry pick of #3180: fix: 避免公有云账号统计虚拟的host数量
2019-10-14 07:40:41 +08:00
yunion-ci-robot
a3c9c4c97b Merge pull request #3194 from wanyaoqi/automated-cherry-pick-of-#3188-upstream-release-2.12
Automated cherry pick of #3188: fix dirty server start, disk format empty
2019-10-12 19:46:40 +08:00
ioito
84ec665d76 fix: 返回网卡所在的网络名称信息 2019-10-12 19:19:16 +08:00
TangBin
642ec2a2a3 add loadblancer acl&cert cached api docs 2019-10-12 19:18:07 +08:00
TangBin
d1f80c192d loadbalancer cache create api 2019-10-12 19:17:02 +08:00
TangBin
4e23d7c310 huawei & aws bugfix 2019-10-12 18:06:43 +08:00
wanyaoqi
d2148a4b6f fix qemu args 2019-10-12 17:43:27 +08:00
ioito
d201aeb06a fix: 避免部分套餐无法列出 2019-10-12 17:39:20 +08:00
wanyaoqi
acde1529a6 add user cache 2019-10-12 17:37:38 +08:00
wanyaoqi
1c0ca8171b - sanpshot add expire time - fix image probe iso cause iso md5 changed - add loadbalancer cluster distinct field 2019-10-12 17:37:38 +08:00
wanyaoqi
0b00c3fab6 fix dirty server start, disk format empty 2019-10-12 17:37:38 +08:00
ioito
20ceac1c23 fix: 创建相同配置时返回正确的eip信息 2019-10-12 16:52:12 +08:00
Zexi Li
6148eedffd Merge pull request #3185 from zexi/automated-cherry-pick-of-#3184-upstream-release-2.12
Automated cherry pick of #3184: keystone: endpoint list by service
2019-10-12 12:49:46 +08:00
Zexi Li
3ae7ed10ec keystone: endpoint list by service 2019-10-12 12:48:59 +08:00
ioito
9b7f42d096 fix: 避免公有云账号统计虚拟的host数量 2019-10-12 11:43:15 +08:00
yunion-ci-robot
042cc53bf8 Merge pull request #3159 from wanyaoqi/automated-cherry-pick-of-#3147-upstream-release-2.12
Automated cherry pick of #3147: feature:
2019-10-12 11:25:40 +08:00
yunion-ci-robot
f9a5da49eb Merge pull request #3149 from zexi/automated-cherry-pick-of-#3148-upstream-release-2.12
Automated cherry pick of #3148: region: support list wire by host
2019-10-12 10:09:39 +08:00
yunion-ci-robot
06b8882697 Merge pull request #3155 from yousong/automated-cherry-pick-of-#3154-upstream-release-2.12
Automated cherry pick of #3154: ansibleserver: enable tenant/user cache manager
2019-10-12 10:07:41 +08:00
yunion-ci-robot
60c412a1eb Merge pull request #3174 from yousong/automated-cherry-pick-of-#3173-upstream-release-2.12
Automated cherry pick of #3173: hostman: system_service: add IsEnabled() support
2019-10-12 10:04:39 +08:00
yunion-ci-robot
1366c64b3f Merge pull request #3172 from swordqiu/automated-cherry-pick-of-#3169-upstream-release-2.12
Automated cherry pick of #3169: fix: string2scope ignore user scope
2019-10-12 00:02:39 +08:00
yunion-ci-robot
62c1df5bd1 Merge pull request #3164 from swordqiu/automated-cherry-pick-of-#3162-upstream-release-2.12
Automated cherry pick of #3162: fix: show delele fail reason if cannot delete a resource
2019-10-12 00:01:39 +08:00
Yousong Zhou
dee6fa9d2d hostman: ensure openvswitch won't automatically start at boot 2019-10-11 15:58:27 +00:00
Yousong Zhou
8307490468 hostman: system_service: add IsEnabled() support 2019-10-11 15:58:27 +00:00
yunion-ci-robot
436945ab97 Merge pull request #3168 from swordqiu/automated-cherry-pick-of-#3165-upstream-release-2.12
Automated cherry pick of #3165: fix: skip services without project resources when fetching project resources
2019-10-11 23:52:44 +08:00
Qiu Jian
715f00bf50 fix: string2scope ignore user scope 2019-10-11 22:13:23 +08:00
yunion-ci-robot
8b154116bc Merge pull request #3105 from ioito/automated-cherry-pick-of-#3102-upstream-release-2.12
Automated cherry pick of #3102: fix: network支持多个zone过滤
2019-10-11 14:53:38 +08:00
yunion-ci-robot
ca5c6195ff Merge pull request #3139 from swordqiu/automated-cherry-pick-of-#3136-upstream-release-2.12
Automated cherry pick of #3136: fix: guest create eip quota check use owner quota
2019-10-11 14:45:39 +08:00
Qiu Jian
0ec1715ff1 fix: skip services without project resources when fetching project resources 2019-10-11 08:56:57 +08:00
Qiu Jian
694c3ce9e1 fix: show delele fail reason if cannot delete a resource 2019-10-10 21:54:36 +08:00
yunion-ci-robot
562dae99b0 Merge pull request #3151 from yousong/automated-cherry-pick-of-#3150-upstream-release-2.12
Automated cherry pick of #3150: hostman: ovs: implement PersistentMAC()
2019-10-10 19:29:40 +08:00
wanyaoqi
0bab056932 feature:
- postpaid server support expire
- extend distinct tenant filed
- gpu batch perform action
2019-10-10 18:17:01 +08:00
Yousong Zhou
5dd1bc3544 ansibleserver: enable tenant/user cache manager 2019-10-10 08:11:08 +00:00
Yousong Zhou
df85851720 hostman: ovs: implement PersistentMAC()
This is required if phy port was not added as first member or macaddr of
phy port is "locally managed"

More importantly, it needs to be fixed
2019-10-10 08:07:02 +00:00
Zexi Li
517801e8c1 region: support list wire by host 2019-10-10 14:35:13 +08:00
Zexi Li
1d9aedc024 Merge pull request #3140 from Mjoycarry/automated-cherry-pick-of-#3132-upstream-release-2.12
Automated cherry pick of #3132: guest persion
2019-10-10 10:51:44 +08:00
Zexi Li
9b1e07ae86 Merge pull request #3144 from zexi/automated-cherry-pick-of-#3141-upstream-release-2.12
Automated cherry pick of #3141: fix: scheduler specfied network no errors
2019-10-09 21:12:00 +08:00
Zexi Li
a090f64600 fix: scheduler specfied network no errors 2019-10-09 21:11:30 +08:00
Rain
b7a76f7288 guest persion 2019-10-09 20:54:19 +08:00
Qiu Jian
edb7c43448 fix: guest create eip quota check use owner quota 2019-10-09 17:39:27 +08:00
yunion-ci-robot
44f66281b3 Merge pull request #3065 from ioito/automated-cherry-pick-of-#3064-upstream-release-2.12
Automated cherry pick of #3064: add: 支持创建安全组时同时创建规则
2019-10-09 17:26:37 +08:00
yunion-ci-robot
8e410d16d3 Merge pull request #3131 from tb365/automated-cherry-pick-of-#3110-upstream-release-2.12
Automated cherry pick of #3110: loadbalancer bugfix
2019-10-09 17:24:38 +08:00
TangBin
b4ecbee699 huawei & qcloud elb bugfix 2019-10-09 16:02:57 +08:00
TangBin
a409833d93 loadbalancer bugfix 2019-10-09 16:02:57 +08:00
yunion-ci-robot
5dcc69c93d Merge pull request #3134 from zexi/automated-cherry-pick-of-#3133-upstream-release-2.12
Automated cherry pick of #3133: fix: services model incorrect nullable define
2019-10-08 23:21:37 +08:00
Zexi Li
11bc63fbd0 fix: services model incorrect nullable define 2019-10-08 22:24:07 +08:00
Zexi Li
408a4e4cc8 Merge pull request #3126 from Mjoycarry/automated-cherry-pick-of-#3026-upstream-release-2.12
Automated cherry pick of #3026: nat_docs fix
2019-10-08 10:42:27 +08:00
Rain
260993906b nat_docs fix 2019-10-08 10:40:03 +08:00
yunion-ci-robot
4bb36e5262 Merge pull request #3122 from zexi/automated-cherry-pick-of-#3121-upstream-release-2.12
Automated cherry pick of #3121: scheduler: fix random network domain not matched
2019-10-07 12:58:36 +08:00
Zexi Li
cd3b64425f scheduler: fix random network domain not matched 2019-10-07 12:05:50 +08:00
yunion-ci-robot
055e4d5076 Merge pull request #3120 from zexi/automated-cherry-pick-of-#3117-upstream-release-2.12
Automated cherry pick of #3117: scheduler: set random network filter default scope domain
2019-10-06 23:55:35 +08:00
Zexi Li
1c157f14be scheduler: set random network filter default scope domain 2019-10-06 10:36:14 +08:00
yunion-ci-robot
200469c4b3 Merge pull request #3114 from swordqiu/automated-cherry-pick-of-#3111-upstream-release-2.12
Automated cherry pick of #3111: fix: snapsho realdelete nil pointer panic
2019-10-05 07:37:34 +08:00
yunion-ci-robot
c82d847edf Merge pull request #3104 from ioito/automated-cherry-pick-of-#3096-upstream-release-2.12
Automated cherry pick of #3096: fix: 添加vpc usable过滤参数,过滤cloudprovider异常的networks
2019-10-05 07:33:34 +08:00
yunion-ci-robot
1d9b1acdbd Merge pull request #3103 from ioito/automated-cherry-pick-of-#3086-upstream-release-2.12
Automated cherry pick of #3086: feature: 支持名称重复数据
2019-10-04 01:11:33 +08:00
Qiu Jian
2b3c3856b3 fix: snapsho realdelete nil pointer panic 2019-10-04 00:13:06 +08:00
yunion-ci-robot
008829686e Merge pull request #3109 from swordqiu/automated-cherry-pick-of-#3106-upstream-release-2.12
Automated cherry pick of #3106: fix: server-create allow create server with empty disk
2019-09-29 19:33:32 +08:00
Qiu Jian
a6768fae9c fix: server-create allow create server with empty disk 2019-09-29 17:23:59 +08:00
ioito
8ca737311b fix: network支持多个zone过滤 2019-09-29 16:10:12 +08:00
Zexi Li
6931d596ba Merge pull request #3099 from zexi/automated-cherry-pick-of-#3098-upstream-release-2.12
Automated cherry pick of #3098: scheduler: refactor network_predicate filter
2019-09-29 13:17:04 +08:00
ioito
43c8559d59 fix: 添加vpc usable过滤参数,过滤cloudprovider异常的networks 2019-09-28 20:40:27 +08:00
ioito
6d036d88bd feature: 支持名称重复数据 2019-09-28 20:39:38 +08:00
Zexi Li
17e3049086 scheduler: refactor network_predicate filter 2019-09-28 18:28:58 +08:00
yunion-ci-robot
cef42d245f Merge pull request #3094 from swordqiu/automated-cherry-pick-of-#3091-upstream-release-2.12
Automated cherry pick of #3091: fix: reduce policy sync worker queue size
2019-09-28 11:31:33 +08:00
yunion-ci-robot
8b56069b7c Merge pull request #3088 from wanyaoqi/automated-cherry-pick-of-#3087-upstream-release-2.12
Automated cherry pick of #3087: fix snaphot task complete
2019-09-28 10:49:31 +08:00
Qiu Jian
2f7915344a fix: reduce policy sync worker queue size 2019-09-27 23:04:51 +08:00
wanyaoqi
c82d69bcdf fix snaphot task complete 2019-09-27 19:17:12 +08:00
Zexi Li
d5816f1f37 Merge pull request #3084 from zexi/automated-cherry-pick-of-#3082-upstream-release-2.12
Automated cherry pick of #3082: apigateway: fix forbidden login prompt format
2019-09-27 15:53:46 +08:00
Zexi Li
4fe247db1a apigateway: fix forbidden login prompt format 2019-09-27 15:52:55 +08:00
Zexi Li
4f0a0a3aab Merge pull request #3081 from Mjoycarry/automated-cherry-pick-of-#3080-upstream-release-2.12
Automated cherry pick of #3080: fix
2019-09-27 14:24:37 +08:00
Rain
ef95b72033 fix 2019-09-27 14:20:13 +08:00
yunion-ci-robot
16152a2b6d Merge pull request #3061 from yousong/automated-cherry-pick-of-#3059-upstream-release-2.12
Automated cherry pick of #3059: guestnetworks: IsExit()减少一次数据库查询
2019-09-27 08:51:30 +08:00
yunion-ci-robot
7be48ec7be Merge pull request #3068 from wanyaoqi/automated-cherry-pick-of-#3067-upstream-release-2.12
Automated cherry pick of #3067: snapshot move to recycle bin
2019-09-27 08:50:31 +08:00
yunion-ci-robot
60b3bce87d Merge pull request #3072 from wanyaoqi/automated-cherry-pick-of-#3071-upstream-release-2.12
Automated cherry pick of #3071: windows format fs fast
2019-09-27 08:49:29 +08:00
yunion-ci-robot
24a84fca8e Merge pull request #3057 from ioito/automated-cherry-pick-of-#3056-upstream-release-2.12
Automated cherry pick of #3056: fix: typo
2019-09-26 23:36:33 +08:00
wanyaoqi
2cf05b3ac2 windows format fs fast 2019-09-26 22:57:00 +08:00
yunion-ci-robot
dc8370e1d5 Merge pull request #3055 from swordqiu/automated-cherry-pick-of-#3053-upstream-release-2.12
Automated cherry pick of #3053: fix: missing region in cookie cause no service catalog fetched
2019-09-26 22:49:30 +08:00
yunion-ci-robot
6520ce194b Merge pull request #3050 from swordqiu/automated-cherry-pick-of-#3046-upstream-release-2.12
Automated cherry pick of #3046: fix: keystone panic on invalid auth token
2019-09-26 22:47:29 +08:00
wanyaoqi
0f05e44295 snapshot move to recycle bin 2019-09-26 22:34:07 +08:00
ioito
58aef2030e add: 支持创建安全组时同时创建规则 2019-09-26 18:06:03 +08:00
Yousong Zhou
7b0131f13a guests: list details with nics details 2019-09-26 04:45:33 +00:00
Yousong Zhou
f96be2fe0a guestnetworks: IsExit()减少一次数据库查询 2019-09-26 04:45:33 +00:00
ioito
7344d22320 fix: typo 2019-09-26 11:13:33 +08:00
yunion-ci-robot
35a4ff408e Merge pull request #3040 from yousong/automated-cherry-pick-of-#3039-upstream-release-2.12
Automated cherry pick of #3039: lbagents: 添加部署和下线操作记录
2019-09-25 21:21:29 +08:00
Qiu Jian
2bcaa0d7d0 fix: missing region in cookie cause no service catalog fetched 2019-09-25 21:16:42 +08:00
Qiu Jian
1b1cb29ade fix: keystone panic on invalid auth token 2019-09-25 21:04:29 +08:00
Zexi Li
841b26e683 Merge pull request #3052 from Mjoycarry/automated-cherry-pick-of-#3051-upstream-release-2.12
Automated cherry pick of #3051: fix cron
2019-09-25 18:01:08 +08:00
Rain
495821b3f7 fix cron 2019-09-25 17:58:46 +08:00
yunion-ci-robot
d610580f9c Merge pull request #3048 from Mjoycarry/automated-cherry-pick-of-#3021-upstream-release-2.12
Automated cherry pick of #3021: support Secondary authority management for contact and notification rpc=>grpc, go=>workerMan
2019-09-25 17:43:29 +08:00
Rain
47fb8b6f3d support Secondary authority management for contact and notification rpc=>grpc, go=>workerMan
pull dingtalk auto

grpc
2019-09-25 17:40:32 +08:00
yunion-ci-robot
ab1e7d85d7 Merge pull request #3044 from wanyaoqi/automated-cherry-pick-of-#3043-upstream-release-2.12
Automated cherry pick of #3043: fix host init cronjob
2019-09-25 16:30:31 +08:00
wanyaoqi
e3c7afcd84 fix host init cronjob 2019-09-25 16:22:31 +08:00
yunion-ci-robot
57e21839a0 Merge pull request #3036 from ioito/automated-cherry-pick-of-#3035-upstream-release-2.12
Automated cherry pick of #3035: add: lb vpc info
2019-09-25 13:29:29 +08:00
Yousong Zhou
f48ede5a3a lbagents: 添加部署和下线操作记录 2019-09-25 05:27:27 +00:00
ioito
5bd5c230ad add: lb vpc info 2019-09-25 11:48:59 +08:00
yunion-ci-robot
480d26f98d Merge pull request #3032 from swordqiu/automated-cherry-pick-of-#3030-upstream-release-2.12
Automated cherry pick of #3030: fix: disable cas idp not working
2019-09-25 10:03:31 +08:00
yunion-ci-robot
6dac67b47d Merge pull request #3033 from wanyaoqi/automated-cherry-pick-of-#3023-upstream-release-2.12
Automated cherry pick of #3023: fix add cronjob validate times
2019-09-24 20:55:29 +08:00
yunion-ci-robot
ba683679ba Merge pull request #3028 from ioito/automated-cherry-pick-of-#3027-upstream-release-2.12
Automated cherry pick of #3027: fix: 避免监听未设置manager_id
2019-09-24 20:54:32 +08:00
yunion-ci-robot
3992a097f9 Merge pull request #3017 from wanyaoqi/automated-cherry-pick-of-#3004-upstream-release-2.12
Automated cherry pick of #3004: fix rbd disk delete rebuild root with snapshot
2019-09-24 20:50:31 +08:00
wanyaoqi
159b6a0b87 fix add cronjob validate times 2019-09-24 20:22:42 +08:00
yunion-ci-robot
3068074a92 Merge pull request #3024 from wanyaoqi/automated-cherry-pick-of-#3023-upstream-release-2.12
Automated cherry pick of #3023: fix add cronjob validate times
2019-09-24 20:15:28 +08:00
ioito
e6fa258e88 add: error log trace 2019-09-24 19:58:22 +08:00
ioito
b7aac9628d fix: 避免监听未设置manager_id 2019-09-24 19:58:22 +08:00
Qiu Jian
c779c872b6 fix: disable cas idp not working 2019-09-24 19:52:30 +08:00
wanyaoqi
511774dfd2 fix add cronjob validate times 2019-09-24 18:51:09 +08:00
yunion-ci-robot
bb5b39c644 Merge pull request #3011 from yousong/automated-cherry-pick-of-#3009-upstream-release-2.12
Automated cherry pick of #3009: ansibleserver: 避免数据库故障引起内部状态不一致
2019-09-24 00:50:29 +08:00
yunion-ci-robot
c1f037833e Merge pull request #3014 from yousong/automated-cherry-pick-of-#3010-upstream-release-2.12
Automated cherry pick of #3010: lbagents: 禁止在公有云、托管物理机上部署
2019-09-24 00:48:29 +08:00
wanyaoqi
03d5ba2cbd fix rbd disk delete rebuild root with snapshot 2019-09-23 20:58:08 +08:00
Yousong Zhou
9beefd5544 lbagents: 禁止在公有云、托管物理机上部署 2019-09-23 11:45:13 +00:00
Yousong Zhou
d9176b4329 ansibleserver: 避免数据库故障引起内部状态不一致 2019-09-23 11:43:31 +00:00
yunion-ci-robot
0e930a36fd Merge pull request #3008 from swordqiu/automated-cherry-pick-of-#3005-upstream-release-2.12
Automated cherry pick of #3005: fix: tenant filter fail to work
2019-09-21 20:43:26 +08:00
Qiu Jian
d8f62b1036 fix: tenant filter fail to work 2019-09-21 20:40:32 +08:00
yunion-ci-robot
37a589ab0e Merge pull request #2997 from swordqiu/automated-cherry-pick-of-#2994-upstream-release-2.12
Automated cherry pick of #2994: fix: fail to search opslog by obj_name
2019-09-19 22:01:26 +08:00
yunion-ci-robot
1093745763 Merge pull request #3001 from swordqiu/automated-cherry-pick-of-#2998-upstream-release-2.12
Automated cherry pick of #2998: fix: adjust default process timeout to 1 minute (previously 15 seconds)
2019-09-19 22:00:29 +08:00
yunion-ci-robot
78a1b58829 Merge pull request #2979 from swordqiu/automated-cherry-pick-of-#2965-upstream-release-2.12
Automated cherry pick of #2965: feature: support xsky object storage
2019-09-19 21:59:26 +08:00
yunion-ci-robot
ccb507f340 Merge pull request #2982 from swordqiu/automated-cherry-pick-of-#2980-upstream-release-2.12
Automated cherry pick of #2980: feature: keystone v3 auth response carry user's displayname/email/mobile
2019-09-19 21:40:26 +08:00
yunion-ci-robot
12783e8cf8 Merge pull request #2991 from wanyaoqi/automated-cherry-pick-of-#2988-upstream-release-2.12
Automated cherry pick of #2988: cronjob support remove
2019-09-19 21:31:24 +08:00
yunion-ci-robot
ba25500228 Merge pull request #2962 from wanyaoqi/automated-cherry-pick-of-#2956-upstream-release-2.12
Automated cherry pick of #2956: misc fix
2019-09-19 21:19:27 +08:00
Qiu Jian
5e077ab41f fix: status check before accessing external bucket 2019-09-19 21:16:03 +08:00
Qiu Jian
07a3220ce4 fix: cloud-account-create-xsky nil pointer error 2019-09-19 21:16:03 +08:00
Qiu Jian
3e448e6e7b feature: add climc cloud-account-create-xsky 2019-09-19 21:16:03 +08:00
Qiu Jian
d0c4da8911 update doc and copyright 2019-09-19 21:16:03 +08:00
Qiu Jian
61efcc999f update vendor 2019-09-19 21:16:03 +08:00
Qiu Jian
53bfdb9a00 feature: support xsky object storage 2019-09-19 21:16:03 +08:00
yunion-ci-robot
2bbf365d6d Merge pull request #2985 from yousong/automated-cherry-pick-of-#2984-upstream-release-2.12
Automated cherry pick of #2984: lbbackends: 改进错误信息传递
2019-09-19 21:12:27 +08:00
Qiu Jian
2f02c4080c fix: adjust default process timeout to 1 minute (previously 15 seconds) 2019-09-19 21:08:59 +08:00
Qiu Jian
95123e6855 fix: fail to search opslog by obj_name 2019-09-19 21:03:47 +08:00
wanyaoqi
6231e28916 cronjob support remove 2019-09-19 20:07:39 +08:00
Yousong Zhou
151fde353e lbbackends: 改进错误信息传递 2019-09-19 10:39:40 +00:00
Qiu Jian
537e274773 feature: keystone v3 auth response carry user's displayname/email/mobile 2019-09-19 00:05:15 +08:00
yunion-ci-robot
1634fcc97a Merge pull request #2976 from yousong/automated-cherry-pick-of-#2975-upstream-release-2.12
Automated cherry pick of #2975: lblistener: 改正监听update
2019-09-18 23:44:25 +08:00
yunion-ci-robot
8e52cf97e0 Merge pull request #2972 from yousong/automated-cherry-pick-of-#2971-upstream-release-2.12
Automated cherry pick of #2971: validators: 应对"listener"参数被重复Validate的情况
2019-09-18 23:43:27 +08:00
Yousong Zhou
c9199e463b lblistener: 改正监听update
Fixes e4ef23515f ("aws elb support")
2019-09-18 12:21:46 +00:00
Yousong Zhou
381f04b948 validators: 应对"listener"参数被重复Validate的情况
Fixes e4ef23515f ("aws elb support")
2019-09-18 07:36:26 +00:00
yunion-ci-robot
fa3eaf82c5 Merge pull request #2969 from swordqiu/automated-cherry-pick-of-#2966-upstream-release-2.12
Automated cherry pick of #2966: fix: missing log audit for updating cloudaccount account credential
2019-09-18 11:31:25 +08:00
yunion-ci-robot
0c373551b9 Merge pull request #2958 from ioito/automated-cherry-pick-of-#2957-upstream-release-2.12
Automated cherry pick of #2957: fix: 添加弹性网卡过滤参数
2019-09-18 11:30:26 +08:00
yunion-ci-robot
d0d6d3b4b0 Merge pull request #2955 from swordqiu/automated-cherry-pick-of-#2952-upstream-release-2.12
Automated cherry pick of #2952: fix: Table 'yunionlogger.users_cache_tbl' doesn't exist
2019-09-18 11:28:25 +08:00
Qiu Jian
c7acfd029d fix: missing log audit for updating cloudaccount account credential 2019-09-18 00:20:29 +08:00
wanyaoqi
34bb1b30af misc fix
- optimize batch create validate
2019-09-17 18:49:16 +08:00
ioito
98077179ab fix: 添加弹性网卡过滤参数 2019-09-17 14:52:11 +08:00
Qiu Jian
96fdffdd78 fix: Table 'yunionlogger.users_cache_tbl' doesn't exist 2019-09-17 13:12:31 +08:00
yunion-ci-robot
0edbe32117 Merge pull request #2949 from ioito/automated-cherry-pick-of-#2948-upstream-release-2.12
Automated cherry pick of #2948: fix: 避免make mod时异常
2019-09-17 13:07:24 +08:00
ioito
7c1bf04935 fix: 避免make mod时异常 2019-09-17 12:30:53 +08:00
yunion-ci-robot
c755aa74e3 Merge pull request #2945 from ioito/automated-cherry-pick-of-#2944-upstream-release-2.12
Automated cherry pick of #2944: fix: 避免zstack高可用关机失效问题
2019-09-17 11:55:24 +08:00
ioito
032256314a fix: 避免zstack高可用关机失效问题 2019-09-17 11:32:18 +08:00
yunion-ci-robot
0f4caabe06 Merge pull request #2943 from swordqiu/automated-cherry-pick-of-#2940-upstream-release-2.12
Automated cherry pick of #2940: fix: fail to delete disconnected cloudaccount
2019-09-17 08:48:25 +08:00
yunion-ci-robot
73ae486c21 Merge pull request #2939 from swordqiu/automated-cherry-pick-of-#2936-upstream-release-2.12
Automated cherry pick of #2936: fix: 1. hpssactl blocks on user input 2. host-add-netif reset nic index 3. init baremetal nics with name enX instead of ethX
2019-09-17 08:47:25 +08:00
Qiu Jian
501d7ceb93 fix: fail to delete disconnected cloudaccount 2019-09-17 01:45:10 +08:00
yunion-ci-robot
3da5d0746c Merge pull request #2917 from wanyaoqi/automated-cherry-pick-of-#2912-upstream-release-2.12
Automated cherry pick of #2912: fix init listen interface
2019-09-17 00:15:24 +08:00
yunion-ci-robot
a3c9de260c Merge pull request #2933 from yousong/automated-cherry-pick-of-#2932-upstream-release-2.12
Automated cherry pick of #2932: lbagents: deploy: check existence of pbId before create/update
2019-09-17 00:12:23 +08:00
Qiu Jian
9dfce703d4 fix: baremetal prepare updates nic_info incrementally 2019-09-17 00:08:42 +08:00
Qiu Jian
f86e1ce1ca fix: 1. hpssactl blocks on user input 2. host-add-netif reset nic index 3. init baremetal nics with name enX instead of ethX 2019-09-17 00:08:42 +08:00
Yousong Zhou
d19c21c8aa ansibleserver: ansibleplaybooks: a way out on status chaos
an apb was in state

 - apb.output has content
 - apb.status == running
 - apb.start_time && apb.end_time both set
 - not present in man.sessions

an impossible state
2019-09-16 14:12:18 +00:00
Yousong Zhou
5cb0647ef8 lbagents: deploy: check existence of pbId before create/update 2019-09-16 14:12:18 +00:00
Zexi Li
b5ed6d8ed3 Merge pull request #2929 from zexi/automated-cherry-pick-of-#2928-upstream-release-2.12
Automated cherry pick of #2928: scheduler: fix baremetal disk and storage not match
2019-09-16 20:29:58 +08:00
Zexi Li
08d4b4ccbc scheduler: fix baremetal disk and storage not match 2019-09-16 20:28:10 +08:00
yunion-ci-robot
348934f8e2 Merge pull request #2927 from ioito/automated-cherry-pick-of-#2921-upstream-release-2.12
Automated cherry pick of #2921: fix: 避免删除不存在的快照出错
2019-09-16 18:57:24 +08:00
ioito
4f2da9a106 fix: 避免删除不存在的快照出错 2019-09-16 17:26:25 +08:00
Zexi Li
563136abea Merge pull request #2916 from zexi/automated-cherry-pick-of-#2913-upstream-release-2.12
Automated cherry pick of #2913: scheduler: fix disk local backend not select matched storage
2019-09-16 14:44:33 +08:00
wanyaoqi
cc7122404d fix init listen interface 2019-09-16 14:34:28 +08:00
Zexi Li
3d6b080527 scheduler: fix disk local backend not select matched storage 2019-09-16 13:53:02 +08:00
Yousong Zhou
35826cd27b Merge pull request #2910 from ioito/automated-cherry-pick-of-#2908-upstream-release-2.12
Automated cherry pick of #2908: fix: 避免cache raw格式的镜像
2019-09-12 19:12:08 +08:00
yunion-ci-robot
b83f3c8852 Merge pull request #2905 from wanyaoqi/automated-cherry-pick-of-#2904-upstream-release-2.12
Automated cherry pick of #2904: set concurrent deploy count
2019-09-12 19:11:23 +08:00
ioito
9a8e713c2e fix: 避免cache raw格式的镜像 2019-09-12 19:09:03 +08:00
wanyaoqi
3e161bf8ce set concurrent deploy count 2019-09-12 19:02:37 +08:00
yunion-ci-robot
37ee533dae Merge pull request #2901 from ioito/automated-cherry-pick-of-#2900-upstream-release-2.12
Automated cherry pick of #2900: fix: update vendor
2019-09-12 18:22:21 +08:00
ioito
32c3211130 fix: update vendor 2019-09-12 18:17:24 +08:00
yunion-ci-robot
7a899647a8 Merge pull request #2897 from ioito/automated-cherry-pick-of-#2896-upstream-release-2.12
Automated cherry pick of #2896: fix: avoid nil pointer
2019-09-12 17:18:23 +08:00
yunion-ci-robot
38516811f9 Merge pull request #2893 from ioito/automated-cherry-pick-of-#2892-upstream-release-2.12
Automated cherry pick of #2892: fix: update go-ceph vendor
2019-09-12 17:17:22 +08:00
ioito
4f60402942 fix: update go-ceph vendor 2019-09-12 16:57:03 +08:00
ioito
50478d9b27 fix: avoid nil pointer 2019-09-12 16:52:08 +08:00
yunion-ci-robot
c298211f7e Merge pull request #2884 from swordqiu/automated-cherry-pick-of-#2881-upstream-release-2.12
Automated cherry pick of #2881: fix: 1. specifically baremetal use access ip to manage and listen ip to serve baremetal 2. hot net interface might be attached to multiple wire 2. hack fix: baremetal cannot access glance on management network
2019-09-12 14:35:22 +08:00
yunion-ci-robot
b5080e1f54 Merge pull request #2889 from ioito/automated-cherry-pick-of-#2885-upstream-release-2.12
Automated cherry pick of #2885: fix: go-ceph bugifx
2019-09-12 14:29:21 +08:00
ioito
a4698313e6 fix: go-ceph bugifx 2019-09-12 14:18:55 +08:00
Qiu Jian
6fd75cb1b9 fix: 1. specifically baremetal use access ip to manage and listen ip to serve baremetal 2. hot net interface might be attached to multiple wire 2. hack fix: baremetal cannot access glance on management network 2019-09-12 13:11:30 +08:00
yunion-ci-robot
aa614aab82 Merge pull request #2880 from wanyaoqi/automated-cherry-pick-of-#2877-upstream-release-2.12
Automated cherry pick of #2877: fix glance save form url save md5
2019-09-12 12:02:22 +08:00
wanyaoqi
0618e8f237 fix glance save form url save md5 2019-09-12 11:09:25 +08:00
yunion-ci-robot
1ca92f3f83 Merge pull request #2848 from tb365/automated-cherry-pick-of-#2846-upstream-release-2.12
Automated cherry pick of #2846: qrcode issuer coding fix
2019-09-11 21:46:21 +08:00
yunion-ci-robot
fbca269566 Merge pull request #2870 from ioito/automated-cherry-pick-of-#2869-upstream-release-2.12
Automated cherry pick of #2869: fix: 避免置空description失效
2019-09-11 21:35:21 +08:00
yunion-ci-robot
7f1864df3c Merge pull request #2868 from swordqiu/automated-cherry-pick-of-#2866-upstream-release-2.12
Automated cherry pick of #2866: fix: system account user fail to login apigateway
2019-09-11 21:33:21 +08:00
yunion-ci-robot
2480235c7c Merge pull request #2876 from swordqiu/automated-cherry-pick-of-#2873-upstream-release-2.12
Automated cherry pick of #2873: fix: fail to update reserved ip notes
2019-09-11 21:31:23 +08:00
Qiu Jian
4cd2f4dca6 fix: fail to update reserved ip notes 2019-09-11 19:30:23 +08:00
ioito
b5e021017b fix: 避免置空description失效 2019-09-11 16:17:22 +08:00
Qiu Jian
ad7c52201f fix: system account user fail to login apigateway 2019-09-11 13:38:46 +08:00
yunion-ci-robot
52983469b2 Merge pull request #2854 from yousong/automated-cherry-pick-of-#2853-upstream-release-2.12
Automated cherry pick of #2853: ansibleserver: 限定Playbook字段长度
2019-09-11 09:31:19 +08:00
yunion-ci-robot
22b56edb39 Merge pull request #2862 from wanyaoqi/automated-cherry-pick-of-#2861-upstream-release-2.12
Automated cherry pick of #2861: misc bugfix
2019-09-10 22:45:21 +08:00
wanyaoqi
338f5705d9 misc bugfix 2019-09-10 22:29:08 +08:00
yunion-ci-robot
a03f2e07b0 Merge pull request #2857 from ioito/automated-cherry-pick-of-#2855-upstream-release-2.12
Automated cherry pick of #2855: fix: 避免密码登录时使用秘钥认证
2019-09-10 17:44:20 +08:00
yunion-ci-robot
1e64ccf47e Merge pull request #2850 from ioito/automated-cherry-pick-of-#2849-upstream-release-2.12
Automated cherry pick of #2849: fix: 虚拟机更改项目时,eip同时变更
2019-09-10 17:28:22 +08:00
ioito
ffa480dadd fix: 避免密码登录时使用秘钥认证 2019-09-10 17:22:39 +08:00
Yousong Zhou
230c185a83 ansibleserver: 限定Playbook字段长度
避免进入数据库时被截断产生无效数据
2019-09-10 09:21:31 +00:00
ioito
991f2a7929 fix: 虚拟机更改项目时,eip同时变更 2019-09-10 16:49:22 +08:00
TangBin
c5b73efdfb qrcode issuer coding fix 2019-09-10 16:44:04 +08:00
yunion-ci-robot
cee5bbc478 Merge pull request #2845 from tb365/automated-cherry-pick-of-#2842-upstream-release-2.12
Automated cherry pick of #2842: fix ucloud snapshot delete
2019-09-10 16:00:20 +08:00
TangBin
831aadc13c totp auth code support multi-domain 2019-09-10 15:35:05 +08:00
TangBin
593a01cfed fix ucloud snapshot delete 2019-09-10 15:35:05 +08:00
yunion-ci-robot
b9443742da Merge pull request #2841 from swordqiu/automated-cherry-pick-of-#2838-upstream-release-2.12
Automated cherry pick of #2838: fix: fail to delete orphane VM in esxi https://kb.vmware.com/s/article/1003742
2019-09-10 15:26:19 +08:00
yunion-ci-robot
2cde7953a5 Merge pull request #2836 from swordqiu/automated-cherry-pick-of-#2834-upstream-release-2.12
Automated cherry pick of #2834: fix: 1. CAS user fail to create totp credential 2. do not try password auth for CAS users
2019-09-10 15:21:20 +08:00
yunion-ci-robot
0cb490d3e8 Merge pull request #2831 from wanyaoqi/automated-cherry-pick-of-#2800-upstream-release-2.12
Automated cherry pick of #2800: misc deploy fix
2019-09-10 15:16:20 +08:00
wanyaoqi
0d22e6d5d0 guest misc fix 2019-09-10 10:58:37 +08:00
Qiu Jian
9eeba524a5 fix: fail to delete orphane VM in esxi https://kb.vmware.com/s/article/1003742 2019-09-10 10:01:44 +08:00
Qiu Jian
536208c317 fix: 1. CAS user fail to create totp credential 2. do not try password auth for CAS users 2019-09-09 23:44:18 +08:00
yunion-ci-robot
e77f2cfb76 Merge pull request #2824 from ioito/automated-cherry-pick-of-#2823-upstream-release-2.12
Automated cherry pick of #2823: fix: 修复安全组关联数量校验不正确问题
2019-09-09 23:33:19 +08:00
yunion-ci-robot
e151ecea8b Merge pull request #2820 from ioito/automated-cherry-pick-of-#2819-upstream-release-2.12
Automated cherry pick of #2819: fix: 避免数据盘顺序也被颠倒
2019-09-09 23:30:24 +08:00
wanyaoqi
0974bacbc5 misc deploy fix 2019-09-09 20:36:54 +08:00
Yousong Zhou
7b14cff103 Merge pull request #2828 from yousong/automated-cherry-pick-of-#2827-upstream-release-2.12
Automated cherry pick of #2827: .circleci: fix requires
2019-09-09 18:41:27 +08:00
Yousong Zhou
1500649955 build: rename cleandocgo to adddocgo 2019-09-09 10:03:52 +00:00
Yousong Zhou
49e0a8ea9d .circleci: fix requires 2019-09-09 10:03:52 +00:00
Yousong Zhou
5c87c990fc Merge pull request #2812 from yousong/automated-cherry-pick-of-#2809-upstream-release-2.12
Automated cherry pick of #2809: build: 将check与构建部分解耦
2019-09-09 17:59:21 +08:00
Yousong Zhou
cce18adf2a .circleci: 构建前check 2019-09-09 09:54:49 +00:00
Yousong Zhou
434fa4410a treewide: fix "make check" 2019-09-09 09:54:48 +00:00
Yousong Zhou
dcca41a276 build: 将check与构建部分解耦 2019-09-09 09:54:48 +00:00
ioito
f769bec7c0 fix: 修复安全组关联数量校验不正确问题 2019-09-09 16:50:14 +08:00
ioito
d24a1cc59f fix: 避免数据盘顺序也被颠倒 2019-09-09 16:46:13 +08:00
yunion-ci-robot
374b71dcdd Merge pull request #2811 from swordqiu/automated-cherry-pick-of-#2808-upstream-release-2.12
Automated cherry pick of #2808: fix: yunionapi nil pointer panic after failed login
2019-09-09 16:31:20 +08:00
yunion-ci-robot
bcc7e6363a Merge pull request #2817 from swordqiu/automated-cherry-pick-of-#2813-upstream-release-2.12
Automated cherry pick of #2813: fix: fail to find host ip in virtual console vnic
2019-09-09 16:27:20 +08:00
Qiu Jian
067555f83f fix: fail to find host ip in virtual console vnic 2019-09-09 15:54:12 +08:00
Qiu Jian
1d15915882 fix: yunionapi nil pointer panic after failed login 2019-09-09 15:44:59 +08:00
yunion-ci-robot
f652ef9135 Merge pull request #2805 from ioito/automated-cherry-pick-of-#2804-upstream-release-2.12
Automated cherry pick of #2804: fix: 避免解绑EIP后释放EIP任务失败
2019-09-09 11:56:20 +08:00
ioito
ad93653902 fix: 避免解绑EIP后释放EIP任务失败 2019-09-09 11:20:28 +08:00
yunion-ci-robot
18837de0b5 Merge pull request #2799 from tb365/automated-cherry-pick-of-#2794-upstream-release-2.12
Automated cherry pick of #2794: mcclient module base
2019-09-07 23:19:18 +08:00
tb365
93d58b2a9c Merge branch 'release/2.12' into automated-cherry-pick-of-#2794-upstream-release-2.12 2019-09-07 23:04:42 +08:00
yunion-ci-robot
821c3a4bb9 Merge pull request #2803 from swordqiu/automated-cherry-pick-of-#2801-upstream-release-2.12
Automated cherry pick of #2801: fix: api gateway logout handler error and fix go fmt issues
2019-09-07 23:04:19 +08:00
TangBin
74fa148318 reformat import 2019-09-07 22:59:19 +08:00
TangBin
813cd3c83d mcclient module base 2019-09-07 22:59:19 +08:00
Qiu Jian
fd1a7a254e fix: remove casfe.go 2019-09-07 22:44:30 +08:00
Qiu Jian
e21f0194a1 fix: api gateway logout handler error and fix go fmt issues 2019-09-07 22:44:30 +08:00
yunion-ci-robot
257816d64e Merge pull request #2793 from swordqiu/automated-cherry-pick-of-#2770-upstream-release-2.12
Automated cherry pick of #2770: feature: keystone support CAS SSO authentication
2019-09-07 19:24:17 +08:00
yunion-ci-robot
0fd5353861 Merge pull request #2797 from Mjoycarry/automated-cherry-pick-of-#2795-upstream-release-2.12
Automated cherry pick of #2795: add interface fetch resources of snats and dnats
2019-09-07 19:15:19 +08:00
yunion-ci-robot
a789f9be96 Merge pull request #2788 from wanyaoqi/automated-cherry-pick-of-#2787-upstream-release-2.12
Automated cherry pick of #2787: fix guest manager server struct
2019-09-07 19:14:19 +08:00
yunion-ci-robot
ca71f34442 Merge pull request #2785 from ioito/automated-cherry-pick-of-#2783-upstream-release-2.12
Automated cherry pick of #2783: fix: 避免重装系统后同步信息导致磁盘类型都为系统盘
2019-09-07 19:13:17 +08:00
yunion-ci-robot
2c5c62a89c Merge pull request #2756 from wanyaoqi/automated-cherry-pick-of-#2741-upstream-release-2.12
Automated cherry pick of #2741: io throttle add log event
2019-09-07 19:07:17 +08:00
Rain
4d41466fef add interface fetch resources of snats and dnats
snat network show

check sourcecidr is available when creating snat

add natgateway, snattable, dnattable to compute system resources
2019-09-07 18:54:38 +08:00
Qiu Jian
34890406d6 feature: keystone support CAS SSO authentication 2019-09-07 18:52:45 +08:00
yunion-ci-robot
b2c6e22271 Merge pull request #2778 from swordqiu/automated-cherry-pick-of-#2775-upstream-release-2.12
Automated cherry pick of #2775: fix: 1. nil pointer panic error when accessing resource pool and storagecache 2. support multiple disk format
2019-09-07 17:39:18 +08:00
Qiu Jian
0a0142046c fix: 1. nil pointer panic error when accessing resource pool and storagecache 2. support multiple disk format 2019-09-07 17:29:22 +08:00
wanyaoqi
60186e2e71 fix guest manager server struct 2019-09-07 15:13:42 +08:00
ioito
1c078049b7 fix: 避免重装系统后同步信息导致磁盘类型都为系统盘 2019-09-07 13:43:13 +08:00
yunion-ci-robot
70f70a8e4c Merge pull request #2782 from Mjoycarry/automated-cherry-pick-of-#2780-upstream-release-2.12
Automated cherry pick of #2780: snapshotpolicy and disk should have same domain and project in snapshotpolicydisks
2019-09-07 13:34:18 +08:00
yunion-ci-robot
24d085b92b Merge pull request #2774 from swordqiu/automated-cherry-pick-of-#2772-upstream-release-2.12
Automated cherry pick of #2772: fix: allow set object acl in batch
2019-09-07 13:02:18 +08:00
Rain
906211eb55 snapshotpolicy and disk should have same domain and project in snapshotpolicydisks
snapshotpolicydisk disk details

registerModelManager is reqired but AddHander for snapshotpolicy cache IModelManager
2019-09-07 12:23:54 +08:00
Qiu Jian
cb7988fe0c fix: allow set object acl in batch 2019-09-06 23:30:31 +08:00
yunion-ci-robot
2f3c2120b1 Merge pull request #2748 from ioito/automated-cherry-pick-of-#2747-upstream-release-2.12
Automated cherry pick of #2747: fix: networkinterfaces belong system resource
2019-09-06 14:40:18 +08:00
yunion-ci-robot
84c1b914e6 Merge pull request #2763 from yousong/automated-cherry-pick-of-#2762-upstream-release-2.12
Automated cherry pick of #2762: lbagents: deploy: 检查服务账号有效性
2019-09-06 11:59:17 +08:00
yunion-ci-robot
f5ba537818 Merge pull request #2759 from wanyaoqi/automated-cherry-pick-of-#2758-upstream-release-2.12
Automated cherry pick of #2758: fix vnc connect, filter qmp event
2019-09-06 11:58:20 +08:00
yunion-ci-robot
7f9f86f27b Merge pull request #2767 from ioito/automated-cherry-pick-of-#2766-upstream-release-2.12
Automated cherry pick of #2766: fix: 不能无限制追加 application/json
2019-09-06 11:56:17 +08:00
ioito
443c5f36ff fix: 不能无限制追加 application/json 2019-09-06 11:46:26 +08:00
yunion-ci-robot
477ba4185c Merge pull request #2735 from swordqiu/automated-cherry-pick-of-#2733-upstream-release-2.12
Automated cherry pick of #2733: fix: optimize logger query time
2019-09-05 22:01:21 +08:00
Yousong Zhou
b4941b3ee8 lbagents: deploy: 检查服务账号有效性 2019-09-05 13:58:51 +00:00
wanyaoqi
abd924e429 fix vnc connect, filter qmp event 2019-09-05 21:01:39 +08:00
wanyaoqi
7119222372 io throttle add log event 2019-09-05 20:31:37 +08:00
yunion-ci-robot
f91b7d3c78 Merge pull request #2751 from yousong/automated-cherry-pick-of-#2750-upstream-release-2.12
Automated cherry pick of #2750: lbagent: reuse mcclient client session
2019-09-05 19:58:19 +08:00
yunion-ci-robot
4741f41410 Merge pull request #2755 from Mjoycarry/automated-cherry-pick-of-#2744-upstream-release-2.12
Automated cherry pick of #2744: qcloud sunday
2019-09-05 16:01:16 +08:00
Rain
b215b7c29b qcloud sunday
disk diskplay
2019-09-05 15:50:50 +08:00
Yousong Zhou
a28f0765ce lbagent: fix possible out of bound index access 2019-09-05 07:30:00 +00:00
Yousong Zhou
d6aa32074f lbagent: reuse mcclient client session 2019-09-05 07:30:00 +00:00
ioito
5f7f391c2f fix: networkinterfaces belong system resource 2019-09-05 14:49:28 +08:00
yunion-ci-robot
9c6f0d5ac4 Merge pull request #2739 from wanyaoqi/automated-cherry-pick-of-#2727-upstream-release-2.12
Automated cherry pick of #2727: fix snapshot policy filter
2019-09-04 14:35:17 +08:00
wanyaoqi
b43880ddc2 fix snapshot policy filter 2019-09-04 12:34:20 +08:00
yunion-ci-robot
3aabd29b9d Merge pull request #2738 from swordqiu/automated-cherry-pick-of-#2736-upstream-release-2.12
Automated cherry pick of #2736: fix: for backward compatility, only check account id consistency for non-empty account id
2019-09-04 10:03:16 +08:00
Qiu Jian
f808a9a292 fix: optimize logger query time 2019-09-04 00:48:58 +08:00
Qiu Jian
7d5ab92505 fix: for backward compatility, only check account id consistency for non-empty account id 2019-09-03 21:23:54 +08:00
yunion-ci-robot
eb337f56c0 Merge pull request #2732 from swordqiu/automated-cherry-pick-of-#2730-upstream-release-2.12
Automated cherry pick of #2730: fix: s3cli enable debug trace
2019-09-03 17:37:15 +08:00
Qiu Jian
2e5ac6307b fix: s3cli enable debug trace 2019-09-03 17:14:50 +08:00
Zexi Li
7d7b486c65 Merge pull request #2724 from zexi/automated-cherry-pick-of-#2723-upstream-release-2.12
Automated cherry pick of #2723: region: fix create params cdrom missing
2019-09-03 10:47:21 +08:00
Zexi
608400fe00 region: fix create params cdrom missing 2019-09-03 10:45:52 +08:00
yunion-ci-robot
12c64fefa8 Merge pull request #2715 from wanyaoqi/automated-cherry-pick-of-#2714-upstream-release-2.12
Automated cherry pick of #2714: fix auto snapshot check quota, name, owner
2019-09-03 10:44:16 +08:00
yunion-ci-robot
0c89fb57ee Merge pull request #2713 from Mjoycarry/automated-cherry-pick-of-#2711-upstream-release-2.12
Automated cherry pick of #2711: hanler snapshotpolicy cache
2019-09-03 10:33:15 +08:00
yunion-ci-robot
c6a1262ada Merge pull request #2722 from Mjoycarry/automated-cherry-pick-of-#2720-upstream-release-2.12
Automated cherry pick of #2720: add OnBindIPCompleteFailed and fix aliyun Refresh for snat and dnat
2019-09-03 10:29:15 +08:00
Rain
c62922c3b6 add OnBindIPCompleteFailed and fix aliyun Refresh for snat and dnat 2019-09-03 10:25:43 +08:00
yunion-ci-robot
7f88c8bfd5 Merge pull request #2719 from swordqiu/automated-cherry-pick-of-#2717-upstream-release-2.12
Automated cherry pick of #2717: fix: bucket list access accessUrl nil pointer panic
2019-09-02 21:42:17 +08:00
yunion-ci-robot
9c885cb106 Merge pull request #2706 from swordqiu/automated-cherry-pick-of-#2703-upstream-release-2.12
Automated cherry pick of #2703: fix: guest get host nil pointer panic
2019-09-02 21:41:16 +08:00
Qiu Jian
a73982525b fix: bucket list access accessUrl nil pointer panic 2019-09-02 21:36:23 +08:00
wanyaoqi
2ba82b2133 fix auto snapshot check quota, name, owner 2019-09-02 21:02:47 +08:00
yunion-ci-robot
ae47edc463 Merge pull request #2710 from zexi/automated-cherry-pick-of-#2707-upstream-release-2.12
Automated cherry pick of #2707: scheduler: fix reserved resource out of limit bug
2019-09-02 18:59:14 +08:00
Rain
991572e356 hanler snapshotpolicy cache 2019-09-02 18:55:32 +08:00
Zexi
41fc2abdaf scheduler: fix reserved resource out of limit bug 2019-09-02 18:41:14 +08:00
Qiu Jian
c65d319e34 fix: guest get host nil pointer panic 2019-09-02 18:22:28 +08:00
yunion-ci-robot
a98c21e106 Merge pull request #2700 from ioito/automated-cherry-pick-of-#2699-upstream-release-2.12
Automated cherry pick of #2699: fix: 忽略裸金属器删除条件
2019-09-02 17:24:19 +08:00
ioito
5a8f899106 fix: 忽略裸金属器删除条件 2019-09-02 16:31:31 +08:00
yunion-ci-robot
66de3937ad Merge pull request #2697 from Mjoycarry/automated-cherry-pick-of-#2672-upstream-release-2.12
Automated cherry pick of #2672: local snapshotpolicy
2019-09-02 16:12:15 +08:00
yunion-ci-robot
aba45af5c4 Merge pull request #2693 from ioito/automated-cherry-pick-of-#2689-upstream-release-2.12
Automated cherry pick of #2689: fix: 避免裸金属服务器转宿主机任务失败
2019-09-02 15:57:15 +08:00
yunion-ci-robot
7d295532b4 Merge pull request #2692 from swordqiu/automated-cherry-pick-of-#2690-upstream-release-2.12
Automated cherry pick of #2690: fix: no quota check when making directory
2019-09-02 15:56:15 +08:00
yunion-ci-robot
925853c1ba Merge pull request #2682 from swordqiu/automated-cherry-pick-of-#2680-upstream-release-2.12
Automated cherry pick of #2680: fix: azure create bucket failure due to empty storageClass
2019-09-02 15:53:15 +08:00
Rain
5c4bde59ba local snapshotpolicy 2019-09-02 15:37:32 +08:00
ioito
4b4c31cdfd fix: 避免裸金属服务器转宿主机任务失败 2019-09-02 15:32:45 +08:00
yunion-ci-robot
9347209796 Merge pull request #2684 from wanyaoqi/automated-cherry-pick-of-#2683-upstream-release-2.12
Automated cherry pick of #2683: fix glance update mindisk
2019-09-02 15:31:15 +08:00
yunion-ci-robot
d095d5ba07 Merge pull request #2677 from zexi/automated-cherry-pick-of-#2676-upstream-release-2.12
Automated cherry pick of #2676: baremetal: auto prepare when pxe boot
2019-09-02 15:30:16 +08:00
Qiu Jian
e1a6fc5658 fix: no quota check when making directory 2019-09-02 15:27:54 +08:00
yunion-ci-robot
2ddb0662bf Merge pull request #2671 from swordqiu/automated-cherry-pick-of-#2669-upstream-release-2.12
Automated cherry pick of #2669: feature: 1. add ceph cloud provider based on generic s3 provider 2. climc support AK/SK authentication
2019-09-02 14:00:14 +08:00
wanyaoqi
86e1ed45a0 fix glance update mindisk 2019-09-02 13:52:53 +08:00
yunion-ci-robot
ea5bca95e7 Merge pull request #2668 from swordqiu/automated-cherry-pick-of-#2665-upstream-release-2.12
Automated cherry pick of #2665: fix: 1. glance/keystone version handler fix 2. allow run glance as normal user
2019-09-02 13:48:15 +08:00
Qiu Jian
1f3ee483bf fix: azure create bucket failure due to empty storageClass 2019-09-02 13:47:34 +08:00
yunion-ci-robot
2a4f84829b Merge pull request #2664 from swordqiu/automated-cherry-pick-of-#2662-upstream-release-2.12
Automated cherry pick of #2662: fix: qcloud fail to set object acl
2019-09-02 13:46:14 +08:00
yunion-ci-robot
16ded7a106 Merge pull request #2661 from swordqiu/automated-cherry-pick-of-#2659-upstream-release-2.12
Automated cherry pick of #2659: fix: huawei fail to import image
2019-09-02 13:45:17 +08:00
yunion-ci-robot
9edac70460 Merge pull request #2658 from swordqiu/automated-cherry-pick-of-#2656-upstream-release-2.12
Automated cherry pick of #2656: fix: allow column search in array
2019-09-02 13:44:14 +08:00
Zexi
f06d595362 baremetal: auto prepare when pxe boot 2019-09-02 11:46:17 +08:00
yunion-ci-robot
743c0e0254 Merge pull request #2675 from swordqiu/automated-cherry-pick-of-#2673-upstream-release-2.12
Automated cherry pick of #2673: fix: provides policies info in auth token response
2019-09-02 10:21:15 +08:00
Qiu Jian
05f11ba630 fix: provides policies info in auth token response 2019-09-02 09:16:07 +08:00
Qiu Jian
f36d0b7641 feature: 1. add ceph cloud provider based on generic s3 provider 2. climc support AK/SK authentication 2019-09-01 19:05:27 +08:00
Qiu Jian
b2b40e0910 fix: 1. glance/keystone version handler fix 2. allow run glance as normal user 2019-08-31 11:13:49 +08:00
Qiu Jian
070f02ad1c fix: qcloud fail to set object acl 2019-08-30 23:23:06 +08:00
Qiu Jian
73f689be42 fix: huawei fail to import image 2019-08-30 23:12:25 +08:00
Qiu Jian
4bba890a6c fix: allow column search in array 2019-08-30 22:27:50 +08:00
yunion-ci-robot
acc7b4fbca Merge pull request #2653 from zhasm/automated-cherry-pick-of-#2652-upstream-release-2.12
Automated cherry pick of #2652: 修改 Makefile 获取当前分支的方式
2019-08-30 18:24:15 +08:00
张东亮
785f1c84ec 修改 Makefile 获取当前分支的方式 2019-08-30 17:56:15 +08:00
yunion-ci-robot
0d1afa9bcf Merge pull request #2641 from swordqiu/automated-cherry-pick-of-#2629-upstream-release-2.12
Automated cherry pick of #2629: fix: incorrect import path of options pkg
2019-08-30 17:22:14 +08:00
liuxueguo6921
b7914bc4ee fix: incorrect import path of options pkg 2019-08-30 16:18:35 +08:00
yunion-ci-robot
d211bfc412 Merge pull request #2651 from Mjoycarry/automated-cherry-pick-of-#2607-upstream-release-2.12
Automated cherry pick of #2607: natgateway bugfix
2019-08-30 16:07:14 +08:00
yunion-ci-robot
2ff5178056 Merge pull request #2644 from ioito/automated-cherry-pick-of-#2601-upstream-release-2.12
Automated cherry pick of #2601: fix: 避免创建磁盘时显示provider disable底下的存储
2019-08-30 16:05:14 +08:00
Rain
0121760411 natgateway bugfix
only one of that snat source cidr and networkid is needed

eip auto bind natgateway when not in aliyun
2019-08-30 15:12:07 +08:00
ioito
724d4612f2 fix: 避免创建磁盘时显示provider disable底下的存储 2019-08-30 10:54:38 +08:00
yunion-ci-robot
577ea10898 Merge pull request #2643 from swordqiu/automated-cherry-pick-of-#2608-upstream-release-2.12
Automated cherry pick of #2608: feature: 1. ak/sk auth support 2. a full feature s3gateway works with Cyberduck
2019-08-30 07:36:12 +08:00
Qiu Jian
8956d45526 feature: 1. ak/sk auth support 2. a full feature s3gateway works with Cyberduck
注意:以下两个文件的修改还未被官方合并,所以下次make
mod的时候会被覆盖,需要注意checkout恢复:

vendor/github.com/Azure/azure-sdk-for-go/storage/blockblob.go
vendor/github.com/tencentyun/cos-go-sdk-v5/object_part.go
2019-08-30 00:30:29 +08:00
yunion-ci-robot
bbcc985398 Merge pull request #2628 from swordqiu/automated-cherry-pick-of-#2626-upstream-release-2.12
Automated cherry pick of #2626: fix: compatible with minio s3
2019-08-29 23:51:12 +08:00
yunion-ci-robot
5162ba045f Merge pull request #2638 from wanyaoqi/automated-cherry-pick-of-#2635-upstream-release-2.12
Automated cherry pick of #2635: bugfix:
2019-08-29 22:45:14 +08:00
wanyaoqi
f54dea2217 bugfix:
- fix guest vnc connect failed on host unsupport ipv6
- fix cirros qemu args conflict with windows
2019-08-29 21:43:21 +08:00
yunion-ci-robot
c71bbddc47 Merge pull request #2631 from ioito/automated-cherry-pick-of-#2630-upstream-release-2.12
Automated cherry pick of #2630: fix: avoid not release pending-usage
2019-08-29 20:45:13 +08:00
ioito
451b705139 fix: avoid not release pending-usage 2019-08-29 20:29:41 +08:00
yunion-ci-robot
cc41981b5a Merge pull request #2625 from zhasm/automated-cherry-pick-of-#2619-upstream-release-2.12
Automated cherry pick of #2619: 新增 s3gateway s3cli的 rpm 描述文件
2019-08-29 18:59:13 +08:00
Qiu Jian
caa264ef6f fix: compatible with minio s3 2019-08-29 18:57:43 +08:00
rex zhasm
fca4119882 Merge branch 'release/2.12' into automated-cherry-pick-of-#2619-upstream-release-2.12 2019-08-29 17:33:46 +08:00
yunion-ci-robot
e8be8bf4d8 Merge pull request #2616 from ioito/automated-cherry-pick-of-#2615-upstream-release-2.12
Automated cherry pick of #2615: fix: avoid rbd image exist when rebuild-root
2019-08-29 17:32:14 +08:00
Zhang Dongliang
13bf54adf2 update wording 2019-08-29 17:01:22 +08:00
Zhang Dongliang
82800a42cf 新增 s3gateway s3cli的 rpm 描述文件 2019-08-29 17:01:22 +08:00
yunion-ci-robot
cc4fb00daa Merge pull request #2621 from ioito/automated-cherry-pick-of-#2620-upstream-release-2.12
Automated cherry pick of #2620: hotfix: add aliyun request user-agent
2019-08-29 16:44:12 +08:00
ioito
09176df768 hotfix: add aliyun request user-agent 2019-08-29 16:37:02 +08:00
ioito
07c5ae223b fix: avoid rbd image exist when rebuild-root 2019-08-29 11:48:37 +08:00
yunion-ci-robot
4a01ae8459 Merge pull request #2612 from ioito/automated-cherry-pick-of-#2569-upstream-release-2.12
Automated cherry pick of #2569: fix: 宿主机下线时,需要将宿主机底下的虚拟机状态设为unknown
2019-08-29 11:24:14 +08:00
yunion-ci-robot
7a225dca26 Merge pull request #2611 from swordqiu/automated-cherry-pick-of-#2609-upstream-release-2.12
Automated cherry pick of #2609: fix: 1. missing action log for bucket objects ops 2. huawei cloud sync duplicate buckets
2019-08-29 10:55:11 +08:00
ioito
6e17d0a553 fix: 宿主机下线时,需要将宿主机底下的虚拟机状态设为unknown 2019-08-29 10:13:31 +08:00
Qiu Jian
128e2e53c6 fix: 1. missing action log for bucket objects ops 2. huawei cloud sync duplicate buckets 2019-08-29 02:40:40 +08:00
yunion-ci-robot
adfa7e0524 Merge pull request #2604 from yousong/automated-cherry-pick-of-#2603-upstream-release-2.12
Automated cherry pick of #2603: mcclient: ansibleplaybooks: 注册为v2接口
2019-08-28 22:33:16 +08:00
yunion-ci-robot
0f3c3c7d80 Merge pull request #2602 from zexi/automated-cherry-pick-of-#2599-upstream-release-2.12
Automated cherry pick of #2599: schedtag: create support scope
2019-08-28 22:32:17 +08:00
yunion-ci-robot
53d51be4a0 Merge pull request #2589 from yousong/automated-cherry-pick-of-#2588-upstream-release-2.12
Automated cherry pick of #2588: lbagents: 详情增加zone信息
2019-08-28 22:31:11 +08:00
Yousong Zhou
c66bb1e90b mcclient: ansibleplaybooks: 注册为v2接口 2019-08-28 12:44:02 +00:00
Zexi
783b664aae schedtag: create support scope 2019-08-28 16:26:52 +08:00
yunion-ci-robot
055b059675 Merge pull request #2550 from ioito/automated-cherry-pick-of-#2546-upstream-release-2.12
Automated cherry pick of #2546: fix: 避免host disable时detach磁盘
2019-08-28 15:57:14 +08:00
yunion-ci-robot
56e8fdde7d Merge pull request #2543 from ioito/automated-cherry-pick-of-#2512-upstream-release-2.12
Automated cherry pick of #2512: fix: add external perform change-project
2019-08-27 11:13:11 +08:00
Yousong Zhou
b7e63a4c2c lbagents: 详情增加zone信息 2019-08-27 03:02:30 +00:00
yunion-ci-robot
c7fd864b13 Merge pull request #2580 from swordqiu/automated-cherry-pick-of-#2577-upstream-release-2.12
Automated cherry pick of #2577: fix: quota-list fail if deleted projects found
2019-08-27 10:08:13 +08:00
yunion-ci-robot
1f9f86a446 Merge pull request #2560 from ioito/automated-cherry-pick-of-#2558-upstream-release-2.12
Automated cherry pick of #2558: fix: sync and set secgroup public scope
2019-08-26 22:57:15 +08:00
yunion-ci-robot
21080a720b Merge pull request #2574 from yousong/automated-cherry-pick-of-#2573-upstream-release-2.12
Automated cherry pick of #2573: policy: 将lb集群相关资源归入系统资源类
2019-08-26 22:54:11 +08:00
yunion-ci-robot
cde2cea75f Merge pull request #2585 from wanyaoqi/automated-cherry-pick-of-#2581-upstream-release-2.12
Automated cherry pick of #2581: fix rbd disk delete with snapshot
2019-08-26 22:43:13 +08:00
yunion-ci-robot
08b8015a3f Merge pull request #2582 from wanyaoqi/automated-cherry-pick-of-#2568-upstream-release-2.12
Automated cherry pick of #2568: fix host maintenance
2019-08-26 22:41:10 +08:00
wanyaoqi
8cd049b4b0 fix rbd disk delete with snapshot 2019-08-26 22:09:00 +08:00
wanyaoqi
8a0d239fce fix host maintenance 2019-08-26 22:06:04 +08:00
Qiu Jian
df61ca32db fix: quota-list fail if deleted projects found 2019-08-26 20:30:57 +08:00
yunion-ci-robot
dde0fd7167 Merge pull request #2423 from zexi/automated-cherry-pick-of-#2415-upstream-release-2.12
Automated cherry pick of #2415: webconsole: update aliyun vnc base url and uniq vnc session
2019-08-26 16:30:16 +08:00
Yousong Zhou
ae891c7f0b policy: 将lb集群相关资源归入系统资源类 2019-08-26 07:42:10 +00:00
Zexi
2f4734dd0e webconsole: update aliyun vnc base url and uniq vnc session 2019-08-26 15:41:50 +08:00
yunion-ci-robot
fc272d6588 Merge pull request #2567 from tb365/automated-cherry-pick-of-#2564-upstream-release-2.12
Automated cherry pick of #2564: aws disk resize bugfix
2019-08-26 15:26:11 +08:00
TangBin
981f96abca aws disk resize bugfix 2019-08-26 14:54:19 +08:00
yunion-ci-robot
99f293e3fd Merge pull request #2542 from swordqiu/automated-cherry-pick-of-#2539-upstream-release-2.12
Automated cherry pick of #2539: fix: pending usage not release after failed change config
2019-08-24 18:40:10 +08:00
yunion-ci-robot
f1a7fa546b Merge pull request #2534 from swordqiu/automated-cherry-pick-of-#2477-upstream-release-2.12
Automated cherry pick of #2477: fix: use policy match weight to override less specific policy
2019-08-24 18:39:12 +08:00
yunion-ci-robot
46e9a8dba0 Merge pull request #2538 from swordqiu/automated-cherry-pick-of-#2536-upstream-release-2.12
Automated cherry pick of #2536: fix: bucket mkdir may create path with empty whitespaces
2019-08-24 18:38:11 +08:00
ioito
08d9a792f2 fix: sync and set secgroup public scope 2019-08-24 18:37:35 +08:00
yunion-ci-robot
81e3473213 Merge pull request #2553 from wanyaoqi/automated-cherry-pick-of-#2552-upstream-release-2.12
Automated cherry pick of #2552: guest batch migrate
2019-08-24 17:56:10 +08:00
yunion-ci-robot
a32cafede1 Merge pull request #2556 from wanyaoqi/automated-cherry-pick-of-#2413-upstream-release-2.12
Automated cherry pick of #2413: host migrate
2019-08-24 17:36:09 +08:00
wanyaoqi
ef2ef3dd3b guest batch migrate 2019-08-24 17:29:33 +08:00
wanyaoqi
d10e934640 host migrate 2019-08-24 17:11:56 +08:00
ioito
6170e16527 fix: 避免host disable时detach磁盘 2019-08-24 14:00:05 +08:00
ioito
f60c60ea9b fix: add external perform change-project 2019-08-24 10:12:33 +08:00
Qiu Jian
9b03199841 fix: pending usage not release after failed change config 2019-08-23 22:46:58 +08:00
Qiu Jian
983496ee34 fix: bucket mkdir may create path with empty whitespaces 2019-08-23 22:02:12 +08:00
Qiu Jian
8f4f906895 fix: use policy match weight to override less specific policy 2019-08-23 21:21:34 +08:00
yunion-ci-robot
f632cae64f Merge pull request #2529 from ioito/automated-cherry-pick-of-#2528-upstream-release-2.12
Automated cherry pick of #2528: fix: deploy action not sync guest status in subtask
2019-08-23 21:09:08 +08:00
ioito
faa7bb6a84 fix: deploy action not sync guest status in subtask 2019-08-23 21:01:51 +08:00
yunion-ci-robot
12ad81885f Merge pull request #2518 from yousong/automated-cherry-pick-of-#2517-upstream-release-2.12
Automated cherry pick of #2517: snapshotpolicy: 改正bool default:"true"
2019-08-23 19:51:08 +08:00
yunion-ci-robot
4e0e7e19b5 Merge pull request #2523 from ioito/automated-cherry-pick-of-#2522-upstream-release-2.12
Automated cherry pick of #2522: fix: sync status after guest sync conf
2019-08-23 18:03:10 +08:00
ioito
c4e7c0778c fix: sync status after guest sync conf 2019-08-23 17:16:23 +08:00
yunion-ci-robot
f38bc0aa0a Merge pull request #2521 from zexi/automated-cherry-pick-of-#2511-upstream-release-2.12
Automated cherry pick of #2511: schedtags: support scope
2019-08-23 14:28:08 +08:00
Zexi
b56381f199 schedtags: support scope 2019-08-23 13:39:22 +08:00
Yousong Zhou
ef6e538895 snapshotpolicy: 改正bool default:"true" 2019-08-23 03:27:39 +00:00
yunion-ci-robot
f14b5dd7c7 Merge pull request #2503 from ioito/automated-cherry-pick-of-#2499-upstream-release-2.12
Automated cherry pick of #2499: fix: qcloud sync unavailable storages
2019-08-23 10:55:08 +08:00
yunion-ci-robot
f10725d5cf Merge pull request #2507 from wanyaoqi/automated-cherry-pick-of-#2456-upstream-release-2.12
Automated cherry pick of #2456: io throttle
2019-08-23 03:38:09 +08:00
yunion-ci-robot
2340fb91a9 Merge pull request #2492 from yousong/automated-cherry-pick-of-#2491-upstream-release-2.12
Automated cherry pick of #2491: networks: 添加ifname_hint字段
2019-08-23 03:37:14 +08:00
yunion-ci-robot
fd27079b36 Merge pull request #2516 from zexi/automated-cherry-pick-of-#2513-upstream-release-2.12
Automated cherry pick of #2513: scheduler: fix disk or net specify resource id execute schedtag filter
2019-08-23 03:24:09 +08:00
yunion-ci-robot
cbc550bdb0 Merge pull request #2496 from yousong/automated-cherry-pick-of-#2495-upstream-release-2.12
Automated cherry pick of #2495: appsrv: 反转义path segs
2019-08-23 03:13:07 +08:00
yunion-ci-robot
19f4f22c4f Merge pull request #2490 from tb365/automated-cherry-pick-of-#2487-upstream-release-2.12
Automated cherry pick of #2487: huawei & aws bugfix
2019-08-23 03:10:09 +08:00
Zexi
e458a8dca0 scheduler: fix disk or net specify resource id execute schedtag filter 2019-08-22 21:59:45 +08:00
wanyaoqi
b2fdb7bc77 add io-throttle doc 2019-08-22 21:00:06 +08:00
wanyaoqi
a1c204a9eb io throttle 2019-08-22 21:00:06 +08:00
ioito
1f6b65e8b4 fix: qcloud sync unavailable storages 2019-08-22 20:46:26 +08:00
Yousong Zhou
1bc58aeccb guests: detachnetwork时支持以名字指定network 2019-08-22 08:44:16 +00:00
Yousong Zhou
cd2c8f60eb appsrv: 反转义path segs
支持"climc network-delete 中文"
2019-08-22 08:44:16 +00:00
Yousong Zhou
51c73e5c79 networks: 添加ifname_hint字段
- 升级部署时,从network.Name初始化
 - 创建时,尝试从network.Name取值,取不到则生成随机值
 - 不允许更新
2019-08-22 08:09:24 +00:00
TangBin
4c3162a86e huawei bugfix 2019-08-22 14:36:34 +08:00
TangBin
c9e176ab29 huawei & aws bugfix 2019-08-22 14:36:34 +08:00
yunion-ci-robot
cbe085c9d3 Merge pull request #2484 from ioito/automated-cherry-pick-of-#2483-upstream-release-2.12
Automated cherry pick of #2483: fix: zstack reset passworkd with username
2019-08-22 11:42:08 +08:00
ioito
55a753439f fix: zstack reset passworkd with username 2019-08-22 11:25:27 +08:00
yunion-ci-robot
c8aa68625c Merge pull request #2478 from ioito/automated-cherry-pick-of-#2451-upstream-release-2.12
Automated cherry pick of #2451: bugfix: 避免openstack磁盘扩容成功后未能挂载到虚拟机上
2019-08-22 10:25:07 +08:00
ioito
28e2b8f37e bugfix: 避免openstack磁盘扩容成功后未能挂载到虚拟机上 2019-08-22 10:14:26 +08:00
yunion-ci-robot
c3c306521d Merge pull request #2476 from swordqiu/automated-cherry-pick-of-#2473-upstream-release-2.12
Automated cherry pick of #2473: fix: doamin admin cannot access private networks across domain
2019-08-22 09:49:07 +08:00
yunion-ci-robot
888a896c70 Merge pull request #2472 from swordqiu/automated-cherry-pick-of-#2469-upstream-release-2.12
Automated cherry pick of #2469: fix: disk-resize sync guest status cause deadlock
2019-08-22 09:45:08 +08:00
yunion-ci-robot
9ea0dfd3bf Merge pull request #2468 from swordqiu/automated-cherry-pick-of-#2465-upstream-release-2.12
Automated cherry pick of #2465: fix: a join update is allowed if one of the joint models is allowed to update
2019-08-22 09:43:09 +08:00
yunion-ci-robot
9d3bb870db Merge pull request #2455 from tb365/automated-cherry-pick-of-#2452-upstream-release-2.12
Automated cherry pick of #2452: add update vm name method
2019-08-22 08:11:08 +08:00
yunion-ci-robot
078577de32 Merge pull request #2430 from ioito/automated-cherry-pick-of-#2414-upstream-release-2.12
Automated cherry pick of #2414: hotfix: 避免上传镜像后,再次获取镜像列表因网络原因导致任务失败
2019-08-22 08:09:08 +08:00
Qiu Jian
c06339c859 fix: doamin admin cannot access private networks across domain 2019-08-22 00:27:52 +08:00
Qiu Jian
1424bc8eb6 fix: disk-resize sync guest status cause deadlock 2019-08-21 23:57:38 +08:00
Qiu Jian
3e6a21fe56 fix: a join update is allowed if one of the joint models is allowed to update 2019-08-21 20:42:11 +08:00
yunion-ci-robot
e256330164 Merge pull request #2428 from ioito/automated-cherry-pick-of-#2416-upstream-release-2.12
Automated cherry pick of #2416: fix: 避免provider污染sql,导致查询结果为空
2019-08-21 20:32:07 +08:00
yunion-ci-robot
d6f8e214c7 Merge pull request #2460 from zexi/automated-cherry-pick-of-#2457-upstream-release-2.12
Automated cherry pick of #2457: region: capability domain public network must equal domain_id
2019-08-21 20:30:08 +08:00
yunion-ci-robot
189f51e670 Merge pull request #2462 from wanyaoqi/automated-cherry-pick-of-#2461-upstream-release-2.12
Automated cherry pick of #2461: fix snapshot can't delete
2019-08-21 20:17:09 +08:00
Zexi
d4e5fb2eb7 region: capability domain public network must equal domain_id 2019-08-21 19:23:06 +08:00
wanyaoqi
1d41c6092d fix snapshot can't delete 2019-08-21 19:11:53 +08:00
TangBin
c71bc88648 add update vm name method 2019-08-21 15:45:19 +08:00
yunion-ci-robot
609b052bbc Merge pull request #2436 from ioito/automated-cherry-pick-of-#2407-upstream-release-2.12
Automated cherry pick of #2407: fix: 避免admin=false时,不显示其余项目下的标签信息
2019-08-21 15:32:10 +08:00
yunion-ci-robot
183e946208 Merge pull request #2443 from wanyaoqi/automated-cherry-pick-of-#2406-upstream-release-2.12
Automated cherry pick of #2406: - snapshot support custom snapshot policy
2019-08-21 15:29:07 +08:00
yunion-ci-robot
731a179c91 Merge pull request #2448 from zexi/automated-cherry-pick-of-#2447-upstream-release-2.12
Automated cherry pick of #2447: scheduler: sku not unmarshal to ServerConfigs
2019-08-21 14:57:08 +08:00
yunion-ci-robot
2cb3c777e1 Merge pull request #2446 from Mjoycarry/automated-cherry-pick-of-#2442-upstream-release-2.12
Automated cherry pick of #2442: nat delele should overvide Delete() and call RealDelete() after delete cloud resource successfully
2019-08-21 12:01:06 +08:00
Zexi
822e92843d scheduler: sku not unmarshal to ServerConfigs 2019-08-21 11:58:24 +08:00
Rain
cf9933bdce nat delele should overvide Delete() and call RealDelete() after delete cloud resource successfully 2019-08-21 11:22:45 +08:00
wanyaoqi
80070da367 - snapshot support custom snapshot policy 2019-08-21 11:19:19 +08:00
yunion-ci-robot
e0a4acc2b6 Merge pull request #2433 from ioito/automated-cherry-pick-of-#2412-upstream-release-2.12
Automated cherry pick of #2412: hotfix: snapshot create optimized
2019-08-21 10:57:08 +08:00
ioito
26ac94f831 fix: 避免admin=false时,不显示其余项目下的标签信息 2019-08-21 10:26:53 +08:00
ioito
2a872be097 hotfix: snapshot create optimized 2019-08-21 10:16:36 +08:00
ioito
6517eb8d0d hotfix: 避免上传镜像后,再次获取镜像列表因网络原因导致任务失败 2019-08-21 10:06:18 +08:00
ioito
18cb3403a6 fix: 避免provider污染sql,导致查询结果为空 2019-08-21 10:04:41 +08:00
yunion-ci-robot
ff615269d6 Merge pull request #2425 from ioito/automated-cherry-pick-of-#2424-upstream-release-2.12
Automated cherry pick of #2424: fix: 允许更改私有云region名称
2019-08-20 23:48:08 +08:00
yunion-ci-robot
aaff58dc72 Merge pull request #2409 from ioito/automated-cherry-pick-of-#2408-upstream-release-2.12
Automated cherry pick of #2408: fix: avoid sku validate delete return error
2019-08-20 23:34:11 +08:00
ioito
6798fa3a28 fix: 允许更改私有云region名称 2019-08-20 21:20:07 +08:00
yunion-ci-robot
a4ace5c15f Merge pull request #2386 from zexi/automated-cherry-pick-of-#2382-upstream-release-2.12
Automated cherry pick of #2382: baremetal: fix ext4 rootfs inode inconsistent
2019-08-20 21:01:07 +08:00
yunion-ci-robot
4eec934394 Merge pull request #2418 from wanyaoqi/automated-cherry-pick-of-#2417-upstream-release-2.12
Automated cherry pick of #2417: fix snapshot ops log
2019-08-20 20:54:07 +08:00
yunion-ci-robot
831d765e96 Merge pull request #2405 from swordqiu/automated-cherry-pick-of-#2402-upstream-release-2.12
Automated cherry pick of #2402: fix: sysadmin should be a system account
2019-08-20 20:47:08 +08:00
wanyaoqi
0dd6cb9f5a fix snapshot ops log 2019-08-20 20:26:55 +08:00
Zexi
a5ffe6f178 baremetal: fix ext4 rootfs inode inconsistent 2019-08-20 17:16:12 +08:00
ioito
f38b4febda fix: avoid sku validate delete return error 2019-08-20 15:24:18 +08:00
Qiu Jian
2fc22922ce fix: sysadmin should be a system account 2019-08-20 14:03:39 +08:00
yunion-ci-robot
8e1f581349 Merge pull request #2394 from swordqiu/automated-cherry-pick-of-#2392-upstream-release-2.12
Automated cherry pick of #2392: fix: qcloud change config failed
2019-08-20 11:30:06 +08:00
yunion-ci-robot
2a715d954f Merge pull request #2390 from swordqiu/automated-cherry-pick-of-#2387-upstream-release-2.12
Automated cherry pick of #2387: fix: cloud-provider-region add cloudaccount_domain_id
2019-08-20 11:28:08 +08:00
yunion-ci-robot
adbe1d3716 Merge pull request #2396 from ioito/automated-cherry-pick-of-#2381-upstream-release-2.12
Automated cherry pick of #2381: fix: httputils show error when resp body is not dict
2019-08-20 10:25:08 +08:00
ioito
0494e7e4d1 fix: httputils show error when resp body is not dict 2019-08-20 10:18:04 +08:00
yunion-ci-robot
adf6d8eaab Merge pull request #2385 from Mjoycarry/automated-cherry-pick-of-#2248-upstream-release-2.12
Automated cherry pick of #2248: notify module in Go finished.
2019-08-20 01:54:05 +08:00
Qiu Jian
b30ce69de6 fix: qcloud change config failed 2019-08-20 01:49:30 +08:00
yunion-ci-robot
58e8347104 Merge pull request #2378 from wanyaoqi/automated-cherry-pick-of-#2377-upstream-release-2.12
Automated cherry pick of #2377: snapshot bugs fix
2019-08-20 00:05:07 +08:00
Qiu Jian
62f72e89a7 fix: cloud-provider-region add cloudaccount_domain_id 2019-08-19 22:30:40 +08:00
Rain
289418dd73 notify module in Go finished. 2019-08-19 21:55:24 +08:00
wanyaoqi
358fc32e4e snapshot bugs fix 2019-08-19 20:33:02 +08:00
yunion-ci-robot
9dd22459e0 Merge pull request #2375 from swordqiu/automated-cherry-pick-of-#2373-upstream-release-2.12
Automated cherry pick of #2373: fix: not sync correctly aws VM's tempoaral public ip
2019-08-19 10:24:06 +08:00
Qiu Jian
bbc79ee020 fix: not sync correctly aws VM's tempoaral public ip 2019-08-19 02:01:24 +08:00
yunion-ci-robot
5331414736 Merge pull request #2372 from swordqiu/automated-cherry-pick-of-#2369-upstream-release-2.12
Automated cherry pick of #2369: fix: avoid duplicate image uploading if multiple identical instances created at same time
2019-08-19 00:10:05 +08:00
Qiu Jian
63551112af fix: avoid duplicate image uploading if multiple identical instances created at same time 2019-08-18 23:29:00 +08:00
yunion-ci-robot
251c2e271e Merge pull request #2368 from swordqiu/automated-cherry-pick-of-#2357-upstream-release-2.12
Automated cherry pick of #2357: fix: deprecate old user/group joint project API, create new action apis for add user/group to projects with roles
2019-08-17 21:35:08 +08:00
Qiu Jian
18593f9534 update vendor 2019-08-17 18:56:41 +08:00
Qiu Jian
372158352b fix: deprecate old user/group joint project API, create new action apis for add user/group to projects with roles 2019-08-17 18:56:41 +08:00
yunion-ci-robot
9461100507 Merge pull request #2365 from swordqiu/automated-cherry-pick-of-#2362-upstream-release-2.12
Automated cherry pick of #2362: fix: cloud-account-usage no data for domain admin
2019-08-17 18:55:05 +08:00
Qiu Jian
3da9a99da4 fix: cloud-account-usage no data for domain admin 2019-08-17 18:42:08 +08:00
yunion-ci-robot
1b7bfdd2c1 Merge pull request #2361 from swordqiu/automated-cherry-pick-of-#2358-upstream-release-2.12
Automated cherry pick of #2358: fix: new user without porject may view any resources
2019-08-17 18:27:05 +08:00
Qiu Jian
5b9cdd7c29 fix: new user without porject may view any resources 2019-08-17 13:42:49 +08:00
yunion-ci-robot
8ed904ffe5 Merge pull request #2354 from yousong/automated-cherry-pick-of-#2353-upstream-release-2.12
Automated cherry pick of #2353: Makefile: 改正rpm target
2019-08-17 10:00:06 +08:00
yunion-ci-robot
6cbdecd693 Merge pull request #2344 from yousong/automated-cherry-pick-of-#2343-upstream-release-2.12
Automated cherry pick of #2343: hostman: windows: 改正批处理代码
2019-08-17 09:58:06 +08:00
yunion-ci-robot
7e67de5e33 Merge pull request #2352 from swordqiu/automated-cherry-pick-of-#2349-upstream-release-2.12
Automated cherry pick of #2349: fix: project_id/domain_id was cleared after FetchProjectInfo/FetchDomainInfo called
2019-08-16 22:10:04 +08:00
Yousong Zhou
210d132b0f .travis.yml: 去掉过时comment 2019-08-16 13:57:16 +00:00
Yousong Zhou
df133fff1b Makefile: 改正rpm target 2019-08-16 13:57:16 +00:00
Qiu Jian
e77fd75663 fix: project_id/domain_id was cleared after FetchProjectInfo/FetchDomainInfo called 2019-08-16 21:28:53 +08:00
yunion-ci-robot
559a98bf82 Merge pull request #2340 from wanyaoqi/automated-cherry-pick-of-#2339-upstream-release-2.12
Automated cherry pick of #2339: fix managered disk reset not update disk size
2019-08-16 21:23:06 +08:00
Yousong Zhou
93d111f753 hostman: windows: 改正批处理代码 2019-08-16 13:20:44 +00:00
yunion-ci-robot
65ba53d9d1 Merge pull request #2338 from tb365/automated-cherry-pick-of-#2337-upstream-release-2.12
Automated cherry pick of #2337: add itsm upload api
2019-08-16 18:10:04 +08:00
wanyaoqi
22a757d020 fix managered disk reset not update disk size 2019-08-16 18:01:04 +08:00
TangBin
1be7f9262a add itsm upload api 2019-08-16 17:29:28 +08:00
yunion-ci-robot
f015d8a149 Merge pull request #2335 from tb365/automated-cherry-pick-of-#2332-upstream-release-2.12
Automated cherry pick of #2332: aws & huawei & ucloud fix
2019-08-16 17:21:06 +08:00
yunion-ci-robot
95bf6111f9 Merge pull request #2312 from ioito/automated-cherry-pick-of-#2311-upstream-release-2.12
Automated cherry pick of #2311: fix: avoid duplicate sku error
2019-08-16 17:11:06 +08:00
yunion-ci-robot
5be9e23c81 Merge pull request #2336 from Mjoycarry/automated-cherry-pick-of-#2291-upstream-release-2.12
Automated cherry pick of #2291: snapshotpolicy list create delete apply cancel finish except that disk sync snapshot policy
2019-08-16 17:05:07 +08:00
yunion-ci-robot
7159b6ac5f Merge pull request #2302 from wanyaoqi/automated-cherry-pick-of-#2301-upstream-release-2.12
Automated cherry pick of #2301: fix image head no field tenant
2019-08-16 17:04:05 +08:00
yunion-ci-robot
58d0e03e5c Merge pull request #2288 from wanyaoqi/automated-cherry-pick-of-#2287-upstream-release-2.12
Automated cherry pick of #2287: fix ceph rescue mode migrate
2019-08-16 17:03:04 +08:00
Rain
688716ab3d snapshotpolicy list create delete apply cancel finish except that disk sync snapshot policy
add copyright

fix some imprefection

fix test file
2019-08-16 17:03:03 +08:00
TangBin
c13f9d2b07 aws & huawei & ucloud fix 2019-08-16 16:46:46 +08:00
yunion-ci-robot
2ab0f849e1 Merge pull request #2325 from swordqiu/automated-cherry-pick-of-#2322-upstream-release-2.12
Automated cherry pick of #2322: fix: openstack provider string should be OpenStack
2019-08-16 16:29:04 +08:00
yunion-ci-robot
185c70c0ad Merge pull request #2327 from ioito/automated-cherry-pick-of-#2326-upstream-release-2.12
Automated cherry pick of #2326: fix: azure快照的磁盘id应该小写
2019-08-16 16:27:04 +08:00
yunion-ci-robot
a3e41aa1d1 Merge pull request #2314 from Mjoycarry/automated-cherry-pick-of-#2292-upstream-release-2.12
Automated cherry pick of #2292: task.Params pass paramters
2019-08-16 16:19:04 +08:00
yunion-ci-robot
aeff1764bc Merge pull request #2295 from zexi/automated-cherry-pick-of-#2293-upstream-release-2.12
Automated cherry pick of #2293: baremetal: raid disk inode inconsistent due to mkfs.ext4 largefile option
2019-08-16 16:14:05 +08:00
ioito
47ef9eaae3 fix: azure快照的磁盘id应该小写 2019-08-16 15:51:53 +08:00
Qiu Jian
7d27020df4 fix: openstack provider string should be OpenStack 2019-08-16 15:42:27 +08:00
yunion-ci-robot
3fc0a73e4b Merge pull request #2317 from ioito/automated-cherry-pick-of-#2316-upstream-release-2.12
Automated cherry pick of #2316: fix: create disk with project-src=local
2019-08-16 15:22:06 +08:00
ioito
545a272d4d fix: create disk with project-src=local 2019-08-16 15:03:29 +08:00
ioito
e709536f97 fix: avoid duplicate sku error 2019-08-16 14:44:01 +08:00
Rain
b63fd33100 task.Params pass paramters 2019-08-16 14:43:57 +08:00
yunion-ci-robot
7efb1945cd Merge pull request #2306 from yousong/automated-cherry-pick-of-#2305-upstream-release-2.12
Automated cherry pick of #2305: .travis.yml: 不使用docker
2019-08-16 14:39:07 +08:00
Yousong Zhou
8adc80d1fb .travis.yml: 不使用docker 2019-08-16 05:43:02 +00:00
wanyaoqi
8140a5865b fix image head no field tenant 2019-08-16 12:16:25 +08:00
yunion-ci-robot
b860595722 Merge pull request #2298 from yousong/automated-cherry-pick-of-#2297-upstream-release-2.12
Automated cherry pick of #2297: Makefile: 使用rpm/%
2019-08-16 10:36:04 +08:00
Yousong Zhou
9067da2056 .travis.yml: 改正权限问题 2019-08-16 02:20:29 +00:00
Yousong Zhou
2b21a62b05 Makefile: 使用rpm/% 2019-08-16 02:20:29 +00:00
yunion-ci-robot
42db193a78 Merge pull request #2273 from yousong/automated-cherry-pick-of-#2272-upstream-release-2.12
Automated cherry pick of #2272: .travis.yml: 改正配置
2019-08-15 22:02:06 +08:00
Zexi
ac03dc8fb5 baremetal: raid disk inode inconsistent due to mkfs.ext4 largefile option 2019-08-15 21:33:52 +08:00
yunion-ci-robot
a2e0cd9d77 Merge pull request #2286 from swordqiu/automated-cherry-pick-of-#2284-upstream-release-2.12
Automated cherry pick of #2284: feature: 1. limit for bucket object count and size 2. quota for object count and size
2019-08-15 16:07:04 +08:00
wanyaoqi
92528a6be1 fix ceph rescue mode migrate 2019-08-15 16:01:25 +08:00
yunion-ci-robot
c1c4927de4 Merge pull request #2281 from wanyaoqi/automated-cherry-pick-of-#2280-upstream-release-2.12
Automated cherry pick of #2280: add distinct field manager
2019-08-15 10:36:03 +08:00
Qiu Jian
b00f2b7927 feature: 1. limit for bucket object count and size 2. quota for object count and size 2019-08-14 22:32:44 +08:00
wanyaoqi
6f6f248a43 add distinct field manager 2019-08-14 21:02:23 +08:00
yunion-ci-robot
c40b6999dd Merge pull request #2277 from ioito/automated-cherry-pick-of-#2276-upstream-release-2.12
Automated cherry pick of #2276: fix: missing setup managerId for snapshot
2019-08-14 20:38:06 +08:00
ioito
16a7bbeff3 fix: missing setup managerId for snapshot 2019-08-14 20:14:16 +08:00
Yousong Zhou
90dadcb334 Makefile: fail for unknown target 2019-08-14 07:12:04 +00:00
Yousong Zhou
1ff0c0a708 .travis.yml: 改正配置
找不到commit

	$ git clone --depth=1 --branch=release/2.11 https://github.com/yunionio/onecloud.git yunionio/onecloud
	Cloning into 'yunionio/onecloud'...
	remote: Enumerating objects: 9016, done.
	remote: Counting objects: 100% (9016/9016), done.
	remote: Compressing objects: 100% (6914/6914), done.
	remote: Total 9016 (delta 2420), reused 5969 (delta 1637), pack-reused 0
	Receiving objects: 100% (9016/9016), 14.37 MiB | 14.29 MiB/s, done.
	Resolving deltas: 100% (2420/2420), done.
	$ cd yunionio/onecloud
	$ git checkout -qf 4e9f605844
	fatal: reference is not a tree: 4e9f605844
	The command "git checkout -qf 4e9f60584434f56a410604b4ef36f979ecdb9623" failed and exited with 128 during .
2019-08-14 07:12:04 +00:00
yunion-ci-robot
df847e3907 Merge pull request #2271 from swordqiu/automated-cherry-pick-of-#2198-upstream-release-2.12
Automated cherry pick of #2198: fix: private sku sync and delete
2019-08-14 12:00:01 +08:00
ioito
9632c42f1d fix: private sku sync and delete 2019-08-14 11:53:31 +08:00
Yousong Zhou
fe7b62c73e Merge pull request #2269 from swordqiu/automated-cherry-pick-of-#2267-upstream-release-2.11
Automated cherry pick of #2267: fix: 1. after cloud-account-sync, cloud provider status in queueing 2. huawei/azure/qcloud sync status error
2019-08-14 10:16:59 +08:00
Qiu Jian
29ce8f949c fix: 1. after cloud-account-sync, cloud provider status in queueing 2. huawei/azure/qcloud sync status error 2019-08-14 09:55:50 +08:00
Yousong Zhou
220d8929bd Merge pull request #2265 from swordqiu/automated-cherry-pick-of-#2264-upstream-release-2.11
Automated cherry pick of #2264: fix: qcloud storagecache bucket name too long
2019-08-14 09:51:14 +08:00
Yousong Zhou
4e9f605844 Merge pull request #2261 from swordqiu/automated-cherry-pick-of-#2260-upstream-release-2.11
Automated cherry pick of #2260: fix: 1. aws s3 fail to mkdir 2. put object requires acl
2019-08-14 09:50:29 +08:00
Qiu Jian
0b8a702ab6 fix: qcloud storagecache bucket name too long 2019-08-14 00:33:30 +08:00
Qiu Jian
2aa6be1b9e fix: 1. aws s3 fail to mkdir 2. put object requires acl 2019-08-13 21:41:24 +08:00
yunion-ci-robot
61e8489615 Merge pull request #2258 from wanyaoqi/automated-cherry-pick-of-#2257-upstream-release-2.11
Automated cherry pick of #2257: fix sku cron job
2019-08-13 21:26:01 +08:00
wanyaoqi
7580520873 fix sku cron job 2019-08-13 21:15:52 +08:00
yunion-ci-robot
cb567c9537 Merge pull request #2242 from swordqiu/automated-cherry-pick-of-#2241-upstream-release-2.11
Automated cherry pick of #2241: fix: cloudregion and zone list filter by providers/brands
2019-08-13 18:59:02 +08:00
yunion-ci-robot
3a5f3ee805 Merge pull request #2252 from wanyaoqi/automated-cherry-pick-of-#2250-upstream-release-2.11
Automated cherry pick of #2250: support get user tags
2019-08-13 18:55:03 +08:00
yunion-ci-robot
a6a7151849 Merge pull request #2251 from zexi/automated-cherry-pick-of-#2249-upstream-release-2.11
Automated cherry pick of #2249: baremetal: fix rebuild root no password
2019-08-13 18:54:03 +08:00
yunion-ci-robot
c1970d2bc4 Merge pull request #2244 from wanyaoqi/automated-cherry-pick-of-#2227-upstream-release-2.11
Automated cherry pick of #2227: - feature: refact snapshot related code - feature: rbd snapshot - bugfix: ceph cache iso image - delete disk create snapshot and guest create snapshot - fix auto snapshot - fix disk reset
2019-08-13 18:53:02 +08:00
wanyaoqi
fc67284a70 support get user tags 2019-08-13 18:26:53 +08:00
Zexi
3b2b2ccb4b baremetal: fix rebuild root no password 2019-08-13 18:23:13 +08:00
yunion-ci-robot
e9dce850dd Merge pull request #2245 from tb365/automated-cherry-pick-of-#2243-upstream-release-2.11
Automated cherry pick of #2243: get spec fix
2019-08-13 12:53:01 +08:00
TangBin
7a08e3133d bucket upload fix 2019-08-13 11:38:14 +08:00
TangBin
602af76219 get spec fix 2019-08-13 11:38:14 +08:00
wanyaoqi
0ec92a3b5a - feature: refact snapshot related code - feature: rbd snapshot - bugfix: ceph cache iso image - delete disk create snapshot and guest create snapshot - fix auto snapshot - fix disk reset 2019-08-13 11:37:43 +08:00
yunion-ci-robot
35c66b05ef Merge pull request #2235 from ioito/automated-cherry-pick-of-#2234-upstream-release-2.11
Automated cherry pick of #2234: fix: no need to inject password by cloud-init for qcloud
2019-08-12 22:17:09 +08:00
Qiu Jian
9351b07310 fix: cloudregion and zone list filter by providers/brands 2019-08-12 22:12:42 +08:00
yunion-ci-robot
6ceefbf7c2 Merge pull request #2224 from swordqiu/automated-cherry-pick-of-#2222-upstream-release-2.11
Automated cherry pick of #2222: fix: when turning off non-default-domain-projects, network public scope should swtich to system scope
2019-08-12 21:57:02 +08:00
yunion-ci-robot
d5b26e3944 Merge pull request #2208 from swordqiu/automated-cherry-pick-of-#2207-upstream-release-2.11
Automated cherry pick of #2207: fix: bucket GetShortDesc includes cloudproviderinfo
2019-08-12 21:55:01 +08:00
ioito
2821265f77 fix: no need to inject password by cloud-init for qcloud 2019-08-12 20:26:57 +08:00
yunion-ci-robot
7ecf0219ac Merge pull request #2229 from tb365/automated-cherry-pick-of-#2228-upstream-release-2.11
Automated cherry pick of #2228: bucket object upload params change
2019-08-12 19:52:02 +08:00
TangBin
f1377326b4 bucket object upload params change 2019-08-12 19:12:40 +08:00
yunion-ci-robot
dc73e3cb9e Merge pull request #2232 from zhasm/automated-cherry-pick-of-#2230-upstream-release-2.11
Automated cherry pick of #2230: 对 actionlog 的 tenent_id 字段加索引,提升 actionlog 查询速率
2019-08-12 18:19:01 +08:00
Zhang Dongliang
8fe37c342d 对 actionlog 的 tenent_id 字段加索引,提升 actionlog 查询速率 2019-08-12 17:57:57 +08:00
yunion-ci-robot
966ac58c61 Merge pull request #2203 from ioito/automated-cherry-pick-of-#2202-upstream-release-2.11
Automated cherry pick of #2202: fix: sync cloud snapshot size
2019-08-12 11:51:01 +08:00
yunion-ci-robot
ad1659e76c Merge pull request #2226 from swordqiu/automated-cherry-pick-of-#2225-upstream-release-2.11
Automated cherry pick of #2225: feature: s3upload support multipart upload
2019-08-12 11:44:01 +08:00
Qiu Jian
20de3160ad fix: image.download changes output parameters 2019-08-12 11:26:38 +08:00
Qiu Jian
c09cd51374 update vendor 2019-08-12 11:26:38 +08:00
Qiu Jian
7963a7db32 feature: s3upload support multipart upload 2019-08-12 11:26:38 +08:00
Qiu Jian
9f3b11bf49 fix: when turning off non-default-domain-projects, network public scope should swtich to system scope 2019-08-12 10:21:34 +08:00
Qiu Jian
f0bb168ae9 fix: bucket GetShortDesc includes cloudproviderinfo 2019-08-12 10:00:58 +08:00
yunion-ci-robot
5d749a9b7f Merge pull request #2215 from yousong/automated-cherry-pick-of-#2214-upstream-release-2.11
Automated cherry pick of #2214: lb: 改正update参数校验
2019-08-12 09:59:01 +08:00
yunion-ci-robot
dde6a931ab Merge pull request #2210 from yousong/automated-cherry-pick-of-#2209-upstream-release-2.11
Automated cherry pick of #2209: wires: 改正mtu校验
2019-08-12 09:58:01 +08:00
yunion-ci-robot
2cfe883c6d Merge pull request #2221 from zhasm/automated-cherry-pick-of-#2219-upstream-release-2.11
Automated cherry pick of #2219: quota-set 新增 secgroup 字段
2019-08-12 09:56:59 +08:00
Zhang Dongliang
a022ad8fea quota-set 新增 secgroup 字段 2019-08-12 09:40:39 +08:00
Yousong Zhou
f8af2a9bbc lb: 改正update参数校验
Fixes e4ef23515f ("aws elb support")

Ref

	BEGIN {
		c=0
		u=0
		fool=0
	}

	/^+++ b/ {
		f=substr($0, 7)
		next
	}

	/^@@ .*Create.*/ {
		cl=$0
		c=1
		u=0
		next
	}

	/^@@ .*Update.*/ {
		ul=$0
		c=0
		u=1
		next
	}

	/func init()/ {
		next
	}

	/^@@ .*/ {
		fool=1
		printf "unknown: %s\n", $0
		exit
	}

	/ RunValidators\([^)]+, false); .*/ {
		if (c == 0) {
			printf "%s: %d: c err: %s\n", f, NR, cl
			exit
		}
	}

	/ RunValidators\([^)]+, true); .*/ {
		if (u == 0) {
			printf "%s: %d: u err: %s\n", f, NR, ul
			exit
		}
	}
2019-08-11 14:56:55 +00:00
Yousong Zhou
07b24151e2 wires: 改正mtu校验
Fixes a7486641df ("wires: 添加mtu属性")
2019-08-11 14:56:04 +00:00
yunion-ci-robot
09ce0677e5 Merge pull request #2212 from yousong/automated-cherry-pick-of-#2211-upstream-release-2.11
Automated cherry pick of #2211: lbcluster: 添加wire亲和性质
2019-08-11 14:38:01 +08:00
yunion-ci-robot
f94a1f3fb8 Merge pull request #2217 from yousong/automated-cherry-pick-of-#2216-upstream-release-2.11
Automated cherry pick of #2216: circleci: coverage.sh: 改善内存消耗
2019-08-11 14:09:01 +08:00
Yousong Zhou
c01fff7976 circleci: coverage.sh: 改善内存消耗 2019-08-10 18:36:53 +00:00
Yousong Zhou
93b49c28e4 lbcluster: 限定仅管理员可操作 2019-08-10 10:22:43 +00:00
Yousong Zhou
3e6f275e74 lbcluster: lbcluster-list支持--wire, --zone过滤 2019-08-10 10:22:43 +00:00
Yousong Zhou
e5b879d9be lbcluster: 添加wire亲和性质 2019-08-10 10:22:43 +00:00
ioito
51ba9871fc fix: sync cloud snapshot size 2019-08-10 16:32:52 +08:00
yunion-ci-robot
aaa513c7ef Merge pull request #2197 from Zexi/automated-cherry-pick-of-#2196-upstream-release-2.11
Automated cherry pick of #2196: add apigateway service
2019-08-10 10:17:59 +08:00
Zexi
f7c03f9998 add apigateway service 2019-08-09 21:15:57 +08:00
yunion-ci-robot
7f9ea834b6 Merge pull request #2200 from yousong/automated-cherry-pick-of-#2199-upstream-release-2.11
Automated cherry pick of #2199: vendor: update structarg
2019-08-09 20:03:00 +08:00
Yousong Zhou
e2c9498a07 climc: 去掉help string中关于choice的内容 2019-08-09 10:29:25 +00:00
Yousong Zhou
0618c34927 vendor: update structarg 2019-08-09 10:29:25 +00:00
yunion-ci-robot
9aad13ab17 Merge pull request #2195 from swordqiu/automated-cherry-pick-of-#2193-upstream-release-2.11
Automated cherry pick of #2193: fix: imported esxi VM fail to rebuild root
2019-08-09 09:51:59 +08:00
Qiu Jian
2f397d1e70 fix: imported esxi VM fail to rebuild root 2019-08-09 01:02:43 +08:00
yunion-ci-robot
38114c2d50 Merge pull request #2192 from swordqiu/automated-cherry-pick-of-#2191-upstream-release-2.11
Automated cherry pick of #2191: fix: qcloud/aws temp url not working
2019-08-09 00:02:58 +08:00
Qiu Jian
3052ce2fac fix: qcloud/aws temp url not working 2019-08-08 23:36:17 +08:00
yunion-ci-robot
3871666fb3 Merge pull request #2160 from tb365/automated-cherry-pick-of-#2159-upstream-release-2.11
Automated cherry pick of #2159: elb bugfix
2019-08-08 21:31:57 +08:00
TangBin
48c64c2892 elb bugfix 2019-08-08 21:04:12 +08:00
yunion-ci-robot
318f20b804 Merge pull request #2188 from ioito/automated-cherry-pick-of-#2186-upstream-release-2.11
Automated cherry pick of #2186: fix: lb purge error
2019-08-08 20:05:58 +08:00
yunion-ci-robot
0e8b46d800 Merge pull request #2180 from swordqiu/automated-cherry-pick-of-#2179-upstream-release-2.11
Automated cherry pick of #2179: fix: 1. get object acl not found 2. distinguish primary url for bucket
2019-08-08 20:01:58 +08:00
ioito
8870fcf10d fix: lb purge error 2019-08-08 19:56:04 +08:00
yunion-ci-robot
234af5542c Merge pull request #2182 from tb365/automated-cherry-pick-of-#2181-upstream-release-2.11
Automated cherry pick of #2181: cpu core bugfix
2019-08-08 19:50:59 +08:00
TangBin
9f97d3aaf5 cpu core bugfix 2019-08-08 19:37:54 +08:00
Qiu Jian
a7e4576e29 fix: 1. get object acl not found 2. distinguish primary url for bucket 2019-08-08 18:20:30 +08:00
yunion-ci-robot
3031a71a9d Merge pull request #2175 from swordqiu/automated-cherry-pick-of-#2174-upstream-release-2.11
Automated cherry pick of #2174: fix: influxdb write support
2019-08-08 16:55:59 +08:00
yunion-ci-robot
6615efe915 Merge pull request #2172 from ioito/automated-cherry-pick-of-#2161-upstream-release-2.11
Automated cherry pick of #2161: hotfix: sync openstack cup and memory cmtbound
2019-08-08 16:50:57 +08:00
yunion-ci-robot
41e066cf7f Merge pull request #2178 from zhasm/automated-cherry-pick-of-#2176-upstream-release-2.11
Automated cherry pick of #2176: hotfix: 将 websocket 的 broadcast 接口里 topic 这个必选变量设为位置参数; 其他参数给了默认值,非必填
2019-08-08 16:22:57 +08:00
yunion-ci-robot
21b6e7215c Merge pull request #2163 from wanyaoqi/automated-cherry-pick-of-#2162-upstream-release-2.11
Automated cherry pick of #2162: server migrate to different mountpoint storage
2019-08-08 16:14:57 +08:00
Zhang Dongliang
c09a65922e hotfix: 将 websocket 的 broadcast 接口里 topic 这个必选变量设为位置参数; 其他参数给了默认值,非必填 2019-08-08 15:56:51 +08:00
Qiu Jian
2ace6771ea fix: influxdb write support 2019-08-08 15:10:23 +08:00
ioito
93ee60f912 hotfix: sync openstack cup and memory cmtbound 2019-08-08 11:20:12 +08:00
yunion-ci-robot
816716f391 Merge pull request #2167 from yousong/automated-cherry-pick-of-#2146-upstream-release-2.11
Automated cherry pick of #2146: climc: add --output-format support
2019-08-08 10:55:16 +08:00
Yousong Zhou
c4307ccf7d climc: add --output-format support 2019-08-08 01:51:14 +00:00
Yousong Zhou
e48e4469e4 Merge pull request #2158 from swordqiu/automated-cherry-pick-of-#2157-upstream-release-2.11
Automated cherry pick of #2157: feature: bucket usage and quota check
2019-08-07 23:16:35 +08:00
Yousong Zhou
2fb06e06be Merge pull request #2166 from swordqiu/automated-cherry-pick-of-#2165-upstream-release-2.11
Automated cherry pick of #2165: fix: 1. bucket purge fail 2. qcloud verify appId
2019-08-07 23:15:13 +08:00
Qiu Jian
3ed3658920 fix: 1. bucket purge fail 2. qcloud verify appId 2019-08-07 21:55:01 +08:00
wanyaoqi
4a61d04d34 server migrate to different mountpoint storage 2019-08-07 21:14:13 +08:00
yunion-ci-robot
2984e57d5f Merge pull request #2153 from yousong/automated-cherry-pick-of-#2152-upstream-release-2.11
Automated cherry pick of #2152: lbagent: 改正unicast vrrp日志记录
2019-08-07 19:17:54 +08:00
Qiu Jian
ae78a6a36f fix: not return prefix object when list bucket object in non-recursive mode 2019-08-07 18:58:47 +08:00
Qiu Jian
ce79d14228 feature: bucket usage and quota check 2019-08-07 18:58:47 +08:00
yunion-ci-robot
aeac06afca Merge pull request #2145 from ioito/automated-cherry-pick-of-#2108-upstream-release-2.11
Automated cherry pick of #2108: feature: add huawei rds sync
2019-08-07 18:20:43 +08:00
yunion-ci-robot
24bf7477f8 Merge pull request #2155 from ioito/automated-cherry-pick-of-#2123-upstream-release-2.11
Automated cherry pick of #2123: fix: get keypair info fail after rebuild-root
2019-08-07 18:04:43 +08:00
ioito
68a9f5a4fd fix: get keypair info fail after rebuild-root 2019-08-07 17:56:57 +08:00
yunion-ci-robot
1c675316eb Merge pull request #2150 from ioito/automated-cherry-pick-of-#2149-upstream-release-2.11
Automated cherry pick of #2149: fix: not sync zstack deleted disk or instance & secgroup rule sync fix
2019-08-07 17:51:46 +08:00
yunion-ci-robot
a4fbc0ff23 Merge pull request #2137 from wanyaoqi/automated-cherry-pick-of-#2136-upstream-release-2.11
Automated cherry pick of #2136: fix guest cannot delete
2019-08-07 17:23:41 +08:00
yunion-ci-robot
3e22a0c49b Merge pull request #2144 from tb365/automated-cherry-pick-of-#2143-upstream-release-2.11
Automated cherry pick of #2143: model & model manager mismatch fix
2019-08-07 17:21:38 +08:00
yunion-ci-robot
de35f36a9c Merge pull request #2147 from ioito/automated-cherry-pick-of-#2135-upstream-release-2.11
Automated cherry pick of #2135: hotfix: essd PerformanceLevel sync
2019-08-07 17:20:37 +08:00
Yousong Zhou
049449249e lbagent: 改正agent参数变更校验 2019-08-07 09:17:26 +00:00
Yousong Zhou
6d991257a8 lbagent: 改正unicast vrrp日志记录 2019-08-07 09:17:26 +00:00
rex zhasm
97cdafe0a0 新增 climc notify-broadcast 接口,用于向所有在线用户发 websocket 通知 (#2133) 2019-08-07 16:43:28 +08:00
ioito
305cac5920 fix: not sync zstack deleted disk or instance & secgroup rule sync fix 2019-08-07 16:20:35 +08:00
ioito
6d14f5ae78 hotfix: essd PerformanceLevel sync 2019-08-07 15:39:15 +08:00
ioito
9454dcdbe0 feature: add huawei rds sync 2019-08-07 11:40:30 +08:00
TangBin
494d9c2c9c code check error fix 2019-08-07 11:14:36 +08:00
TangBin
c1c3351b28 model & model manager mismatch fix 2019-08-07 11:14:36 +08:00
yunion-ci-robot
30191d2cff Merge pull request #2142 from swordqiu/automated-cherry-pick-of-#2140-upstream-release-2.11
Automated cherry pick of #2140: fix: auth through disconnected ldap IDP
2019-08-07 10:08:10 +08:00
Qiu Jian
37950e160e fix: auth through disconnected ldap IDP 2019-08-07 00:35:08 +08:00
yunion-ci-robot
6a75cc5f5e Merge pull request #2139 from swordqiu/automated-cherry-pick-of-#2112-upstream-release-2.11
Automated cherry pick of #2112: s3gateway phase2
2019-08-06 23:25:08 +08:00
yunion-ci-robot
95cca9a4e1 Merge pull request #2125 from ioito/automated-cherry-pick-of-#2124-upstream-release-2.11
Automated cherry pick of #2124: hotfix: deprecated password auth
2019-08-06 23:07:12 +08:00
yunion-ci-robot
34012e200c Merge pull request #2118 from yousong/automated-cherry-pick-of-#2117-upstream-release-2.11
Automated cherry pick of #2117: lbclusters: 改正删除操作
2019-08-06 23:02:11 +08:00
yunion-ci-robot
01e4ffe0fc Merge pull request #2115 from yousong/automated-cherry-pick-of-#2104-upstream-release-2.11
Automated cherry pick of #2104: wires: 添加mtu属性
2019-08-06 22:57:09 +08:00
Qiu Jian
07c9b119f3 update vendor 2019-08-06 22:46:25 +08:00
Qiu Jian
7f0cfee1d2 s3gateway phase2 2019-08-06 22:46:25 +08:00
wanyaoqi
353d28fe8c fix guest cannot delete 2019-08-06 21:14:44 +08:00
yunion-ci-robot
aef27ac0b1 Merge pull request #2120 from wanyaoqi/automated-cherry-pick-of-#2114-upstream-release-2.11
Automated cherry pick of #2114: misc bugfix
2019-08-06 20:26:09 +08:00
Yousong Zhou
799f669c81 lbagents: 添加undeploy支持 2019-08-06 12:09:01 +00:00
Yousong Zhou
903115bfde lbclusters: 改正删除操作 2019-08-06 12:09:01 +00:00
Yousong Zhou
ddde9af94c climc: lb-create: 允许指定cluster 2019-08-06 12:09:01 +00:00
yunion-ci-robot
10289f6a43 Merge pull request #2129 from tb365/automated-cherry-pick-of-#2128-upstream-release-2.11
Automated cherry pick of #2128: kvm elb fix
2019-08-06 19:50:08 +08:00
TangBin
0320e0189f kvm elb fix 2019-08-06 17:37:08 +08:00
ioito
ef95a3ee02 hotfix: deprecated password auth 2019-08-06 17:12:40 +08:00
wanyaoqi
12f766baaa misc bugfix 2019-08-06 15:38:57 +08:00
yunion-ci-robot
4b00d34297 Merge pull request #2107 from swordqiu/automated-cherry-pick-of-#2105-upstream-release-2.11
Automated cherry pick of #2105: fix: adjust default policies for system resources
2019-08-06 15:30:10 +08:00
Yousong Zhou
e9fdda7203 hostman: rootfs: 网络配置添加MTU支持 2019-08-06 07:22:41 +00:00
Yousong Zhou
e72498c190 wires: 添加mtu属性 2019-08-06 07:22:41 +00:00
yunion-ci-robot
8079910f07 Merge pull request #2110 from yousong/automated-cherry-pick-of-#2109-upstream-release-2.11
Automated cherry pick of #2109: lbclusters: 创建时仅允许指定OneCloud Zone
2019-08-06 15:07:09 +08:00
yunion-ci-robot
c22d397652 Merge pull request #2088 from tb365/automated-cherry-pick-of-#2087-upstream-release-2.11
Automated cherry pick of #2087: aliyun&huawei redis sync support
2019-08-06 15:06:11 +08:00
TangBin
c004bf2421 add elastic cache purge fix 2019-08-06 15:02:29 +08:00
TangBin
7189e43977 add elastic cache purge 2019-08-06 15:02:29 +08:00
TangBin
a0a9ddd01b aliyun&huawei redis sync support 2019-08-06 15:02:28 +08:00
yunion-ci-robot
52ed4b7d0c Merge pull request #2113 from Mjoycarry/automated-cherry-pick-of-#2075-upstream-release-2.11
Automated cherry pick of #2075: nat create delete restful api finished
2019-08-06 15:00:08 +08:00
Rain
8319ac6c6b nat create delete restful api finished 2019-08-06 10:56:16 +08:00
yunion-ci-robot
19b511b435 Merge pull request #2101 from tb365/automated-cherry-pick-of-#2100-upstream-release-2.11
Automated cherry pick of #2100: huawei & elb bugfix
2019-08-06 10:21:08 +08:00
Yousong Zhou
6c210e77cc lbclusters: 创建时仅允许指定OneCloud Zone 2019-08-05 12:51:19 +00:00
yunion-ci-robot
7712c2e8c9 Merge pull request #2098 from wanyaoqi/automated-cherry-pick-of-#2097-upstream-release-2.11
Automated cherry pick of #2097: secgroups get distinct tenant
2019-08-05 19:59:09 +08:00
yunion-ci-robot
27214ddb0a Merge pull request #2095 from ioito/automated-cherry-pick-of-#2094-upstream-release-2.11
Automated cherry pick of #2094: hotfix: change order_by=guest -> order_by=guest_cnt
2019-08-05 19:51:08 +08:00
yunion-ci-robot
7a809ba288 Merge pull request #2093 from ioito/automated-cherry-pick-of-#2092-upstream-release-2.11
Automated cherry pick of #2092: hotfix: add networkinterface docs
2019-08-05 19:48:07 +08:00
Qiu Jian
783d10b17d fix: adjust default policies for system resources 2019-08-05 18:59:11 +08:00
TangBin
3ee67b9f75 huawei & elb bugfix 2019-08-05 16:51:47 +08:00
wanyaoqi
938b13fdc3 secgroups get distinct tenant 2019-08-05 12:03:13 +08:00
ioito
c788aee2a2 hotfix: change order_by=guest -> order_by=guest_cnt 2019-08-05 11:26:03 +08:00
yunion-ci-robot
c90a3bd56d Merge pull request #2083 from ioito/automated-cherry-pick-of-#2082-upstream-release-2.11
Automated cherry pick of #2082: fix: get openstack all customize storage type
2019-08-02 20:16:05 +08:00
ioito
e5a9dc934b fix: get openstack all customize storage type 2019-08-02 20:09:50 +08:00
ioito
a95070a3cd hotfix: add networkinterface docs 2019-08-02 17:12:30 +08:00
yunion-ci-robot
a772dc2194 Merge pull request #2090 from yousong/automated-cherry-pick-of-#2089-upstream-release-2.11
Automated cherry pick of #2089: ansibleserver: 操作宿主机时默认使用用户root
2019-08-02 12:14:04 +08:00
yunion-ci-robot
4f365370ed Merge pull request #2077 from wanyaoqi/automated-cherry-pick-of-#2060-upstream-release-2.11
Automated cherry pick of #2060: support get model distinct field
2019-08-02 12:13:04 +08:00
Yousong Zhou
62b176d36b ansibleserver: 操作宿主机时默认使用用户root 2019-08-02 04:01:31 +00:00
yunion-ci-robot
a99a38aef7 Merge pull request #2080 from ioito/automated-cherry-pick-of-#2079-upstream-release-2.11
Automated cherry pick of #2079: fix: cloudaccount and cloudprovider not in same domain
2019-08-01 22:23:03 +08:00
ioito
4b29e0ad5c fix: cloudaccount and cloudprovider not in same domain 2019-08-01 21:58:28 +08:00
wanyaoqi
439e94ba63 support get model distinct field 2019-08-01 21:44:38 +08:00
yunion-ci-robot
79ea74c519 Merge pull request #2068 from ioito/automated-cherry-pick-of-#2067-upstream-release-2.11
Automated cherry pick of #2067: fix: zstack create tcp udp secgroup rule error
2019-08-01 17:32:02 +08:00
yunion-ci-robot
6e9f5d3792 Merge pull request #2065 from ioito/automated-cherry-pick-of-#2064-upstream-release-2.11
Automated cherry pick of #2064: hotfix: change params from order_by_cache=asc|desc to order_by=cache & order=asc|desc
2019-08-01 17:31:02 +08:00
yunion-ci-robot
69639244c5 Merge pull request #2063 from ioito/automated-cherry-pick-of-#2056-upstream-release-2.11
Automated cherry pick of #2056: add: add brand field for server-sku-list
2019-08-01 17:00:02 +08:00
yunion-ci-robot
ec44abe37b Merge pull request #2049 from ioito/automated-cherry-pick-of-#2048-upstream-release-2.11
Automated cherry pick of #2048: fix: openstack glance image-list not list all images
2019-08-01 16:55:02 +08:00
yunion-ci-robot
02af534510 Merge pull request #2055 from swordqiu/automated-cherry-pick-of-#2051-upstream-release-2.11
Automated cherry pick of #2051: fix: 1. project quota-list not include domain quota 2. do not check conformance between project and domain quota
2019-08-01 16:47:02 +08:00
yunion-ci-robot
ccf42c821d Merge pull request #2073 from wanyaoqi/automated-cherry-pick-of-#2072-upstream-release-2.11
Automated cherry pick of #2072: remove host rpm requre
2019-08-01 16:45:01 +08:00
wanyaoqi
32dbfb7844 remove host rpm requre 2019-08-01 15:53:06 +08:00
yunion-ci-robot
dedc623d8a Merge pull request #2059 from swordqiu/automated-cherry-pick-of-#2057-upstream-release-2.11
Automated cherry pick of #2057: fix: server-list add is_prepaid_recycle field
2019-08-01 15:20:05 +08:00
ioito
71c5b201fe fix: zstack create tcp udp secgroup rule error 2019-07-31 22:04:37 +08:00
ioito
f0ae46f23e hotfix: change params from order_by_cache=asc|desc to order_by=cache & order=asc|desc 2019-07-31 21:45:19 +08:00
ioito
858367c2e4 add: add brand field for server-sku-list 2019-07-31 19:40:25 +08:00
Qiu Jian
debc847c6c fix: server-list add is_prepaid_recycle field 2019-07-31 18:35:52 +08:00
Qiu Jian
6356a26134 fix: 1. project quota-list not include domain quota 2. do not check conformance between project and domain quota 2019-07-31 17:53:39 +08:00
ioito
f0c86acb7f fix: openstack glance image-list not list all images 2019-07-31 17:20:32 +08:00
yunion-ci-robot
84b943af1b Merge pull request #2041 from wanyaoqi/automated-cherry-pick-of-#2040-upstream-release-2.11
Automated cherry pick of #2040: fix guest get host wire from network
2019-07-31 15:58:58 +08:00
yunion-ci-robot
213639f0e2 Merge pull request #2038 from yousong/automated-cherry-pick-of-#2037-upstream-release-2.11
Automated cherry pick of #2037: lbagents: 为influxdb_output_url设定默认值
2019-07-31 15:58:00 +08:00
yunion-ci-robot
48b8c902fc Merge pull request #2027 from ioito/automated-cherry-pick-of-#2026-upstream-release-2.11
Automated cherry pick of #2026: fix: zstack system disk resize
2019-07-31 15:57:01 +08:00
yunion-ci-robot
054c996502 Merge pull request #2024 from ioito/automated-cherry-pick-of-#2001-upstream-release-2.11
Automated cherry pick of #2001: hotfix: validate resize disk when change config
2019-07-31 15:56:01 +08:00
yunion-ci-robot
e1f1a8a787 Merge pull request #2020 from ioito/automated-cherry-pick-of-#1982-upstream-release-2.11
Automated cherry pick of #1982: fix: rbd image resize not found error
2019-07-31 15:55:01 +08:00
yunion-ci-robot
176c16e3e5 Merge pull request #2044 from wanyaoqi/automated-cherry-pick-of-#2043-upstream-release-2.11
Automated cherry pick of #2043: guest export keys add zone
2019-07-31 15:51:01 +08:00
wanyaoqi
5ecc49007b guest export keys add zone 2019-07-31 15:43:36 +08:00
wanyaoqi
f2be4824f3 fix guest get host wire from network 2019-07-31 14:33:08 +08:00
Yousong Zhou
9be95c05b2 lbagents: details=true时显示cluster的名称 2019-07-31 03:15:27 +00:00
Yousong Zhou
5bd916d987 lbagents: 为influxdb_output_url设定默认值 2019-07-31 03:15:27 +00:00
yunion-ci-robot
05650ca4c7 Merge pull request #2018 from wanyaoqi/automated-cherry-pick-of-#2017-upstream-release-2.11
Automated cherry pick of #2017: fix list order by
2019-07-31 02:22:58 +08:00
yunion-ci-robot
2e7670b003 Merge pull request #2012 from Zexi/automated-cherry-pick-of-#2011-upstream-release-2.11
Automated cherry pick of #2011: region capability: fix regional public network not found
2019-07-31 02:21:58 +08:00
yunion-ci-robot
66a3e84535 Merge pull request #2035 from wanyaoqi/automated-cherry-pick-of-#2034-upstream-release-2.11
Automated cherry pick of #2034: remove telegraf config retention_policy
2019-07-30 22:05:59 +08:00
yunion-ci-robot
61ce77c609 Merge pull request #2032 from ioito/automated-cherry-pick-of-#2029-upstream-release-2.11
Automated cherry pick of #2029: fix: avoid region2 panic when update openstack storage
2019-07-30 22:00:58 +08:00
wanyaoqi
1fc027f51a remove telegraf config retention_policy 2019-07-30 21:59:24 +08:00
ioito
971e27a033 fix: avoid region2 panic when update openstack storage 2019-07-30 20:51:11 +08:00
ioito
e4d10481b5 fix: zstack system disk resize 2019-07-30 19:29:51 +08:00
ioito
4378db4148 hotfix: validate resize disk when change config 2019-07-30 19:15:44 +08:00
ioito
5965fdbdb9 fix: rbd image resize not found error 2019-07-30 19:09:53 +08:00
wanyaoqi
b50e1af6c0 fix list order by 2019-07-30 18:22:35 +08:00
yunion-ci-robot
d9b0a1becf Merge pull request #2015 from Zexi/automated-cherry-pick-of-#2014-upstream-release-2.11
Automated cherry pick of #2014: region: fix server create input params not correct when detach sub resource
2019-07-30 18:14:34 +08:00
Zexi
e3db4d016e region: fix server create input params not correct when detach sub resource 2019-07-30 18:08:26 +08:00
Zexi
81c3aa43a1 region capability: fix regional public network not found 2019-07-30 17:32:18 +08:00
yunion-ci-robot
ff09039719 Merge pull request #1988 from swordqiu/automated-cherry-pick-of-#1986-upstream-release-2.11
Automated cherry pick of #1986: fix: init sysadmin as system user
2019-07-30 16:51:33 +08:00
yunion-ci-robot
33acd3f721 Merge pull request #2004 from tb365/automated-cherry-pick-of-#2002-upstream-release-2.11
Automated cherry pick of #2002: copyright update climc fix
2019-07-30 13:59:32 +08:00
yunion-ci-robot
779fff312f Merge pull request #1996 from tb365/automated-cherry-pick-of-#1994-upstream-release-2.11
Automated cherry pick of #1994: huawei rebuild root fix
2019-07-30 13:55:31 +08:00
yunion-ci-robot
0781cca72a Merge pull request #2006 from ioito/automated-cherry-pick-of-#2005-upstream-release-2.11
Automated cherry pick of #2005: fix: add priority for openstack secgroup rule priority
2019-07-30 12:55:33 +08:00
yunion-ci-robot
9627277247 Merge pull request #1990 from ioito/automated-cherry-pick-of-#1989-upstream-release-2.11
Automated cherry pick of #1989: fix: qcloud reserved first, second and last ip for internal connection
2019-07-30 12:22:32 +08:00
yunion-ci-robot
a381388306 Merge pull request #2000 from swordqiu/automated-cherry-pick-of-#1998-upstream-release-2.11
Automated cherry pick of #1998: fix: managed instance password not correct when deploy with keypair
2019-07-30 11:54:33 +08:00
ioito
aa7b285fde fix: add priority for openstack secgroup rule priority 2019-07-30 11:50:02 +08:00
yunion-ci-robot
dc4b0cc093 Merge pull request #1984 from ioito/automated-cherry-pick-of-#1983-upstream-release-2.11
Automated cherry pick of #1983: fix: allow normal user create prepaid resource
2019-07-30 11:32:32 +08:00
TangBin
4ddfdcc9a9 copyright update climc fix 2019-07-30 11:14:52 +08:00
Qiu Jian
9ccb84e2f2 fix: managed instance password not correct when deploy with keypair 2019-07-29 20:49:12 +08:00
TangBin
292ddb3239 huawei rebuild root fix 2019-07-29 20:35:52 +08:00
ioito
671941e905 fix: qcloud reserved first, second and last ip for internal connection 2019-07-29 20:02:54 +08:00
Qiu Jian
2499093897 fix: init sysadmin as system user 2019-07-29 17:46:03 +08:00
ioito
36be4ef7f4 fix: allow normal user create prepaid resource 2019-07-29 16:45:39 +08:00
yunion-ci-robot
0a808368e5 Merge pull request #1980 from wanyaoqi/automated-cherry-pick-of-#1979-upstream-release-2.11
Automated cherry pick of #1979: fix server purge
2019-07-29 16:32:32 +08:00
wanyaoqi
0575747f92 fix server purge 2019-07-29 15:15:45 +08:00
Jian Qiu
0a2b89bde3 Move cloud drivers from pkg/util to pkg/multicloud (#1977) 2019-07-29 00:24:48 +08:00
Jian Qiu
4662b82261 Automated cherry pick of #1905: huawei elb support (#1975)
* huawei elb support

* aws elb support
2019-07-28 15:23:11 +08:00
yunion-ci-robot
36f091ba83 Merge pull request #1973 from swordqiu/automated-cherry-pick-of-#1969-upstream-release-2.11
Automated cherry pick of #1969: fix: server create eip quota check error
2019-07-27 21:28:29 +08:00
Qiu Jian
f3517b0d26 fix: server create eip quota check error 2019-07-27 20:05:18 +08:00
yunion-ci-robot
1c7c6fa7b0 Merge pull request #1967 from ioito/automated-cherry-pick-of-#1965-upstream-release-2.11
Automated cherry pick of #1965: 支持设置ceph精准超时时间
2019-07-27 18:58:29 +08:00
yunion-ci-robot
598368dcf8 Merge pull request #1966 from ioito/automated-cherry-pick-of-#1408-upstream-release-2.11
Automated cherry pick of #1408: init model
2019-07-27 18:49:28 +08:00
yunion-ci-robot
d39f243744 Merge pull request #1963 from tb365/automated-cherry-pick-of-#1962-upstream-release-2.11
Automated cherry pick of #1962: add copyright api climc
2019-07-27 18:48:28 +08:00
ioito
36bcbbabf5 支持设置ceph精准超时时间 2019-07-27 18:48:05 +08:00
ioito
ad45ac995a rebase master 2019-07-27 18:43:30 +08:00
ioito
023c5e7695 add account privileges sync 2019-07-27 18:43:30 +08:00
ioito
e0c1e0edd2 remove serviceips models 2019-07-27 18:43:30 +08:00
ioito
7fb909356b support aws rds 2019-07-27 18:43:30 +08:00
ioito
4bb5d7a762 init model 2019-07-27 18:43:30 +08:00
yunion-ci-robot
8dc6bd18be Merge pull request #1961 from yousong/automated-cherry-pick-of-#1960-upstream-release-2.11
Automated cherry pick of #1960: yunionconf: 改正启动失败问题
2019-07-27 17:53:28 +08:00
TangBin
1cfab0ea67 add copyright api climc 2019-07-27 16:53:25 +08:00
Qiu Jian
30a02d9f07 fix: allow turn off non-default domain projects 2019-07-27 15:52:24 +08:00
Yousong Zhou
d2c97b757e cloudir: 改正启动失败问题
```sh
find pkg -name 'models' | while read d; do
	for f in $d/*.go; do
		case "$f" in
			*/doc.go) ;;
			*/initdb.go) ;;
			pkg/lbagent/models/*) ;;
			*)
				if grep -q 'Manager = ' $f; then
					grep -q 'SetVirtualObject' $f || echo $f
				fi
				;;
		esac
	done
done
```
2019-07-27 07:49:08 +00:00
Yousong Zhou
b82bf90c5a treewide: 按照gofmt改代码风格 2019-07-27 07:49:08 +00:00
Yousong Zhou
06a298eb3b modelbase: 若GetIModelManager()不符合预期则panic
便于定位
2019-07-27 07:49:08 +00:00
Yousong Zhou
ea09f783ff yunionconf: 改正启动失败问题 2019-07-27 07:49:08 +00:00
yunion-ci-robot
ca7c434014 Merge pull request #1955 from yousong/automated-cherry-pick-of-#1954-upstream-release-2.11
Automated cherry pick of #1954: ansibleplaybooks: 改正输出溢出时的记录
2019-07-27 09:58:07 +08:00
Yousong Zhou
a3e71c574d ansibleplaybooks: 改正输出溢出时的记录 2019-07-27 01:13:37 +00:00
yunion-ci-robot
90630623e8 Merge pull request #1952 from yousong/automated-cherry-pick-of-#1951-upstream-release-2.11
Automated cherry pick of #1951: ansibleplaybooks: 改正启动失败问题
2019-07-27 00:35:08 +08:00
yunion-ci-robot
2ef5a1b648 Merge pull request #1947 from wanyaoqi/automated-cherry-pick-of-#1946-upstream-release-2.11
Automated cherry pick of #1946: bugfix:
2019-07-27 00:32:07 +08:00
yunion-ci-robot
79595c2928 Merge pull request #1945 from tb365/automated-cherry-pick-of-#1942-upstream-release-2.11
Automated cherry pick of #1942: 华为 & ucloud fix
2019-07-27 00:28:06 +08:00
Yousong Zhou
f6939dd13f ansibleplaybooks: 增量式记录输出 2019-07-26 15:24:48 +00:00
Yousong Zhou
0649b8ff3d pkg: ansible: 支持指定OutputWriter 2019-07-26 15:24:47 +00:00
Yousong Zhou
e6610be842 ansibleplaybooks: Output字段使用mediumtext 2019-07-26 15:24:47 +00:00
Yousong Zhou
81477c8a76 ansibleplaybooks: 改正启动失败问题 2019-07-26 15:24:47 +00:00
wanyaoqi
aa2453b93e bugfix:
- storage cache iso
- guest start on host
2019-07-26 19:47:14 +08:00
yunion-ci-robot
0f56eb9a28 Merge pull request #1940 from yousong/automated-cherry-pick-of-#1939-upstream-release-2.11
Automated cherry pick of #1939: lbbackends: 若backend guest已删除getVpc返回空且不报错
2019-07-26 18:13:08 +08:00
TangBin
5225aafbbf huawei rebuild root fix 2019-07-26 18:11:10 +08:00
TangBin
c6cd84d295 华为 & ucloud fix 2019-07-26 18:11:10 +08:00
Yousong Zhou
b128a0414f lbbackends: 若backend guest已删除getVpc返回空且不报错 2019-07-26 08:52:33 +00:00
yunion-ci-robot
e972a40005 Merge pull request #1911 from ioito/automated-cherry-pick-of-#1910-upstream-release-2.11
Automated cherry pick of #1910: fix: 避免镜像同步到私有云自定义镜像里面
2019-07-26 15:31:08 +08:00
yunion-ci-robot
b9f7c5e52e Merge pull request #1933 from yousong/automated-cherry-pick-of-#1932-upstream-release-2.11
Automated cherry pick of #1932: vendor: update yunion.io/x/pkg
2019-07-26 15:20:08 +08:00
yunion-ci-robot
d1c9b6023f Merge pull request #1929 from swordqiu/automated-cherry-pick-of-#1927-upstream-release-2.11
Automated cherry pick of #1927: fix: not trauncating task errors
2019-07-26 13:32:10 +08:00
yunion-ci-robot
19a6171f6e Merge pull request #1926 from swordqiu/automated-cherry-pick-of-#1924-upstream-release-2.11
Automated cherry pick of #1924: fix: server-create may timeout if external image used
2019-07-26 13:31:11 +08:00
yunion-ci-robot
50471de34f Merge pull request #1923 from swordqiu/automated-cherry-pick-of-#1922-upstream-release-2.11
Automated cherry pick of #1922: feature: filter results by multiple providers or brands
2019-07-26 13:30:07 +08:00
yunion-ci-robot
beacf04337 Merge pull request #1937 from Zexi/automated-cherry-pick-of-#1935-upstream-release-2.11
Automated cherry pick of #1935: region: fix server create params missing data
2019-07-26 12:54:09 +08:00
yunion-ci-robot
ee7eddb5da Merge pull request #1916 from Zexi/automated-cherry-pick-of-#1915-upstream-release-2.11
Automated cherry pick of #1915: baremetal: mkfs.ext4 add '-T largefile' option
2019-07-26 12:53:07 +08:00
Zexi
db52fa170f region: fix server create params missing data 2019-07-26 12:52:06 +08:00
Yousong Zhou
1f3c70c57c vendor: update yunion.io/x/pkg 2019-07-26 03:45:25 +00:00
yunion-ci-robot
8975634865 Merge pull request #1919 from yousong/automated-cherry-pick-of-#1918-upstream-release-2.11
Automated cherry pick of #1918: lbagents: 加强vrrp校验
2019-07-25 22:37:07 +08:00
Qiu Jian
c5904d22a6 fix: not trauncating task errors 2019-07-25 22:29:26 +08:00
Qiu Jian
745611f1e0 fix: server-create may timeout if external image used 2019-07-25 21:33:14 +08:00
Qiu Jian
f80b19bdc9 feature: filter results by multiple providers or brands 2019-07-25 20:59:37 +08:00
Yousong Zhou
98d88aaf07 lbagents: 加强vrrp校验
- 同cluster中的lbagent
   - vrrp virtual_router_id, preempt, pass必须相同
   - vrrp priority必须不同
 - 同zone不同cluster中的lbagent
   - vrrp virtual_router_id必须相同
 - 创建时若不满足以上条件,则创建失败
 - 更新参数时同时更新同cluster的peer lbagents
2019-07-25 10:53:26 +00:00
Zexi
18bf91f7df baremetal: mkfs.ext4 add '-T largefile' option 2019-07-25 17:10:44 +08:00
ioito
c02bd96ef9 fix: 避免镜像同步到私有云自定义镜像里面 2019-07-25 14:40:06 +08:00
yunion-ci-robot
e822db3a3c Merge pull request #1908 from swordqiu/automated-cherry-pick-of-#1906-upstream-release-2.11
Automated cherry pick of #1906: fix: climc image-public parameter fix
2019-07-25 14:25:14 +08:00
yunion-ci-robot
7e2b8aeca2 Merge pull request #1904 from swordqiu/automated-cherry-pick-of-#1902-upstream-release-2.11
Automated cherry pick of #1902: fix: role assignments list should include matched policies
2019-07-25 14:23:06 +08:00
yunion-ci-robot
6cf99e7cd7 Merge pull request #1899 from swordqiu/automated-cherry-pick-of-#1898-upstream-release-2.11
Automated cherry pick of #1898: fix: networkinterfacenetwork set nil virtual object
2019-07-25 14:22:08 +08:00
Qiu Jian
f056f91301 fix: climc image-public parameter fix 2019-07-25 10:16:58 +08:00
Qiu Jian
18ed058908 fix: role assignments list should include matched policies 2019-07-25 02:32:06 +08:00
yunion-ci-robot
a6e34b7174 Merge pull request #1901 from ioito/automated-cherry-pick-of-#1900-upstream-release-2.11
Automated cherry pick of #1900: 修复计算虚拟网卡数量sql错误
2019-07-25 01:18:05 +08:00
屈轩
07c4f75e64 修复计算虚拟网卡数量sql错误 2019-07-25 00:52:02 +08:00
Qiu Jian
292d6f9c09 fix: networkinterfacenetwork set nil virtual object 2019-07-25 00:19:07 +08:00
yunion-ci-robot
c1a8836ed3 Merge pull request #1897 from swordqiu/automated-cherry-pick-of-#1769-#1893-upstream-release-2.11
Automated cherry pick of #1769: feature: s3gateway #1893: s3gateway revise
2019-07-24 23:41:05 +08:00
Qiu Jian
b5502bb1bc s3gateway revise 2019-07-24 22:40:03 +08:00
Qiu Jian
ae946a1f13 fix: bug fixes, add docs 2019-07-24 22:39:55 +08:00
Qiu Jian
e0c13571a8 s3gateway round 2 2019-07-24 22:39:29 +08:00
Qiu Jian
39746ee2c1 feature: s3gateway 2019-07-24 22:38:15 +08:00
Zexi Li
5bd68c1916 Merge pull request #1896 from swordqiu/automated-cherry-pick-of-#1824-upstream-release-2.11
Automated cherry pick of #1824: nat update without client
2019-07-24 22:36:56 +08:00
Rain
5367e239d9 make sure that one snat/dnat rule named Entry and several snat/dnat rules named Table 2019-07-24 22:34:20 +08:00
yunion-ci-robot
f4910e0b1f Merge pull request #1892 from ioito/automated-cherry-pick-of-#1773-upstream-release-2.11
Automated cherry pick of #1773: 虚拟网卡信息同步
2019-07-24 20:39:06 +08:00
ioito
7f521ffd8f add networkinterfaces api docs 2019-07-24 19:49:12 +08:00
ioito
0b0d50a646 networks details for networkinterface 2019-07-24 19:47:58 +08:00
ioito
5af7538c22 add ucloud interface sync 2019-07-24 19:47:58 +08:00
ioito
3014f4b08b 虚拟网卡信息同步 2019-07-24 19:47:58 +08:00
yunion-ci-robot
e3ee0ad9de Merge pull request #1876 from Mjoycarry/automated-cherry-pick-of-#1824-upstream-release-2.11
Automated cherry pick of #1824: huawei nat list finish without testing
2019-07-24 17:58:05 +08:00
yunion-ci-robot
6ad771a743 Merge pull request #1889 from swordqiu/automated-cherry-pick-of-#1885-upstream-release-2.11
Automated cherry pick of #1885: fix: validate info when importing ldap user/group/domain
2019-07-24 16:15:06 +08:00
Qiu Jian
e824982383 fix: validate info when importing ldap user/group/domain 2019-07-24 16:02:33 +08:00
yunion-ci-robot
60df4693f4 Merge pull request #1882 from swordqiu/automated-cherry-pick-of-#1880-upstream-release-2.11
Automated cherry pick of #1880: fix: server-logininfo rpc include login_key
2019-07-24 13:26:07 +08:00
Qiu Jian
766534675e fix: server-logininfo rpc include login_key 2019-07-24 13:17:33 +08:00
yunion-ci-robot
1e8b44ced5 Merge pull request #1878 from wanyaoqi/automated-cherry-pick-of-#1877-upstream-release-2.11
Automated cherry pick of #1877: fix glance list share resource
2019-07-24 12:05:06 +08:00
wanyaoqi
bfa1df0059 fix glance list share resource 2019-07-24 11:56:23 +08:00
Rain
099d1d4974 nat update without client
add nat update subcommands for huaweicli, aliyuncli

modify interface name of nat, add comment of this
2019-07-24 11:32:11 +08:00
yunion-ci-robot
70c5ea73ae Merge pull request #1875 from Mjoycarry/automated-cherry-pick-of-#1811-upstream-release-2.11
Automated cherry pick of #1811: huawei nat list finish without testing
2019-07-24 10:19:06 +08:00
Rain
c9f92ee0f6 support sync and list natgateway, snat table and dnat table 2019-07-24 10:14:47 +08:00
Rain
94562c6c58 huawei nat list finish without testing 2019-07-24 10:14:47 +08:00
yunion-ci-robot
f30ae9abc4 Merge pull request #1863 from ioito/automated-cherry-pick-of-#1860-upstream-release-2.11
Automated cherry pick of #1860: 添加同步安全组日志
2019-07-24 09:36:07 +08:00
yunion-ci-robot
8d8567f0e2 Merge pull request #1869 from swordqiu/automated-cherry-pick-of-#1867-upstream-release-2.11
Automated cherry pick of #1867: fix: clear pending-delete when sched_fail
2019-07-24 09:34:07 +08:00
yunion-ci-robot
682acb8e9c Merge pull request #1871 from swordqiu/automated-cherry-pick-of-#1870-upstream-release-2.11
Automated cherry pick of #1870: fix: agent registration will report version
2019-07-24 09:29:05 +08:00
yunion-ci-robot
15a9c932ae Merge pull request #1874 from swordqiu/automated-cherry-pick-of-#1872-upstream-release-2.11
Automated cherry pick of #1872: fix: keystone user initialization hit empty extra
2019-07-24 09:24:05 +08:00
Qiu Jian
2cc07bc99f fix: keystone user initialization hit empty extra 2019-07-24 09:16:02 +08:00
Qiu Jian
13c8795ab1 fix: agent registration will report version 2019-07-24 01:24:24 +08:00
Qiu Jian
24f4b28ca0 fix: clear pending-delete when sched_fail 2019-07-23 23:48:33 +08:00
yunion-ci-robot
99095ee9e7 Merge pull request #1859 from swordqiu/automated-cherry-pick-of-#1857-upstream-release-2.11
Automated cherry pick of #1857: fix: esxi change instanceType failed as ChangeConfig2 not implemented
2019-07-23 22:13:07 +08:00
ioito
e5ef25b7cb 避免重复设置同一vpc底下不同安全组externalId 2019-07-23 21:54:08 +08:00
ioito
f59d0ab27f 添加同步安全组日志 2019-07-23 21:54:08 +08:00
Qiu Jian
ac9f5a8b0d fix: esxi change instanceType failed as ChangeConfig2 not implemented 2019-07-23 21:25:32 +08:00
yunion-ci-robot
2c786c0ada Merge pull request #1853 from wanyaoqi/automated-cherry-pick-of-#1852-upstream-release-2.11
Automated cherry pick of #1852: fix baremetal attach network
2019-07-23 21:05:05 +08:00
yunion-ci-robot
207201dd07 Merge pull request #1855 from ioito/automated-cherry-pick-of-#1840-upstream-release-2.11
Automated cherry pick of #1840: 卸载磁盘时忽略云上磁盘已经被删除的错误
2019-07-23 20:11:04 +08:00
yunion-ci-robot
0fb27b522b Merge pull request #1846 from ioito/automated-cherry-pick-of-#1829-upstream-release-2.11
Automated cherry pick of #1829: 避免cacheimage refresh时同步azure镜像信息异常
2019-07-23 18:42:05 +08:00
ioito
34a049d5d6 卸载磁盘时忽略云上磁盘已经被删除的错误 2019-07-23 18:35:03 +08:00
wanyaoqi
6d910afaec fix baremetal attach network 2019-07-23 18:18:28 +08:00
yunion-ci-robot
7f9df03054 Merge pull request #1850 from wanyaoqi/automated-cherry-pick-of-#1843-upstream-release-2.11
Automated cherry pick of #1843: bugfix: baremetal import , guest panic notify
2019-07-23 18:18:05 +08:00
wanyaoqi
22b983929a bugfix: baremetal import , guest panic notify
- reset baremetal access ip on baremetal rebuild
- add guest panic notify template
2019-07-23 16:15:19 +08:00
ioito
b97380d3f4 避免cacheimage refresh时同步azure镜像信息异常 2019-07-23 15:05:25 +08:00
yunion-ci-robot
e0326f3bb0 Merge pull request #1839 from wanyaoqi/automated-cherry-pick-of-#1837-upstream-release-2.11
Automated cherry pick of #1837: fix guest check quota on change config
2019-07-23 12:06:08 +08:00
yunion-ci-robot
aae50eb4d8 Merge pull request #1833 from ioito/automated-cherry-pick-of-#1832-upstream-release-2.11
Automated cherry pick of #1832: 避免因cloudprovider disable导致账号同步失效
2019-07-23 12:03:06 +08:00
yunion-ci-robot
e045b61cb7 Merge pull request #1825 from ioito/automated-cherry-pick-of-#1820-upstream-release-2.11
Automated cherry pick of #1820: 仅忽略 no such service错误,否则以最新api结果为准
2019-07-23 11:58:05 +08:00
wanyaoqi
693088b2e8 fix guest check quota on change config 2019-07-22 21:18:43 +08:00
ioito
bb13109093 避免因cloudprovider disable导致账号同步失效 2019-07-22 20:04:15 +08:00
Zexi Li
903b2a87bc Merge pull request #1831 from Zexi/automated-cherry-pick-of-#1823-upstream-release-2.11
Automated cherry pick of #1823: fix: node count for a virtualized host is always 1
2019-07-22 19:17:55 +08:00
Qiu Jian
da29cb81f7 fix: node count for a virtualized host is always 1 2019-07-22 19:17:15 +08:00
ioito
0d36cb5b9a 仅忽略 no such service错误,否则以最新api结果为准 2019-07-22 10:10:56 +08:00
yunion-ci-robot
a392564b11 Merge pull request #1817 from swordqiu/automated-cherry-pick-of-#1815-upstream-release-2.11
Automated cherry pick of #1815: fix: image add is_standard field, filter by is_standard=false|true
2019-07-22 10:04:05 +08:00
yunion-ci-robot
c4c8cadd5c Merge pull request #1818 from wanyaoqi/automated-cherry-pick-of-#1689-upstream-release-2.11
Automated cherry pick of #1689: auto create subnet on host register
2019-07-20 13:34:03 +08:00
yunion-ci-robot
c7a7b840ea Merge pull request #1819 from tb365/automated-cherry-pick-of-#1801-upstream-release-2.11
Automated cherry pick of #1801: ucloud bugfix
2019-07-19 15:40:06 +08:00
TangBin
def245b156 ucloud bugfix 2019-07-19 15:33:16 +08:00
wanyaoqi
07839cc8b8 auto create subnet on host register 2019-07-19 15:29:38 +08:00
Qiu Jian
f57e27c625 fix: image add is_standard field, filter by is_standard=false|true 2019-07-19 15:19:14 +08:00
yunion-ci-robot
e119d7fd97 Merge pull request #1813 from wanyaoqi/automated-cherry-pick-of-#1812-upstream-release-2.11.0
Automated cherry pick of #1812: host reload telegraf
2019-07-19 11:40:03 +08:00
wanyaoqi
6e139c47fd host reload telegraf 2019-07-19 11:36:41 +08:00
yunion-ci-robot
cb59769de0 Merge pull request #1809 from Zexi/automated-cherry-pick-of-#1808-upstream-release-2.11.0
Automated cherry pick of #1808: scheduler: esxi and zstack hypervisor do cpu and memory filter
2019-07-19 00:50:04 +08:00
yunion-ci-robot
b9b938aa41 Merge pull request #1806 from ioito/automated-cherry-pick-of-#1805-upstream-release-2.11.0
Automated cherry pick of #1805: 允许更改openstack存储容量
2019-07-19 00:44:02 +08:00
Zexi
82122a74f6 scheduler: esxi and zstack hypervisor do cpu and memory filter 2019-07-18 20:26:30 +08:00
ioito
a3edbd2895 允许更改openstack存储容量 2019-07-18 19:43:54 +08:00
yunion-ci-robot
e1ccc42fbc Merge pull request #1793 from ioito/automated-cherry-pick-of-#1792-upstream-release-2.11.0
Automated cherry pick of #1792: 优化套餐启用禁用
2019-07-18 15:46:01 +08:00
yunion-ci-robot
3c2ba9089a Merge pull request #1794 from ioito/automated-cherry-pick-of-#1761-upstream-release-2.11.0
Automated cherry pick of #1761: 添加lb eip同步
2019-07-18 15:43:58 +08:00
yunion-ci-robot
82de704dd9 Merge pull request #1797 from ioito/automated-cherry-pick-of-#1796-upstream-release-2.11.0
Automated cherry pick of #1796: 提高openstack创建windows机器成功率
2019-07-18 15:39:58 +08:00
ioito
001f0292cb 提高openstack创建windows机器成功率 2019-07-18 15:04:49 +08:00
ioito
3c20e3da9e 添加lb eip同步 2019-07-18 14:41:44 +08:00
ioito
14bad8ccc9 优化套餐启用禁用 2019-07-18 14:37:28 +08:00
yunion-ci-robot
2ed681a93b Merge pull request #1791 from swordqiu/automated-cherry-pick-of-#1789-upstream-release-2.11.0
Automated cherry pick of #1789: fix: server change owner did not change disk's owner
2019-07-18 14:18:00 +08:00
yunion-ci-robot
01b67589c3 Merge pull request #1782 from Mjoycarry/automated-cherry-pick-of-#1758-upstream-release-2.11.0
Automated cherry pick of #1758: huawei cloud vpc route table list and sync finished; huaweicli routetable-list finished
2019-07-18 14:16:59 +08:00
yunion-ci-robot
8f6410f513 Merge pull request #1787 from wanyaoqi/automated-cherry-pick-of-#1786-upstream-release-2.11.0
Automated cherry pick of #1786: disk reset set server status
2019-07-18 14:09:58 +08:00
Qiu Jian
6d82a4aa53 fix: server change owner did not change disk's owner 2019-07-18 14:06:03 +08:00
wanyaoqi
144ebb6575 disk reset set server status 2019-07-18 11:37:21 +08:00
Zexi Li
fe1be4f9fd Merge pull request #1785 from Zexi/automated-cherry-pick-of-#1783-upstream-release-2.11.0
Automated cherry pick of #1783: glance: fix duplicate data for node db_stats
2019-07-18 10:48:22 +08:00
Zexi
0eaf16f267 glance: fix duplicate data for node db_stats 2019-07-18 10:47:20 +08:00
Rain
56f09c8085 huawei cloud vpc route table list and sync finished; huaweicli routetable-list finished 2019-07-18 09:57:27 +08:00
yunion-ci-robot
f7f3d3b6b0 Merge pull request #1780 from Zexi/automated-cherry-pick-of-#1779-upstream-release-2.11.0
Automated cherry pick of #1779: baremetal: fix msdos last primary partition not resized
2019-07-17 22:15:58 +08:00
Zexi
bcac0820ae baremetal: fix msdos last primary partition not resized 2019-07-17 22:08:41 +08:00
yunion-ci-robot
1d318591f8 Merge pull request #1778 from swordqiu/automated-cherry-pick-of-#1776-upstream-release-2.11.0
Automated cherry pick of #1776: fix: allow access mcclient serviceCatalog
2019-07-17 21:30:59 +08:00
yunion-ci-robot
6abcc46cd2 Merge pull request #1768 from swordqiu/automated-cherry-pick-of-#1766-upstream-release-2.11.0
Automated cherry pick of #1766: fix: allow project creating prepaid servers
2019-07-17 21:29:01 +08:00
Qiu Jian
dacf6e8bac fix: allow access mcclient serviceCatalog 2019-07-17 21:20:39 +08:00
yunion-ci-robot
a96e28f6d5 Merge pull request #1759 from Zexi/automated-cherry-pick-of-#1756-upstream-release-2.11.0
Automated cherry pick of #1756: region: server order by account and remove models stale comments
2019-07-17 21:13:57 +08:00
yunion-ci-robot
ab34261e9e Merge pull request #1746 from wanyaoqi/automated-cherry-pick-of-#1745-upstream-release-2.11.0
Automated cherry pick of #1745: fix deploy network with routes
2019-07-17 21:02:59 +08:00
yunion-ci-robot
5a83ca059b Merge pull request #1762 from ioito/automated-cherry-pick-of-#1569-upstream-release-2.11.0
Automated cherry pick of #1569: fix sku PropertyInstanceSpecs
2019-07-17 18:19:57 +08:00
yunion-ci-robot
54fff043d1 Merge pull request #1772 from Zexi/automated-cherry-pick-of-#1770-upstream-release-2.11.0
Automated cherry pick of #1770: scheduler: schedtag predicate match resources then do filter
2019-07-17 13:48:58 +08:00
yunion-ci-robot
73f3c761e2 Merge pull request #1764 from Zexi/automated-cherry-pick-of-#1763-upstream-release-2.11.0
Automated cherry pick of #1763: service db init sync exit
2019-07-17 13:46:01 +08:00
Zexi
98ee0f806b scheduler: schedtag predicate match resources then do filter 2019-07-17 13:22:20 +08:00
Qiu Jian
0bde486252 fix: allow project creating prepaid servers 2019-07-16 19:43:56 +08:00
Zexi
7897629f97 db: app service support --exit-after-db-init 2019-07-16 19:15:48 +08:00
Zexi
eac4fa9c18 service db init sync exit 2019-07-16 19:15:48 +08:00
ioito
fbf4145093 fix sku PropertyInstanceSpecs 2019-07-16 17:18:19 +08:00
yunion-ci-robot
18aee8cb59 Merge pull request #1754 from Zexi/automated-cherry-pick-of-#1753-upstream-release-2.11.0
Automated cherry pick of #1753: region: fix baremetal specs not found when domain_id specify
2019-07-16 16:59:59 +08:00
Zexi
73b25b8a81 region: server order by account and remove models stale comments 2019-07-16 16:12:07 +08:00
yunion-ci-robot
87460dd73e Merge pull request #1736 from wanyaoqi/automated-cherry-pick-of-#1735-upstream-release-2.11.0
Automated cherry pick of #1735: add verify storage mount point
2019-07-16 12:52:58 +08:00
wanyaoqi
ece0c4b49f add verify storage mount point 2019-07-16 11:33:49 +08:00
wanyaoqi
5b8b36def8 fix deploy network with routes 2019-07-16 11:13:39 +08:00
Zexi
edb45ea232 region: fix baremetal specs not found when domain_id specify 2019-07-16 11:13:00 +08:00
yunion-ci-robot
eb0b78b7f1 Merge pull request #1752 from Zexi/automated-cherry-pick-of-#1717-upstream-release-2.11.0
Automated cherry pick of #1717: host 相关的 rpm 包自动添加 systemd unit service 文件
2019-07-16 11:07:58 +08:00
Zexi
ca8a6e920e host 相关的 rpm 包自动添加 systemd unit service 文件 2019-07-16 10:27:33 +08:00
yunion-ci-robot
290fe95f49 Merge pull request #1739 from wanyaoqi/automated-cherry-pick-of-#1738-upstream-release-2.11.0
Automated cherry pick of #1738: host listen before register
2019-07-15 23:48:56 +08:00
yunion-ci-robot
3d75420d88 Merge pull request #1750 from swordqiu/automated-cherry-pick-of-#1748-upstream-release-2.11.0
Automated cherry pick of #1748: fix: server-change-ipaddr may ignore errors when changing ipaddr
2019-07-15 23:37:01 +08:00
Qiu Jian
5aeb4712d6 fix: server-change-ipaddr may ignore errors when changing ipaddr 2019-07-15 23:01:54 +08:00
yunion-ci-robot
8e2580fd08 Merge pull request #1733 from yousong/automated-cherry-pick-of-#1732-upstream-release-2.11.0
Automated cherry pick of #1732: lb: 将lb.backendgroup视为弱引用
2019-07-15 22:16:58 +08:00
yunion-ci-robot
1c9bd60cf6 Merge pull request #1742 from ioito/automated-cherry-pick-of-#1741-upstream-release-2.11.0
Automated cherry pick of #1741: 避免设置disable的cloudproviderregion状态
2019-07-15 21:37:00 +08:00
ioito
c03f84887a 避免设置disable的cloudproviderregion状态 2019-07-15 16:41:44 +08:00
wanyaoqi
828a50492a host listen before register 2019-07-15 16:03:03 +08:00
Yousong Zhou
2ef32fbbcc lb: 将lb.backendgroup视为弱引用 2019-07-15 05:00:38 +00:00
yunion-ci-robot
e05608a776 Merge pull request #1731 from yousong/automated-cherry-pick-of-#1729-release-2.11.0
Automated cherry pick of #1729: .circleci: 改进test执行
2019-07-15 12:41:58 +08:00
Yousong Zhou
aa26577ff8 .circleci: 改进test执行
避免go test执行两次

避免因push到codecov失败造成测试失败

  1457 @@ -10576,5 +10576,33 @@ yunion.io/x/onecloud/pkg/webconsole/comm
  1458  yunion.io/x/onecloud/pkg/webconsole/command/ssh_command.go:147:                        GetData
  1459  yunion.io/x/onecloud/pkg/webconsole/command/ssh_command.go:164:                        ShowInf
  1460  total:                                                                         (statements)
  1461 -Push /tmp/coverage.8mKa1lRFeG/profile.out to codecov.io^M
  1462 -Exited with code 7
  1463 \ No newline at end of file
  1464 +Push /tmp/coverage.GrWO8OlTrX/profile.out to codecov.io^M
  1465 +^M
  1466 +  _____          _^M
  1467 + / ____|        | |^M
  1468 +| |     ___   __| | ___  ___ _____   __^M
  1469 +| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /^M
  1470 +| |___| (_) | (_| |  __/ (_| (_) \ V /^M
  1471 + \_____\___/ \__,_|\___|\___\___/ \_/^M
  1472 +                              Bash-8a28df4^M
  1473 +^M
  1474 +^M
  1475 +==> Circle CI detected.^M
  1476 +    project root: .^M
  1477 +--> token set from env^M
  1478 +    Yaml found at: vendor/github.com/gin-gonic/gin/codecov.yml^M
  1479 +    -> Found 1 reports^M
  1480 +==> Detecting git/mercurial file structure^M
  1481 +==> Reading reports^M
  1482 +    + /tmp/coverage.GrWO8OlTrX/profile.out bytes=2221509^M
2019-07-15 03:51:40 +00:00
yunion-ci-robot
138686fe97 Merge pull request #1723 from swordqiu/automated-cherry-pick-of-#1721-upstream-release-2.11.0
Automated cherry pick of #1721: fix: ldap sync domain may remove local usrs
2019-07-15 10:40:57 +08:00
yunion-ci-robot
eb782f7873 Merge pull request #1725 from ioito/automated-cherry-pick-of-#1724-upstream-release-2.11.0
Automated cherry pick of #1724: 修复purge backend野指针引用问题
2019-07-15 10:36:57 +08:00
ioito
afe1f27356 修复purge backend野指针引用问题 2019-07-15 10:22:08 +08:00
yunion-ci-robot
af04da9cd7 Merge pull request #1720 from Zexi/automated-cherry-pick-of-#1718-upstream-release-2.11.0
Automated cherry pick of #1718: scheduler: optimize forecast filter info
2019-07-15 09:23:59 +08:00
Zexi
2f2b7bb080 scheduler: optimize forecast filter info 2019-07-15 09:17:01 +08:00
Qiu Jian
c35af724ef fix: ldap sync domain may remove local usrs 2019-07-15 08:45:14 +08:00
yunion-ci-robot
45a95e947b Merge pull request #1707 from yousong/automated-cherry-pick-of-#1706-release-2.11.0
Automated cherry pick of #1706: lbagent: deploy: 仓库配置文件默认sslverify=0
2019-07-13 20:15:00 +08:00
yunion-ci-robot
70eb41fedf Merge pull request #1715 from wanyaoqi/automated-cherry-pick-of-#1714-upstream-release-2.11.0
Automated cherry pick of #1714: fix  disk create from snapshot
2019-07-13 19:23:58 +08:00
wanyaoqi
4e5ee3f497 fix disk create from snapshot 2019-07-13 19:21:54 +08:00
yunion-ci-robot
9833c2cac1 Merge pull request #1710 from ioito/automated-cherry-pick-of-#1709-upstream-release-2.11.0
Automated cherry pick of #1709: fix console log
2019-07-13 17:39:00 +08:00
ioito
395bc795a5 fix console log 2019-07-13 14:46:14 +08:00
Yousong Zhou
90eb4af91c lbagent: deploy: 部署结束重启服务 2019-07-13 05:20:39 +00:00
Yousong Zhou
c7f21fc203 lbagent: deploy: 仓库配置文件默认sslverify=0 2019-07-13 05:20:38 +00:00
yunion-ci-robot
cb78a62b8f Merge pull request #1697 from ioito/automated-cherry-pick-of-#1696-upstream-release-2.11.0
Automated cherry pick of #1696: 补充zstack宿主机本地存储
2019-07-12 14:44:56 +08:00
yunion-ci-robot
507f98d5af Merge pull request #1692 from swordqiu/automated-cherry-pick-of-#1690-upstream-release-2.11.0
Automated cherry pick of #1690: fix: invalid old password
2019-07-12 14:43:02 +08:00
yunion-ci-robot
7d6faaf66d Merge pull request #1700 from ioito/automated-cherry-pick-of-#1699-upstream-release-2.11.0
Automated cherry pick of #1699: 同优先级规则deny优先于allow规则生效
2019-07-12 11:59:57 +08:00
ioito
a73990773f 同优先级规则deny优先于allow规则生效 2019-07-12 11:48:26 +08:00
ioito
2af91e81a4 补充zstack宿主机本地存储 2019-07-12 10:39:32 +08:00
yunion-ci-robot
6d50bdd33b Merge pull request #1694 from wanyaoqi/automated-cherry-pick-of-#1693-upstream-release-2.11.0
Automated cherry pick of #1693: fix host register:
2019-07-12 10:32:56 +08:00
wanyaoqi
50a085c741 fix host register: 2019-07-12 10:29:39 +08:00
yunion-ci-robot
cfb275b371 Merge pull request #1682 from ioito/automated-cherry-pick-of-#1681-upstream-release-2.11.0
Automated cherry pick of #1681: 宿主机存储利用率仅计算本地存储
2019-07-12 09:06:56 +08:00
Qiu Jian
6ac449e355 fix: invalid old password 2019-07-11 23:59:58 +08:00
yunion-ci-robot
bd97b29178 Merge pull request #1688 from swordqiu/automated-cherry-pick-of-#1686-upstream-release-2.11.0
Automated cherry pick of #1686: fix: notify message use brand insteand of hypervisor
2019-07-11 19:57:57 +08:00
Qiu Jian
252c07a789 fix: notify message use brand insteand of hypervisor 2019-07-11 18:35:58 +08:00
yunion-ci-robot
c8e48e4d47 Merge pull request #1677 from ioito/automated-cherry-pick-of-#1676-upstream-release-2.11.0
Automated cherry pick of #1676: 避免重装系统时绑定秘钥后没有account信息
2019-07-11 18:30:59 +08:00
ioito
77982aa4f1 宿主机存储利用率仅计算本地存储 2019-07-11 17:28:35 +08:00
ioito
fa92c8a804 避免重装系统时绑定秘钥后没有account信息 2019-07-11 16:59:05 +08:00
yunion-ci-robot
a02458aaef Merge pull request #1673 from ioito/automated-cherry-pick-of-#1672-upstream-release-2.11.0
Automated cherry pick of #1672: fix grpc client timeout
2019-07-11 13:47:58 +08:00
ioito
0acddee2b1 fix grpc client timeout 2019-07-11 13:42:57 +08:00
yunion-ci-robot
3a0abe056c Merge pull request #1671 from swordqiu/automated-cherry-pick-of-#1667-upstream-release-2.11.0
Automated cherry pick of #1667: fix: task usercred should be utf8 charset
2019-07-11 12:17:56 +08:00
Qiu Jian
314e6d8886 fix: task usercred should be utf8 charset 2019-07-11 12:13:40 +08:00
yunion-ci-robot
5e5dd7965d Merge pull request #1665 from wanyaoqi/automated-cherry-pick-of-#1662-upstream-release-2.11.0
Automated cherry pick of #1662: baremetal init fsdriver
2019-07-11 12:01:56 +08:00
wanyaoqi
d1c795056e baremetal init fsdriver 2019-07-11 11:41:25 +08:00
Jian Qiu
6bb1f23a25 Automated cherry pick of #1659: fix: add all ports usage (#1661)
* fix: add all ports usage

* fix: action log project-domain charset is not utf8
2019-07-11 08:58:12 +08:00
yunion-ci-robot
b83356840d Merge pull request #1655 from ioito/automated-cherry-pick-of-#1654-upstream-release-2.11.0
Automated cherry pick of #1654: fix qcloud associate eip timeout after bind
2019-07-11 08:44:55 +08:00
ioito
8de9303102 fix qcloud associate eip timeout after bind 2019-07-10 21:04:06 +08:00
yunion-ci-robot
beb3e7df9c Merge pull request #1653 from tb365/automated-cherry-pick-of-#1649-upstream-release-2.11.0
Automated cherry pick of #1649: add rpc-global-settings-dictionary
2019-07-10 20:58:57 +08:00
yunion-ci-robot
6833f3117c Merge pull request #1650 from wanyaoqi/automated-cherry-pick-of-#1603-upstream-release-2.11.0
Automated cherry pick of #1603: - set mirror status on switch
2019-07-10 20:56:56 +08:00
TangBin
53d21d403a make fmt 2019-07-10 20:55:33 +08:00
TangBin
d8fba4963a add rpc-global-settings-dictionary 2019-07-10 20:55:33 +08:00
yunion-ci-robot
476b9ea17a Merge pull request #1642 from ioito/automated-cherry-pick-of-#1641-upstream-release-2.11.0
Automated cherry pick of #1641: 统一处理ResourceNotFound返回id not find
2019-07-10 20:44:57 +08:00
yunion-ci-robot
a2b782ccfb Merge pull request #1639 from ioito/automated-cherry-pick-of-#1638-upstream-release-2.11.0
Automated cherry pick of #1638: 避免无限删除guest失败
2019-07-10 20:42:57 +08:00
wanyaoqi
ecf31c7915 add build file 2019-07-10 20:41:47 +08:00
wanyaoqi
3a3728bcb8 - set mirror status on switch
- deploy agent

- gpfs snapshot

- code fixs
2019-07-10 20:41:47 +08:00
ioito
0e503dd0fa 统一处理ResourceNotFound返回id not find 2019-07-10 16:11:14 +08:00
ioito
4cad2c9b2b 避免无限删除guest失败 2019-07-10 15:25:52 +08:00
yunion-ci-robot
bd20c28567 Merge pull request #1637 from swordqiu/automated-cherry-pick-of-#1635-upstream-release-2.11.0
Automated cherry pick of #1635: fix: possible reduce timeout for quota list
2019-07-10 11:55:56 +08:00
Qiu Jian
76b3280a4d fix: disk quota usage should exclude pending_deleted disks 2019-07-10 00:12:00 +08:00
Qiu Jian
d50d9309fd fix: possible reduce timeout for quota list 2019-07-10 00:11:59 +08:00
Jian Qiu
098ecd42f8 fix: domain usage is overriden by project usage (#1625) 2019-07-09 23:24:22 +08:00
yunion-ci-robot
da6ace7ffa Merge pull request #1627 from ioito/automated-cherry-pick-of-#1626-upstream-release-2.11.0
Automated cherry pick of #1626: metadata permission
2019-07-09 23:23:57 +08:00
yunion-ci-robot
8b8d5c5fb9 Merge pull request #1631 from ioito/automated-cherry-pick-of-#1622-upstream-release-2.11.0
Automated cherry pick of #1622: 兼容zone及usable参数
2019-07-09 22:59:56 +08:00
ioito
8221913ae9 兼容zone及usable参数 2019-07-09 22:44:41 +08:00
ioito
cfe66a734c metadata permission 2019-07-09 22:41:46 +08:00
yunion-ci-robot
f755aacc47 Merge pull request #1614 from ioito/automated-cherry-pick-of-#1604-upstream-release-2.11.0
Automated cherry pick of #1604: register sched-start-guest task
2019-07-09 17:30:56 +08:00
yunion-ci-robot
ffcb1d0fff Merge pull request #1606 from ioito/automated-cherry-pick-of-#1602-upstream-release-2.11.0
Automated cherry pick of #1602: add task failed code
2019-07-09 17:28:58 +08:00
yunion-ci-robot
550a084012 Merge pull request #1610 from ioito/automated-cherry-pick-of-#1605-upstream-release-2.11.0
Automated cherry pick of #1605: fix clone rbd image error
2019-07-09 17:21:55 +08:00
yunion-ci-robot
2c4f7b38ec Merge pull request #1621 from swordqiu/automated-cherry-pick-of-#1619-upstream-release-2.11.0
Automated cherry pick of #1619: fix: add default network project privileges
2019-07-09 17:18:56 +08:00
yunion-ci-robot
ac701e699f Merge pull request #1618 from zhasm/automated-cherry-pick-of-#1616-upstream-release-2.11.0
Automated cherry pick of #1616: + zstack build desc file
2019-07-09 17:17:57 +08:00
Qiu Jian
5048383a45 add usage debug 2019-07-09 17:14:05 +08:00
Qiu Jian
e9a6652162 fix: add default network project privileges 2019-07-09 17:14:05 +08:00
Zhang Dongliang
42393fb664 + zstack build desc file 2019-07-09 16:58:42 +08:00
ioito
ec24dbaf42 register sched-start-guest task 2019-07-09 15:53:05 +08:00
ioito
30bf968aa5 fix clone rbd image error 2019-07-09 15:48:42 +08:00
ioito
9e4bdf1cdc add task failed code 2019-07-09 15:44:55 +08:00
yunion-ci-robot
176b014924 Merge pull request #1600 from ioito/automated-cherry-pick-of-#1599-upstream-release-2.11.0
Automated cherry pick of #1599: fix max session login issue
2019-07-08 21:44:56 +08:00
ioito
65a6896d0b fix max session login issue 2019-07-08 16:45:19 +08:00
yunion-ci-robot
fc0eca373a Merge pull request #1597 from ioito/automated-cherry-pick-of-#1596-upstream-release-2.11.0
Automated cherry pick of #1596: 私有云或公有云镜像windows默认用户名都是Administrator
2019-07-07 19:08:58 +08:00
ioito
06ab929f55 私有云或公有云镜像windows默认用户名都是Administrator 2019-07-07 18:46:04 +08:00
Jian Qiu
aca1ba327f fix: image quota rpc support action and cascade params (#1595) 2019-07-06 23:57:07 +08:00
yunion-ci-robot
7582c44d18 Merge pull request #1591 from ioito/automated-cherry-pick-of-#1568-upstream-release-2.11.0
Automated cherry pick of #1568: fix cache domain tenants
2019-07-06 17:18:55 +08:00
yunion-ci-robot
54f20b7c15 Merge pull request #1589 from ioito/automated-cherry-pick-of-#1584-upstream-release-2.11.0
Automated cherry pick of #1584: fix create server sku not found error
2019-07-06 17:16:55 +08:00
ioito
9cc57b9b81 fix cache domain tenants 2019-07-06 16:58:33 +08:00
ioito
9d12d55bb0 fix create server sku not found error 2019-07-06 16:56:37 +08:00
Jian Qiu
603300271f fix: quota encode json allowing zero value (#1572) 2019-07-05 23:04:46 +08:00
yunion-ci-robot
79d291ee16 Merge pull request #1574 from ioito/automated-cherry-pick-of-#1573-upstream-release-2.11.0
Automated cherry pick of #1573: add usable filter for network
2019-07-05 23:03:56 +08:00
yunion-ci-robot
c93a404f72 Merge pull request #1559 from ioito/automated-cherry-pick-of-#1551-upstream-release-2.11.0
Automated cherry pick of #1551: add without_user_meta filter
2019-07-05 22:44:56 +08:00
yunion-ci-robot
7d1b3768a0 Merge pull request #1564 from ioito/automated-cherry-pick-of-#1563-upstream-release-2.11.0
Automated cherry pick of #1563: add deploy failed action log
2019-07-05 22:28:54 +08:00
yunion-ci-robot
46ecce550c Merge pull request #1561 from ioito/automated-cherry-pick-of-#1543-upstream-release-2.11.0
Automated cherry pick of #1543: fix not set guest status after attach or detach disk
2019-07-05 22:24:59 +08:00
yunion-ci-robot
8c25029126 Merge pull request #1555 from ioito/automated-cherry-pick-of-#1550-upstream-release-2.11.0
Automated cherry pick of #1550: fix purge aliyun account error by lbbg
2019-07-05 22:20:54 +08:00
ioito
d002fc4c07 add usable filter for network 2019-07-05 18:49:27 +08:00
ioito
2d6c542c9e add deploy failed action log 2019-07-05 14:17:40 +08:00
ioito
7bac8490f2 optimized tag filter 2019-07-05 10:24:14 +08:00
ioito
b9cd6a00e1 fix not set guest status after attach or detach disk 2019-07-05 10:17:35 +08:00
yunion-ci-robot
4c9ea9d615 Merge pull request #1546 from swordqiu/automated-cherry-pick-of-#1544-upstream-release-2.11.0
Automated cherry pick of #1544: fix: add disk usage for domain and project
2019-07-05 10:16:54 +08:00
ioito
c1a1e10d76 add without_user_meta filter 2019-07-05 10:15:22 +08:00
yunion-ci-robot
56a6018a8f Merge pull request #1554 from swordqiu/automated-cherry-pick-of-#1552-upstream-release-2.11.0
Automated cherry pick of #1552: 1. allow replace set quota when action=replace 2. show when the project external resource was fetched
2019-07-05 10:14:54 +08:00
yunion-ci-robot
138715b626 Merge pull request #1542 from swordqiu/automated-cherry-pick-of-#1540-upstream-release-2.11.0
Automated cherry pick of #1540: fix: user filter by role
2019-07-05 10:13:54 +08:00
ioito
034bd3006f fix purge aliyun account error by lbbg 2019-07-05 10:09:52 +08:00
yunion-ci-robot
0ce5323265 Merge pull request #1548 from ioito/automated-cherry-pick-of-#1547-upstream-release-2.11.0
Automated cherry pick of #1547: add azure disk reset func
2019-07-04 23:55:57 +08:00
Qiu Jian
60bd04c9bf 1. allow replace set quota when action=replace 2. show when the project external resource was fetched 2019-07-04 23:41:44 +08:00
Qiu Jian
e1eec7d9c5 add nics usage 2019-07-04 21:35:58 +08:00
Qiu Jian
ffb90ea605 fix: add disk usage for domain and project 2019-07-04 21:35:56 +08:00
ioito
edfd985996 add azure disk reset func 2019-07-04 20:04:10 +08:00
yunion-ci-robot
0e3b3182b1 Merge pull request #1508 from ioito/automated-cherry-pick-of-#1507-upstream-release-2.11.0
Automated cherry pick of #1507: fix sku filter by usable
2019-07-04 15:36:54 +08:00
Qiu Jian
90bca6afb1 fix: user filter by role 2019-07-04 15:30:32 +08:00
yunion-ci-robot
f8aab9e44c Merge pull request #1518 from yousong/automated-cherry-pick-of-#1517-release-2.11.0
Automated cherry pick of #1517: .circleci: save go cache
2019-07-04 11:43:51 +08:00
yunion-ci-robot
cb9460cb94 Merge pull request #1539 from swordqiu/automated-cherry-pick-of-#1537-upstream-release-2.11.0
Automated cherry pick of #1537: add ldapcli rpm
2019-07-04 10:30:54 +08:00
Qiu Jian
ebc86e9bee add ldapcli rpm 2019-07-04 10:11:52 +08:00
yunion-ci-robot
d037d7f8c4 Merge pull request #1536 from swordqiu/automated-cherry-pick-of-#1534-upstream-release-2.11.0
Automated cherry pick of #1534: fix: 1. token add projects when no project specified 2. IVirtualResourceManager add GetResourceCount() method 3. domainId not initialized occasionally
2019-07-04 10:02:56 +08:00
yunion-ci-robot
099b447f14 Merge pull request #1530 from ioito/automated-cherry-pick-of-#1529-upstream-release-2.11.0
Automated cherry pick of #1529: fix create image with userCred issue
2019-07-03 23:22:53 +08:00
yunion-ci-robot
d39671059f Merge pull request #1525 from ioito/automated-cherry-pick-of-#1524-upstream-release-2.11.0
Automated cherry pick of #1524: fix azure reserved ips
2019-07-03 23:02:53 +08:00
Qiu Jian
54dfdbd682 fix: 1. token add projects when no project specified 2. IVirtualResourceManager add GetResourceCount() method 3. domainId not initialized occasionally 2019-07-03 23:00:21 +08:00
Yousong Zhou
f54c0f764b .circleci: build: save go cache 2019-07-03 13:39:45 +00:00
ioito
de86ff3dc8 fix create image with userCred issue 2019-07-03 20:56:42 +08:00
yunion-ci-robot
b68476f3dd Merge pull request #1521 from ioito/automated-cherry-pick-of-#1520-upstream-release-2.11.0
Automated cherry pick of #1520: zstack using shell to init image password
2019-07-03 20:19:53 +08:00
ioito
ebbdcf4cf8 fix azure reserved ips 2019-07-03 20:10:49 +08:00
ioito
3a58f28193 zstack using shell to init image password 2019-07-03 19:23:40 +08:00
yunion-ci-robot
87192b01d7 Merge pull request #1510 from yousong/automated-cherry-pick-of-#1509-release-2.11.0
Automated cherry pick of #1509: pkg: ansible: 改正文件内容写入路径
2019-07-03 18:09:55 +08:00
yunion-ci-robot
490c625b20 Merge pull request #1513 from wanyaoqi/automated-cherry-pick-of-#1512-upstream-release-2.11.0
Automated cherry pick of #1512: fix image download timout
2019-07-03 18:06:56 +08:00
yunion-ci-robot
e75e1fde1d Merge pull request #1504 from ioito/automated-cherry-pick-of-#1503-upstream-release-2.11.0
Automated cherry pick of #1503: fix cloud-init lock root login issue
2019-07-03 17:43:53 +08:00
wanyaoqi
521a867d9c fix image download timout 2019-07-03 17:43:43 +08:00
Yousong Zhou
354045c70a pkg: ansible: 改正文件内容写入路径
模板不会在files/目录下寻找

Fixes: 5ec150e7a9 ("pkg: ansible: 添加文件内容支持")
2019-07-03 09:26:31 +00:00
ioito
7272c59c80 fix sku filter by usable 2019-07-03 16:43:59 +08:00
ioito
aca4edba40 fix cloud-init lock root login issue 2019-07-03 15:53:55 +08:00
yunion-ci-robot
e5b9122002 Merge pull request #1481 from ioito/automated-cherry-pick-of-#1479-upstream-release-2.11.0
Automated cherry pick of #1479: fix sync openstack hoststorages issue
2019-07-03 08:34:51 +08:00
yunion-ci-robot
dbabeaf64d Merge pull request #1491 from ioito/automated-cherry-pick-of-#1486-upstream-release-2.11.0
Automated cherry pick of #1486: fix azure set secgroup error
2019-07-03 08:27:52 +08:00
yunion-ci-robot
0b6a90441c Merge pull request #1501 from yousong/automated-cherry-pick-of-#1500-release-2.11.0
Automated cherry pick of #1500: build: mod: 兼容bsd sed
2019-07-03 00:39:52 +08:00
Yousong Zhou
1d6609b4ed build: mod: 兼容bsd sed 2019-07-02 15:01:20 +00:00
yunion-ci-robot
969625a606 Merge pull request #1496 from wanyaoqi/automated-cherry-pick-of-#1495-upstream-release-2.11.0
Automated cherry pick of #1495: fix export data
2019-07-02 22:09:52 +08:00
wanyaoqi
8b59048856 fix export data 2019-07-02 22:03:50 +08:00
ioito
664531b71c fix azure set secgroup error 2019-07-02 21:23:43 +08:00
ioito
4648bf9962 fix sync openstack hoststorages issue 2019-07-02 20:12:12 +08:00
yunion-ci-robot
ef717be8f7 Merge pull request #1463 from ioito/automated-cherry-pick-of-#1191-upstream-release-2.11.0
Automated cherry pick of #1191: 私有云套餐操作支持
2019-07-02 18:55:51 +08:00
yunion-ci-robot
064108b863 Merge pull request #1475 from swordqiu/automated-cherry-pick-of-#1474-upstream-release-2.11.0
Automated cherry pick of #1474: fix: service catalog nil pointer
2019-07-02 18:52:51 +08:00
yunion-ci-robot
38b50820ce Merge pull request #1472 from wanyaoqi/automated-cherry-pick-of-#1471-upstream-release-2.11.0
Automated cherry pick of #1471: fix export data, set no limit; expand timeout
2019-07-02 18:49:53 +08:00
Qiu Jian
888f810a97 fix: service catalog nil pointer 2019-07-02 18:27:59 +08:00
wanyaoqi
9866ad0876 fix export data, set no limit; expand timeout 2019-07-02 17:57:06 +08:00
yunion-ci-robot
a109e1700f Merge pull request #1468 from ioito/automated-cherry-pick-of-#1467-upstream-release-2.11.0
Automated cherry pick of #1467: fix create disk scheduler failed
2019-07-02 16:47:53 +08:00
ioito
2e1ef46d10 fix create disk scheduler failed 2019-07-02 16:43:06 +08:00
yunion-ci-robot
d617663ab0 Merge pull request #1466 from tb365/automated-cherry-pick-of-#1464-upstream-release-2.11.0
Automated cherry pick of #1464: update mod
2019-07-02 16:25:52 +08:00
TangBin
16a6ce495b update mod 2019-07-02 16:08:53 +08:00
ioito
6485b68ae0 fix import order 2019-07-02 15:25:34 +08:00
ioito
15cf240470 添加api文档 2019-07-02 15:25:34 +08:00
ioito
6febc80672 私有云套餐操作支持 2019-07-02 15:25:34 +08:00
yunion-ci-robot
cc0151e9cb Merge pull request #1462 from swordqiu/automated-cherry-pick-of-#1460-upstream-release-2.11.0
Automated cherry pick of #1460: fix: 1. quota add API 2. tenant cache refresh 3. domain quota not initialize
2019-07-02 09:44:52 +08:00
Qiu Jian
fff502d709 feature: allow cascade quota set 2019-07-02 09:37:49 +08:00
Qiu Jian
ae8470ba35 fix: 1. quota add API 2. tenant cache refresh 3. domain quota not initialize 2019-07-02 09:37:48 +08:00
1183 changed files with 9186 additions and 98914 deletions

View File

@@ -21,6 +21,7 @@ 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
USER build

View File

@@ -1,4 +0,0 @@
/.git
/vendor
/cmd
/pkg

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

@@ -1,212 +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.12
uses: actions/setup-go@v1
with:
go-version: 1.12
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
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 && ./scripts/bundle_libraries.sh _output/bin/bundles/host _output/bin/host && ./scripts/host_find_libraries.sh _output/bin/bundles/host
make cmd/host-deployer && ./scripts/bundle_libraries.sh _output/bin/bundles/host-deployer _output/bin/host-deployer
make cmd/baremetal-agent && ./scripts/bundle_libraries.sh _output/bin/bundles/baremetal-agent _output/bin/baremetal-agent
make cmd/cloudevent cmd/devtool
make cmd/*cli
make cmd/esxi-agent
- 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 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 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 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 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 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 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

1
.gitignore vendored
View File

@@ -33,4 +33,3 @@ _output
GPATH
GRTAGS
GTAGS
pkg/generated

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

View File

@@ -32,11 +32,8 @@ LDFLAGS := "-w \
#####################################################
ifneq ($(DLV),)
GO_BUILD_FLAGS += -gcflags "all=-N -l"
LDFLAGS = ""
endif
GO_BUILD_FLAGS+=-mod vendor -ldflags $(LDFLAGS)
GO_BUILD_FLAGS:=-mod vendor -ldflags $(LDFLAGS)
GO_BUILD := go build $(GO_BUILD_FLAGS)
GO_INSTALL := go install -ldflags $(LDFLAGS)
GO_TEST := go test
@@ -47,8 +44,8 @@ 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 GO111MODULE:=on
@@ -83,9 +80,6 @@ test:
vet:
go vet ./...
cmd/esxi-agent: prepare_dir
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/%: prepare_dir
$(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
@@ -238,37 +232,3 @@ 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: gen-swagger
$(ROOT_DIR)/scripts/codegen.py swagger-serve
.PHONY: gen-model-api-check gen-model-api gen-swagger-check gen-swagger swagger-serve
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:
TAG=$(VERSION) REGISTRY=$(REGISTRY) $(ROOT_DIR)/scripts/docker_push.sh $(filter-out $@,$(MAKECMDGOALS))
.PHONY: image
%:
@:

8
OWNERS
View File

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

View File

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

View File

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

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 +0,0 @@
DESCRIPTION="Yunion DevTools Server"

View File

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

View File

@@ -1,13 +0,0 @@
FROM frolvlad/alpine-glibc:glibc-2.28
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
RUN apk update && \
apk add --no-cache tzdata ansible 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:latest
ADD ./_output/bin/apigateway /opt/yunion/bin/apigateway

View File

@@ -1,9 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.0.1
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

View File

@@ -1,34 +0,0 @@
FROM frolvlad/alpine-glibc:glibc-2.28
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
RUN mkdir -p /opt/yunion/bin
RUN apk update && \
apk add --no-cache ipmitool ethtool tzdata ca-certificates && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /opt/cloud/yunion/baremetal
# download baremetal-pxerom-*.x86_64.rpm and unpack rpm in current directory
COPY ./opt/cloud/yunion/baremetal/bootia32.efi /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/bootx64.efi /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/chain.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/initramfs /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/isolinux.bin /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/kernel /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.e32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.e64 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/libcom32.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/libutil.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/lpxelinux.0 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/menu.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/pxelinux.0 /opt/cloud/yunion/baremetal
# add mkisofs with bundles libraries
ADD ./mkisofs /bin/mkisofs
ADD ./.mkisofs.bin /bin/.mkisofs.bin
ADD ./bundles/mkisofs /bin/bundles/mkisofs

View File

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

View File

@@ -1,16 +0,0 @@
FROM frolvlad/alpine-glibc:glibc-2.28
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:latest
ADD ./_output/bin/cloudevent /opt/yunion/bin/cloudevent

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:latest
ADD ./_output/bin/cloudnet /opt/yunion/bin/cloudnet

View File

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

View File

@@ -1,4 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:latest
COPY ./build/esxi-agent/root/opt/ /opt/
ADD ./_output/bin/esxi-agent /opt/yunion/bin/esxi-agent

View File

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

View File

@@ -1,18 +0,0 @@
FROM frolvlad/alpine-glibc:glibc-2.28
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 && ./scripts/bundle-libraries.sh _output/bin/bundles/torrent _output/bin/torrent
RUN mkdir -p /opt/yunion/bin
ADD ./_output/bin/torrent /opt/yunion/bin/torrent
ADD ./_output/bin/.torrent.bin /opt/yunion/bin/.torrent.bin
ADD ./_output/bin/bundles/torrent /opt/yunion/bin/bundles/torrent

View File

@@ -1,11 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.0.1
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
ADD ./_output/bin/host /opt/yunion/bin/host
ADD ./_output/bin/.host.bin /opt/yunion/bin/.host.bin
ADD ./_output/bin/bundles/host /opt/yunion/bin/bundles/host

View File

@@ -1,11 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:v0.0.2
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
ADD ./_output/bin/host-deployer /opt/yunion/bin/host-deployer
ADD ./_output/bin/.host-deployer.bin /opt/yunion/bin/.host-deployer.bin
ADD ./_output/bin/bundles/host-deployer /opt/yunion/bin/bundles/host-deployer

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:latest
ADD ./_output/bin/keystone /opt/yunion/bin/keystone

View File

@@ -1,4 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:latest
ADD ./_output/bin/logger /opt/yunion/bin/logger

View File

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

View File

@@ -1,13 +0,0 @@
FROM frolvlad/alpine-glibc:glibc-2.28
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
RUN apk update && \
apk add --no-cache tzdata 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:latest
COPY ./build/region/root/opt/ /opt/
ADD ./_output/bin/region /opt/yunion/bin/region

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:latest
ADD ./_output/bin/region-dns /opt/yunion/bin/region-dns

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:latest
ADD ./_output/bin/s3gateway /opt/yunion/bin/s3gateway

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:latest
ADD ./_output/bin/scheduler /opt/yunion/bin/scheduler

View File

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

View File

@@ -1,12 +0,0 @@
FROM yunion/kubectl:1.14.3
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,4 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:latest
ADD ./_output/bin/yunionconf /opt/yunion/bin/yunionconf

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

@@ -15,6 +15,9 @@
package shell
import (
//"fmt"
//"strings"
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"

View File

@@ -1,46 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
type BucketOptionsVerifyOptions struct {
options.BaseListOptions
CloudaccountId string `help:"cloudaccount Id" required:"true"`
BillingReportBucket string `help:"S3 bucket that stores account billing report"`
BillingFilePrefix string `help:"prefix of billing file name"`
BillingBucketAccount string `help:"Id of cloudaccount that can access billing bucket"`
UsageReportBucket string `help:"S3 bucket that stores account usage report"`
UsageFilePrefix string `help:"prefix of usage file name"`
UsageBucketAccount string `help:"Id of cloudaccount that can access usage bucket"`
}
R(&BucketOptionsVerifyOptions{}, "bucket-options-verify", "billing bucket connection test",
func(s *mcclient.ClientSession, args *BucketOptionsVerifyOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.BucketOptions.PerformAction(s, args.CloudaccountId, "verify", params)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -16,7 +16,6 @@ package shell
import (
"fmt"
"io/ioutil"
"yunion.io/x/jsonutils"
@@ -26,28 +25,6 @@ import (
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func parseGcpCredential(filename string) (jsonutils.JSONObject, error) {
data, err := ioutil.ReadFile(filename)
if err != nil {
return nil, err
}
authParams, err := jsonutils.Parse(data)
if err != nil {
return nil, err
}
ret := jsonutils.NewDict()
for _, k := range []string{
"client_email",
"project_id",
"private_key_id",
"private_key",
} {
v, _ := authParams.Get(k)
ret.Add(v, fmt.Sprintf("gcp_%s", k))
}
return ret, nil
}
func init() {
type CloudaccountListOptions struct {
@@ -153,25 +130,6 @@ func init() {
return nil
})
R(&options.SGoogleCloudAccountCreateOptions{}, "cloud-account-create-google", "Create a Google cloud account", func(s *mcclient.ClientSession, args *options.SGoogleCloudAccountCreateOptions) error {
params := jsonutils.Marshal(args)
params.(*jsonutils.JSONDict).Add(jsonutils.NewString("Google"), "provider")
authParams, err := parseGcpCredential(args.GoogleJsonFile)
if err != nil {
return err
}
err = jsonutils.Update(params, authParams)
if err != nil {
return err
}
result, err := modules.Cloudaccounts.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.SAWSCloudAccountCreateOptions{}, "cloud-account-create-aws", "Create an AWS cloud account", func(s *mcclient.ClientSession, args *options.SAWSCloudAccountCreateOptions) error {
params := jsonutils.Marshal(args).(*jsonutils.JSONDict)
options := jsonutils.NewDict()
@@ -273,17 +231,6 @@ func init() {
return nil
})
R(&options.SCtyunCloudAccountCreateOptions{}, "cloud-account-create-ctyun", "Create a Ctyun cloud account", func(s *mcclient.ClientSession, args *options.SCtyunCloudAccountCreateOptions) error {
params := jsonutils.Marshal(args)
params.(*jsonutils.JSONDict).Add(jsonutils.NewString("Ctyun"), "provider")
result, err := modules.Cloudaccounts.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type CloudaccountUpdateOptions struct {
ID string `help:"ID or Name of cloud account"`
Name string `help:"New name to update"`
@@ -501,19 +448,6 @@ func init() {
return nil
})
R(&options.SCtyunCloudAccountUpdateOptions{}, "cloud-account-update-ctyun", "update a Ctyun cloud account", func(s *mcclient.ClientSession, args *options.SCtyunCloudAccountUpdateOptions) error {
params := jsonutils.Marshal(args).(*jsonutils.JSONDict)
if params.Size() == 0 {
return InvalidUpdateError()
}
result, err := modules.Cloudaccounts.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type CloudaccountShowOptions struct {
ID string `help:"ID or Name of cloud account"`
}
@@ -698,16 +632,6 @@ func init() {
return nil
})
R(&options.SCtyunCloudAccountUpdateCredentialOptions{}, "cloud-account-update-credential-ctyun", "Update credential of an Ctyun cloud account", func(s *mcclient.ClientSession, args *options.SCtyunCloudAccountUpdateCredentialOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.Cloudaccounts.PerformAction(s, args.ID, "update-credential", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type CloudaccountSyncOptions struct {
ID string `help:"ID or Name of cloud account"`
Force bool `help:"Force sync no matter what"`
@@ -804,34 +728,4 @@ func init() {
printObject(result)
return nil
})
type CloudaccountSyncSkusOptions struct {
ID string `help:"ID or Name of cloud account"`
RESOURCE string `help:"Resource of skus" choices:"serversku|elasticcachesku|dbinstance_sku"`
Force bool `help:"Force sync no matter what"`
Provider string `help:"provider to sync"`
Region string `help:"region to sync"`
}
R(&CloudaccountSyncSkusOptions{}, "cloud-account-sync-skus", "Sync skus of a cloud account", func(s *mcclient.ClientSession, args *CloudaccountSyncSkusOptions) error {
params := jsonutils.NewDict()
params.Set("resource", jsonutils.NewString(args.RESOURCE))
if args.Force {
params.Add(jsonutils.JSONTrue, "force")
}
if len(args.Provider) > 0 {
params.Add(jsonutils.NewString(args.Provider), "cloudprovider")
}
if len(args.Region) > 0 {
params.Add(jsonutils.NewString(args.Region), "cloudregion")
}
result, err := modules.Cloudaccounts.PerformAction(s, args.ID, "sync-skus", params)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -1,43 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
type CloudeventListOptions struct {
options.BaseListOptions
Since string `help:"since time"`
Until string `hlep:"until time"`
}
R(&CloudeventListOptions{}, "cloud-event-list", "List cloud events", func(s *mcclient.ClientSession, opts *CloudeventListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.Cloudevents.List(s, params)
if err != nil {
return err
}
printList(result, modules.Cloudevents.GetColumns(s))
return nil
})
}

View File

@@ -49,7 +49,7 @@ func init() {
type CloudregionCityListOptions struct {
Manager string `help:"List objects belonging to the cloud provider"`
Account string `help:"List objects belonging to the cloud account"`
Provider string `help:"List objects from the provider" choices:"VMware|Aliyun|Qcloud|Azure|Aws|Huawei|Openstack|Ucloud|ZStack|Google|Ctyun"`
Provider string `help:"List objects from the provider" choices:"VMware|Aliyun|Qcloud|Azure|Aws|Huawei|Openstack|Ucloud|ZStack"`
City string `help:"List regions in the specified city"`
PublicCloud *bool `help:"List objects belonging to public cloud" json:"public_cloud"`

View File

@@ -1,222 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func paramValidator(param jsonutils.JSONObject) (bool, error) {
// TODO 移到 server 端
log.Infof("paramValidator: param: %+v", param)
interval, err := param.Int("interval")
if err != nil {
return true, nil
}
day, err := param.Int("day")
if err != nil {
return true, nil
}
if interval == 0 && day == 0 {
return false, fmt.Errorf("interval and day can not be 0 at the same time")
}
return true, nil
}
func init() {
type CronjobListOptions struct {
options.BaseListOptions
Name string `help:"cloud region ID or Name" json:"-"`
}
R(&CronjobListOptions{}, "devtoolcronjob-list", "List Devtool Cronjobs", func(s *mcclient.ClientSession, args *CronjobListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
var result *modulebase.ListResult
result, err = modules.DevToolCronjobs.List(s, params)
printList(result, modules.DevToolCronjobs.GetColumns(s))
return nil
})
type CronjobCreateOptions struct {
NAME string `help:"Ansible Playbook ID or Name" json:"-"`
Day int `help:"Cronjob runs at given day" default:"0"`
Hour int `help:"Cronjob runs at given hour" default:"0"`
Min int `help:"Cronjob runs at given min" default:"0"`
Sec int `help:"Cronjob runs at given sec" default:"0"`
Interval int64 `help:"Cronjob runs at given interval" default:"0"`
Start bool `help:"start job when created" default:"false"`
Enabled bool `help:"Set job status enabled" default:"false"`
}
R(
&CronjobCreateOptions{},
"devtoolcronjob-create",
"Create a cronjob repo component",
func(s *mcclient.ClientSession, args *CronjobCreateOptions) error {
result, err := modules.AnsiblePlaybooks.Get(s, args.NAME, nil)
if err != nil {
return err
}
ansiblePlaybookName, err := result.GetString("name")
if err != nil {
return err
}
ansiblePlaybookID, err := result.GetString("id")
if err != nil {
return err
}
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(ansiblePlaybookName), "name")
params.Add(jsonutils.NewString(ansiblePlaybookID), "ansible_playbook_id")
if args.Start {
params.Add(jsonutils.JSONTrue, "start")
}
if args.Enabled {
params.Add(jsonutils.JSONTrue, "enabled")
} else if args.Interval > 0 {
params.Add(jsonutils.NewInt(int64(args.Interval)), "interval")
} else {
params.Add(jsonutils.NewInt(int64(0)), "interval")
params.Add(jsonutils.NewInt(int64(args.Day)), "day")
params.Add(jsonutils.NewInt(int64(args.Hour)), "hour")
params.Add(jsonutils.NewInt(int64(args.Min)), "min")
params.Add(jsonutils.NewInt(int64(args.Sec)), "sec")
}
ok, err := paramValidator(params)
if err != nil || !ok {
log.Infof("paramValidator error %s", err)
return err
}
cronjob, err := modules.DevToolCronjobs.Create(s, params)
if err != nil {
log.Errorf("modules.DevToolCronjobs.Create error %s", err)
return err
}
printObject(cronjob)
return nil
},
)
type DevToolCronjobShowOptions struct {
ID string `help:"ID or Name of the DevToolCronjob to show"`
}
R(&DevToolCronjobShowOptions{}, "devtoolcronjob-show", "Show cronjob details", func(s *mcclient.ClientSession, args *DevToolCronjobShowOptions) error {
result, err := modules.DevToolCronjobs.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type DevToolCronjobUpdateOptions struct {
ID string `help:"ID or Name of DevToolCronjob to update"`
Day int `help:"Cronjob runs at given day" json:"-" default:"-1"`
Hour int `help:"Cronjob runs at given hour" json:"-" default:"-1"`
Min int `help:"Cronjob runs at given min" default:"-1"`
Sec int `help:"Cronjob runs at given sec" default:"-1"`
Interval int `help:"Cronjob runs at given interval" default:"-1"`
Start bool `help:"start job when created"`
Stop bool `help:"start job when created"`
Enable bool `help:"Set job status enabled"`
Disable bool `help:"Set job status enabled"`
}
R(&DevToolCronjobUpdateOptions{}, "devtoolcronjob-update", "Update DevToolCronjob", func(s *mcclient.ClientSession, args *DevToolCronjobUpdateOptions) error {
result, err := modules.DevToolCronjobs.Get(s, args.ID, nil)
if err != nil {
return err
}
params := jsonutils.NewDict()
interval, _ := result.Int("interval")
day, _ := result.Int("day")
params.Add(jsonutils.NewString(args.ID), "id")
params.Add(jsonutils.NewInt(int64(interval)), "interval")
params.Add(jsonutils.NewInt(int64(day)), "day")
log.Infof("DevToolCronjobUpdateOptions args: %+v", args)
if args.Interval >= 0 {
params.Add(jsonutils.NewInt(int64(args.Interval)), "interval")
if args.Interval > 0 {
params.Add(jsonutils.NewInt(0), "day")
}
} else if args.Day >= 0 {
params.Add(jsonutils.NewInt(int64(args.Day)), "day")
if args.Day > 0 {
params.Add(jsonutils.NewInt(0), "interval")
}
}
if args.Hour >= 0 {
params.Add(jsonutils.NewInt(int64(args.Hour)), "hour")
}
if args.Min >= 0 {
params.Add(jsonutils.NewInt(int64(args.Min)), "min")
}
if args.Sec >= 0 {
params.Add(jsonutils.NewInt(int64(args.Sec)), "sec")
}
ok, err := paramValidator(params)
if err != nil || !ok {
return err
}
if args.Start && args.Stop {
return fmt.Errorf("can not set job start and stop at the same time")
} else if args.Start {
params.Add(jsonutils.JSONTrue, "start")
} else if args.Stop {
params.Add(jsonutils.JSONFalse, "start")
}
if args.Enable && args.Disable {
return fmt.Errorf("can not set job enabled and disabled at the same time")
} else if args.Enable {
params.Add(jsonutils.JSONTrue, "enabled")
} else if args.Disable {
params.Add(jsonutils.JSONFalse, "enabled")
}
result, err = modules.DevToolCronjobs.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DevToolCronjobShowOptions{}, "devtoolcronjob-delete", "Delete DevToolCronjob", func(s *mcclient.ClientSession, args *DevToolCronjobShowOptions) error {
result, err := modules.DevToolCronjobs.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -1,154 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
printAnsiblePlaybookObject := func(obj jsonutils.JSONObject) {
dict := obj.(*jsonutils.JSONDict)
pbJson, err := dict.Get("playbook")
if err != nil {
printObject(obj)
return
}
pbStr := pbJson.YAMLString()
dict.Set("playbook", jsonutils.NewString(pbStr))
printObject(obj)
}
type TemplateListOptions struct {
options.BaseListOptions
Name string `help:"cloud region ID or Name" json:"-"`
}
R(&TemplateListOptions{}, "devtooltemplate-list", "List Devtool Templates", func(s *mcclient.ClientSession, args *TemplateListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
var result *modulebase.ListResult
result, err = modules.DevToolTemplates.List(s, params)
printList(result, modules.DevToolTemplates.GetColumns(s))
return nil
})
R(
&options.DevtoolTemplateCreateOptions{},
"devtooltemplate-create",
"Create a template repo component",
func(s *mcclient.ClientSession, opts *options.DevtoolTemplateCreateOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
log.Infof("devtool playbook create opts: %+v", params)
apb, err := modules.DevToolTemplates.Create(s, params)
if err != nil {
return err
}
printAnsiblePlaybookObject(apb)
return nil
},
)
R(
&options.DevtoolTemplateIdOptions{},
"devtooltemplate-show",
"Show devtool template",
func(s *mcclient.ClientSession, opts *options.DevtoolTemplateIdOptions) error {
apb, err := modules.DevToolTemplates.Get(s, opts.ID, nil)
if err != nil {
return err
}
printAnsiblePlaybookObject(apb)
return nil
},
)
R(
&options.DevtoolTemplateBindingOptions{},
"devtooltemplate-bind",
"Binding devtool template to a host/vm",
func(s *mcclient.ClientSession, opts *options.DevtoolTemplateBindingOptions) error {
params := jsonutils.NewDict()
params.Set("server_id", jsonutils.NewString(opts.ServerID))
apb, err := modules.DevToolTemplates.PerformAction(s, opts.ID, "bind", params)
if err != nil {
return err
}
printAnsiblePlaybookObject(apb)
return nil
},
)
R(
&options.DevtoolTemplateBindingOptions{},
"devtooltemplate-unbind",
"Binding devtool template to a host/vm",
func(s *mcclient.ClientSession, opts *options.DevtoolTemplateBindingOptions) error {
params := jsonutils.NewDict()
params.Set("server_id", jsonutils.NewString(opts.ServerID))
apb, err := modules.DevToolTemplates.PerformAction(s, opts.ID, "unbind", params)
if err != nil {
return err
}
printAnsiblePlaybookObject(apb)
return nil
},
)
R(
&options.DevtoolTemplateIdOptions{},
"devtooltemplate-delete",
"Delete devtool template",
func(s *mcclient.ClientSession, opts *options.DevtoolTemplateIdOptions) error {
apb, err := modules.DevToolTemplates.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printAnsiblePlaybookObject(apb)
return nil
},
)
R(
&options.DevtoolTemplateUpdateOptions{},
"devtooltemplate-update",
"Update ansible playbook",
func(s *mcclient.ClientSession, opts *options.DevtoolTemplateUpdateOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
apb, err := modules.DevToolTemplates.Update(s, opts.ID, params)
if err != nil {
return err
}
printAnsiblePlaybookObject(apb)
return nil
},
)
}

View File

@@ -1,51 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
type GlobalVpcListOptions struct {
options.BaseListOptions
}
R(&GlobalVpcListOptions{}, "global-vpc-list", "List global vpcs", func(s *mcclient.ClientSession, args *GlobalVpcListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.GlobalVpcs.List(s, params)
if err != nil {
return err
}
printList(result, modules.GlobalVpcs.GetColumns(s))
return nil
})
type GlobalVpcShowOptions struct {
ID string `help:"ID or Name of globalvpc"`
}
R(&GlobalVpcShowOptions{}, "global-vpc-show", "Show details of a global vpc", func(s *mcclient.ClientSession, args *GlobalVpcShowOptions) error {
result, err := modules.GlobalVpcs.GetById(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -1,168 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
type GuestTemplateListOptions struct {
options.BaseListOptions
}
R(&GuestTemplateListOptions{}, "server-template-list", "List server template", func(s *mcclient.ClientSession,
opts *GuestTemplateListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.GuestTemplate.List(s, params)
if err != nil {
return err
}
printList(result, modules.GuestTemplate.GetColumns(s))
return nil
})
type GuestTemplateCreateOptions struct {
options.ServerCreateOptionalOptions
NAME string `help:"Name of server template" json:"-"`
}
R(&GuestTemplateCreateOptions{}, "server-template-create", "Create a server template",
func(s *mcclient.ClientSession,
opts *GuestTemplateCreateOptions) error {
params, err := opts.OptionalParams()
if err != nil {
return err
}
if options.BoolV(opts.DryRun) {
fmt.Println("no support operator")
return nil
}
dict := jsonutils.NewDict()
if opts.GenerateName {
dict.Add(jsonutils.NewString(opts.NAME), "generate_name")
} else {
dict.Add(jsonutils.NewString(opts.NAME), "name")
}
dict.Add(params.JSON(params), "content")
tem, err := modules.GuestTemplate.Create(s, dict)
if err != nil {
return err
}
printObject(tem)
return nil
})
type GuestTemplateUpdateOptions struct {
options.ServerCreateOptionalOptions
ID string `help:"ID of server template"`
name string `help:"name of server template"`
}
R(&GuestTemplateUpdateOptions{}, "server-template-update", "Update a server template",
func(s *mcclient.ClientSession, opts *GuestTemplateUpdateOptions) error {
params, err := opts.OptionalParams()
if err != nil {
return err
}
if options.BoolV(opts.DryRun) {
fmt.Println("no support operator")
return nil
}
dict := jsonutils.NewDict()
if len(opts.name) != 0 {
dict.Add(jsonutils.NewString(opts.name), "name")
}
dict.Add(params.JSON(params), "content")
tem, err := modules.GuestTemplate.Update(s, opts.ID, dict)
if err != nil {
return err
}
printObject(tem)
return nil
})
type GuestTemplateOptions struct {
ID string `help:"ID or Name of server template"`
}
R(&GuestTemplateOptions{}, "server-template-show", "Show a server template",
func(s *mcclient.ClientSession, opts *GuestTemplateOptions) error {
tem, err := modules.GuestTemplate.Get(s, opts.ID, jsonutils.JSONNull)
if err != nil {
return err
}
printObject(tem)
return nil
})
R(&GuestTemplateOptions{}, "server-tempalte-delete", "Delete a server template",
func(s *mcclient.ClientSession, opts *GuestTemplateOptions) error {
tem, err := modules.GuestTemplate.Delete(s, opts.ID, jsonutils.JSONNull)
if err != nil {
return err
}
printObject(tem)
return nil
},
)
R(&GuestTemplateOptions{}, "server-template-private", "Private server template",
func(s *mcclient.ClientSession, opts *GuestTemplateOptions) error {
tem, err := modules.GuestTemplate.PerformAction(s, opts.ID, "private", jsonutils.JSONNull)
if err != nil {
return err
}
printObject(tem)
return nil
},
)
type GuestTemplatePublicOptions struct {
ID string `help:"ID or Name of server template"`
PublicScope string `help:"public scope"`
}
R(&GuestTemplatePublicOptions{}, "server-template-public", "Public server template",
func(s *mcclient.ClientSession, opts *GuestTemplatePublicOptions) error {
dict := jsonutils.NewDict()
if len(opts.PublicScope) != 0 {
dict.Add(jsonutils.NewString(opts.PublicScope), "public_scope")
}
tem, err := modules.GuestTemplate.PerformAction(s, opts.ID, "public", dict)
if err != nil {
return err
}
printObject(tem)
return nil
},
)
}

View File

@@ -38,7 +38,7 @@ func init() {
Occupied bool `help:"show occupid host" json:"-"`
Enabled bool `help:"Show enabled host only" json:"-"`
Disabled bool `help:"Show disabled host only" json:"-"`
HostType string `help:"Host type filter" choices:"baremetal|hypervisor|esxi|kubelet|hyperv|aliyun|azure|qcloud|aws|huawei|ucloud|google|ctyun"`
HostType string `help:"Host type filter" choices:"baremetal|hypervisor|esxi|kubelet|hyperv|aliyun|azure|qcloud|aws|huawei|ucloud"`
AnyMac string `help:"Mac matches one of the host's interface"`
IsBaremetal *bool `help:"filter host list by is_baremetal=true|false"`
@@ -55,8 +55,6 @@ func init() {
CdromBoot *bool `help:"filter hosts list by cdrom_boot=true|false"`
Sn string `help:"find host by sn"`
options.BaseListOptions
}
R(&HostListOptions{}, "host-list", "List hosts", func(s *mcclient.ClientSession, opts *HostListOptions) error {
@@ -78,9 +76,6 @@ func init() {
if len(opts.Uuid) > 0 {
params.Add(jsonutils.NewString(opts.Uuid), "uuid")
}
if len(opts.Sn) > 0 {
params.Add(jsonutils.NewString(opts.Sn), "sn")
}
result, err := modules.Hosts.List(s, params)
if err != nil {
return err
@@ -350,7 +345,7 @@ func init() {
return nil
})
R(&HostDetailOptions{}, "host-stop", "Power off host", func(s *mcclient.ClientSession, args *HostDetailOptions) error {
R(&HostDetailOptions{}, "host-stop", "Power on host", func(s *mcclient.ClientSession, args *HostDetailOptions) error {
result, err := modules.Hosts.PerformAction(s, args.ID, "stop", nil)
if err != nil {
return err

View File

@@ -46,11 +46,11 @@ type ImageOptionalOptions struct {
OsDist string `help:"Distribution name of OS" metavar:"OS_DISTRIBUTION"`
OsVersion string `help:"Version of OS"`
OsCodename string `help:"Codename of OS"`
OsArch string `help:"Os hardware architecture" choices:"x86|x86_64|aarch32|aarch64"`
OsArch string `help:"Os hardware architecture" choices:"x86|x86_64"`
OsLang string `help:"OS Language" choices:"zh_CN|en_US"`
Preference int64 `help:"Disk preferences"`
Notes string `help:"Notes about the image"`
Hypervisor []string `help:"Prefer hypervisor type" choices:"kvm|esxi|baremetal|container|openstack"`
Hypervisor []string `help:"Prefer hypervisor type" choices:"kvm|esxi|baremetal|container"`
DiskDriver string `help:"Perfer disk driver" choices:"virtio|scsi|pvscsi|ide|sata"`
NetDriver string `help:"Preferred network driver" choices:"virtio|e1000|vmxnet3"`
}
@@ -221,9 +221,9 @@ func init() {
})
type ImageUpdateOptions struct {
ID []string `help:"ID or Name of Image"`
Name string `help:"New name of the image"`
Description string `help:"Description of image"`
ID string `help:"ID or Name of Image"`
Name string `help:"New name of the image"`
Description string `help:"Description of image"`
ImageOptionalOptions
}
@@ -239,8 +239,11 @@ func init() {
if err != nil {
return err
}
result := modules.Images.BatchUpdate(s, args.ID, params)
printBatchResults(result, modules.Images.GetColumns(s))
img, err := modules.Images.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(img)
return nil
})

View File

@@ -29,7 +29,7 @@ func init() {
ServiceType string `help:"Service Type"`
ParentId string `help:"Parent ID"`
ZoneId string `help:"Zone ID"`
Server string `help:"Guest ID or Name"`
Guest string `help:"Guest ID or Name"`
}
R(&InstanceGroupListOptions{}, "instance-group-list", "List instance group", func(s *mcclient.ClientSession,

View File

@@ -205,70 +205,4 @@ func initKubeCluster() {
printObject(ret)
return nil
})
R(&o.IdentOptions{}, cmdN("components-status"), "Get cluster component status", func(s *mcclient.ClientSession, args *o.IdentOptions) error {
ret, err := k8s.KubeClusters.GetSpecific(s, args.ID, "components-status", nil)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterComponentTypeOptions{}, cmdN("component-setting"), "Get cluster component setting", func(s *mcclient.ClientSession, args *o.ClusterComponentTypeOptions) error {
q := jsonutils.NewDict()
q.Add(jsonutils.NewString(args.TYPE), "type")
ret, err := k8s.KubeClusters.GetSpecific(s, args.ID, "component-setting", q)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterEnableComponentCephCSIOpt{}, cmdN("component-enable-ceph-csi"), "Enable cluster component", func(s *mcclient.ClientSession, args *o.ClusterEnableComponentCephCSIOpt) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "enable-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterDisableComponent{}, cmdN("component-disable"), "Enable cluster component", func(s *mcclient.ClientSession, args *o.ClusterDisableComponent) error {
params := args.Params()
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "disable-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterDisableComponent{}, cmdN("component-delete"), "Delete cluster component", func(s *mcclient.ClientSession, args *o.ClusterDisableComponent) error {
params := args.Params()
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "delete-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterUpdateComponentCephCSIOpt{}, cmdN("component-update-ceph-csi"), "Update cluster component", func(s *mcclient.ClientSession, args *o.ClusterUpdateComponentCephCSIOpt) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "update-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
}

View File

@@ -1,9 +0,0 @@
package k8s
import (
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
)
func initEvent() {
initK8sNamespaceResource("event", k8s.Events)
}

View File

@@ -16,11 +16,6 @@ package k8s
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"github.com/ghodss/yaml"
"yunion.io/x/jsonutils"
@@ -62,7 +57,7 @@ func init() {
initPVC()
initJob()
initCronJob()
initEvent()
initRbac()
initApp()
@@ -222,71 +217,6 @@ func NewK8sNsResourceGetCmd(cmdN CmdNameFactory, manager modulebase.Manager) *Cm
)
}
func NewK8sNsResourceGetRawCmd(cmdN CmdNameFactory, manager k8s.IClusterResourceManager) *Cmd {
return NewCommand(
&o.NamespaceResourceGetOptions{},
cmdN.Do("show-raw"),
fmt.Sprintf("Show k8s %s raw data", cmdN.Kind),
func(s *mcclient.ClientSession, args *o.NamespaceResourceGetOptions) error {
ret, err := manager.GetRaw(s, args.NAME, args.Params())
if err != nil {
return err
}
printObjectYAML(ret)
return nil
},
)
}
func NewK8sResourceEditRawCmd(cmdN CmdNameFactory, manager k8s.IClusterResourceManager) *Cmd {
return NewCommand(
&o.NamespaceResourceGetOptions{},
cmdN.Do("edit-raw"),
fmt.Sprintf("Edit and update k8s %s raw data", cmdN.Kind),
func(s *mcclient.ClientSession, args *o.NamespaceResourceGetOptions) error {
rawData, err := manager.GetRaw(s, args.NAME, args.Params())
if err != nil {
return err
}
yamlBytes := rawData.YAMLString()
tempfile, err := ioutil.TempFile("", fmt.Sprintf("k8s-%s-%s*.yaml", cmdN.Kind, args.NAME))
if err != nil {
return err
}
defer os.Remove(tempfile.Name())
if _, err := tempfile.Write([]byte(yamlBytes)); err != nil {
return err
}
if err := tempfile.Close(); err != nil {
return err
}
cmd := exec.Command("vim", tempfile.Name())
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
if err := cmd.Run(); err != nil {
return err
}
content, err := ioutil.ReadFile(tempfile.Name())
if err != nil {
return err
}
jsonBytes, err := yaml.YAMLToJSON(content)
if err != nil {
return err
}
body, err := jsonutils.Parse(jsonBytes)
if err != nil {
return err
}
if _, err := manager.UpdateRaw(s, args.NAME, args.Params(), body.(*jsonutils.JSONDict)); err != nil {
return err
}
return nil
},
)
}
func NewK8sResourceDeleteCmd(cmdN CmdNameFactory, manager modulebase.Manager) *Cmd {
return NewCommand(
&o.ResourceDeleteOptions{},
@@ -314,13 +244,11 @@ func NewK8sNsResourceDeleteCmd(cmdN CmdNameFactory, manager modulebase.Manager)
return deleteCmd
}
func initK8sNamespaceResource(kind string, manager k8s.IClusterResourceManager) *ShellCommands {
func initK8sNamespaceResource(kind string, manager modulebase.Manager) *ShellCommands {
cmdN := NewCmdNameFactory(kind)
return NewShellCommands(cmdN.Do).AddR(
NewK8sNsResourceListCmd(cmdN, manager),
NewK8sNsResourceGetCmd(cmdN, manager),
NewK8sNsResourceDeleteCmd(cmdN, manager),
NewK8sNsResourceGetRawCmd(cmdN, manager),
NewK8sResourceEditRawCmd(cmdN, manager),
)
}

View File

@@ -58,23 +58,4 @@ func initSecret() {
return nil
})
registryCmd.AddR(createCmd)
cephCSICmd := NewCmdNameFactory("secret-ceph-csi")
cephCSICreateCmd := NewCommand(
&o.CephCSISecretCreateOptions{},
cephCSICmd.Do("create"),
"Create ceph csi user secret",
func(s *mcclient.ClientSession, args *o.CephCSISecretCreateOptions) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.Secrets.Create(s, params)
if err != nil {
return err
}
printObject(ret)
return nil
})
secretCmd.AddR(cephCSICreateCmd)
}

View File

@@ -15,70 +15,9 @@
package k8s
import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
o "yunion.io/x/onecloud/pkg/mcclient/options/k8s"
)
func initStorageClass() {
cmdN := NewCmdNameFactory("storageclass")
scCmd := initK8sClusterResource("storageclass", k8s.Storageclass)
setDefaultCmd := NewCommand(
&o.ClusterResourceBaseOptions{},
cmdN.Do("set-default"),
"Set storageclass as default",
func(s *mcclient.ClientSession, args *o.ClusterResourceBaseOptions) error {
ret, err := k8s.Storageclass.PerformAction(s, args.NAME, "set-default", args.Params())
if err != nil {
return err
}
printObject(ret)
return nil
},
)
scCmd.AddR(setDefaultCmd)
addStorageClassCephCSI(scCmd)
}
func addStorageClassCephCSI(cmd *ShellCommands) {
rbdN := NewCmdNameFactory("storageclass-ceph-csi-rbd")
rbdCreateCmd := NewCommand(
&o.StorageClassCephCSIRBDCreateOptions{},
rbdN.Do("create"),
"Create ceph csi rbd",
func(s *mcclient.ClientSession, args *o.StorageClassCephCSIRBDCreateOptions) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.Storageclass.Create(s, params)
if err != nil {
return err
}
printObject(ret)
return nil
},
)
testConnCmd := NewCommand(
&o.StorageClassCephCSIRBDTestOptions{},
rbdN.Do("connection-test"),
"Test storageclass connection",
func(s *mcclient.ClientSession, args *o.StorageClassCephCSIRBDTestOptions) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.Storageclass.PerformClassAction(s, "connection-test", params)
if err != nil {
return err
}
printObject(ret)
return nil
},
)
cmd.AddR(rbdCreateCmd, testConnCmd)
initK8sClusterResource("storageclass", k8s.Storageclass)
}

View File

@@ -46,5 +46,4 @@ func init() {
printObject(result)
return nil
})
}

View File

@@ -17,6 +17,8 @@ package shell
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"strings"
"time"
@@ -30,7 +32,6 @@ import (
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/util/rbacutils"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func init() {
@@ -134,7 +135,7 @@ func init() {
return nil
}
R(&PolicyPatchOptions{}, "policy-patch", "Patch policy", updateFunc)
R(&PolicyPatchOptions{}, "policy-update", "Update policy", updateFunc)
R(&PolicyPatchOptions{}, "policy-update", "Patch policy", updateFunc)
type PolicyPerformOptions struct {
ID string `help:"ID of policy to update"`
@@ -211,13 +212,33 @@ func init() {
return err
}
yaml, err = shellutils.Edit(yaml)
tmpfile, err := ioutil.TempFile("", "policy-blob")
if err != nil {
return err
}
defer os.Remove(tmpfile.Name()) // clean up
if _, err := tmpfile.Write([]byte(yaml)); err != nil {
return err
}
if err := tmpfile.Close(); err != nil {
return err
}
cmd := exec.Command("vim", tmpfile.Name())
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
err = cmd.Run()
if err != nil {
return err
}
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(yaml), "policy")
policyBytes, err := ioutil.ReadFile(tmpfile.Name())
if err != nil {
return err
}
params.Add(jsonutils.NewString(string(policyBytes)), "policy")
result, err = modules.Policies.Patch(s, policyId, params)
if err != nil {
@@ -285,30 +306,12 @@ func init() {
if err != nil {
log.Fatalf("Set log level %q: %v", "debug", err)
}
if args.Debug {
rbacutils.ShowMatchRuleDebug = true
}
auth.InitFromClientSession(s)
policy.EnableGlobalRbac(15*time.Second, 15*time.Second, false)
if args.Debug {
consts.EnableRbacDebug()
}
findPolicy := false
for !findPolicy {
all := policy.PolicyManager.AllPolicies()
for _, allP := range all {
if len(allP) > 0 {
findPolicy = true
break
}
}
if findPolicy {
break
}
time.Sleep(time.Second)
}
req := jsonutils.NewDict()
for i := 0; i < len(args.Request); i += 1 {
parts := strings.Split(args.Request[i], ":")
@@ -374,7 +377,6 @@ func init() {
Context: mcclient.SAuthContext{
Ip: args.Ip,
},
Token: "faketoken",
}
} else {
token = s.GetToken()
@@ -386,10 +388,6 @@ func init() {
}
printObject(result)
for _, r := range args.Role {
fmt.Println("role", r, "matched policies:", policy.PolicyManager.RoleMatchPolicies(r))
}
fmt.Println("userCred:", token)
for _, scope := range []rbacutils.TRbacScope{
rbacutils.ScopeSystem,
@@ -398,7 +396,7 @@ func init() {
rbacutils.ScopeUser,
rbacutils.ScopeNone,
} {
m := policy.PolicyManager.MatchedPolicyNames(scope, token)
m := policy.PolicyManager.MatchedPolicies(scope, token)
fmt.Println("matched", scope, "policies:", m)
}

View File

@@ -1,103 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"fmt"
"io"
"io/ioutil"
"os"
"syscall"
"yunion.io/x/pkg/util/signalutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/util/netutils2"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func init() {
type TraceOptions struct {
Second int `help:"pprof seconds" short-token:"s"`
Service string `help:"Service type"`
Address string `help:"Service listen address"`
}
downloadToTemp := func(input io.Reader, pattern string) (string, error) {
tmpfile, err := ioutil.TempFile("", pattern)
if err != nil {
return "", err
}
defer tmpfile.Close()
if _, err := io.Copy(tmpfile, input); err != nil {
return "", err
}
return tmpfile.Name(), nil
}
pprofRun := func(s *mcclient.ClientSession, opts *TraceOptions, pType string, args ...string) error {
var (
src io.Reader
err error
)
if len(opts.Service) > 0 {
src, err = modules.GetPProfByType(s, opts.Service, pType, opts.Second)
if err != nil {
return err
}
} else if len(opts.Address) > 0 {
src, err = modules.GetNamedAddressPProfByType(s, opts.Address, pType, opts.Second)
if err != nil {
return err
}
} else {
return fmt.Errorf("no service address provide")
}
tempfile, err := downloadToTemp(src, pType)
if err != nil {
return err
}
defer func() { os.Remove(tempfile) }()
signalutils.RegisterSignal(func() {
os.Remove(tempfile)
os.Exit(0)
}, syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGTERM)
signalutils.StartTrap()
argv := []string{"tool"}
argv = append(argv, args...)
argv = append(argv, tempfile)
cmd := procutils.NewCommand("go", argv...)
if err := cmd.Run(); err != nil {
return err
}
return nil
}
R(&TraceOptions{}, "pprof-trace", "pprof trace of backend service", func(s *mcclient.ClientSession, args *TraceOptions) error {
return pprofRun(s, args, "trace", "trace")
})
R(&TraceOptions{}, "pprof-profile", "pprof profile of backend service", func(s *mcclient.ClientSession, args *TraceOptions) error {
port, err := netutils2.GetFreePort()
if err != nil {
return err
}
return pprofRun(s, args, "profile", "pprof", fmt.Sprintf("-http=:%d", port))
})
}

View File

@@ -16,232 +16,73 @@ package shell
import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules"
)
type ComputeQuotaKeys struct {
ZoneQuotaKeys
Hypervisor string `help:"hypervisor" choices:"kvm|baremetal"`
}
type ComputeQuotaOptions struct {
ComputeQuotaKeys
Count int64 `help:"server count" json:"count,omitzero"`
type QuotaBaseOptions struct {
Cpu int64 `help:"CPU count" json:"cpu,omitzero"`
Memory int64 `help:"Memory size in MB" json:"memory,omitzero"`
Storage int64 `help:"Storage size in MB" json:"storage,omitzero"`
Port int64 `help:"Internal NIC count" json:"port,omitzero"`
Eport int64 `help:"External NIC count" json:"eport,omitzero"`
Eip int64 `help:"Elastic IP count" json:"eip,omitzero"`
Bw int64 `help:"Internal bandwidth in Mbps" json:"bw,omitzero"`
Ebw int64 `help:"External bandwidth in Mbps" json:"ebw,omitzero"`
IsolatedDevice int64 `help:"Isolated device count" json:"isolated_device,omitzero"`
}
type RegionQuotaKeys struct {
Provider string `help:"cloud provider" json:"provider,omitempty"`
Brand string `help:"cloud brand" json:"brand,omitempty"`
CloudEnv string `help:"cloud environment" json:"cloud_env,omitempty" choices:"onpremise|private|public"`
AccountId string `help:"cloud account id" json:"account_id,omitempty"`
ManagerId string `help:"cloud provider id" json:"manager_id,omitempty"`
RegionId string `help:"region id" json:"region_id,omitempty"`
}
type RegionQuotaOptions struct {
RegionQuotaKeys
Port int64 `help:"Internal NIC count" json:"port,omitzero"`
Eport int64 `help:"External NIC count" json:"eport,omitzero"`
// Bw int64 `help:"Internal bandwidth in Mbps" json:"bw,omitzero"`
// Ebw int64 `help:"External bandwidth in Mbps" json:"ebw,omitzero"`
Eip int64 `help:"Elastic IP count" json:"eip,omitzero"`
Snapshot int64 `help:"Snapshot count" json:"snapshot,omitzero"`
Bucket int64 `help:"bucket count" json:"bucket,omitzero"`
ObjectGB int64 `help:"object size in GB" json:"object_gb,omitzero"`
ObjectCnt int64 `help:"object count" json:"object_cnt,omitzero"`
Rds int64 `help:"Rds count" json:"rds,omitzero"`
Cache int64 `help:"redis count" json:"cache,omitzero"`
Loadbalancer int64 `help:"loadbalancer instance count" json:"loadbalancer,omitzero"`
}
type ZoneQuotaKeys struct {
RegionQuotaKeys
ZoneId string `help:"zone id" json:"zone_id,omitempty"`
}
type ZoneQuotaOptions struct {
ZoneQuotaKeys
}
type ProjectQuotaOptions struct {
Secgroup int64 `help:"Secgroup count" json:"secgroup,omitzero"`
}
type ImageQuotaKeys struct {
Type string `help:"image type, either iso or image" choices:"iso|image" json:"type,omitempty"`
}
type ImageQuotaOptions struct {
ImageQuotaKeys
Image int64 `help:"Template count" json:"image,omitzero"`
}
type QuotaSetBaseOptions struct {
Project string `help:"Tenant name or ID to set quota" json:"tenant,omitempty"`
Domain string `help:"Domain name or ID to set quota" json:"domain,omitempty"`
Action string `help:"quota set action" choices:"add|sub|reset|replace|delete|update"`
}
func printQuotaList(result jsonutils.JSONObject) {
printList(modulebase.JSON2ListResult(result), nil)
Snapshot int64 `help:"Snapshot count" json:"snapshot,omitzero"`
Image int64 `help:"Template count" json:"image,omitzero"`
Secgroup int64 `help:"Secgroup count" json:"secgroup,omitzero"`
Bucket int64 `help:"bucket count" json:"bucket,omitzero"`
ObjectGB int64 `help:"object size in GB" json:"object_gb,omitzero"`
ObjectCnt int64 `help:"object count" json:"object_cnt,omitzero"`
}
func init() {
type QuotaOptions struct {
Scope string `help:"scope" choices:"domain|project"`
Project string `help:"Tenant name or ID" json:"tenant"`
Domain string `help:"Domain name or ID" json:"domain"`
Refresh bool `help:"refresh" json:"refresh,omitfalse"`
Primary bool `help:"get primary quota ONLY" json:"primary,omitfalse"`
Tenant string `help:"Tenant name or ID"`
ProjectDomain string `help:"Domain name or ID"`
}
R(&QuotaOptions{}, "quota", "Show quota for current user or tenant", func(s *mcclient.ClientSession, args *QuotaOptions) error {
params := jsonutils.Marshal(args)
log.Debugf("%s", params)
quotas, err := modules.Quotas.GetQuota(s, params)
result, err := modules.Quotas.GetQuota(s, params)
if err != nil {
return err
}
printQuotaList(quotas)
return nil
})
R(&QuotaOptions{}, "project-quota", "Show project-quota for current user or tenant", func(s *mcclient.ClientSession, args *QuotaOptions) error {
params := jsonutils.Marshal(args)
quotas, err := modules.ProjectQuotas.GetQuota(s, params)
if err != nil {
return err
}
printQuotaList(quotas)
return nil
})
R(&QuotaOptions{}, "region-quota", "Show region-quota for current user or tenant", func(s *mcclient.ClientSession, args *QuotaOptions) error {
params := jsonutils.Marshal(args)
quotas, err := modules.RegionQuotas.GetQuota(s, params)
if err != nil {
return err
}
printQuotaList(quotas)
return nil
})
R(&QuotaOptions{}, "zone-quota", "Show zone-quota for current user or tenant", func(s *mcclient.ClientSession, args *QuotaOptions) error {
params := jsonutils.Marshal(args)
quotas, err := modules.ZoneQuotas.GetQuota(s, params)
if err != nil {
return err
}
printQuotaList(quotas)
return nil
})
R(&QuotaOptions{}, "project-quota", "Show project-quota for current user or tenant", func(s *mcclient.ClientSession, args *QuotaOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.ProjectQuotas.GetQuota(s, params)
if err != nil {
return err
}
printQuotaList(result)
printObject(result)
return nil
})
R(&QuotaOptions{}, "image-quota", "Show image quota for current user or tenant", func(s *mcclient.ClientSession, args *QuotaOptions) error {
params := jsonutils.Marshal(args)
quotas, err := modules.ImageQuotas.GetQuota(s, params)
result, err := modules.ImageQuotas.GetQuota(s, params)
if err != nil {
return err
}
printQuotaList(quotas)
printObject(result)
return nil
})
type ComputeQuotaSetOptions struct {
QuotaSetBaseOptions
ComputeQuotaOptions
type QuotaSetOptions struct {
Tenant string `help:"Tenant name or ID to set quota" json:"tenant,omitempty"`
ProjectDomain string `help:"Domain name or ID to set quota" json:",omitempty"`
Action string `help:"quota set action" choices:"add|reset|replace"`
Cascade bool `help:"cascade set quota so that auto increment domain quota if total project quota exceeds parent domain quota"`
QuotaBaseOptions
}
R(&ComputeQuotaSetOptions{}, "quota-set", "Set quota for tenant", func(s *mcclient.ClientSession, args *ComputeQuotaSetOptions) error {
R(&QuotaSetOptions{}, "quota-set", "Set quota for tenant", func(s *mcclient.ClientSession, args *QuotaSetOptions) error {
params := jsonutils.Marshal(args)
quotas, e := modules.Quotas.DoQuotaSet(s, params)
result, e := modules.Quotas.DoQuotaSet(s, params)
if e != nil {
return e
}
printQuotaList(quotas)
return nil
})
type RegionQuotaSetOptions struct {
QuotaSetBaseOptions
RegionQuotaOptions
}
R(&RegionQuotaSetOptions{}, "region-quota-set", "Set regional quota for tenant", func(s *mcclient.ClientSession, args *RegionQuotaSetOptions) error {
params := jsonutils.Marshal(args)
quotas, e := modules.RegionQuotas.DoQuotaSet(s, params)
if e != nil {
return e
}
printQuotaList(quotas)
return nil
})
type ZoneQuotaSetOptions struct {
QuotaSetBaseOptions
ZoneQuotaOptions
}
R(&ZoneQuotaSetOptions{}, "zone-quota-set", "Set zonal quota for tenant", func(s *mcclient.ClientSession, args *ZoneQuotaSetOptions) error {
params := jsonutils.Marshal(args)
quotas, e := modules.ZoneQuotas.DoQuotaSet(s, params)
if e != nil {
return e
}
printQuotaList(quotas)
return nil
})
type ProjectQuotaSetOptions struct {
QuotaSetBaseOptions
ProjectQuotaOptions
}
R(&ProjectQuotaSetOptions{}, "project-quota-set", "Set project quota for tenant", func(s *mcclient.ClientSession, args *ProjectQuotaSetOptions) error {
params := jsonutils.Marshal(args)
quotas, e := modules.ProjectQuotas.DoQuotaSet(s, params)
if e != nil {
return e
}
printQuotaList(quotas)
return nil
})
type ImageQuotaSetOptions struct {
QuotaSetBaseOptions
ImageQuotaOptions
}
R(&ImageQuotaSetOptions{}, "image-quota-set", "Set image quota for tenant", func(s *mcclient.ClientSession, args *ImageQuotaSetOptions) error {
params := jsonutils.Marshal(args)
quotas, e := modules.ImageQuotas.DoQuotaSet(s, params)
if e != nil {
return e
}
printQuotaList(quotas)
printObject(result)
return nil
})
type QuotaListOptions struct {
ProjectDomain string `help:"domain name or ID to query project quotas"`
Refresh bool `help:"refresh" json:"refresh,omitfalse"`
Primary bool `help:"list primary quota ONLY" json:"primary,omitfalse"`
}
R(&QuotaListOptions{}, "quota-list", "List quota of domains or projects of a domain", func(s *mcclient.ClientSession, args *QuotaListOptions) error {
params := jsonutils.Marshal(args)
@@ -249,98 +90,22 @@ func init() {
if e != nil {
return e
}
printQuotaList(result)
printList(modulebase.JSON2ListResult(result), nil)
return nil
})
R(&QuotaListOptions{}, "region-quota-list", "List region quota of domains or projects of a domain", func(s *mcclient.ClientSession, args *QuotaListOptions) error {
params := jsonutils.Marshal(args)
result, e := modules.RegionQuotas.GetQuotaList(s, params)
if e != nil {
return e
}
printQuotaList(result)
return nil
})
R(&QuotaListOptions{}, "zone-quota-list", "List zone quota of domains or projects of a domain", func(s *mcclient.ClientSession, args *QuotaListOptions) error {
params := jsonutils.Marshal(args)
result, e := modules.ZoneQuotas.GetQuotaList(s, params)
if e != nil {
return e
}
printQuotaList(result)
return nil
})
R(&QuotaListOptions{}, "project-quota-list", "List project quota of domains or projects of a domain", func(s *mcclient.ClientSession, args *QuotaListOptions) error {
params := jsonutils.Marshal(args)
result, e := modules.ProjectQuotas.GetQuotaList(s, params)
if e != nil {
return e
}
printQuotaList(result)
return nil
})
R(&QuotaListOptions{}, "image-quota-list", "List image quota of domains or projects of a domain", func(s *mcclient.ClientSession, args *QuotaListOptions) error {
params := jsonutils.Marshal(args)
result, e := modules.ImageQuotas.GetQuotaList(s, params)
if e != nil {
return e
}
printQuotaList(result)
return nil
})
type CleanPendingUsageOptions struct {
Scope string `help:"scope" choices:"domain|project"`
Project string `help:"Tenant name or ID" json:"tenant"`
Domain string `help:"Domain name or ID" json:"domain"`
/*type QuotaCheckOptions struct {
TENANT string `help:"Tenant name or ID to check quota" json:"tenant,omitempty"`
QuotaBaseOptions
}
R(&CleanPendingUsageOptions{}, "clean-pending-usage", "Clean pending usage for project or domain", func(s *mcclient.ClientSession, args *CleanPendingUsageOptions) error {
R(&QuotaCheckOptions{}, "quota-check", "Check quota for tenant", func(s *mcclient.ClientSession, args *QuotaCheckOptions) error {
params := jsonutils.Marshal(args)
_, err := modules.Quotas.DoCleanPendingUsage(s, params)
if err != nil {
return err
result, e := modules.Quotas.DoQuotaCheck(s, params)
if e != nil {
return e
}
printObject(result)
return nil
})
R(&CleanPendingUsageOptions{}, "clean-region-pending-usage", "Clean pending usage for project or domain", func(s *mcclient.ClientSession, args *CleanPendingUsageOptions) error {
params := jsonutils.Marshal(args)
_, err := modules.RegionQuotas.DoCleanPendingUsage(s, params)
if err != nil {
return err
}
return nil
})
R(&CleanPendingUsageOptions{}, "clean-zone-pending-usage", "Clean pending usage for project or domain", func(s *mcclient.ClientSession, args *CleanPendingUsageOptions) error {
params := jsonutils.Marshal(args)
_, err := modules.ZoneQuotas.DoCleanPendingUsage(s, params)
if err != nil {
return err
}
return nil
})
R(&CleanPendingUsageOptions{}, "clean-project-pending-usage", "Clean pending usage for project or domain", func(s *mcclient.ClientSession, args *CleanPendingUsageOptions) error {
params := jsonutils.Marshal(args)
_, err := modules.ProjectQuotas.DoCleanPendingUsage(s, params)
if err != nil {
return err
}
return nil
})
R(&CleanPendingUsageOptions{}, "clean-image-pending-usage", "Clean pending usage for project or domain", func(s *mcclient.ClientSession, args *CleanPendingUsageOptions) error {
params := jsonutils.Marshal(args)
_, err := modules.ImageQuotas.DoCleanPendingUsage(s, params)
if err != nil {
return err
}
return nil
})
})*/
}

View File

@@ -27,7 +27,6 @@ import (
func init() {
type SecGroupsListOptions struct {
Equals string `help:"Secgroup ID or Name, filter secgroups whose rules equals the specified one"`
Server string `help:"Filter secgroups bound to specified server"`
options.BaseListOptions
}
@@ -44,9 +43,6 @@ func init() {
if len(args.Equals) > 0 {
params.Add(jsonutils.NewString(args.Equals), "equals")
}
if len(args.Server) > 0 {
params.Add(jsonutils.NewString(args.Server), "server")
}
result, err := modules.SecGroups.List(s, params)
if err != nil {
return err

View File

@@ -37,7 +37,6 @@ import (
)
func init() {
R(&options.ServerListOptions{}, "server-list", "List virtual servers", func(s *mcclient.ClientSession, opts *options.ServerListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
@@ -332,13 +331,6 @@ func init() {
return nil
})
R(&options.ServerIdsOptions{}, "server-resume", "Resume servers", func(s *mcclient.ClientSession,
opts *options.ServerIdsOptions) error {
ret := modules.Servers.BatchPerformAction(s, opts.ID, "resume", nil)
printBatchResults(ret, modules.Servers.GetColumns(s))
return nil
})
R(&options.ServerMigrateOptions{}, "server-migrate", "Migrate server", func(s *mcclient.ClientSession, opts *options.ServerMigrateOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
@@ -473,19 +465,6 @@ func init() {
return nil
})
R(&options.ServerModifySrcCheckOptions{}, "server-modify-src-check", "Modify src ip, mac check settings", func(s *mcclient.ClientSession, opts *options.ServerModifySrcCheckOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
return err
}
srv, err := modules.Servers.PerformAction(s, opts.ID, "modify-src-check", params)
if err != nil {
return err
}
printObject(srv)
return nil
})
R(&options.ServerSecGroupsOptions{}, "server-set-secgroup", "Set security groups to a VM", func(s *mcclient.ClientSession, opts *options.ServerSecGroupsOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
@@ -987,7 +966,6 @@ func init() {
config.Hosts[i].HostIp = yamlConfig.Hosts[i].HostIp
config.Hosts[i].XmlFilePath = yamlConfig.Hosts[i].XmlFilePath
config.Hosts[i].Servers = make([]compute.SLibvirtServerConfig, len(yamlConfig.Hosts[i].Servers))
config.Hosts[i].MonitorPath = yamlConfig.Hosts[i].MonitorPath
for j := 0; j < len(yamlConfig.Hosts[i].Servers); j++ {
config.Hosts[i].Servers[j].MacIp = make(map[string]string)
mac := yamlConfig.Hosts[i].Servers[j].Mac
@@ -1010,11 +988,11 @@ func init() {
if err != nil {
return err
}
//for i := 0; i < len(params); i++ {
// val := jsonutils.NewDict()
// val.Set(modules.Servers.KeywordPlural, params[i])
// params[i] = val
//}
for i := 0; i < len(params); i++ {
val := jsonutils.NewDict()
val.Set(modules.Servers.KeywordPlural, params[i])
params[i] = val
}
results := modules.Servers.BatchPerformClassAction(s, "import-from-libvirt", params)
printBatchResults(results, modules.Servers.GetColumns(s))

View File

@@ -1,162 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
type ServiceCatalogListOpions struct {
options.BaseListOptions
}
R(&ServiceCatalogListOpions{}, "service-catalog-list", "List service catalog", func(s *mcclient.ClientSession,
opts *ServiceCatalogListOpions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
ret, err := modules.ServiceCatalog.List(s, params)
if err != nil {
return err
}
printList(ret, modules.ServiceCatalog.GetColumns(s))
return nil
})
type ServiceCatalogCreateOptions struct {
NAME string `help:"Name of service catalog"`
GuestTemplate string `help:"guest template of service catalog"`
IconUrl string `help:"icon url of service catalog"`
GenerateName bool `help:"whether to generate name"`
}
R(&ServiceCatalogCreateOptions{}, "service-catalog-create", "Create a service catalog",
func(s *mcclient.ClientSession, opts *ServiceCatalogCreateOptions) error {
params := jsonutils.NewDict()
if opts.GenerateName {
params.Add(jsonutils.NewString(opts.NAME), "generate_name")
} else {
params.Add(jsonutils.NewString(opts.NAME), "name")
}
if len(opts.GuestTemplate) != 0 {
params.Add(jsonutils.NewString(opts.GuestTemplate), "guest_template")
}
if len(opts.IconUrl) != 0 {
params.Add(jsonutils.NewString(opts.IconUrl), "icon_url")
}
serviceCatalog, err := modules.ServiceCatalog.Create(s, params)
if err != nil {
return err
}
printObject(serviceCatalog)
return nil
},
)
type ServiceCatalogOptions struct {
ID string `help:"ID or name of service catalog"`
}
R(&ServiceCatalogOptions{}, "service-catalog-show", "show a service catalog", func(s *mcclient.ClientSession,
opts *ServiceCatalogOptions) error {
sc, err := modules.ServiceCatalog.Get(s, opts.ID, jsonutils.JSONNull)
if err != nil {
return err
}
printObject(sc)
return nil
})
R(&ServiceCatalogOptions{}, "service-catalog-delete", "delete a service catalog", func(s *mcclient.ClientSession,
opts *ServiceCatalogOptions) error {
sc, err := modules.ServiceCatalog.Delete(s, opts.ID, jsonutils.JSONNull)
if err != nil {
return err
}
printObject(sc)
return nil
})
type ServiceCatalogUpdateOptions struct {
ServiceCatalogOptions
Name string `help:"Name of service catalog"`
GuestTemplate string `help:"guest template of service catalog"`
IconUrl string `help:"icon url of service catalog"`
}
R(&ServiceCatalogUpdateOptions{}, "service-catalog-update", "update a service catalog",
func(s *mcclient.ClientSession, opts *ServiceCatalogUpdateOptions) error {
params := jsonutils.NewDict()
if len(opts.Name) > 0 {
params.Add(jsonutils.NewString(opts.Name), "name")
}
if len(opts.GuestTemplate) > 0 {
params.Add(jsonutils.NewString(opts.GuestTemplate), "guest_template")
}
if len(opts.IconUrl) > 0 {
params.Add(jsonutils.NewString(opts.IconUrl), "icon_url")
}
sc, err := modules.ServiceCatalog.Update(s, opts.ID, params)
if err != nil {
return err
}
printObject(sc)
return nil
},
)
type ServiceCatalogDeployOptions struct {
ServiceCatalogOptions
Name string `help:"Name of guest"`
GenerateName bool `help:"whether to generate name for guest"`
Count int `help:"count of guest"`
ProjectID string `help:"project id of guest"`
}
R(&ServiceCatalogDeployOptions{}, "service-catalog-deploy", "deploy", func(s *mcclient.ClientSession,
opts *ServiceCatalogDeployOptions) error {
params := jsonutils.NewDict()
if opts.GenerateName {
params.Add(jsonutils.NewString(opts.Name), "generate_name")
} else {
params.Add(jsonutils.NewString(opts.Name), "name")
}
if opts.Count != 0 {
params.Add(jsonutils.NewInt(int64(opts.Count)), "count")
}
if len(opts.ProjectID) > 0 {
params.Add(jsonutils.NewString(opts.ProjectID), "project_id")
}
sc, err := modules.ServiceCatalog.PerformAction(s, opts.ID, "deploy", params)
if err != nil {
return err
}
printObject(sc)
return nil
})
}

View File

@@ -23,7 +23,6 @@ import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/util/fileutils2"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func init() {
@@ -240,34 +239,4 @@ func init() {
return nil
})
type ServiceConfigEditOptions struct {
SERVICE string `help:"service name or id"`
}
R(&ServiceConfigEditOptions{}, "service-config-edit", "Edit config yaml of a service", func(s *mcclient.ClientSession, args *ServiceConfigEditOptions) error {
conf, err := modules.ServicesV3.GetSpecific(s, args.SERVICE, "config", nil)
if err != nil {
return err
}
confJson, err := conf.Get("config")
if err != nil {
return err
}
content, err := shellutils.Edit(confJson.YAMLString())
if err != nil {
return err
}
yamlJson, err := jsonutils.ParseYAML(content)
if err != nil {
return err
}
config := jsonutils.NewDict()
config.Add(yamlJson, "config")
nconf, err := modules.ServicesV3.PerformAction(s, args.SERVICE, "config", config)
if err != nil {
return err
}
fmt.Println(nconf.PrettyString())
return nil
})
}

View File

@@ -56,7 +56,7 @@ func init() {
RetentionDays int `help:"snapshot retention days"`
RepeatWeekdays []int `help:"snapshot create days on week"`
TimePoints []int `help:"snapshot create time points on one day"`
TimePoints []int `help:"snapshot create time points on one day`
}
R(&SnapshotPolicyCreateOptions{}, "snapshot-policy-create", "Create snapshot policy", func(s *mcclient.ClientSession, args *SnapshotPolicyCreateOptions) error {

View File

@@ -22,9 +22,9 @@ import (
)
type GeneralUsageOptions struct {
HostType []string `help:"Host types" choices:"hypervisor|baremetal|esxi|xen|kubelet|hyperv|aliyun|azure|aws|huawei|qcloud|openstack|ucloud|zstack|google|ctyun"`
Provider []string `help:"Provider" choices:"OneCloud|VMware|Aliyun|Azure|Aws|Qcloud|Huawei|OpenStack|Ucloud|ZStack|Google|Ctyun"`
Brand []string `help:"Brands" choices:"OneCloud|VMware|Aliyun|Azure|Aws|Qcloud|Huawei|OpenStack|Ucloud|ZStack|DStack|Google|Ctyun"`
HostType []string `help:"Host types" choices:"hypervisor|baremetal|esxi|xen|kubelet|hyperv|aliyun|azure|aws|huawei|qcloud|openstack|ucloud|zstack"`
Provider []string `help:"Provider" choices:"OneCloud|VMware|Aliyun|Azure|Aws|Qcloud|Huawei|OpenStack|Ucloud|ZStack"`
Brand []string `help:"Brands" choices:"OneCloud|VMware|Aliyun|Azure|Aws|Qcloud|Huawei|OpenStack|Ucloud|ZStack|DStack"`
Project string `help:"show usage of specified project"`
ProjectDomain string `help:"show usage of specified domain"`

View File

@@ -159,8 +159,6 @@ func init() {
Enabled bool `help:"Enabled"`
Disabled bool `help:"Disabled"`
SkipPasswordComplexityCheck bool `help:"do password complexity check, default is false"`
// DefaultProject string `help:"Default project"`
SystemAccount bool `help:"is a system account?"`
NoWebConsole bool `help:"allow web console access"`
@@ -178,9 +176,6 @@ func init() {
}
if args.Password != nil {
params.Add(jsonutils.NewString(*args.Password), "password")
if args.SkipPasswordComplexityCheck {
params.Add(jsonutils.JSONTrue, "skip_password_complexity_check")
}
}
if len(args.Displayname) > 0 {
params.Add(jsonutils.NewString(args.Displayname), "displayname")

View File

@@ -27,9 +27,8 @@ func init() {
type VpcListOptions struct {
options.BaseListOptions
Usable *bool `help:"Filter usable vpcs"`
Region string `help:"ID or Name of region" json:"-"`
Globalvpc string `help:"Filter by globalvpc"`
Usable *bool `help:"Filter usable vpcs"`
Region string `help:"ID or Name of region" json:"-"`
}
R(&VpcListOptions{}, "vpc-list", "List VPCs", func(s *mcclient.ClientSession, opts *VpcListOptions) error {
params, err := options.ListStructToParams(opts)

View File

@@ -1,23 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
"yunion.io/x/onecloud/pkg/cloudevent/service"
)
func main() {
service.StartService()
}

View File

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

View File

@@ -1,26 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
"yunion.io/x/onecloud/pkg/devtool/service"
"yunion.io/x/onecloud/pkg/util/atexit"
)
func main() {
defer atexit.Handle()
service.StartService()
}

View File

@@ -1,26 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
"yunion.io/x/onecloud/pkg/esxi/service"
"yunion.io/x/onecloud/pkg/util/atexit"
)
func main() {
defer atexit.Handle()
service.New().StartService()
}

View File

@@ -1,115 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
"flag"
"net"
"os"
"strings"
"google.golang.org/grpc"
"yunion.io/x/executor/apis"
"yunion.io/x/executor/server"
"yunion.io/x/log"
"yunion.io/x/onecloud/pkg/util/sysutils"
)
var socketPath string
func init() {
flag.StringVar(&socketPath, "socket-path", "/var/run/exec.sock", "execute service listen socket path")
}
func main() {
if !sysutils.IsRootPermission() {
log.Fatalln("executor must run on root permission")
}
Serve()
}
type SExecuteService struct {
}
func NewExecuteService() *SExecuteService {
return &SExecuteService{}
}
func (s *SExecuteService) fixPathEnv() error {
var paths = []string{
"/usr/local/sbin",
"/usr/local/bin",
"/sbin",
"/bin",
"/usr/sbin",
"/usr/bin",
}
return os.Setenv("PATH", strings.Join(paths, ":"))
}
func (s *SExecuteService) prepareEnv() error {
if err := s.fixPathEnv(); err != nil {
return err
}
return nil
}
func (s *SExecuteService) runService() {
grpcServer := grpc.NewServer()
apis.RegisterExecutorServer(grpcServer, &server.Executor{})
if _, err := os.Stat(socketPath); !os.IsNotExist(err) {
conn, err := net.Dial("unix", socketPath)
if err == nil {
conn.Close()
log.Fatalf("socket %s already listening", socketPath)
}
// socket file already exist, remove first
if err := os.Remove(socketPath); err != nil {
log.Fatalln(err)
}
}
listener, err := net.Listen("unix", socketPath)
if err != nil {
log.Fatalln(err)
}
defer listener.Close()
log.Infof("Init net listener on %s succ", socketPath)
err = grpcServer.Serve(listener)
if err != nil {
log.Fatalln(err)
}
}
func (s *SExecuteService) initService() {
if len(socketPath) == 0 {
log.Fatalf("missing socket path")
}
if err := s.prepareEnv(); err != nil {
log.Fatalln(err)
}
}
func (s *SExecuteService) Run() {
s.initService()
s.runService()
}
func Serve() {
NewExecuteService().Run()
}

View File

@@ -1,147 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
"fmt"
"os"
"yunion.io/x/log"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/multicloud/google"
_ "yunion.io/x/onecloud/pkg/multicloud/google/shell"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
type BaseOptions struct {
Debug bool `help:"debug mode"`
Help bool `help:"Show help"`
ClientEmail string `help:"Client email" default:"$GOOGLE_CLIENT_EMAIL"`
ProjectID string `help:"Project ID" default:"$GOOGLE_PROJECT_ID"`
PrivateKeyID string `help:"Private Key ID" default:"$GOOGLE_PRIVATE_KEY_ID"`
PrivateKey string `help:"Private Key" default:"$GOOGLE_PRIVATE_KEY"`
RegionID string `help:"RegionID" default:"$GOOGLE_REGION"`
SUBCOMMAND string `help:"googlecli subcommand" subcommand:"true"`
}
func getSubcommandParser() (*structarg.ArgumentParser, error) {
parse, e := structarg.NewArgumentParser(&BaseOptions{},
"googlecli",
"Command-line interface to google API.",
`See "googlecli help COMMAND" for help on a specific command.`)
if e != nil {
return nil, e
}
subcmd := parse.GetSubcommand()
if subcmd == nil {
return nil, fmt.Errorf("No subcommand argument.")
}
type HelpOptions struct {
SUBCOMMAND string `help:"sub-command name"`
}
shellutils.R(&HelpOptions{}, "help", "Show help of a subcommand", func(args *HelpOptions) error {
helpstr, e := subcmd.SubHelpString(args.SUBCOMMAND)
if e != nil {
return e
} else {
fmt.Print(helpstr)
return nil
}
})
for _, v := range shellutils.CommandTable {
_, e := subcmd.AddSubParser(v.Options, v.Command, v.Desc, v.Callback)
if e != nil {
return nil, e
}
}
return parse, nil
}
func showErrorAndExit(e error) {
log.Errorf("%s", e)
os.Exit(1)
}
func newClient(options *BaseOptions) (*google.SRegion, error) {
if len(options.ClientEmail) == 0 {
return nil, fmt.Errorf("Missing ClientEmail")
}
if len(options.PrivateKeyID) == 0 {
return nil, fmt.Errorf("Missing PrivateKeyID")
}
if len(options.PrivateKey) == 0 {
return nil, fmt.Errorf("Missing PrivateKey")
}
if len(options.ProjectID) == 0 {
return nil, fmt.Errorf("Missing ProjectID")
}
cli, err := google.NewGoogleClient("", "", options.ProjectID, options.ClientEmail, options.PrivateKeyID, options.PrivateKey, options.Debug)
if err != nil {
return nil, err
}
region := cli.GetRegion(options.RegionID)
if region == nil {
return nil, fmt.Errorf("No such region %s", options.RegionID)
}
return region, nil
}
func main() {
parser, e := getSubcommandParser()
if e != nil {
showErrorAndExit(e)
}
e = parser.ParseArgs(os.Args[1:], false)
options := parser.Options().(*BaseOptions)
if options.Help {
fmt.Print(parser.HelpString())
return
}
subcmd := parser.GetSubcommand()
subparser := subcmd.GetSubParser()
if e != nil {
if subparser != nil {
fmt.Print(subparser.Usage())
} else {
fmt.Print(parser.Usage())
}
showErrorAndExit(e)
return
}
suboptions := subparser.Options()
if options.SUBCOMMAND == "help" {
e = subcmd.Invoke(suboptions)
} else {
var region *google.SRegion
region, e = newClient(options)
if e != nil {
showErrorAndExit(e)
}
e = subcmd.Invoke(region, suboptions)
}
if e != nil {
showErrorAndExit(e)
}
}

View File

@@ -11,7 +11,7 @@ swagger文档https://swagger.io/docs/specification/2-0/basic-structure/
1. 首先启动swagger-ui
sudo docker pull swaggerapi/swagger-ui
sudo docker run -d -p 80:8080 swaggerapi/swagger-ui
sudo docker run -p 80:8080 swaggerapi/swagger-ui
2. 用python启动本地的http server这是允许CORS的SimpleHTTPServer监听在8000端口

View File

@@ -1,21 +0,0 @@
post:
summary: 执行ansibleplaybook
description: |
调用成功后
- start_time将置为当前时间
- end_time置为空
- status设置为running
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
- name: ansibleplaybook
in: body
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookCreateRequest"
responses:
200:
description: ansibleplaybook的信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks

View File

@@ -1,20 +0,0 @@
post:
summary: 中止执行ansibleplaybook
description: |
调用成功后
- end_time置为当前时间
- status设置为canceled
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
- name: ansibleplaybook
in: body
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookCreateRequest"
responses:
200:
description: ansibleplaybook的信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks

View File

@@ -1,41 +0,0 @@
get:
summary: 获取指定ansibleplaybook的信息
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
responses:
200:
description: ansibleplaybook信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks
put:
summary: 更新ansibleplaybook自身参数
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
- name: ansibleplaybook
in: body
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookCreateRequest"
responses:
200:
description: ansibleplaybook的信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks
delete:
summary: 删除指定ansibleplaybook
description: |
处于运行状态的playbook需先中止执行才允许删除
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
responses:
200:
description: 被删除ansibleplaybook的信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks

View File

@@ -1,23 +0,0 @@
get:
summary: 按指定条件列出ansibleplaybook实例
responses:
200:
description: 实例列表信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookListResponse"
tags:
- ansibleplaybooks
post:
summary: 创建ansibleplaybook实例
parameters:
- name: ansibleplaybook
in: body
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookCreateRequest"
responses:
200:
description: 新创建的实例信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

View File

@@ -23,7 +23,7 @@ post:
required: true
schema:
$ref: "../schemas/bucket.yaml#/BucketCreateInput"
responses:
response:
200:
description: 对象存储桶信息
schema:

View File

@@ -1,16 +0,0 @@
post:
summary: 设置存储桶的储存限制该限制只有在使用OneCloud作为访问对象存储网关才生效。
parameters:
- $ref: '../parameters/bucket.yaml#/bucket_name'
- name: bucket
in: body
required: true
schema:
$ref: "../schemas/bucket.yaml#/BucketSetLimitInput"
responses:
200:
description: 指定存储桶的Limit响应
schema:
$ref: "../schemas/bucket.yaml#/BucketGetResponse"
tags:
- buckets

View File

@@ -1,16 +0,0 @@
post:
summary: 更新云账号所属项目
parameters:
- $ref: '../parameters/cloudaccount.yaml#/cloudaccountId'
- in: body
name: cloudaccount
required: true
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountChangeProject'
responses:
200:
description: 云账号信息
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountResponse'
tags:
- cloudaccount

View File

@@ -1,40 +0,0 @@
get:
summary: 获取指定云账号详情信息
parameters:
- $ref: '../parameters/cloudaccount.yaml#/cloudaccountId'
responses:
200:
description: 云账号信息
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountResponse'
tags:
- cloudaccount
put:
summary: 更新云账号信息
parameters:
- $ref: '../parameters/cloudaccount.yaml#/cloudaccountId'
- in: body
name: cloudaccount
required: true
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountUpdate'
responses:
200:
description: 云账号信息
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountResponse'
tags:
- cloudaccount
delete:
summary: 删除指定云账号
parameters:
- $ref: '../parameters/cloudaccount.yaml#/cloudaccountId'
responses:
200:
description: 被删除云账号信息
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountResponse'
tags:
- cloudaccount

View File

@@ -1,30 +0,0 @@
get:
summary: 按指定条件列出云账号
parameters:
- $ref: '../parameters/common.yaml#/limit'
- $ref: '../parameters/common.yaml#/offset'
- $ref: '../parameters/common.yaml#/provider'
- $ref: '../parameters/common.yaml#/cloud_env'
responses:
200:
description: 云账号列表信息
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountListResponse'
tags:
- cloudaccount
post:
summary: 创建云账号
parameters:
- in: body
name: cloudaccount
required: true
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountCreate'
responses:
200:
description: 新创建的云账号信息
schema:
$ref: '../schemas/cloudaccount.yaml#/CloudaccountResponse'
tags:
- cloudaccount

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