Compare commits

..

1335 Commits

Author SHA1 Message Date
Zexi Li
f2c5065003 Merge pull request #5397 from swordqiu/automated-cherry-pick-of-#5392-upstream-release-2.11
Automated cherry pick of #5392: fix: scoped resource should override FetchOwnerId
2020-03-07 15:51:25 +08:00
Qiu Jian
a6e7670c15 fix: scoped resource should override FetchOwnerId 2020-03-07 15:50:06 +08:00
Zexi Li
b0e0d74daf Merge pull request #5377 from swordqiu/automated-cherry-pick-of-#5372-upstream-release-2.11
Automated cherry pick of #5372: fix: no scope shcedtag should be visible to all
2020-03-06 18:32:50 +08:00
Qiu Jian
5886c64d36 fix: no scope shcedtag should be visible to all 2020-03-06 15:25:21 +08:00
yunion-ci-robot
7a5f89b75b Merge pull request #5146 from tb365/automated-cherry-pick-of-#5145-upstream-release-2.11
Automated cherry pick of #5145: qcloud elb sync
2020-02-19 16:06:27 +08:00
TangBin
d8a8e56bbe qcloud elb sync 2020-02-17 22:28:23 +08:00
yunion-ci-robot
5f3af20771 Merge pull request #5067 from swordqiu/automated-cherry-pick-of-#5065-upstream-release-2.11
Automated cherry pick of #5065: fix: allow empty domain for windows deployment
2020-02-10 10:34:56 +08:00
Qiu Jian
e3459ed11f fix: allow empty domain for windows deployment 2020-02-10 09:23:07 +08:00
yunion-ci-robot
e5ff6e2f91 Merge pull request #5059 from swordqiu/automated-cherry-pick-of-#5054-upstream-release-2.11
Automated cherry pick of #5054: fix: createdAt should not be synced when update
2020-02-09 22:09:57 +08:00
Qiu Jian
eddc544220 fix: createdAt should not be synced when update 2020-02-08 21:31:03 +08:00
yunion-ci-robot
d9fc2eacee Merge pull request #5033 from tb365/automated-cherry-pick-of-#5032-upstream-release-2.11
Automated cherry pick of #5032: aws create with eip fix
2020-02-07 04:51:49 +08:00
tangbin
1e5b5c1a1a aws create with eip fix 2020-02-06 17:56:41 +08:00
yunion-ci-robot
0bac302344 Merge pull request #5016 from swordqiu/automated-cherry-pick-of-#5014-upstream-release-2.11
Automated cherry pick of #5014: fix: support empty dns domain
2020-02-06 09:48:48 +08:00
Qiu Jian
74f6472101 fix: support empty dns domain 2020-02-06 03:26:37 +08:00
yunion-ci-robot
79c91c5891 Merge pull request #4951 from ioito/automated-cherry-pick-of-#4946-upstream-release-2.11
Automated cherry pick of #4946: fix: 腾讯云主机带宽跟随eip带宽变化而变化
2020-01-17 19:44:10 +08:00
Qu Xuan
5334e46509 fix: 腾讯云主机带宽跟随eip带宽变化而变化 2020-01-17 13:40:11 +08:00
yunion-ci-robot
b2861807ae Merge pull request #4881 from tb365/automated-cherry-pick-of-#4880-upstream-release-2.11
Automated cherry pick of #4880: huawei remove backend group bugfix
2020-01-17 11:01:10 +08:00
yunion-ci-robot
14948596a1 Merge pull request #4909 from ioito/automated-cherry-pick-of-#4904-upstream-release-2.11
Automated cherry pick of #4904: fix: 避免创建azure时指定高级ssd失效
2020-01-16 09:49:07 +08:00
Qu Xuan
ce0c03db11 fix: 避免创建azure时指定高级ssd失效 2020-01-15 18:03:28 +08:00
TangBin
99fb57e0f3 aliyun backendgroup bugfix 2020-01-14 15:51:37 +08:00
TangBin
1f2dbdf126 aws backendgroup delete bugfix 2020-01-14 15:51:37 +08:00
TangBin
f984f6879f aws sync routetable 2020-01-14 15:51:37 +08:00
TangBin
1a6e8c3c9d huawei remove backend group bugfix 2020-01-14 15:51:37 +08:00
yunion-ci-robot
e89c04d6c3 Merge pull request #4868 from ioito/automated-cherry-pick-of-#4862-upstream-release-2.11
Automated cherry pick of #4862: fix: 仅kvm需要去判断是否需要关机调整配置,公有云私有云默认不需要
2020-01-14 03:00:02 +08:00
yunion-ci-robot
274e4b3afa Merge pull request #4854 from ioito/automated-cherry-pick-of-#4849-upstream-release-2.11
Automated cherry pick of #4849: fix: aliyun rule fix
2020-01-14 02:20:01 +08:00
Qu Xuan
84ca5cde0d fix: 仅kvm需要去判断是否需要关机调整配置,公有云私有云默认不需要 2020-01-13 19:17:56 +08:00
Qu Xuan
ef8753f4f5 fix: aliyun rule fix 2020-01-13 17:46:08 +08:00
yunion-ci-robot
b561ae3b2d Merge pull request #4802 from tb365/automated-cherry-pick-of-#4801-upstream-release-2.11
Automated cherry pick of #4801: kvm elb listener update bugfix
2020-01-10 19:53:01 +08:00
TangBin
cb0a96f1e9 kvm elb listener update bugfix 2020-01-10 18:49:00 +08:00
yunion-ci-robot
9a06637b10 Merge pull request #4789 from yousong/automated-cherry-pick-of-#4784-upstream-release-2.11
Automated cherry pick of #4784: dnsrecords: add helper methods
2020-01-10 10:17:59 +08:00
Yousong Zhou
76ea830519 dns: chain load records for cname 2020-01-09 23:24:56 +08:00
Yousong Zhou
e6ef1cccd7 dns: prepare for responding with A record of cname value 2020-01-09 23:24:56 +08:00
Yousong Zhou
a7d5f8cdba dnsrecords: add helper methods 2020-01-09 23:24:56 +08:00
yunion-ci-robot
e1aff9c68d Merge pull request #4748 from yousong/automated-cherry-pick-of-#4724-upstream-release-2.11
Automated cherry pick of #4724: wires: lift name length, charset constraint
2020-01-08 23:41:58 +08:00
Yousong Zhou
66f8189d3d wires: lift name length, charset constraint 2020-01-08 19:16:21 +08:00
yunion-ci-robot
2e81618aa1 Merge pull request #4733 from ioito/automated-cherry-pick-of-#4728-upstream-release-2.11
Automated cherry pick of #4728: fix: eip duplicate name
2020-01-08 19:02:58 +08:00
Qu Xuan
f7f3a6620e fix: eip duplicate name 2020-01-08 18:13:21 +08:00
yunion-ci-robot
76edf6b752 Merge pull request #4689 from yousong/automated-cherry-pick-of-#4683-upstream-release-2.11
Automated cherry pick of #4683: hostman: distro name OpenWrt instead of OpenWRT
2020-01-08 12:54:59 +08:00
Zexi Li
86173c358b Merge pull request #4678 from swordqiu/automated-cherry-pick-of-#4676-upstream-release-2.11
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:16 +08:00
yunion-ci-robot
e916113ec6 Merge pull request #4671 from ioito/automated-cherry-pick-of-#4656-upstream-release-2.11
Automated cherry pick of #4656: fix: 避免拥有带宽包的腾讯云创建机器失败
2020-01-07 18:05:58 +08:00
Yousong Zhou
4ccb85e767 hostman: openwrt: deploy public key for root 2020-01-07 18:02:34 +08:00
Yousong Zhou
e23b4674fb hostman: split DeployAuthorizedKeys() 2020-01-07 18:02:34 +08:00
Yousong Zhou
dbae935b9d hostman: openwrt: support deploy networking scripts 2020-01-07 18:02:34 +08:00
Yousong Zhou
ac9ee812b9 hostman: openwrt: deploy hostname with board config 2020-01-07 18:02:34 +08:00
Yousong Zhou
2478e2acef hostman: distro name OpenWrt instead of OpenWRT 2020-01-07 18:02:34 +08:00
yunion-ci-robot
456b8bfb3d Merge pull request #4663 from ioito/automated-cherry-pick-of-#4658-upstream-release-2.11
Automated cherry pick of #4658: fix: 避免同步安全组失败后,没有任何日志记录
2020-01-07 17:06:57 +08:00
Qiu Jian
85877c2950 fix: guest network default share scope should be system if non-default-domain-projects is off 2020-01-07 16:51:57 +08:00
Qu Xuan
6632ef999d fix: 避免拥有带宽包的腾讯云创建机器失败 2020-01-07 15:06:14 +08:00
Qu Xuan
54fd08c1c8 fix: 避免同步安全组失败后,没有任何日志记录 2020-01-07 11:50:42 +08:00
Zexi Li
ad7a545878 Merge pull request #4614 from ioito/automated-cherry-pick-of-#4609-upstream-release-2.11
Automated cherry pick of #4609: fix: 避免仅删除value时,行为演变为删除标签
2020-01-04 23:18:19 +08:00
Qu Xuan
0eea7468b7 fix: 避免仅删除value时,行为演变为删除标签 2020-01-04 22:17:58 +08:00
yunion-ci-robot
34ca16dbad Merge pull request #4586 from ioito/automated-cherry-pick-of-#4581-upstream-release-2.11
Automated cherry pick of #4581: fix: 修复zstack安全组创建失败问题
2020-01-04 20:13:36 +08:00
Qu Xuan
a51ca978ea fix: 修复zstack安全组创建失败问题 2020-01-04 20:02:57 +08:00
yunion-ci-robot
01847084c0 Merge pull request #4563 from ioito/automated-cherry-pick-of-#4558-upstream-release-2.11
Automated cherry pick of #4558: fix: openstack eip dissociate optimized
2020-01-04 19:53:36 +08:00
Zexi Li
1ee1b7b1b9 Merge pull request #4569 from swordqiu/automated-cherry-pick-of-#4564-upstream-release-2.11
Automated cherry pick of #4564: fix: minio fail to set object metadata
2020-01-04 19:52:57 +08:00
Qu Xuan
421dc4b48e fix: openstack eip dissociate optimized 2020-01-04 18:45:04 +08:00
Qiu Jian
e99c227e37 fix: minio fail to set object metadata 2020-01-04 18:38:03 +08:00
Zexi Li
772a273c70 Merge pull request #4525 from zexi/automated-cherry-pick-of-#4520-upstream-release-2.11
Automated cherry pick of #4520: baremetal: fix megaraid check jbod always disabled
2020-01-03 21:51:46 +08:00
yunion-ci-robot
5c4f1e2fc3 Merge pull request #4518 from ioito/automated-cherry-pick-of-#4513-upstream-release-2.11
Automated cherry pick of #4513: fix: 腾讯云不支持描述字段参数
2020-01-03 21:33:36 +08:00
Zexi Li
d73b97df5a baremetal: fix megaraid check jbod always disabled 2020-01-03 21:23:58 +08:00
Qu Xuan
29c3c02bfc fix: 腾讯云不支持描述字段参数 2020-01-03 20:47:07 +08:00
yunion-ci-robot
84932be256 Merge pull request #4467 from yousong/automated-cherry-pick-of-#4464-upstream-release-2.11
Automated cherry pick of #4464: networks: 确保外部network也有ifname_hint
2020-01-01 15:31:34 +08:00
Yousong Zhou
5c0ae09083 networks: 确保外部network也有ifname_hint 2020-01-01 11:53:55 +08:00
yunion-ci-robot
97a2395b83 Merge pull request #4462 from ioito/automated-cherry-pick-of-#4459-upstream-release-2.11
Automated cherry pick of #4459: fix: openstack image: vmdk -> qcow2
2020-01-01 09:30:34 +08:00
Qu Xuan
d995a0927f fix: openstack image: vmdk -> qcow2 2019-12-31 19:57:15 +08:00
yunion-ci-robot
019d2c134a Merge pull request #4448 from wanyaoqi/automated-cherry-pick-of-#4445-upstream-release-2.11
Automated cherry pick of #4445: not return on recv packet failed
2019-12-31 17:30:33 +08:00
yunion-ci-robot
c63c439664 Merge pull request #4438 from yousong/automated-cherry-pick-of-#4435-upstream-release-2.11
Automated cherry pick of #4435: networks: newIfnameHint: 可读性改善
2019-12-31 17:13:33 +08:00
wanyaoqi
da5446d5f5 not return on recv packet failed 2019-12-31 17:05:07 +08:00
Yousong Zhou
3fd022981a guestnetworks: 加强ifname内容判断 2019-12-31 14:25:04 +08:00
Yousong Zhou
015c802bd9 networks: newIfnameHint: 可读性改善 2019-12-31 14:25:04 +08:00
yunion-ci-robot
680c504a65 Merge pull request #4397 from ioito/automated-cherry-pick-of-#4394-upstream-release-2.11
Automated cherry pick of #4394: fix: 避免同步将eip同步到弹性网卡里面
2019-12-31 00:47:32 +08:00
Zexi Li
46dde8b659 Merge pull request #4408 from wanyaoqi/automated-cherry-pick-of-#4405-upstream-release-2.11
Automated cherry pick of #4405: fix panic on fstab no content
2019-12-31 00:43:25 +08:00
yunion-ci-robot
c88108613f Merge pull request #4415 from yousong/automated-cherry-pick-of-#4412-upstream-release-2.11
Automated cherry pick of #4412: networks: make ifname hint also valid qemu identifier
2019-12-30 18:54:33 +08:00
Yousong Zhou
9d101572d8 networks: make ifname hint also valid qemu identifier 2019-12-30 18:15:01 +08:00
Zexi Li
394bf8e5ec Merge pull request #4404 from swordqiu/automated-cherry-pick-of-#4401-upstream-release-2.11
Automated cherry pick of #4401: fix: host-update ipmi and host-sync-config support
2019-12-30 17:59:12 +08:00
wanyaoqi
2bd0b5cb0d fix panic on fstab no content 2019-12-30 16:27:37 +08:00
Qiu Jian
06b545f643 fix: host-update ipmi and host-sync-config support 2019-12-30 16:19:04 +08:00
Qu Xuan
7da0fd564a fix: 避免同步将eip同步到弹性网卡里面 2019-12-30 14:55:41 +08:00
yunion-ci-robot
d061a79f01 Merge pull request #4366 from ioito/automated-cherry-pick-of-#4362-upstream-release-2.11
Automated cherry pick of #4362: fix: 更正腾讯云磁盘创建时间
2019-12-29 22:04:39 +08:00
Qu Xuan
072dce826c fix: 更正腾讯云磁盘创建时间 2019-12-28 13:08:37 +08:00
yunion-ci-robot
c0d7ae7758 Merge pull request #4378 from ioito/automated-cherry-pick-of-#4375-upstream-release-2.11
Automated cherry pick of #4375: fix: 避免因太多锁导致删除安全组task失败
2019-12-28 09:53:35 +08:00
Qu Xuan
dbf811e403 fix: 避免因太多锁导致删除安全组task失败 2019-12-27 16:24:31 +08:00
Zexi Li
14bc5e4fd0 Merge pull request #4371 from swordqiu/automated-cherry-pick-of-#4368-upstream-release-2.11
Automated cherry pick of #4368: fix: alter user email charset to utf8
2019-12-27 14:29:04 +08:00
Qiu Jian
79074e4715 fix: alter user email charset to utf8 2019-12-27 14:15:03 +08:00
Zexi Li
c8c9e1ac33 Merge pull request #4329 from swordqiu/automated-cherry-pick-of-#4326-upstream-release-2.11
Automated cherry pick of #4326: fix: baremetal diskconfig empty adaptor index
2019-12-26 21:16:04 +08:00
yunion-ci-robot
5d1f0de884 Merge pull request #4325 from swordqiu/automated-cherry-pick-of-#4322-upstream-release-2.11
Automated cherry pick of #4322: fix: SyncEip时同步项目应该在同步主机信息之前
2019-12-26 15:53:33 +08:00
yunion-ci-robot
a6580b3e3e Merge pull request #4302 from yousong/automated-cherry-pick-of-#4299-upstream-release-2.11
Automated cherry pick of #4299: hostman: different error message for different error reason
2019-12-26 11:04:30 +08:00
yunion-ci-robot
a6dd639459 Merge pull request #4316 from ioito/automated-cherry-pick-of-#4313-upstream-release-2.11
Automated cherry pick of #4313: fix: 避免在域管理后台rules不可见
2019-12-26 01:55:15 +08:00
yunion-ci-robot
05ef873228 Merge pull request #4310 from ioito/automated-cherry-pick-of-#4307-upstream-release-2.11
Automated cherry pick of #4307: fix: 同步openstack宿主机关闭服务后状态
2019-12-26 01:51:15 +08:00
Qiu Jian
6a0981f347 fix: baremetal diskconfig empty adaptor index 2019-12-26 01:13:52 +08:00
Qiu Jian
b06858fe78 fix: SyncEip时同步项目应该在同步主机信息之前 2019-12-26 01:02:40 +08:00
Qu Xuan
597410487a fix: 避免在域管理后台rules不可见 2019-12-25 17:16:00 +08:00
Qu Xuan
ecd93bc0ae fix: 同步openstack宿主机关闭服务后状态 2019-12-25 16:28:18 +08:00
Yousong Zhou
4baa601658 hostman: fsdriver: fix hostname deployment for openwrt
We will need to add native uci support later
2019-12-25 16:04:36 +08:00
Yousong Zhou
99df6d6198 hostman: add default values for host config 2019-12-25 16:04:36 +08:00
Yousong Zhou
d4ec9d48a6 networks: different indent level for asymmetric branches 2019-12-25 16:03:30 +08:00
Yousong Zhou
81d4cb3a2c hostman: different error message for different error reason 2019-12-25 16:03:30 +08:00
yunion-ci-robot
cf05505ece Merge pull request #4273 from swordqiu/automated-cherry-pick-of-#4270-upstream-release-2.11
Automated cherry pick of #4270: feature: support centos 8 deployment. centos 8 requiest NetworkManager
2019-12-23 10:43:14 +08:00
Qiu Jian
05670d8cf6 feature: support centos 8 deployment. centos 8 requiest NetworkManager 2019-12-21 18:45:20 +08:00
yunion-ci-robot
20b932fdd0 Merge pull request #4215 from yousong/automated-cherry-pick-of-#4212-upstream-release-2.11
Automated cherry pick of #4212: guestnetworks: ignore empty preferIfname
2019-12-18 19:01:08 +08:00
Yousong Zhou
f4d3670802 guestnetworks: ignore empty preferIfname
Fixes cc02ac74 ("guestnetworks: check ifname uniqueness across different
networks")
2019-12-18 09:20:14 +00:00
yunion-ci-robot
3985fa7bbd Merge pull request #4198 from ioito/automated-cherry-pick-of-#4194-upstream-release-2.11
Automated cherry pick of #4194: fix: 标签过滤和框架保持一致
2019-12-17 16:35:04 +08:00
Qu Xuan
6509cb3e83 fix: 标签过滤和框架保持一致 2019-12-17 15:58:00 +08:00
yunion-ci-robot
636c302148 Merge pull request #4143 from tb365/automated-cherry-pick-of-#4141-upstream-release-2.11
Automated cherry pick of #4141: huawei sync instance offset bugfix
2019-12-14 11:08:00 +08:00
TangBin
b0db0b5275 huawei sync instance offset bugfix 2019-12-13 15:45:51 +08:00
yunion-ci-robot
b4f8789f96 Merge pull request #4137 from swordqiu/automated-cherry-pick-of-#4134-upstream-release-2.11
Automated cherry pick of #4134: fix: misc bugfix for esxi 20191213
2019-12-13 12:59:00 +08:00
yunion-ci-robot
a5a9f9c363 Merge pull request #4126 from yousong/automated-cherry-pick-of-#4123-upstream-release-2.11
Automated cherry pick of #4123: guestnetworks: check ifname uniqueness across different networks
2019-12-13 12:57:01 +08:00
Qiu Jian
bafb696d7e fix: misc bugfix for esxi 20191213 2019-12-13 12:35:56 +08:00
yunion-ci-robot
83f5716f67 Merge pull request #4132 from ioito/automated-cherry-pick-of-#4129-upstream-release-2.11
Automated cherry pick of #4129: fix: 避免插入时出现duplicate primary key error
2019-12-13 11:38:59 +08:00
Qu Xuan
cefe49d789 fix: 避免插入时出现duplicate primary key error 2019-12-13 10:46:26 +08:00
Yousong Zhou
be6a98b8a8 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:49:56 +00:00
yunion-ci-robot
8f09f56138 Merge pull request #4100 from ioito/automated-cherry-pick-of-#4097-upstream-release-2.11
Automated cherry pick of #4097: fix: 避免zstack参数含有中文,未编码导致请求失败
2019-12-12 11:01:39 +08:00
Qu Xuan
62bb76ff44 fix: 避免zstack参数含有中文,未编码导致请求失败 2019-12-11 23:23:06 +08:00
yunion-ci-robot
2bfc2909f4 Merge pull request #4107 from wanyaoqi/automated-cherry-pick-of-#4104-upstream-release-2.11
Automated cherry pick of #4104: fix image upload log event
2019-12-11 22:29:44 +08:00
wanyaoqi
85d531f716 fix image upload log event 2019-12-11 20:41:25 +08:00
yunion-ci-robot
9f9dd99329 Merge pull request #4095 from yousong/automated-cherry-pick-of-#4092-upstream-release-2.11
Automated cherry pick of #4092: loadbalancerbackends: janitor: move to InitializeData
2019-12-11 20:14:44 +08:00
Yousong Zhou
e3bf4cbc5e loadbalancerbackends: janitor: move to InitializeData
The janitor only makes sense when inside region service
2019-12-11 08:24:26 +00:00
yunion-ci-robot
29f42dadde Merge pull request #4075 from ioito/automated-cherry-pick-of-#4072-upstream-release-2.11
Automated cherry pick of #4072: fix: 导出用户标签不加user:前缀
2019-12-11 15:07:39 +08:00
Qu Xuan
c63a471e59 fix: 导出用户标签不加user:前缀 2019-12-09 21:46:24 +08:00
yunion-ci-robot
8aa376a673 Merge pull request #4038 from ioito/automated-cherry-pick-of-#4035-upstream-release-2.11
Automated cherry pick of #4035: fix: 避免普通用户添加规则到系统安全组
2019-12-06 23:22:36 +08:00
Qu Xuan
e5411cb484 fix: 避免普通用户添加规则到系统安全组 2019-12-06 15:34:21 +08:00
yunion-ci-robot
2752e6fddd Merge pull request #4024 from wanyaoqi/automated-cherry-pick-of-#4021-upstream-release-2.11
Automated cherry pick of #4021: add socket used check of deploy server
2019-12-05 14:36:36 +08:00
wanyaoqi
d5d1c91d8e add socket used check of deploy server 2019-12-04 11:42:15 +08:00
yunion-ci-robot
d9cf597830 Merge pull request #4020 from yousong/automated-cherry-pick-of-#4016-upstream-release-2.11
Automated cherry pick of #4016: hostman: hostinfo: turn off report_ignored_msrs
2019-12-04 11:02:34 +08:00
Yousong Zhou
93ba40ec7a 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:43:32 +00:00
Zexi Li
e080b3de7c Merge pull request #3980 from rainzm/automated-cherry-pick-of-#3979-upstream-release-2.11
Automated cherry pick of #3979: feat(region): Add suspend feature for vmware guest
2019-12-02 10:35:28 +08:00
郑雨
378a02a05f feat(region): Add suspend feature for vmware guest 2019-11-29 16:09:07 +08:00
yunion-ci-robot
243323a68c Merge pull request #3961 from wanyaoqi/automated-cherry-pick-of-#3958-upstream-release-2.11
Automated cherry pick of #3958: add lock on host detected offline
2019-11-28 14:14:28 +08:00
wanyaoqi
93074abfa4 add lock on host detected offline 2019-11-28 11:23:12 +08:00
yunion-ci-robot
382de0d48a Merge pull request #3947 from wanyaoqi/automated-cherry-pick-of-#3944-upstream-release-2.11
Automated cherry pick of #3944: fix image set chksum
2019-11-27 20:47:30 +08:00
wanyaoqi
6d3ba300d2 fix image set chksum 2019-11-27 18:28:21 +08:00
yunion-ci-robot
07fcf6cc9f Merge pull request #3899 from tb365/automated-cherry-pick-of-#3897-upstream-release-2.11
Automated cherry pick of #3897: huawei disk detach bugfix
2019-11-27 09:06:29 +08:00
yunion-ci-robot
f69cbad397 Merge pull request #3913 from ioito/automated-cherry-pick-of-#3910-upstream-release-2.11
Automated cherry pick of #3910: fix: 避免有,Azure更新安全组规则出错
2019-11-27 08:57:28 +08:00
yunion-ci-robot
9b554c5f51 Merge pull request #3905 from ioito/automated-cherry-pick-of-#3902-upstream-release-2.11
Automated cherry pick of #3902: fix: 普通后台也返回cloudregion_id信息
2019-11-27 08:54:28 +08:00
Qu Xuan
f9be080ef7 fix: 避免有,Azure更新安全组规则出错 2019-11-26 20:51:47 +08:00
Qu Xuan
01031c77d8 fix: 普通后台也返回cloudregion_id信息 2019-11-26 19:13:13 +08:00
TangBin
193ce0fab1 huawei disk detach bugfix 2019-11-26 11:41:23 +08:00
Zexi Li
96d8a5fafe Merge pull request #3889 from swordqiu/automated-cherry-pick-of-#3887-upstream-release-2.11
Automated cherry pick of #3887: fix: host-add-netif requires index
2019-11-26 00:44:02 +08:00
Zexi Li
aa39713f5e Merge pull request #3882 from swordqiu/automated-cherry-pick-of-#3879-upstream-release-2.11
Automated cherry pick of #3879: fix: keystone project resource count not set set to zero
2019-11-26 00:41:45 +08:00
Qiu Jian
fe891af006 fix: host-add-netif requires index 2019-11-25 23:47:25 +08:00
Qiu Jian
09c46eece9 fix: keystone project resource count not set set to zero 2019-11-25 22:33:48 +08:00
yunion-ci-robot
54e2fce808 Merge pull request #3871 from ioito/automated-cherry-pick-of-#3868-upstream-release-2.11
Automated cherry pick of #3868: fix: 避免openstack重装系统,过不了镜像系统盘大小校验
2019-11-25 17:19:27 +08:00
Qu Xuan
4b76dad113 fix: 避免openstack重装系统,过不了镜像系统盘大小校验 2019-11-25 15:04:37 +08:00
yunion-ci-robot
a83cd5f9b7 Merge pull request #3866 from zexi/automated-cherry-pick-of-#3863-upstream-release-2.11
Automated cherry pick of #3863: baremetal: fix init baremetals fatal exit
2019-11-25 10:21:27 +08:00
Zexi Li
8759c83539 baremetal: fix init baremetals fatal exit 2019-11-25 09:41:32 +08:00
yunion-ci-robot
810b60d53c Merge pull request #3852 from swordqiu/automated-cherry-pick-of-#3848-upstream-release-2.11
Automated cherry pick of #3848: fix: user join read-only group response timeout
2019-11-22 22:52:27 +08:00
yunion-ci-robot
efaa914b7d Merge pull request #3860 from ioito/automated-cherry-pick-of-#3857-upstream-release-2.11
Automated cherry pick of #3857: fix: 避免旧密码覆盖新重置的密码
2019-11-22 21:51:27 +08:00
Qu Xuan
030e6bc3dc fix: 避免旧密码覆盖新重置的密码 2019-11-22 20:46:49 +08:00
Qiu Jian
1549d98fae fix: user join read-only group response timeout 2019-11-22 16:24:13 +08:00
yunion-ci-robot
fa54baf1fa Merge pull request #3836 from wanyaoqi/automated-cherry-pick-of-#3833-upstream-release-2.11
Automated cherry pick of #3833: host complie error
2019-11-21 18:50:26 +08:00
wanyaoqi
eb62aa5113 host complie error 2019-11-21 18:42:31 +08:00
Zexi Li
894bcd95bd Merge pull request #3827 from wanyaoqi/automated-cherry-pick-of-#3824-upstream-release-2.11
Automated cherry pick of #3824: fix resize disk
2019-11-21 18:22:32 +08:00
wanyaoqi
92a46d1944 fix host register 2019-11-21 18:07:26 +08:00
yunion-ci-robot
8fc5125d11 Merge pull request #3816 from tb365/automated-cherry-pick-of-#3813-upstream-release-2.11
Automated cherry pick of #3813: aws upload image bugfix & huawei change default disk type to SAS
2019-11-21 15:39:25 +08:00
Zexi Li
ccd628b554 Merge pull request #3812 from wanyaoqi/automated-cherry-pick-of-#3749-upstream-release-2.11
Automated cherry pick of #3749: hugepage fix
2019-11-21 00:23:28 +08:00
wanyaoqi
6cf5d41970 fix resize disk 2019-11-20 22:04:57 +08:00
TangBin
395e06e566 aws upload image bugfix & huawei change default disk type to SAS 2019-11-20 19:06:59 +08:00
wanyaoqi
68b9474275 hugepage fix 2019-11-20 18:45:24 +08:00
yunion-ci-robot
85ef08fe41 Merge pull request #3791 from yousong/automated-cherry-pick-of-#3788-upstream-release-2.11
Automated cherry pick of #3788: lbagent: pidfile: add PidFile
2019-11-19 23:22:27 +08:00
yunion-ci-robot
d6fe2db17b Merge pull request #3784 from yousong/automated-cherry-pick-of-#3778-upstream-release-2.11
Automated cherry pick of #3778: treewide: 避免使用fmt.Print记录日志
2019-11-19 23:16:25 +08:00
Yousong Zhou
f93c5a57be lbagent: pidfile: remove ReadPidFile() 2019-11-19 12:28:05 +00:00
Yousong Zhou
45545a7374 lbagent: stop daemons: use agentutils.PidFile 2019-11-19 12:28:05 +00:00
Yousong Zhou
e89261c218 lbagent: haproxy: use agentutils.PidFile 2019-11-19 12:28:05 +00:00
Yousong Zhou
a67bed276f lbagent: gobetween: use agentutils.PidFile 2019-11-19 12:28:05 +00:00
Yousong Zhou
39301a68d0 lbagent: telegraf: use agentutils.PidFile 2019-11-19 12:28:05 +00:00
Yousong Zhou
1b509d4977 lbagent: keepalived: use agentutils.PidFile 2019-11-19 12:28:05 +00:00
Yousong Zhou
1bfe912edf lbagent: pidfile: add PidFile 2019-11-19 12:28:05 +00:00
Yousong Zhou
4c975db0eb vendor: update sqlchemy 2019-11-19 11:25:23 +00:00
Yousong Zhou
e28551e3ee treewide: 避免使用fmt.Print记录日志 2019-11-19 11:25:23 +00:00
Zexi Li
9fbfbe4da8 Merge pull request #3776 from ioito/automated-cherry-pick-of-#3773-upstream-release-2.11
Automated cherry pick of #3773: fix: 调整存储容量后刷新调度缓存
2019-11-19 16:10:07 +08:00
Qu Xuan
1f2e786d4c fix: 调整存储容量后刷新调度缓存 2019-11-19 14:34:57 +08:00
Zexi Li
6ab91bb9dd Merge pull request #3734 from yousong/automated-cherry-pick-of-#3731-upstream-release-2.11
Automated cherry pick of #3731: build: 避免并发构建rpm时触发file exists错误
2019-11-19 10:48:18 +08:00
yunion-ci-robot
c49dee4b32 Merge pull request #3740 from rainzm/automated-cherry-pick-of-#3739-upstream-release-2.11
Automated cherry pick of #3739: fix(region): Fix the return value when sycning snapshotpolicy
2019-11-18 14:30:22 +08:00
郑雨
6e068724e3 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:34 +08:00
Yousong Zhou
e4ffc9aaca build: 避免并发构建rpm时触发file exists错误 2019-11-18 02:44:43 +00:00
Zexi Li
59f108988d Merge pull request #3725 from swordqiu/automated-cherry-pick-of-#3724-upstream-release-2.11
Automated cherry pick of #3724: update vendor for qcloud cos-go-sdk
2019-11-18 00:36:00 +08:00
Qiu Jian
a36fb600f1 update vendor for qcloud cos-go-sdk 2019-11-16 15:19:44 +08:00
yunion-ci-robot
9237341847 Merge pull request #3719 from ioito/automated-cherry-pick-of-#3699-upstream-release-2.11
Automated cherry pick of #3699: fix: cpuCmtbound sync for zstack
2019-11-15 20:21:21 +08:00
Qu Xuan
41ca1fcea4 fix: cpuCmtbound sync for zstack 2019-11-15 19:08:23 +08:00
yunion-ci-robot
1f81c03d65 Merge pull request #3709 from ioito/automated-cherry-pick-of-#3593-upstream-release-2.11
Automated cherry pick of #3593: fix: 避免公有云绑定秘钥后解密密码为空
2019-11-15 17:17:20 +08:00
Qu Xuan
2037789ada fix: 避免公有云绑定秘钥后解密密码为空 2019-11-15 16:15:29 +08:00
Zexi Li
3d05d940d1 Merge pull request #3706 from zexi/automated-cherry-pick-of-#3703-upstream-release-2.11
Automated cherry pick of #3703: webconsole: skip spice access interval check
2019-11-15 15:07:06 +08:00
Zexi Li
19ac1f2f92 webconsole: skip spice access interval check 2019-11-15 15:07:04 +08:00
yunion-ci-robot
a16a7d89c0 Merge pull request #3651 from swordqiu/automated-cherry-pick-of-#3649-upstream-release-2.11
Automated cherry pick of #3649: fix: agent-list show zone info
2019-11-14 12:38:22 +08:00
yunion-ci-robot
c184f9cc1a Merge pull request #3609 from yousong/automated-cherry-pick-of-#3606-upstream-release-2.11
Automated cherry pick of #3606: influxdb: 记录结果中的tags
2019-11-14 00:23:19 +08:00
yunion-ci-robot
8be0f1edb5 Merge pull request #3639 from ioito/automated-cherry-pick-of-#3636-upstream-release-2.11
Automated cherry pick of #3636: fix: 避免associationtype异常
2019-11-14 00:09:22 +08:00
Qiu Jian
e1f1214b07 fix: agent-list show zone info 2019-11-13 23:33:18 +08:00
Qu Xuan
d4a97293eb fix: 避免associationtype异常 2019-11-13 19:57:40 +08:00
yunion-ci-robot
db1235ebf9 Merge pull request #3634 from ioito/automated-cherry-pick-of-#3631-upstream-release-2.11
Automated cherry pick of #3631: fix: 避免匹配到64导致version是6
2019-11-13 19:45:20 +08:00
yunion-ci-robot
f39ca7b5e7 Merge pull request #3624 from swordqiu/automated-cherry-pick-of-#3621-upstream-release-2.11
Automated cherry pick of #3621: fix: nic teaming/bonding not working properly
2019-11-13 17:50:20 +08:00
Zexi Li
a6ed8428c6 Merge pull request #3642 from zexi/automated-cherry-pick-of-#3641-upstream-release-2.11
Automated cherry pick of #3641: climc: fix k8s sa not register
2019-11-13 16:49:41 +08:00
Zexi Li
73f1405793 climc: fix k8s sa not register 2019-11-13 16:48:33 +08:00
Qu Xuan
a91a4f7f68 fix: 避免匹配到64导致version是6 2019-11-13 14:50:47 +08:00
Yousong Zhou
00498d22ac climc: 添加lblistener{,rule}-backend-status命令 2019-11-13 03:02:29 +00:00
Yousong Zhou
3de69737b9 lblis, lbr: 增加查询后端状态接口 2019-11-13 02:42:42 +00:00
Yousong Zhou
9df8bd0c3a lbbackends: 使用yunion.io/pkg/errors 2019-11-13 02:42:42 +00:00
Yousong Zhou
4a3a21330a influxdb: 记录结果中的tags 2019-11-13 02:42:42 +00:00
yunion-ci-robot
d8cc67c7bc Merge pull request #3614 from wanyaoqi/automated-cherry-pick-of-#3611-upstream-release-2.11
Automated cherry pick of #3611: fix resie fs
2019-11-13 01:40:20 +08:00
yunion-ci-robot
a645ca7623 Merge pull request #3601 from ioito/automated-cherry-pick-of-#3598-upstream-release-2.11
Automated cherry pick of #3598: fix: 支持创建时指定多个安全组
2019-11-13 01:30:19 +08:00
yunion-ci-robot
6cbb0c51a3 Merge pull request #3618 from yousong/automated-cherry-pick-of-#3523-upstream-release-2.11
Automated cherry pick of #3523: lockman: log bug with Errorf
2019-11-13 00:48:22 +08:00
Qiu Jian
d92ad4efa2 fix: nic teaming/bonding not working properly 2019-11-13 00:23:03 +08:00
Yousong Zhou
ba93c96392 vendor: restore a few files to locally managed version 2019-11-12 15:21:51 +00:00
yunion-ci-robot
6fc1d3aa5f Merge pull request #3585 from ioito/automated-cherry-pick-of-#3582-upstream-release-2.11
Automated cherry pick of #3582: fix: 避免Openstack越过存储检查
2019-11-12 21:43:33 +08:00
Yousong Zhou
456dcaafcc vendor: update 2019-11-12 13:30:23 +00:00
Yousong Zhou
0115c9dc5e lockman: test multiple lockman 2019-11-12 13:28:03 +00:00
Yousong Zhou
c35e53c1db cloudcommon: options: new options for etcd lockman 2019-11-12 13:28:03 +00:00
Yousong Zhou
8390f25f46 lockman: distributed lockman with etcd 2019-11-12 13:28:03 +00:00
Yousong Zhou
21262995a9 lockman: log bug with Errorf 2019-11-12 13:28:03 +00:00
wanyaoqi
f102cf5559 fix resie fs 2019-11-12 21:08:04 +08:00
Qu Xuan
9e2e45d25a fix: 支持创建时指定多个安全组 2019-11-12 20:06:01 +08:00
Qu Xuan
1f9a72a016 fix: 避免Openstack越过存储检查 2019-11-12 15:17:50 +08:00
yunion-ci-robot
c68bec9230 Merge pull request #3562 from tb365/automated-cherry-pick-of-#3558-upstream-release-2.11
Automated cherry pick of #3558: huawei disk attach bugfix
2019-11-12 00:32:17 +08:00
tangbin
df57d232e7 huawei disk attach bugfix 2019-11-11 10:38:28 +08:00
Zexi Li
b20463d3e4 Merge pull request #3541 from zexi/automated-cherry-pick-of-#3539-upstream-release-2.11
Automated cherry pick of #3539: climc: k8s api update
2019-11-08 18:04:39 +08:00
Zexi Li
9985f8c92b climc: k8s api update 2019-11-08 17:55:39 +08:00
yunion-ci-robot
d4aa8ba0cf Merge pull request #3532 from tb365/automated-cherry-pick-of-#3524-upstream-release-2.11
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:49:15 +08:00
yunion-ci-robot
f7f483cf6e Merge pull request #3530 from zexi/automated-cherry-pick-of-#3528-upstream-release-2.11
Automated cherry pick of #3528: webconsole: fix baremetal ipmitool sol payload active on another session
2019-11-08 13:34:16 +08:00
TangBin
3ef8ba59b8 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:46:53 +08:00
yunion-ci-robot
16a9cf704b Merge pull request #3526 from ioito/automated-cherry-pick-of-#3518-upstream-release-2.11
Automated cherry pick of #3518: fix: 虚拟机漂移后设置新的hostId
2019-11-08 11:46:17 +08:00
Zexi Li
1264d36edd webconsole: fix baremetal ipmitool sol payload active on another session 2019-11-08 11:36:40 +08:00
Qu Xuan
c9b9b6d880 fix: 虚拟机漂移后设置新的hostId 2019-11-08 10:50:42 +08:00
yunion-ci-robot
9956be208a Merge pull request #3516 from ioito/automated-cherry-pick-of-#3492-upstream-release-2.11
Automated cherry pick of #3492: fix: 避免version输出不正确
2019-11-08 00:54:16 +08:00
Qu Xuan
ddbe197e33 fix: 避免version输出不正确 2019-11-07 17:42:59 +08:00
yunion-ci-robot
99a4759e50 Merge pull request #3484 from tb365/automated-cherry-pick-of-#3478-upstream-release-2.11
Automated cherry pick of #3478: region sync fix
2019-11-07 15:08:17 +08:00
yunion-ci-robot
f2b4868c0d Merge pull request #3496 from swordqiu/automated-cherry-pick-of-#3494-upstream-release-2.11
Automated cherry pick of #3494: fix: skip esxi vm with nil config
2019-11-07 10:19:16 +08:00
yunion-ci-robot
406989bc5b Merge pull request #3489 from swordqiu/automated-cherry-pick-of-#3487-upstream-release-2.11
Automated cherry pick of #3487: fix: nil pointer panic when auth decode body failed
2019-11-07 10:18:17 +08:00
Qiu Jian
d56d5fcf0c fix: skip esxi vm with nil config 2019-11-06 22:15:20 +08:00
Qiu Jian
e1ed838474 fix: nil pointer panic when auth decode body failed 2019-11-06 19:43:19 +08:00
TangBin
a6c7b316ec region sync fix 2019-11-06 14:33:35 +08:00
yunion-ci-robot
a8ecdace51 Merge pull request #3470 from yousong/automated-cherry-pick-of-#3468-upstream-release-2.11
Automated cherry pick of #3468: azure: fix tmp image file handling
2019-11-06 12:44:15 +08:00
yunion-ci-robot
e369e4dbbd Merge pull request #3464 from tb365/automated-cherry-pick-of-#3463-upstream-release-2.11
Automated cherry pick of #3463: elb sync fix
2019-11-06 10:25:14 +08:00
Yousong Zhou
b3f72fd7ac azure: storagecache: fix writing sparse image file 2019-11-05 09:10:33 +00:00
Yousong Zhou
45c4bec115 fileutils: add SparseFileWriter 2019-11-05 09:10:33 +00:00
Yousong Zhou
d97710d366 webconsole: always do session close on pty stop 2019-11-05 09:10:33 +00:00
Yousong Zhou
8efdfe4a3e fileutils: SReadSeeker: fix closing tmpfile fd 2019-11-05 09:10:33 +00:00
Yousong Zhou
f0157d07ba seclib2: add doc describing the protocol on removal of tmpfile 2019-11-05 09:10:33 +00:00
Yousong Zhou
76936574d8 aliyun: fix tmp image file handling 2019-11-05 09:10:32 +00:00
Yousong Zhou
8f103ed87e azure: fix tmp image file handling 2019-11-05 09:10:32 +00:00
TangBin
466e0213f6 elb sync fix 2019-11-05 16:30:35 +08:00
yunion-ci-robot
8227e2c080 Merge pull request #3455 from swordqiu/automated-cherry-pick-of-#3454-upstream-release-2.11
Automated cherry pick of #3454: fix: aliyun eip associate instance ignores IncorrectInstanceStatus error
2019-11-04 22:45:15 +08:00
yunion-ci-robot
92a802ea5a Merge pull request #3445 from ioito/automated-cherry-pick-of-#3428-upstream-release-2.11
Automated cherry pick of #3428: fix: 避免创建vmware磁盘快照
2019-11-04 22:44:16 +08:00
Qu Xuan
5bc0c7743e fix: 避免创建vmware磁盘快照 2019-11-04 22:02:55 +08:00
yunion-ci-robot
367a6a9cc2 Merge pull request #3459 from yousong/automated-cherry-pick-of-#3457-upstream-release-2.11
Automated cherry pick of #3457: build: show diffs made by checks
2019-11-04 22:01:16 +08:00
yunion-ci-robot
282f62737f Merge pull request #3451 from ioito/automated-cherry-pick-of-#3430-upstream-release-2.11
Automated cherry pick of #3430: fix: 标准镜像version
2019-11-04 21:37:17 +08:00
yunion-ci-robot
87763273ee Merge pull request #3448 from ioito/automated-cherry-pick-of-#3429-upstream-release-2.11
Automated cherry pick of #3429: fix: 梳理磁盘reset条件
2019-11-04 21:23:14 +08:00
yunion-ci-robot
4b02b01b16 Merge pull request #3442 from tb365/automated-cherry-pick-of-#3439-upstream-release-2.11
Automated cherry pick of #3439: elb bugfix & aws client init bugfix
2019-11-04 17:12:13 +08:00
TangBin
751716626f elb bugfix & aws client init bugfix 2019-11-04 15:24:32 +08:00
Yousong Zhou
bfc762b064 build: show diffs made by checks 2019-11-04 07:19:58 +00:00
Qiu Jian
a527c1c028 fix: aliyun eip associate instance ignores IncorrectInstanceStatus error 2019-11-04 14:40:51 +08:00
yunion-ci-robot
7ea767d797 Merge pull request #3435 from swordqiu/automated-cherry-pick-of-#3434-upstream-release-2.11
Automated cherry pick of #3434: fix: bucket invalid status due to disabled cloud provider
2019-11-04 10:33:14 +08:00
Qu Xuan
d1af8ed43b fix: 标准镜像version 2019-11-04 10:21:35 +08:00
Qu Xuan
f265eeee1c fix: 梳理磁盘reset条件 2019-11-04 10:17:29 +08:00
Qiu Jian
743621c473 fix: bucket invalid status due to disabled cloud provider 2019-11-01 22:12:18 +08:00
Yousong Zhou
d033a115e1 Merge pull request #3417 from ioito/automated-cherry-pick-of-#3412-upstream-release-2.11
Automated cherry pick of #3412: fix: add latitude for huawei cloud
2019-10-30 21:57:30 +08:00
Qu Xuan
2c75b8674a fix: add latitude for huawei cloud 2019-10-30 21:30:36 +08:00
yunion-ci-robot
42f3739c5d Merge pull request #3400 from wanyaoqi/automated-cherry-pick-of-#3398-upstream-release-2.11
Automated cherry pick of #3398: change config add log event
2019-10-29 23:44:10 +08:00
yunion-ci-robot
1cf143f857 Merge pull request #3403 from ioito/automated-cherry-pick-of-#3363-upstream-release-2.11
Automated cherry pick of #3363: fix: 避免虚拟机正常磁盘在回收站
2019-10-28 22:17:09 +08:00
ioito
8894641100 fix: 避免虚拟机正常磁盘在回收站 2019-10-28 21:56:14 +08:00
yunion-ci-robot
7f4e2ccb1a Merge pull request #3376 from yousong/automated-cherry-pick-of-#3374-upstream-release-2.11
Automated cherry pick of #3374: lb: 创建时校验不通过返回httperrors
2019-10-28 21:46:08 +08:00
yunion-ci-robot
9aec5dd2a0 Merge pull request #3395 from wanyaoqi/automated-cherry-pick-of-#3390-upstream-release-2.11
Automated cherry pick of #3390: disk list add manual snapshot count
2019-10-28 21:34:12 +08:00
yunion-ci-robot
ce81c3f2b4 Merge pull request #3396 from Mjoycarry/automated-cherry-pick-of-#3380-upstream-release-2.11
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
a18e24355f change config add log event 2019-10-28 21:17:34 +08:00
郑雨
1a51913a66 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:30 +08:00
wanyaoqi
545df80e28 disk list add manual snapshot count 2019-10-28 20:55:21 +08:00
yunion-ci-robot
9a8840837b Merge pull request #3388 from wanyaoqi/automated-cherry-pick-of-#3386-upstream-release-2.11
Automated cherry pick of #3386: support hmp
2019-10-28 20:05:10 +08:00
wanyaoqi
cae9aca3fd support hmp 2019-10-28 19:06:02 +08:00
yunion-ci-robot
89a36367ef Merge pull request #3383 from yousong/automated-cherry-pick-of-#3381-upstream-release-2.11
Automated cherry pick of #3381: .circleci: yunionio/onecloud-ci: bump golang version to 1.13.3
2019-10-28 15:43:09 +08:00
Yousong Zhou
ab1f02a278 goimports: first run 2019-10-28 06:29:54 +00:00
Yousong Zhou
8968b1f4b6 build: add goimports-check 2019-10-28 06:27:25 +00:00
Yousong Zhou
1b7b492b55 .circleci: use yunionio/onecloud-ci:v1.0.3 2019-10-28 06:27:25 +00:00
Yousong Zhou
4faf20e18c .circleci: yunionio/onecloud-ci: bundle custom goimports 2019-10-28 06:27:25 +00:00
Yousong Zhou
c1c9832ddb .circleci: yunionio/onecloud-ci: run as user "build" 2019-10-28 06:27:25 +00:00
Yousong Zhou
6c2e6c7edb .circleci: yunionio/onecloud-ci: bump golang version to 1.13.3 2019-10-28 06:27:25 +00:00
Yousong Zhou
6daad655a5 cloudcommon: db: 允许普通用户获得pending_deleted字段
Convenient for testing
2019-10-28 02:30:54 +00:00
Yousong Zhou
ed952ba303 lb: 创建时校验不通过返回httperrors 2019-10-28 02:30:54 +00:00
yunion-ci-robot
f9ede8b78f Merge pull request #3372 from swordqiu/automated-cherry-pick-of-#3370-upstream-release-2.11
Automated cherry pick of #3370: fix: host-wire-update param rename
2019-10-28 09:43:12 +08:00
Qiu Jian
b8eec1e7f5 fix: hostwire update user network name as wireId 2019-10-27 14:28:19 +08:00
Qiu Jian
f04459430b fix: host-wire-update param rename 2019-10-27 14:28:19 +08:00
Zexi Li
b4eb1250b0 Merge pull request #3362 from zexi/hotfix/baremetal-stop-task
baremetal: fix repeat stop task invoke
2019-10-25 17:33:32 +08:00
Zexi Li
f45ecee0c2 baremetal: fix repeat stop task invoke 2019-10-25 17:26:26 +08:00
yunion-ci-robot
ee80b9f976 Merge pull request #3361 from ioito/automated-cherry-pick-of-#3352-upstream-release-2.11
Automated cherry pick of #3352: update vendor
2019-10-25 17:23:07 +08:00
ioito
d47865d4d8 update vendor 2019-10-25 16:58:51 +08:00
yunion-ci-robot
1062111249 Merge pull request #3341 from tb365/automated-cherry-pick-of-#3340-upstream-release-2.11
Automated cherry pick of #3340: huawei & qcloud & aws bugfix
2019-10-25 16:33:07 +08:00
TangBin
e08a739267 huawei & qcloud & aws bugfix 2019-10-25 16:13:02 +08:00
Zexi Li
7cf007ea32 Merge pull request #3359 from Mjoycarry/automated-cherry-pick-of-#3358-upstream-release-2.11
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:07 +08:00
Rain
842c52cfda 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:21:48 +08:00
yunion-ci-robot
04ab7dd50d Merge pull request #3356 from Mjoycarry/automated-cherry-pick-of-#3355-upstream-release-2.11
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:18:06 +08:00
Rain
236513194d fix: shoule purge snat table and dnat table when sync remove local natgateway; nat rule's 'real_name'. 2019-10-25 12:03:14 +08:00
yunion-ci-robot
087365cb02 Merge pull request #3349 from ioito/automated-cherry-pick-of-#3347-upstream-release-2.11
Automated cherry pick of #3347: fix: 更正stoping状态
2019-10-24 14:11:06 +08:00
ioito
ed06f69bd5 fix: 更正stoping状态 2019-10-24 10:51:56 +08:00
yunion-ci-robot
8e6fdba9ae Merge pull request #3334 from swordqiu/automated-cherry-pick-of-#3332-upstream-release-2.11
Automated cherry pick of #3332: fix: allow multi-guest-dhcp
2019-10-24 10:46:08 +08:00
yunion-ci-robot
6a87d5498f Merge pull request #3345 from ioito/automated-cherry-pick-of-#3343-upstream-release-2.11
Automated cherry pick of #3343: fix: 避免update存储tag信息异常
2019-10-24 07:47:06 +08:00
yunion-ci-robot
ab1b1be2d7 Merge pull request #3338 from yousong/automated-cherry-pick-of-#3336-upstream-release-2.11
Automated cherry pick of #3336: dns: 添加k8s_skip选项
2019-10-24 07:30:05 +08:00
yunion-ci-robot
6d2c9e7504 Merge pull request #3327 from ioito/automated-cherry-pick-of-#3325-upstream-release-2.11
Automated cherry pick of #3325: fix: 避免解绑eip更新状态不及时导致再次同步出现public ip问题
2019-10-24 01:57:05 +08:00
yunion-ci-robot
2cbe220ea9 Merge pull request #3311 from wanyaoqi/automated-cherry-pick-of-#3309-upstream-release-2.11
Automated cherry pick of #3309: fix snapshot-list list created_by, migrate add auto-converge
2019-10-24 01:52:06 +08:00
Qiu Jian
1faf0a3b7e fix: allow multi-guest-dhcp 2019-10-24 01:15:31 +08:00
ioito
6aa482cdf8 fix: 避免update存储tag信息异常 2019-10-23 20:53:36 +08:00
Yousong Zhou
3a5fae1cae dns: 添加k8s_skip选项 2019-10-23 08:45:24 +00:00
ioito
3817e1e8cc fix: 避免解绑eip更新状态不及时导致再次同步出现public ip问题 2019-10-22 21:57:56 +08:00
Zexi Li
a186a2b682 Merge pull request #3324 from zexi/automated-cherry-pick-of-#3321-upstream-release-2.11
Automated cherry pick of #3321: climc: k8s import cluster support
2019-10-22 21:18:50 +08:00
Zexi Li
03c3ad675b climc: k8s import cluster support 2019-10-22 21:18:32 +08:00
yunion-ci-robot
f8a6d8753a Merge pull request #3319 from Mjoycarry/automated-cherry-pick-of-#3317-upstream-release-2.11
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:02:05 +08:00
Rain
5e521f4d3b Bugfix: add parameter deepsync to command 'cloud-provider-sync' and 'cloud-account-sync'; fix the bug when syncing eip. 2019-10-22 18:20:55 +08:00
yunion-ci-robot
88e65c5346 Merge pull request #3315 from Mjoycarry/automated-cherry-pick-of-#3314-upstream-release-2.11
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
2130a8504a 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:57:59 +08:00
yunion-ci-robot
931083da4d Merge pull request #3312 from Mjoycarry/automated-cherry-pick-of-#3260-upstream-release-2.11
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
bd50c81f36 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:30:43 +08:00
wanyaoqi
d0c411cb5b fix snapshot-list list created_by, migrate add auto-converge 2019-10-22 11:05:11 +08:00
yunion-ci-robot
12126de6c9 Merge pull request #3303 from ioito/automated-cherry-pick-of-#3301-upstream-release-2.11
Automated cherry pick of #3301: fix: 修复华为云ucloud安全组同步问题
2019-10-22 02:26:05 +08:00
yunion-ci-robot
8b1016dbbf Merge pull request #3307 from zexi/automated-cherry-pick-of-#3305-upstream-release-2.11
Automated cherry pick of #3305: baremetal: cancel password complex check
2019-10-22 02:23:04 +08:00
Zexi Li
c0152c662a baremetal: cancel password complex check 2019-10-21 15:17:56 +08:00
ioito
2b0a6b0999 fix: 修复华为云ucloud安全组同步问题 2019-10-21 11:51:58 +08:00
yunion-ci-robot
0e7312d9a1 Merge pull request #3299 from swordqiu/automated-cherry-pick-of-#3297-upstream-release-2.11
Automated cherry pick of #3297: fix: esxi change vm instance type always timeout
2019-10-21 09:28:08 +08:00
yunion-ci-robot
4253b85fd6 Merge pull request #3293 from swordqiu/automated-cherry-pick-of-#3292-upstream-release-2.11
Automated cherry pick of #3292: fix: policy support description
2019-10-21 09:27:06 +08:00
Qiu Jian
6610ba78d0 fix: esxi change vm instance type always timeout 2019-10-21 01:30:32 +08:00
Qiu Jian
8f1c0d7dac fix: policy support description 2019-10-20 19:02:02 +08:00
yunion-ci-robot
1159ad7010 Merge pull request #3285 from yousong/automated-cherry-pick-of-#3283-upstream-release-2.11
Automated cherry pick of #3283: lbagent: fix listing filter on manager_id
2019-10-18 20:12:02 +08:00
yunion-ci-robot
30edad799b Merge pull request #3289 from tb365/automated-cherry-pick-of-#3287-upstream-release-2.11
Automated cherry pick of #3287: huawei eip disassociate bugfix
2019-10-18 16:12:03 +08:00
TangBin
72f1156d3a huawei eip disassociate bugfix 2019-10-18 15:26:19 +08:00
Yousong Zhou
e1676105a9 lbagent: fix listing filter on manager_id 2019-10-18 06:16:29 +00:00
yunion-ci-robot
9d1ff30ac5 Merge pull request #3276 from wanyaoqi/automated-cherry-pick-of-#3270-upstream-release-2.11
Automated cherry pick of #3270: fix reserved memory is zero
2019-10-17 21:39:02 +08:00
Zexi Li
b79e516177 Merge pull request #3279 from zexi/automated-cherry-pick-of-#3278-upstream-release-2.11
Automated cherry pick of #3278: region: fix get disk detail panic
2019-10-17 16:26:22 +08:00
Zexi Li
ff8b1e7294 region: fix get disk detail panic 2019-10-17 16:21:30 +08:00
wanyaoqi
087d67d08c fix reserved memory is zero 2019-10-17 15:18:55 +08:00
Zexi Li
1612474e7f Merge pull request #3273 from zexi/automated-cherry-pick-of-#3271-upstream-release-2.11
Automated cherry pick of #3271: region: capability public network count filter by host type
2019-10-17 12:49:28 +08:00
Zexi Li
742092cd19 region: capability public network count filter by host type 2019-10-17 12:47:39 +08:00
yunion-ci-robot
610ff5d0a6 Merge pull request #3266 from ioito/automated-cherry-pick-of-#3264-upstream-release-2.11
Automated cherry pick of #3264: fix: 避免返回nil, nil
2019-10-16 20:33:05 +08:00
ioito
22812afcfa fix: 避免返回nil, nil 2019-10-16 18:13:08 +08:00
yunion-ci-robot
d4b360e5f2 Merge pull request #3259 from ioito/automated-cherry-pick-of-#3257-upstream-release-2.11
Automated cherry pick of #3257: optimized: 优化安全组规则,支持逗号分隔的规则
2019-10-16 15:09:02 +08:00
ioito
a207c52fc2 optimized: 优化安全组规则,支持逗号分隔的规则 2019-10-16 12:51:51 +08:00
Zexi Li
6c5ad8fad2 Merge pull request #3255 from zexi/automated-cherry-pick-of-#3253-upstream-release-2.11
Automated cherry pick of #3253: baremetal: fix stop task hang
2019-10-16 11:51:27 +08:00
Zexi Li
19daf6cc58 baremetal: fix stop task hang 2019-10-16 11:49:43 +08:00
yunion-ci-robot
6160bc4ce2 Merge pull request #3251 from ioito/automated-cherry-pick-of-#3187-upstream-release-2.11
Automated cherry pick of #3187: fix: 创建云账号时指定tenant生效
2019-10-15 22:15:00 +08:00
ioito
dcc13c4b4c optimized cloud account create 2019-10-15 22:02:23 +08:00
ioito
1ab8eca21d fix: 创建云账号时指定tenant生效 2019-10-15 22:02:23 +08:00
yunion-ci-robot
fac5f23234 Merge pull request #3248 from tb365/automated-cherry-pick-of-#3240-upstream-release-2.11
Automated cherry pick of #3240: qcloud elb bugfix
2019-10-15 21:49:01 +08:00
yunion-ci-robot
cce5fa6c78 Merge pull request #3247 from wanyaoqi/automated-cherry-pick-of-#3230-upstream-release-2.11
Automated cherry pick of #3230: gpu mutil attach by model type, fix network hint name
2019-10-15 21:12:00 +08:00
yunion-ci-robot
9992e214b8 Merge pull request #3233 from ioito/automated-cherry-pick-of-#3231-upstream-release-2.11
Automated cherry pick of #3231: fix: 避免删除azure失败
2019-10-15 21:10:01 +08:00
wanyaoqi
afc9201c1d gpu mutil attach by model type, fix network hint name 2019-10-15 20:54:17 +08:00
TangBin
8921265701 attach disk wait sucess 2019-10-15 20:34:23 +08:00
TangBin
f20eaa37db qcloud elb bugfix 2019-10-15 20:34:23 +08:00
yunion-ci-robot
407ba69aaf Merge pull request #3242 from Mjoycarry/automated-cherry-pick-of-#3241-upstream-release-2.11
Automated cherry pick of #3241: fix: the input parameters is wrong when create snapshotpolicy with repeatweekday Sunday for qcloud.
2019-10-15 20:01:00 +08:00
Rain
e2b54e19c9 fix: the input parameters is wrong when create snapshotpolicy with repeatweekday Sunday for qcloud. 2019-10-15 19:47:18 +08:00
Zexi Li
b7f974fdfc Merge pull request #3238 from zexi/automated-cherry-pick-of-#3236-upstream-release-2.11
Automated cherry pick of #3236: scheduler: adjust skip network filter condition
2019-10-15 16:23:41 +08:00
Zexi Li
0f2447a105 scheduler: adjust skip network filter condition 2019-10-15 16:23:02 +08:00
yunion-ci-robot
57668c486c Merge pull request #3221 from swordqiu/automated-cherry-pick-of-#3220-upstream-release-2.11
Automated cherry pick of #3220: fix: azure ListObject should skip current folder
2019-10-15 16:15:03 +08:00
yunion-ci-robot
b71f1a40be Merge pull request #3228 from ioito/automated-cherry-pick-of-#3189-upstream-release-2.11
Automated cherry pick of #3189: fix: openstack上传镜像时也指定os_type及额外信息
2019-10-15 16:12:01 +08:00
ioito
db43852cba fix: 避免删除azure失败 2019-10-15 15:17:18 +08:00
ioito
948846a5bc fix: openstack上传镜像时也指定os_type及额外信息 2019-10-15 10:43:19 +08:00
Qiu Jian
76e8685697 fix: azure ListObject should skip current folder 2019-10-14 20:09:51 +08:00
yunion-ci-robot
7903796782 Merge pull request #3217 from swordqiu/automated-cherry-pick-of-#3216-upstream-release-2.11
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
328a88181f Merge pull request #3214 from swordqiu/automated-cherry-pick-of-#3213-upstream-release-2.11
Automated cherry pick of #3213: fix: aliyun bucket sync cancel local limit
2019-10-14 17:56:03 +08:00
yunion-ci-robot
12014973a4 Merge pull request #3211 from swordqiu/automated-cherry-pick-of-#3210-upstream-release-2.11
Automated cherry pick of #3210: fix: azure blob storage empty blob error
2019-10-14 17:55:01 +08:00
yunion-ci-robot
78036987c7 Merge pull request #3207 from ioito/automated-cherry-pick-of-#3205-upstream-release-2.11
Automated cherry pick of #3205: fix: 返回网卡所在的网络名称信息
2019-10-14 16:44:01 +08:00
Qiu Jian
89c95bbfdf fix: recover can_update field and add update_fail_reason field 2019-10-14 16:25:29 +08:00
Qiu Jian
82f899f242 fix: azure blob storage empty blob error 2019-10-14 15:59:01 +08:00
Qiu Jian
4454e75fb9 fix: aliyun bucket sync cancel local limit 2019-10-14 15:51:06 +08:00
yunion-ci-robot
01976cdc42 Merge pull request #3208 from Mjoycarry/automated-cherry-pick-of-#3127-upstream-release-2.11
Automated cherry pick of #3127: fix
2019-10-14 12:46:41 +08:00
yunion-ci-robot
77e5b0a0e9 Merge pull request #3198 from ioito/automated-cherry-pick-of-#3195-upstream-release-2.11
Automated cherry pick of #3195: fix: 避免部分套餐无法列出
2019-10-14 12:05:41 +08:00
yunion-ci-robot
301e158c9c Merge pull request #3177 from tb365/automated-cherry-pick-of-#3161-upstream-release-2.11
Automated cherry pick of #3161: loadbalancer cache create api
2019-10-14 12:03:40 +08:00
yunion-ci-robot
ea8260d3ca Merge pull request #3202 from tb365/automated-cherry-pick-of-#3200-upstream-release-2.11
Automated cherry pick of #3200: huawei & aws bugfix
2019-10-14 11:58:44 +08:00
Rain
7af554d47d 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:32:19 +08:00
yunion-ci-robot
34fc1089b1 Merge pull request #3192 from ioito/automated-cherry-pick-of-#3190-upstream-release-2.11
Automated cherry pick of #3190: fix: 创建相同配置时返回正确的eip信息
2019-10-14 07:41:42 +08:00
yunion-ci-robot
f67ba553d2 Merge pull request #3182 from ioito/automated-cherry-pick-of-#3180-upstream-release-2.11
Automated cherry pick of #3180: fix: 避免公有云账号统计虚拟的host数量
2019-10-14 07:40:41 +08:00
yunion-ci-robot
451d7912f9 Merge pull request #3196 from wanyaoqi/automated-cherry-pick-of-#3188-upstream-release-2.11
Automated cherry pick of #3188: fix dirty server start, disk format empty
2019-10-13 21:45:41 +08:00
ioito
719964417c fix: 返回网卡所在的网络名称信息 2019-10-12 19:19:35 +08:00
TangBin
81139922e2 add loadblancer acl&cert cached api docs 2019-10-12 19:19:14 +08:00
TangBin
6c549e800f loadbalancer cache create api 2019-10-12 19:18:39 +08:00
TangBin
83dbfffb3a huawei & aws bugfix 2019-10-12 18:07:06 +08:00
wanyaoqi
4c67bf49e7 fix qemu args 2019-10-12 17:55:20 +08:00
ioito
13972b939c fix: 避免部分套餐无法列出 2019-10-12 17:40:43 +08:00
wanyaoqi
208f8e2d28 add user cache 2019-10-12 17:38:22 +08:00
wanyaoqi
c0ff0a7599 - sanpshot add expire time - fix image probe iso cause iso md5 changed - add loadbalancer cluster distinct field 2019-10-12 17:38:22 +08:00
wanyaoqi
62b697692c fix dirty server start, disk format empty 2019-10-12 17:38:21 +08:00
ioito
d4a9e75eee fix: 创建相同配置时返回正确的eip信息 2019-10-12 16:52:50 +08:00
Zexi Li
410d700c4b Merge pull request #3160 from wanyaoqi/automated-cherry-pick-of-#3147-upstream-release-2.11
Automated cherry pick of #3147: feature:
2019-10-12 12:50:28 +08:00
Zexi Li
fc214cf7cb Merge pull request #3186 from zexi/automated-cherry-pick-of-#3184-upstream-release-2.11
Automated cherry pick of #3184: keystone: endpoint list by service
2019-10-12 12:49:55 +08:00
Zexi Li
280f6f1256 keystone: endpoint list by service 2019-10-12 12:49:33 +08:00
ioito
510815cacf fix: 避免公有云账号统计虚拟的host数量 2019-10-12 11:43:35 +08:00
yunion-ci-robot
cf0f7f028a Merge pull request #3156 from yousong/automated-cherry-pick-of-#3154-upstream-release-2.11
Automated cherry pick of #3154: ansibleserver: enable tenant/user cache manager
2019-10-12 10:08:40 +08:00
yunion-ci-robot
edcedb4701 Merge pull request #3175 from yousong/automated-cherry-pick-of-#3173-upstream-release-2.11
Automated cherry pick of #3173: hostman: system_service: add IsEnabled() support
2019-10-12 10:05:39 +08:00
yunion-ci-robot
8ce0cfe003 Merge pull request #3171 from swordqiu/automated-cherry-pick-of-#3169-upstream-release-2.11
Automated cherry pick of #3169: fix: string2scope ignore user scope
2019-10-12 00:04:38 +08:00
yunion-ci-robot
b3c070285c Merge pull request #3163 from swordqiu/automated-cherry-pick-of-#3162-upstream-release-2.11
Automated cherry pick of #3162: fix: show delele fail reason if cannot delete a resource
2019-10-12 00:00:39 +08:00
Yousong Zhou
3182e4c28d hostman: ensure openvswitch won't automatically start at boot 2019-10-11 15:58:38 +00:00
Yousong Zhou
b2f4a219a3 hostman: system_service: add IsEnabled() support 2019-10-11 15:58:38 +00:00
yunion-ci-robot
c299201402 Merge pull request #3167 from swordqiu/automated-cherry-pick-of-#3165-upstream-release-2.11
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
bb6f4dc60d fix: string2scope ignore user scope 2019-10-11 22:10:09 +08:00
yunion-ci-robot
5b23bd0c5a Merge pull request #3138 from swordqiu/automated-cherry-pick-of-#3136-upstream-release-2.11
Automated cherry pick of #3136: fix: guest create eip quota check use owner quota
2019-10-11 14:52:38 +08:00
Qiu Jian
8474e62675 fix: skip services without project resources when fetching project resources 2019-10-11 08:55:53 +08:00
Qiu Jian
134aa7101d fix: show delele fail reason if cannot delete a resource 2019-10-10 21:54:09 +08:00
wanyaoqi
8ba0bd5fc7 feature:
- postpaid server support expire
- extend distinct tenant filed
- gpu batch perform action
2019-10-10 19:31:28 +08:00
yunion-ci-robot
972c4f19d8 Merge pull request #3152 from yousong/automated-cherry-pick-of-#3150-upstream-release-2.11
Automated cherry pick of #3150: hostman: ovs: implement PersistentMAC()
2019-10-10 19:29:40 +08:00
Yousong Zhou
7351b2db14 ansibleserver: enable tenant/user cache manager 2019-10-10 08:11:29 +00:00
Yousong Zhou
6a2b7c35b6 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:39 +00:00
Zexi Li
8aaca0ea73 Merge pull request #3145 from zexi/bugfix/sched-set-pending
scheduler: fix not setSchedPendingUsage condition
2019-10-10 10:49:28 +08:00
Zexi Li
772981fe9c scheduler: fix not setSchedPendingUsage condition 2019-10-10 10:46:02 +08:00
Zexi Li
35b44546b8 Merge pull request #3143 from zexi/automated-cherry-pick-of-#3141-upstream-release-2.11
Automated cherry pick of #3141: fix: scheduler specfied network no errors
2019-10-09 21:11:33 +08:00
Zexi Li
eebcdc63da fix: scheduler specfied network no errors 2019-10-09 21:11:12 +08:00
Qiu Jian
c1a1bc7a83 fix: guest create eip quota check use owner quota 2019-10-09 17:38:51 +08:00
yunion-ci-robot
9a6d93092a Merge pull request #3066 from ioito/automated-cherry-pick-of-#3064-upstream-release-2.11
Automated cherry pick of #3064: add: 支持创建安全组时同时创建规则
2019-10-09 17:26:38 +08:00
yunion-ci-robot
584d2faf0f Merge pull request #3130 from tb365/automated-cherry-pick-of-#3110-upstream-release-2.11
Automated cherry pick of #3110: loadbalancer bugfix
2019-10-09 17:15:37 +08:00
TangBin
3e0be8fe96 huawei & qcloud elb bugfix 2019-10-09 16:03:18 +08:00
TangBin
6db1a2aafe loadbalancer bugfix 2019-10-09 16:03:17 +08:00
Zexi Li
420e9b649f Merge pull request #3135 from zexi/automated-cherry-pick-of-#3133-upstream-release-2.11
Automated cherry pick of #3133: fix: services model incorrect nullable define
2019-10-09 11:09:05 +08:00
Zexi Li
d68f8172b5 fix: services model incorrect nullable define 2019-10-08 22:25:13 +08:00
Zexi Li
13d1c69742 Merge pull request #3125 from Mjoycarry/automated-cherry-pick-of-#3026-upstream-release-2.11
Automated cherry pick of #3026: nat_docs fix
2019-10-08 10:42:02 +08:00
Rain
e23cb70007 nat_docs fix 2019-10-08 10:39:27 +08:00
yunion-ci-robot
83b31727f7 Merge pull request #3123 from zexi/automated-cherry-pick-of-#3121-upstream-release-2.11
Automated cherry pick of #3121: scheduler: fix random network domain not matched
2019-10-07 12:59:36 +08:00
Zexi Li
a711f4f64e scheduler: fix random network domain not matched 2019-10-07 12:06:10 +08:00
yunion-ci-robot
d54475ca54 Merge pull request #3119 from zexi/automated-cherry-pick-of-#3117-upstream-release-2.11
Automated cherry pick of #3117: scheduler: set random network filter default scope domain
2019-10-06 12:36:34 +08:00
Zexi Li
016679e66d scheduler: set random network filter default scope domain 2019-10-06 10:35:52 +08:00
yunion-ci-robot
3e0cecbaa0 Merge pull request #3113 from swordqiu/automated-cherry-pick-of-#3111-upstream-release-2.11
Automated cherry pick of #3111: fix: snapsho realdelete nil pointer panic
2019-10-05 07:36:35 +08:00
Qiu Jian
3ac1f417ac fix: snapsho realdelete nil pointer panic 2019-10-04 00:12:40 +08:00
yunion-ci-robot
3b3dbacd0a Merge pull request #3108 from swordqiu/automated-cherry-pick-of-#3106-upstream-release-2.11
Automated cherry pick of #3106: fix: server-create allow create server with empty disk
2019-09-29 19:34:31 +08:00
Qiu Jian
b5e33e7be8 fix: server-create allow create server with empty disk 2019-09-29 17:22:00 +08:00
Zexi Li
4b264c6b2d Merge pull request #3100 from zexi/automated-cherry-pick-of-#3098-upstream-release-2.11
Automated cherry pick of #3098: scheduler: refactor network_predicate filter
2019-09-29 13:17:09 +08:00
Zexi Li
44e8dda703 scheduler: refactor network_predicate filter 2019-09-28 18:30:06 +08:00
yunion-ci-robot
340f192180 Merge pull request #3093 from swordqiu/automated-cherry-pick-of-#3091-upstream-release-2.11
Automated cherry pick of #3091: fix: reduce policy sync worker queue size
2019-09-28 11:31:33 +08:00
yunion-ci-robot
4eef15a2c6 Merge pull request #3089 from wanyaoqi/automated-cherry-pick-of-#3087-upstream-release-2.11
Automated cherry pick of #3087: fix snaphot task complete
2019-09-28 10:49:31 +08:00
Qiu Jian
a34333c243 fix: reduce policy sync worker queue size 2019-09-27 23:04:13 +08:00
wanyaoqi
5bf76832b5 fix snaphot task complete 2019-09-27 19:17:36 +08:00
Zexi Li
7a04b94c7f Merge pull request #3083 from zexi/automated-cherry-pick-of-#3082-upstream-release-2.11
Automated cherry pick of #3082: apigateway: fix forbidden login prompt format
2019-09-27 15:53:51 +08:00
Zexi Li
52478419cb apigateway: fix forbidden login prompt format 2019-09-27 15:52:15 +08:00
yunion-ci-robot
b756cb96e7 Merge pull request #3054 from swordqiu/automated-cherry-pick-of-#3053-upstream-release-2.11
Automated cherry pick of #3053: fix: missing region in cookie cause no service catalog fetched
2019-09-27 10:15:29 +08:00
yunion-ci-robot
ea3a2e9cf2 Merge pull request #3069 from wanyaoqi/automated-cherry-pick-of-#3067-upstream-release-2.11
Automated cherry pick of #3067: snapshot move to recycle bin
2019-09-27 08:51:30 +08:00
yunion-ci-robot
50767ec6c7 Merge pull request #3058 from ioito/automated-cherry-pick-of-#3056-upstream-release-2.11
Automated cherry pick of #3056: fix: typo
2019-09-27 08:50:31 +08:00
yunion-ci-robot
51921e1e99 Merge pull request #3073 from wanyaoqi/automated-cherry-pick-of-#3071-upstream-release-2.11
Automated cherry pick of #3071: windows format fs fast
2019-09-27 08:49:29 +08:00
yunion-ci-robot
1626227841 Merge pull request #3062 from yousong/automated-cherry-pick-of-#3059-upstream-release-2.11
Automated cherry pick of #3059: guestnetworks: IsExit()减少一次数据库查询
2019-09-26 23:41:36 +08:00
wanyaoqi
1199d96c8b windows format fs fast 2019-09-26 22:57:25 +08:00
yunion-ci-robot
898420f5c1 Merge pull request #3049 from swordqiu/automated-cherry-pick-of-#3046-upstream-release-2.11
Automated cherry pick of #3046: fix: keystone panic on invalid auth token
2019-09-26 22:46:36 +08:00
wanyaoqi
2934c7b7ca snapshot move to recycle bin 2019-09-26 22:34:33 +08:00
ioito
b8f7a6b19e add: 支持创建安全组时同时创建规则 2019-09-26 18:05:17 +08:00
Yousong Zhou
459ee3d994 guests: list details with nics details 2019-09-26 04:45:50 +00:00
Yousong Zhou
ebc665dbe8 guestnetworks: IsExit()减少一次数据库查询 2019-09-26 04:45:50 +00:00
ioito
446e98acfd fix: typo 2019-09-26 11:14:12 +08:00
yunion-ci-robot
065356bef1 Merge pull request #3041 from yousong/automated-cherry-pick-of-#3039-upstream-release-2.11
Automated cherry pick of #3039: lbagents: 添加部署和下线操作记录
2019-09-25 21:21:29 +08:00
Qiu Jian
57d810cacd fix: missing region in cookie cause no service catalog fetched 2019-09-25 21:16:18 +08:00
Qiu Jian
394349b37a fix: keystone panic on invalid auth token 2019-09-25 21:03:17 +08:00
yunion-ci-robot
c387aabe9c Merge pull request #3045 from wanyaoqi/automated-cherry-pick-of-#3043-upstream-release-2.11
Automated cherry pick of #3043: fix host init cronjob
2019-09-25 16:30:32 +08:00
wanyaoqi
90292118dd fix host init cronjob 2019-09-25 16:22:57 +08:00
yunion-ci-robot
6b30d6320a Merge pull request #3037 from ioito/automated-cherry-pick-of-#3035-upstream-release-2.11
Automated cherry pick of #3035: add: lb vpc info
2019-09-25 13:30:29 +08:00
Yousong Zhou
4f7d7b8d7b lbagents: 添加部署和下线操作记录 2019-09-25 05:27:45 +00:00
ioito
74f94e985a add: lb vpc info 2019-09-25 11:49:25 +08:00
yunion-ci-robot
5b629acca3 Merge pull request #3031 from swordqiu/automated-cherry-pick-of-#3030-upstream-release-2.11
Automated cherry pick of #3030: fix: disable cas idp not working
2019-09-25 10:03:31 +08:00
yunion-ci-robot
a1f39ba03b Merge pull request #3029 from ioito/automated-cherry-pick-of-#3027-upstream-release-2.11
Automated cherry pick of #3027: fix: 避免监听未设置manager_id
2019-09-24 20:55:29 +08:00
yunion-ci-robot
1804f3590e Merge pull request #3018 from wanyaoqi/automated-cherry-pick-of-#3004-upstream-release-2.11
Automated cherry pick of #3004: fix rbd disk delete rebuild root with snapshot
2019-09-24 20:50:31 +08:00
yunion-ci-robot
ebc9086068 Merge pull request #3034 from wanyaoqi/automated-cherry-pick-of-#3023-upstream-release-2.11
Automated cherry pick of #3023: fix add cronjob validate times
2019-09-24 20:46:29 +08:00
wanyaoqi
19545983a1 fix add cronjob validate times 2019-09-24 20:23:12 +08:00
yunion-ci-robot
1dcf47bc99 Merge pull request #3025 from wanyaoqi/automated-cherry-pick-of-#3023-upstream-release-2.11
Automated cherry pick of #3023: fix add cronjob validate times
2019-09-24 20:16:28 +08:00
ioito
50c3b12c7c add: error log trace 2019-09-24 19:58:43 +08:00
ioito
7b7319b982 fix: 避免监听未设置manager_id 2019-09-24 19:58:43 +08:00
Qiu Jian
c5436b330c fix: disable cas idp not working 2019-09-24 19:52:01 +08:00
wanyaoqi
bc6fd27439 fix add cronjob validate times 2019-09-24 18:52:36 +08:00
yunion-ci-robot
7bc624a10b Merge pull request #3012 from yousong/automated-cherry-pick-of-#3009-upstream-release-2.11
Automated cherry pick of #3009: ansibleserver: 避免数据库故障引起内部状态不一致
2019-09-24 00:51:28 +08:00
yunion-ci-robot
e7ed4bf1e5 Merge pull request #3015 from yousong/automated-cherry-pick-of-#3010-upstream-release-2.11
Automated cherry pick of #3010: lbagents: 禁止在公有云、托管物理机上部署
2019-09-24 00:48:29 +08:00
wanyaoqi
9311f1a4aa fix rbd disk delete rebuild root with snapshot 2019-09-23 20:58:34 +08:00
Yousong Zhou
b3deab9e04 lbagents: 禁止在公有云、托管物理机上部署 2019-09-23 11:45:35 +00:00
Yousong Zhou
a869540903 ansibleserver: 避免数据库故障引起内部状态不一致 2019-09-23 11:43:48 +00:00
yunion-ci-robot
dae1b62432 Merge pull request #3007 from swordqiu/automated-cherry-pick-of-#3005-upstream-release-2.11
Automated cherry pick of #3005: fix: tenant filter fail to work
2019-09-21 20:42:28 +08:00
Qiu Jian
fd9154d7f8 fix: tenant filter fail to work 2019-09-21 20:39:42 +08:00
yunion-ci-robot
127a54ec0d Merge pull request #3000 from swordqiu/automated-cherry-pick-of-#2998-upstream-release-2.11
Automated cherry pick of #2998: fix: adjust default process timeout to 1 minute (previously 15 seconds)
2019-09-19 22:02:29 +08:00
yunion-ci-robot
2fe4eec37e Merge pull request #2996 from swordqiu/automated-cherry-pick-of-#2994-upstream-release-2.11
Automated cherry pick of #2994: fix: fail to search opslog by obj_name
2019-09-19 22:00:28 +08:00
yunion-ci-robot
7804d94558 Merge pull request #2978 from swordqiu/automated-cherry-pick-of-#2965-upstream-release-2.11
Automated cherry pick of #2965: feature: support xsky object storage
2019-09-19 21:59:25 +08:00
yunion-ci-robot
3ce1a836a7 Merge pull request #2981 from swordqiu/automated-cherry-pick-of-#2980-upstream-release-2.11
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
6bf4c6dbce Merge pull request #2963 from wanyaoqi/automated-cherry-pick-of-#2956-upstream-release-2.11
Automated cherry pick of #2956: misc fix
2019-09-19 21:21:24 +08:00
yunion-ci-robot
633ad14fdb Merge pull request #2992 from wanyaoqi/automated-cherry-pick-of-#2988-upstream-release-2.11
Automated cherry pick of #2988: cronjob support remove
2019-09-19 21:19:27 +08:00
Qiu Jian
7e506a0da5 fix: status check before accessing external bucket 2019-09-19 21:15:27 +08:00
Qiu Jian
0ae302255a fix: cloud-account-create-xsky nil pointer error 2019-09-19 21:13:32 +08:00
Qiu Jian
1adecd4691 feature: add climc cloud-account-create-xsky 2019-09-19 21:13:31 +08:00
Qiu Jian
e07c50ca99 update doc and copyright 2019-09-19 21:13:30 +08:00
Qiu Jian
2db0736792 update vendor 2019-09-19 21:12:59 +08:00
Qiu Jian
de13c47185 feature: support xsky object storage 2019-09-19 21:12:59 +08:00
yunion-ci-robot
3afc640190 Merge pull request #2986 from yousong/automated-cherry-pick-of-#2984-upstream-release-2.11
Automated cherry pick of #2984: lbbackends: 改进错误信息传递
2019-09-19 21:12:28 +08:00
Qiu Jian
f15fb2aa59 fix: adjust default process timeout to 1 minute (previously 15 seconds) 2019-09-19 21:08:35 +08:00
Qiu Jian
0eb574e1c3 fix: fail to search opslog by obj_name 2019-09-19 21:03:08 +08:00
wanyaoqi
372c3a1f4a cronjob support remove 2019-09-19 20:08:09 +08:00
Yousong Zhou
9029645101 lbbackends: 改进错误信息传递 2019-09-19 10:40:15 +00:00
Qiu Jian
6c44a6bb58 feature: keystone v3 auth response carry user's displayname/email/mobile 2019-09-19 00:04:43 +08:00
yunion-ci-robot
3d6a1ecfa4 Merge pull request #2977 from yousong/automated-cherry-pick-of-#2975-upstream-release-2.11
Automated cherry pick of #2975: lblistener: 改正监听update
2019-09-18 23:44:25 +08:00
yunion-ci-robot
963b2be3c0 Merge pull request #2973 from yousong/automated-cherry-pick-of-#2971-upstream-release-2.11
Automated cherry pick of #2971: validators: 应对"listener"参数被重复Validate的情况
2019-09-18 23:43:27 +08:00
Yousong Zhou
22ee7fd681 lblistener: 改正监听update
Fixes e4ef23515f ("aws elb support")
2019-09-18 12:22:01 +00:00
Yousong Zhou
542f7d35e3 validators: 应对"listener"参数被重复Validate的情况
Fixes e4ef23515f ("aws elb support")
2019-09-18 07:36:58 +00:00
yunion-ci-robot
27e8c9ffa8 Merge pull request #2968 from swordqiu/automated-cherry-pick-of-#2966-upstream-release-2.11
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
206a37c0b0 Merge pull request #2959 from ioito/automated-cherry-pick-of-#2957-upstream-release-2.11
Automated cherry pick of #2957: fix: 添加弹性网卡过滤参数
2019-09-18 11:30:26 +08:00
yunion-ci-robot
fa8fd55a61 Merge pull request #2954 from swordqiu/automated-cherry-pick-of-#2952-upstream-release-2.11
Automated cherry pick of #2952: fix: Table 'yunionlogger.users_cache_tbl' doesn't exist
2019-09-18 11:28:26 +08:00
Qiu Jian
a592790104 fix: missing log audit for updating cloudaccount account credential 2019-09-18 00:19:23 +08:00
wanyaoqi
3b2e88985a misc fix
- optimize batch create validate
2019-09-17 18:49:38 +08:00
ioito
320abc918f fix: 添加弹性网卡过滤参数 2019-09-17 14:52:39 +08:00
Qiu Jian
6cc122961d fix: Table 'yunionlogger.users_cache_tbl' doesn't exist 2019-09-17 13:12:06 +08:00
yunion-ci-robot
b753ab9208 Merge pull request #2950 from ioito/automated-cherry-pick-of-#2948-upstream-release-2.11
Automated cherry pick of #2948: fix: 避免make mod时异常
2019-09-17 13:07:25 +08:00
ioito
b3ba5e8fb3 fix: 避免make mod时异常 2019-09-17 12:31:17 +08:00
yunion-ci-robot
9232b721e1 Merge pull request #2946 from ioito/automated-cherry-pick-of-#2944-upstream-release-2.11
Automated cherry pick of #2944: fix: 避免zstack高可用关机失效问题
2019-09-17 11:55:24 +08:00
ioito
5f9cd29a70 fix: 避免zstack高可用关机失效问题 2019-09-17 11:32:49 +08:00
yunion-ci-robot
32c4be2a83 Merge pull request #2942 from swordqiu/automated-cherry-pick-of-#2940-upstream-release-2.11
Automated cherry pick of #2940: fix: fail to delete disconnected cloudaccount
2019-09-17 08:48:25 +08:00
yunion-ci-robot
d78877c8f7 Merge pull request #2938 from swordqiu/automated-cherry-pick-of-#2936-upstream-release-2.11
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
593edf10fc fix: fail to delete disconnected cloudaccount 2019-09-17 01:44:46 +08:00
yunion-ci-robot
20b079fd4e Merge pull request #2918 from wanyaoqi/automated-cherry-pick-of-#2912-upstream-release-2.11
Automated cherry pick of #2912: fix init listen interface
2019-09-17 00:15:24 +08:00
yunion-ci-robot
635e3a6128 Merge pull request #2934 from yousong/automated-cherry-pick-of-#2932-upstream-release-2.11
Automated cherry pick of #2932: lbagents: deploy: check existence of pbId before create/update
2019-09-17 00:13:22 +08:00
Qiu Jian
15b9e75a48 fix: baremetal prepare updates nic_info incrementally 2019-09-17 00:07:39 +08:00
Qiu Jian
d7a065d7e5 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:07:39 +08:00
Yousong Zhou
55dfdc854e 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:36 +00:00
Yousong Zhou
00ea1c98f1 lbagents: deploy: check existence of pbId before create/update 2019-09-16 14:12:36 +00:00
Zexi Li
ce4c4999c8 Merge pull request #2930 from zexi/automated-cherry-pick-of-#2928-upstream-release-2.11
Automated cherry pick of #2928: scheduler: fix baremetal disk and storage not match
2019-09-16 20:30:03 +08:00
Zexi Li
7f8dd77241 scheduler: fix baremetal disk and storage not match 2019-09-16 20:28:34 +08:00
yunion-ci-robot
676766b4f0 Merge pull request #2926 from ioito/automated-cherry-pick-of-#2921-upstream-release-2.11
Automated cherry pick of #2921: fix: 避免删除不存在的快照出错
2019-09-16 18:57:24 +08:00
ioito
b47d6a4321 fix: 避免删除不存在的快照出错 2019-09-16 17:25:19 +08:00
Zexi Li
8b52fd96ea Merge pull request #2915 from zexi/automated-cherry-pick-of-#2913-upstream-release-2.11
Automated cherry pick of #2913: scheduler: fix disk local backend not select matched storage
2019-09-16 14:44:26 +08:00
wanyaoqi
614a77b1bd fix init listen interface 2019-09-16 14:35:24 +08:00
Zexi Li
057a20c2c5 scheduler: fix disk local backend not select matched storage 2019-09-16 13:52:41 +08:00
Yousong Zhou
77a72141ac Merge pull request #2911 from ioito/automated-cherry-pick-of-#2908-upstream-release-2.11
Automated cherry pick of #2908: fix: 避免cache raw格式的镜像
2019-09-12 19:12:11 +08:00
yunion-ci-robot
b426bf5212 Merge pull request #2906 from wanyaoqi/automated-cherry-pick-of-#2904-upstream-release-2.11
Automated cherry pick of #2904: set concurrent deploy count
2019-09-12 19:11:23 +08:00
ioito
b9d375ad97 fix: 避免cache raw格式的镜像 2019-09-12 19:09:24 +08:00
wanyaoqi
5fd0ca9d12 set concurrent deploy count 2019-09-12 19:03:53 +08:00
yunion-ci-robot
10bbb84408 Merge pull request #2902 from ioito/automated-cherry-pick-of-#2900-upstream-release-2.11
Automated cherry pick of #2900: fix: update vendor
2019-09-12 18:21:20 +08:00
ioito
29e1beb3e5 fix: update vendor 2019-09-12 18:17:48 +08:00
yunion-ci-robot
a77c6e384f Merge pull request #2894 from ioito/automated-cherry-pick-of-#2892-upstream-release-2.11
Automated cherry pick of #2892: fix: update go-ceph vendor
2019-09-12 17:33:20 +08:00
yunion-ci-robot
391134ecc8 Merge pull request #2898 from ioito/automated-cherry-pick-of-#2896-upstream-release-2.11
Automated cherry pick of #2896: fix: avoid nil pointer
2019-09-12 17:18:23 +08:00
ioito
9e94108240 fix: update go-ceph vendor 2019-09-12 16:57:33 +08:00
ioito
d37bc6a0b8 fix: avoid nil pointer 2019-09-12 16:52:33 +08:00
yunion-ci-robot
345a2b818f Merge pull request #2883 from swordqiu/automated-cherry-pick-of-#2881-upstream-release-2.11
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:21 +08:00
yunion-ci-robot
45e9e5971f Merge pull request #2890 from ioito/automated-cherry-pick-of-#2885-upstream-release-2.11
Automated cherry pick of #2885: fix: go-ceph bugifx
2019-09-12 14:34:22 +08:00
ioito
3d2760ac98 fix: go-ceph bugifx 2019-09-12 14:19:18 +08:00
Qiu Jian
092ed5d92d 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:07 +08:00
yunion-ci-robot
9c13484a56 Merge pull request #2879 from wanyaoqi/automated-cherry-pick-of-#2877-upstream-release-2.11
Automated cherry pick of #2877: fix glance save form url save md5
2019-09-12 12:02:22 +08:00
wanyaoqi
f5a83e7bb0 fix glance save form url save md5 2019-09-12 11:09:00 +08:00
yunion-ci-robot
8a9dc2cccf Merge pull request #2847 from tb365/automated-cherry-pick-of-#2846-upstream-release-2.11
Automated cherry pick of #2846: qrcode issuer coding fix
2019-09-11 21:45:20 +08:00
yunion-ci-robot
2471eb6a94 Merge pull request #2871 from ioito/automated-cherry-pick-of-#2869-upstream-release-2.11
Automated cherry pick of #2869: fix: 避免置空description失效
2019-09-11 21:35:22 +08:00
yunion-ci-robot
e39606bf96 Merge pull request #2867 from swordqiu/automated-cherry-pick-of-#2866-upstream-release-2.11
Automated cherry pick of #2866: fix: system account user fail to login apigateway
2019-09-11 21:33:21 +08:00
yunion-ci-robot
030ee063ef Merge pull request #2875 from swordqiu/automated-cherry-pick-of-#2873-upstream-release-2.11
Automated cherry pick of #2873: fix: fail to update reserved ip notes
2019-09-11 21:31:23 +08:00
Qiu Jian
fb363493a8 fix: fail to update reserved ip notes 2019-09-11 19:30:00 +08:00
ioito
c4853a8163 fix: 避免置空description失效 2019-09-11 16:17:53 +08:00
Qiu Jian
8411dea60f fix: system account user fail to login apigateway 2019-09-11 13:38:24 +08:00
yunion-ci-robot
5293a98b4c Merge pull request #2863 from wanyaoqi/automated-cherry-pick-of-#2861-upstream-release-2.11
Automated cherry pick of #2861: misc bugfix
2019-09-11 09:30:20 +08:00
yunion-ci-robot
09b16b8d3f Merge pull request #2856 from yousong/automated-cherry-pick-of-#2853-upstream-release-2.11
Automated cherry pick of #2853: ansibleserver: 限定Playbook字段长度
2019-09-10 22:48:23 +08:00
wanyaoqi
da62ccf2eb misc bugfix 2019-09-10 22:30:41 +08:00
yunion-ci-robot
af8dd023c4 Merge pull request #2858 from ioito/automated-cherry-pick-of-#2855-upstream-release-2.11
Automated cherry pick of #2855: fix: 避免密码登录时使用秘钥认证
2019-09-10 17:45:19 +08:00
yunion-ci-robot
1bd9c55771 Merge pull request #2851 from ioito/automated-cherry-pick-of-#2849-upstream-release-2.11
Automated cherry pick of #2849: fix: 虚拟机更改项目时,eip同时变更
2019-09-10 17:28:22 +08:00
ioito
a81d610f9b fix: 避免密码登录时使用秘钥认证 2019-09-10 17:23:10 +08:00
Yousong Zhou
ba1f27392e ansibleserver: 限定Playbook字段长度
避免进入数据库时被截断产生无效数据
2019-09-10 09:21:52 +00:00
ioito
88f3a028b1 fix: 虚拟机更改项目时,eip同时变更 2019-09-10 16:49:44 +08:00
TangBin
86c0ee0946 qrcode issuer coding fix 2019-09-10 16:43:43 +08:00
yunion-ci-robot
7a71ce3670 Merge pull request #2844 from tb365/automated-cherry-pick-of-#2842-upstream-release-2.11
Automated cherry pick of #2842: fix ucloud snapshot delete
2019-09-10 16:00:20 +08:00
TangBin
31109c391b totp auth code support multi-domain 2019-09-10 15:31:10 +08:00
TangBin
c356da7eca fix ucloud snapshot delete 2019-09-10 15:31:10 +08:00
yunion-ci-robot
1095587472 Merge pull request #2840 from swordqiu/automated-cherry-pick-of-#2838-upstream-release-2.11
Automated cherry pick of #2838: fix: fail to delete orphane VM in esxi https://kb.vmware.com/s/article/1003742
2019-09-10 15:25:19 +08:00
yunion-ci-robot
f844f8b5e9 Merge pull request #2835 from swordqiu/automated-cherry-pick-of-#2834-upstream-release-2.11
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
101c134458 Merge pull request #2832 from wanyaoqi/automated-cherry-pick-of-#2800-upstream-release-2.11
Automated cherry pick of #2800: misc deploy fix
2019-09-10 15:17:19 +08:00
wanyaoqi
b5c72335fc guest misc fix 2019-09-10 10:59:19 +08:00
Qiu Jian
890bad3296 fix: fail to delete orphane VM in esxi https://kb.vmware.com/s/article/1003742 2019-09-10 10:01:00 +08:00
yunion-ci-robot
1793ceb689 Merge pull request #2825 from ioito/automated-cherry-pick-of-#2823-upstream-release-2.11
Automated cherry pick of #2823: fix: 修复安全组关联数量校验不正确问题
2019-09-09 23:48:21 +08:00
Qiu Jian
82b22e8399 fix: 1. CAS user fail to create totp credential 2. do not try password auth for CAS users 2019-09-09 23:42:41 +08:00
yunion-ci-robot
e24d50a794 Merge pull request #2821 from ioito/automated-cherry-pick-of-#2819-upstream-release-2.11
Automated cherry pick of #2819: fix: 避免数据盘顺序也被颠倒
2019-09-09 23:30:21 +08:00
wanyaoqi
d86ee656d8 misc deploy fix 2019-09-09 20:37:17 +08:00
Yousong Zhou
3b57875e86 Merge pull request #2829 from yousong/automated-cherry-pick-of-#2827-upstream-release-2.11
Automated cherry pick of #2827: .circleci: fix requires
2019-09-09 18:41:35 +08:00
Yousong Zhou
c55a61863a build: rename cleandocgo to adddocgo 2019-09-09 10:04:19 +00:00
Yousong Zhou
9159195639 .circleci: fix requires 2019-09-09 10:04:19 +00:00
Yousong Zhou
7b334b356b Merge pull request #2816 from yousong/automated-cherry-pick-of-#2809-upstream-release-2.11
Automated cherry pick of #2809: build: 将check与构建部分解耦
2019-09-09 17:52:57 +08:00
ioito
a728981729 fix: 修复安全组关联数量校验不正确问题 2019-09-09 16:50:40 +08:00
ioito
bf1ae28158 fix: 避免数据盘顺序也被颠倒 2019-09-09 16:46:40 +08:00
yunion-ci-robot
bd8ea725d4 Merge pull request #2810 from swordqiu/automated-cherry-pick-of-#2808-upstream-release-2.11
Automated cherry pick of #2808: fix: yunionapi nil pointer panic after failed login
2019-09-09 16:31:20 +08:00
yunion-ci-robot
4f529dda79 Merge pull request #2815 from swordqiu/automated-cherry-pick-of-#2813-upstream-release-2.11
Automated cherry pick of #2813: fix: fail to find host ip in virtual console vnic
2019-09-09 16:27:20 +08:00
Yousong Zhou
8a7581f2c8 .circleci: 构建前check 2019-09-09 07:53:52 +00:00
Yousong Zhou
78d27bad8b treewide: fix "make check" 2019-09-09 07:53:52 +00:00
Qiu Jian
0b3ced3f76 fix: fail to find host ip in virtual console vnic 2019-09-09 15:53:40 +08:00
Yousong Zhou
3d51730640 build: 将check与构建部分解耦 2019-09-09 07:50:23 +00:00
Qiu Jian
f96685a177 fix: yunionapi nil pointer panic after failed login 2019-09-09 15:44:10 +08:00
yunion-ci-robot
9fc0717617 Merge pull request #2806 from ioito/automated-cherry-pick-of-#2804-upstream-release-2.11
Automated cherry pick of #2804: fix: 避免解绑EIP后释放EIP任务失败
2019-09-09 11:56:20 +08:00
ioito
61ff3b4c14 fix: 避免解绑EIP后释放EIP任务失败 2019-09-09 11:20:52 +08:00
yunion-ci-robot
f8e92cf2d3 Merge pull request #2802 from swordqiu/automated-cherry-pick-of-#2801-upstream-release-2.11
Automated cherry pick of #2801: fix: api gateway logout handler error and fix go fmt issues
2019-09-07 23:04:19 +08:00
Qiu Jian
4d3cff6fc3 fix: remove casfe.go 2019-09-07 22:44:07 +08:00
Qiu Jian
73b9de9b82 fix: api gateway logout handler error and fix go fmt issues 2019-09-07 22:44:07 +08:00
yunion-ci-robot
cdcabd04a0 Merge pull request #2792 from swordqiu/automated-cherry-pick-of-#2770-upstream-release-2.11
Automated cherry pick of #2770: feature: keystone support CAS SSO authentication
2019-09-07 19:23:18 +08:00
yunion-ci-robot
3756039155 Merge pull request #2789 from wanyaoqi/automated-cherry-pick-of-#2787-upstream-release-2.11
Automated cherry pick of #2787: fix guest manager server struct
2019-09-07 19:14:18 +08:00
yunion-ci-robot
b4e80cfba4 Merge pull request #2796 from Mjoycarry/automated-cherry-pick-of-#2795-upstream-release-2.11
Automated cherry pick of #2795: add interface fetch resources of snats and dnats
2019-09-07 19:09:17 +08:00
yunion-ci-robot
d25cb980a9 Merge pull request #2757 from wanyaoqi/automated-cherry-pick-of-#2741-upstream-release-2.11
Automated cherry pick of #2741: io throttle add log event
2019-09-07 19:08:18 +08:00
yunion-ci-robot
b3a11b5ba0 Merge pull request #2786 from ioito/automated-cherry-pick-of-#2783-upstream-release-2.11
Automated cherry pick of #2783: fix: 避免重装系统后同步信息导致磁盘类型都为系统盘
2019-09-07 19:06:18 +08:00
Rain
aee0cd421a 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:53:52 +08:00
Qiu Jian
0799b9db42 feature: keystone support CAS SSO authentication 2019-09-07 18:51:32 +08:00
yunion-ci-robot
c8c6708895 Merge pull request #2777 from swordqiu/automated-cherry-pick-of-#2775-upstream-release-2.11
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
d043a95074 fix: 1. nil pointer panic error when accessing resource pool and storagecache 2. support multiple disk format 2019-09-07 17:23:05 +08:00
wanyaoqi
f5c5c1f56f fix guest manager server struct 2019-09-07 15:14:15 +08:00
ioito
9e66fb47a8 fix: 避免重装系统后同步信息导致磁盘类型都为系统盘 2019-09-07 13:43:53 +08:00
yunion-ci-robot
3a6b758d85 Merge pull request #2781 from Mjoycarry/automated-cherry-pick-of-#2780-upstream-release-2.11
Automated cherry pick of #2780: snapshotpolicy and disk should have same domain and project in snapshotpolicydisks
2019-09-07 13:32:18 +08:00
yunion-ci-robot
28c83ebe22 Merge pull request #2773 from swordqiu/automated-cherry-pick-of-#2772-upstream-release-2.11
Automated cherry pick of #2772: fix: allow set object acl in batch
2019-09-07 13:02:18 +08:00
Rain
766f605f8a 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:29 +08:00
Qiu Jian
5523960ab7 fix: allow set object acl in batch 2019-09-06 23:30:00 +08:00
yunion-ci-robot
ecb9fd24c1 Merge pull request #2749 from ioito/automated-cherry-pick-of-#2747-upstream-release-2.11
Automated cherry pick of #2747: fix: networkinterfaces belong system resource
2019-09-06 14:40:17 +08:00
yunion-ci-robot
b582e6bba0 Merge pull request #2768 from ioito/automated-cherry-pick-of-#2766-upstream-release-2.11
Automated cherry pick of #2766: fix: 不能无限制追加 application/json
2019-09-06 13:09:16 +08:00
yunion-ci-robot
c368708a7a Merge pull request #2764 from yousong/automated-cherry-pick-of-#2762-upstream-release-2.11
Automated cherry pick of #2762: lbagents: deploy: 检查服务账号有效性
2019-09-06 11:59:18 +08:00
yunion-ci-robot
3dbd68a48d Merge pull request #2760 from wanyaoqi/automated-cherry-pick-of-#2758-upstream-release-2.11
Automated cherry pick of #2758: fix vnc connect, filter qmp event
2019-09-06 11:58:20 +08:00
ioito
0b3ee55241 fix: 不能无限制追加 application/json 2019-09-06 11:46:53 +08:00
yunion-ci-robot
17ba603244 Merge pull request #2734 from swordqiu/automated-cherry-pick-of-#2733-upstream-release-2.11
Automated cherry pick of #2733: fix: optimize logger query time
2019-09-05 22:00:17 +08:00
Yousong Zhou
85df7aa3e6 lbagents: deploy: 检查服务账号有效性 2019-09-05 13:59:42 +00:00
wanyaoqi
1d4461d59f fix vnc connect, filter qmp event 2019-09-05 21:02:07 +08:00
wanyaoqi
c18df1ef73 io throttle add log event 2019-09-05 20:32:06 +08:00
yunion-ci-robot
b0741bd203 Merge pull request #2752 from yousong/automated-cherry-pick-of-#2750-upstream-release-2.11
Automated cherry pick of #2750: lbagent: reuse mcclient client session
2019-09-05 19:59:18 +08:00
yunion-ci-robot
f16a4b6040 Merge pull request #2754 from Mjoycarry/automated-cherry-pick-of-#2744-upstream-release-2.11
Automated cherry pick of #2744: qcloud sunday
2019-09-05 15:57:17 +08:00
Rain
3007211268 qcloud sunday
disk diskplay
2019-09-05 15:50:26 +08:00
Yousong Zhou
bfa9135f7a lbagent: fix possible out of bound index access 2019-09-05 07:37:58 +00:00
Yousong Zhou
682610de37 lbagent: reuse mcclient client session 2019-09-05 07:37:58 +00:00
ioito
bbf931018e fix: networkinterfaces belong system resource 2019-09-05 14:50:06 +08:00
yunion-ci-robot
eae568c40f Merge pull request #2740 from wanyaoqi/automated-cherry-pick-of-#2727-upstream-release-2.11
Automated cherry pick of #2727: fix snapshot policy filter
2019-09-04 14:35:17 +08:00
wanyaoqi
6957c7d50f fix snapshot policy filter 2019-09-04 12:48:40 +08:00
yunion-ci-robot
5be5f0fb7d Merge pull request #2737 from swordqiu/automated-cherry-pick-of-#2736-upstream-release-2.11
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
3df625e77a fix: optimize logger query time 2019-09-04 00:48:31 +08:00
Qiu Jian
bc99dbf09d fix: for backward compatility, only check account id consistency for non-empty account id 2019-09-03 21:21:15 +08:00
yunion-ci-robot
869ca6c457 Merge pull request #2731 from swordqiu/automated-cherry-pick-of-#2730-upstream-release-2.11
Automated cherry pick of #2730: fix: s3cli enable debug trace
2019-09-03 17:37:15 +08:00
Qiu Jian
5c2ecddd09 fix: s3cli enable debug trace 2019-09-03 17:14:26 +08:00
Zexi Li
755375fd39 Merge pull request #2725 from zexi/automated-cherry-pick-of-#2723-upstream-release-2.11
Automated cherry pick of #2723: region: fix create params cdrom missing
2019-09-03 10:47:13 +08:00
Zexi
35a6d13f32 region: fix create params cdrom missing 2019-09-03 10:46:15 +08:00
yunion-ci-robot
c66e8cf33d Merge pull request #2716 from wanyaoqi/automated-cherry-pick-of-#2714-upstream-release-2.11
Automated cherry pick of #2714: fix auto snapshot check quota, name, owner
2019-09-03 10:44:16 +08:00
yunion-ci-robot
ba1f904064 Merge pull request #2712 from Mjoycarry/automated-cherry-pick-of-#2711-upstream-release-2.11
Automated cherry pick of #2711: hanler snapshotpolicy cache
2019-09-03 10:33:16 +08:00
yunion-ci-robot
3f7c20bc3c Merge pull request #2721 from Mjoycarry/automated-cherry-pick-of-#2720-upstream-release-2.11
Automated cherry pick of #2720: add OnBindIPCompleteFailed and fix aliyun Refresh for snat and dnat
2019-09-03 10:29:15 +08:00
Rain
991eb3f38c add OnBindIPCompleteFailed and fix aliyun Refresh for snat and dnat 2019-09-03 10:25:18 +08:00
yunion-ci-robot
831863cea3 Merge pull request #2718 from swordqiu/automated-cherry-pick-of-#2717-upstream-release-2.11
Automated cherry pick of #2717: fix: bucket list access accessUrl nil pointer panic
2019-09-02 21:42:17 +08:00
yunion-ci-robot
2f204e2811 Merge pull request #2705 from swordqiu/automated-cherry-pick-of-#2703-upstream-release-2.11
Automated cherry pick of #2703: fix: guest get host nil pointer panic
2019-09-02 21:41:16 +08:00
Qiu Jian
35700b9692 fix: bucket list access accessUrl nil pointer panic 2019-09-02 21:36:00 +08:00
wanyaoqi
e85e23a110 fix auto snapshot check quota, name, owner 2019-09-02 21:03:08 +08:00
Rain
49bb413a36 hanler snapshotpolicy cache 2019-09-02 18:55:07 +08:00
yunion-ci-robot
8100b2aebe Merge pull request #2709 from zexi/automated-cherry-pick-of-#2707-upstream-release-2.11
Automated cherry pick of #2707: scheduler: fix reserved resource out of limit bug
2019-09-02 18:53:16 +08:00
Zexi
4b7dc251b0 scheduler: fix reserved resource out of limit bug 2019-09-02 18:40:55 +08:00
Qiu Jian
b80c30dcfb fix: guest get host nil pointer panic 2019-09-02 18:20:28 +08:00
yunion-ci-robot
b5f87568bf Merge pull request #2701 from ioito/automated-cherry-pick-of-#2699-upstream-release-2.11
Automated cherry pick of #2699: fix: 忽略裸金属器删除条件
2019-09-02 17:24:19 +08:00
ioito
c9c00f3776 fix: 忽略裸金属器删除条件 2019-09-02 16:32:09 +08:00
yunion-ci-robot
7fe3d646f9 Merge pull request #2696 from Mjoycarry/automated-cherry-pick-of-#2672-upstream-release-2.11
Automated cherry pick of #2672: local snapshotpolicy
2019-09-02 16:12:17 +08:00
yunion-ci-robot
ac4d9f2b2d Merge pull request #2694 from ioito/automated-cherry-pick-of-#2689-upstream-release-2.11
Automated cherry pick of #2689: fix: 避免裸金属服务器转宿主机任务失败
2019-09-02 15:58:15 +08:00
yunion-ci-robot
957fbd66db Merge pull request #2691 from swordqiu/automated-cherry-pick-of-#2690-upstream-release-2.11
Automated cherry pick of #2690: fix: no quota check when making directory
2019-09-02 15:56:15 +08:00
yunion-ci-robot
c2ca6d2f2c Merge pull request #2681 from swordqiu/automated-cherry-pick-of-#2680-upstream-release-2.11
Automated cherry pick of #2680: fix: azure create bucket failure due to empty storageClass
2019-09-02 15:53:15 +08:00
Rain
0b3d3b02b8 local snapshotpolicy 2019-09-02 15:36:59 +08:00
ioito
94f29d7c81 fix: 避免裸金属服务器转宿主机任务失败 2019-09-02 15:33:14 +08:00
yunion-ci-robot
1f0c738fc1 Merge pull request #2685 from wanyaoqi/automated-cherry-pick-of-#2683-upstream-release-2.11
Automated cherry pick of #2683: fix glance update mindisk
2019-09-02 15:31:15 +08:00
yunion-ci-robot
7161b279ce Merge pull request #2678 from zexi/automated-cherry-pick-of-#2676-upstream-release-2.11
Automated cherry pick of #2676: baremetal: auto prepare when pxe boot
2019-09-02 15:30:17 +08:00
Qiu Jian
390d599552 fix: no quota check when making directory 2019-09-02 15:26:58 +08:00
yunion-ci-robot
febf0086c7 Merge pull request #2670 from swordqiu/automated-cherry-pick-of-#2669-upstream-release-2.11
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 13:59:15 +08:00
wanyaoqi
5a5f10aece fix glance update mindisk 2019-09-02 13:53:48 +08:00
yunion-ci-robot
1a9800cb42 Merge pull request #2667 from swordqiu/automated-cherry-pick-of-#2665-upstream-release-2.11
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
yunion-ci-robot
9d9875c1cf Merge pull request #2663 from swordqiu/automated-cherry-pick-of-#2662-upstream-release-2.11
Automated cherry pick of #2662: fix: qcloud fail to set object acl
2019-09-02 13:47:15 +08:00
Qiu Jian
f469e8a632 fix: azure create bucket failure due to empty storageClass 2019-09-02 13:47:06 +08:00
yunion-ci-robot
731dc5bb9a Merge pull request #2660 from swordqiu/automated-cherry-pick-of-#2659-upstream-release-2.11
Automated cherry pick of #2659: fix: huawei fail to import image
2019-09-02 13:45:18 +08:00
yunion-ci-robot
f9ac4ce8c7 Merge pull request #2657 from swordqiu/automated-cherry-pick-of-#2656-upstream-release-2.11
Automated cherry pick of #2656: fix: allow column search in array
2019-09-02 13:44:15 +08:00
Zexi
2577b8f2a1 baremetal: auto prepare when pxe boot 2019-09-02 11:46:37 +08:00
yunion-ci-robot
ba3c8d321e Merge pull request #2674 from swordqiu/automated-cherry-pick-of-#2673-upstream-release-2.11
Automated cherry pick of #2673: fix: provides policies info in auth token response
2019-09-02 10:21:15 +08:00
Qiu Jian
7208be9b59 fix: provides policies info in auth token response 2019-09-02 09:15:44 +08:00
Qiu Jian
5ae65cb7b7 feature: 1. add ceph cloud provider based on generic s3 provider 2. climc support AK/SK authentication 2019-09-01 19:04:11 +08:00
Qiu Jian
71f6b89155 fix: 1. glance/keystone version handler fix 2. allow run glance as normal user 2019-08-31 11:13:26 +08:00
Qiu Jian
e025e65f7b fix: qcloud fail to set object acl 2019-08-30 23:22:42 +08:00
Qiu Jian
91f16ce64c fix: huawei fail to import image 2019-08-30 23:11:56 +08:00
Qiu Jian
d510ca1994 fix: allow column search in array 2019-08-30 22:27:25 +08:00
yunion-ci-robot
53d25123e0 Merge pull request #2654 from zhasm/automated-cherry-pick-of-#2652-upstream-release-2.11
Automated cherry pick of #2652: 修改 Makefile 获取当前分支的方式
2019-08-30 18:24:15 +08:00
张东亮
b346875837 修改 Makefile 获取当前分支的方式 2019-08-30 17:57:51 +08:00
yunion-ci-robot
94b5f92164 Merge pull request #2640 from swordqiu/automated-cherry-pick-of-#2629-upstream-release-2.11
Automated cherry pick of #2629: fix: incorrect import path of options pkg
2019-08-30 17:22:13 +08:00
liuxueguo6921
0589d38771 fix: incorrect import path of options pkg 2019-08-30 16:18:14 +08:00
yunion-ci-robot
55e41c3e37 Merge pull request #2650 from Mjoycarry/automated-cherry-pick-of-#2607-upstream-release-2.11
Automated cherry pick of #2607: natgateway bugfix
2019-08-30 16:07:13 +08:00
yunion-ci-robot
65fa546664 Merge pull request #2645 from ioito/automated-cherry-pick-of-#2601-upstream-release-2.11
Automated cherry pick of #2601: fix: 避免创建磁盘时显示provider disable底下的存储
2019-08-30 16:05:14 +08:00
Rain
1c937aeee0 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:11:41 +08:00
ioito
34ec4c3751 fix: 避免创建磁盘时显示provider disable底下的存储 2019-08-30 10:55:22 +08:00
yunion-ci-robot
1fd2fcefe5 Merge pull request #2642 from swordqiu/automated-cherry-pick-of-#2608-upstream-release-2.11
Automated cherry pick of #2608: feature: 1. ak/sk auth support 2. a full feature s3gateway works with Cyberduck
2019-08-30 07:35:12 +08:00
Qiu Jian
6441069a73 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:27:36 +08:00
yunion-ci-robot
95e59f67d0 Merge pull request #2627 from swordqiu/automated-cherry-pick-of-#2626-upstream-release-2.11
Automated cherry pick of #2626: fix: compatible with minio s3
2019-08-29 23:52:12 +08:00
yunion-ci-robot
751740a655 Merge pull request #2636 from wanyaoqi/automated-cherry-pick-of-#2635-upstream-release-2.11
Automated cherry pick of #2635: bugfix:
2019-08-29 22:46:12 +08:00
wanyaoqi
825b92f1b4 bugfix:
- fix guest vnc connect failed on host unsupport ipv6
- fix cirros qemu args conflict with windows
2019-08-29 21:24:37 +08:00
yunion-ci-robot
9632f45d35 Merge pull request #2632 from ioito/automated-cherry-pick-of-#2630-upstream-release-2.11
Automated cherry pick of #2630: fix: avoid not release pending-usage
2019-08-29 20:45:13 +08:00
ioito
facb566c88 fix: avoid not release pending-usage 2019-08-29 20:30:11 +08:00
yunion-ci-robot
3cdeb52dd1 Merge pull request #2624 from zhasm/automated-cherry-pick-of-#2619-upstream-release-2.11
Automated cherry pick of #2619: 新增 s3gateway s3cli的 rpm 描述文件
2019-08-29 18:59:14 +08:00
Qiu Jian
44c1115ce2 fix: compatible with minio s3 2019-08-29 18:51:04 +08:00
rex zhasm
70c686e254 Merge branch 'release/2.11' into automated-cherry-pick-of-#2619-upstream-release-2.11 2019-08-29 17:33:32 +08:00
yunion-ci-robot
a87fd32c65 Merge pull request #2617 from ioito/automated-cherry-pick-of-#2615-upstream-release-2.11
Automated cherry pick of #2615: fix: avoid rbd image exist when rebuild-root
2019-08-29 17:32:14 +08:00
yunion-ci-robot
6da30aa260 Merge pull request #2622 from ioito/automated-cherry-pick-of-#2620-upstream-release-2.11
Automated cherry pick of #2620: hotfix: add aliyun request user-agent
2019-08-29 17:18:11 +08:00
Zhang Dongliang
1ec1646857 update wording 2019-08-29 17:01:46 +08:00
Zhang Dongliang
34dea11536 新增 s3gateway s3cli的 rpm 描述文件 2019-08-29 17:01:46 +08:00
ioito
f1b22c2249 hotfix: add aliyun request user-agent 2019-08-29 16:37:28 +08:00
ioito
06b18545a2 fix: avoid rbd image exist when rebuild-root 2019-08-29 11:49:03 +08:00
yunion-ci-robot
7282608f60 Merge pull request #2613 from ioito/automated-cherry-pick-of-#2569-upstream-release-2.11
Automated cherry pick of #2569: fix: 宿主机下线时,需要将宿主机底下的虚拟机状态设为unknown
2019-08-29 11:24:14 +08:00
yunion-ci-robot
712fdcae4d Merge pull request #2610 from swordqiu/automated-cherry-pick-of-#2609-upstream-release-2.11
Automated cherry pick of #2609: fix: 1. missing action log for bucket objects ops 2. huawei cloud sync duplicate buckets
2019-08-29 10:54:12 +08:00
ioito
f7f076a70c fix: 宿主机下线时,需要将宿主机底下的虚拟机状态设为unknown 2019-08-29 10:14:03 +08:00
Qiu Jian
d6cd29f588 fix: 1. missing action log for bucket objects ops 2. huawei cloud sync duplicate buckets 2019-08-29 02:40:16 +08:00
yunion-ci-robot
1e9d548de0 Merge pull request #2605 from yousong/automated-cherry-pick-of-#2603-upstream-release-2.11
Automated cherry pick of #2603: mcclient: ansibleplaybooks: 注册为v2接口
2019-08-28 22:34:14 +08:00
yunion-ci-robot
61a8cb5742 Merge pull request #2590 from yousong/automated-cherry-pick-of-#2588-upstream-release-2.11
Automated cherry pick of #2588: lbagents: 详情增加zone信息
2019-08-28 22:32:17 +08:00
yunion-ci-robot
122667e9b3 Merge pull request #2600 from zexi/automated-cherry-pick-of-#2599-upstream-release-2.11
Automated cherry pick of #2599: schedtag: create support scope
2019-08-28 22:29:12 +08:00
Yousong Zhou
9f2a830cb3 mcclient: ansibleplaybooks: 注册为v2接口 2019-08-28 12:44:54 +00:00
yunion-ci-robot
0b51b87404 Merge pull request #2551 from ioito/automated-cherry-pick-of-#2546-upstream-release-2.11
Automated cherry pick of #2546: fix: 避免host disable时detach磁盘
2019-08-28 15:57:14 +08:00
Zexi
7bef674810 schedtag: create support scope 2019-08-27 15:21:09 +08:00
yunion-ci-robot
7d268f1a73 Merge pull request #2544 from ioito/automated-cherry-pick-of-#2512-upstream-release-2.11
Automated cherry pick of #2512: fix: add external perform change-project
2019-08-27 11:17:10 +08:00
Yousong Zhou
2de2fca0bd lbagents: 详情增加zone信息 2019-08-27 03:02:50 +00:00
yunion-ci-robot
6453472e25 Merge pull request #2586 from wanyaoqi/automated-cherry-pick-of-#2581-upstream-release-2.11
Automated cherry pick of #2581: fix rbd disk delete with snapshot
2019-08-27 10:32:10 +08:00
yunion-ci-robot
1001d1fc38 Merge pull request #2579 from swordqiu/automated-cherry-pick-of-#2577-upstream-release-2.11
Automated cherry pick of #2577: fix: quota-list fail if deleted projects found
2019-08-27 10:08:13 +08:00
yunion-ci-robot
1bf78eaae4 Merge pull request #2561 from ioito/automated-cherry-pick-of-#2558-upstream-release-2.11
Automated cherry pick of #2558: fix: sync and set secgroup public scope
2019-08-26 22:57:16 +08:00
yunion-ci-robot
de5e019834 Merge pull request #2575 from yousong/automated-cherry-pick-of-#2573-upstream-release-2.11
Automated cherry pick of #2573: policy: 将lb集群相关资源归入系统资源类
2019-08-26 22:55:11 +08:00
yunion-ci-robot
bb69a3f009 Merge pull request #2583 from wanyaoqi/automated-cherry-pick-of-#2568-upstream-release-2.11
Automated cherry pick of #2568: fix host maintenance
2019-08-26 22:42:12 +08:00
wanyaoqi
35942623f7 fix rbd disk delete with snapshot 2019-08-26 22:09:25 +08:00
wanyaoqi
2912797abe fix host maintenance 2019-08-26 22:06:37 +08:00
Qiu Jian
1b0295b4dc fix: quota-list fail if deleted projects found 2019-08-26 20:30:29 +08:00
yunion-ci-robot
ca34eff740 Merge pull request #2422 from zexi/automated-cherry-pick-of-#2415-upstream-release-2.11
Automated cherry pick of #2415: webconsole: update aliyun vnc base url and uniq vnc session
2019-08-26 16:30:15 +08:00
Yousong Zhou
4c44a80a81 policy: 将lb集群相关资源归入系统资源类 2019-08-26 07:43:28 +00:00
Zexi
60a554eab9 webconsole: update aliyun vnc base url and uniq vnc session 2019-08-26 15:42:14 +08:00
yunion-ci-robot
e15a280336 Merge pull request #2566 from tb365/automated-cherry-pick-of-#2564-upstream-release-2.11
Automated cherry pick of #2564: aws disk resize bugfix
2019-08-26 15:26:11 +08:00
TangBin
1ed74a2126 aws disk resize bugfix 2019-08-26 14:53:57 +08:00
yunion-ci-robot
a43839ce4a Merge pull request #2541 from swordqiu/automated-cherry-pick-of-#2539-upstream-release-2.11
Automated cherry pick of #2539: fix: pending usage not release after failed change config
2019-08-24 18:40:11 +08:00
yunion-ci-robot
cf380fdfd8 Merge pull request #2533 from swordqiu/automated-cherry-pick-of-#2477-upstream-release-2.11
Automated cherry pick of #2477: fix: use policy match weight to override less specific policy
2019-08-24 18:39:10 +08:00
ioito
63d582a8b2 fix: sync and set secgroup public scope 2019-08-24 18:38:19 +08:00
yunion-ci-robot
d447db4bab Merge pull request #2537 from swordqiu/automated-cherry-pick-of-#2536-upstream-release-2.11
Automated cherry pick of #2536: fix: bucket mkdir may create path with empty whitespaces
2019-08-24 18:38:12 +08:00
yunion-ci-robot
242c376610 Merge pull request #2554 from wanyaoqi/automated-cherry-pick-of-#2552-upstream-release-2.11
Automated cherry pick of #2552: guest batch migrate
2019-08-24 17:56:10 +08:00
yunion-ci-robot
b60e7a77f3 Merge pull request #2557 from wanyaoqi/automated-cherry-pick-of-#2413-upstream-release-2.11
Automated cherry pick of #2413: host migrate
2019-08-24 17:36:09 +08:00
wanyaoqi
2483e00dab guest batch migrate 2019-08-24 17:31:24 +08:00
wanyaoqi
1ae5f2463b host migrate 2019-08-24 17:12:27 +08:00
ioito
01bb295476 fix: 避免host disable时detach磁盘 2019-08-24 14:00:31 +08:00
ioito
204690fb07 fix: add external perform change-project 2019-08-24 10:13:00 +08:00
Qiu Jian
923f58131b fix: pending usage not release after failed change config 2019-08-23 22:46:08 +08:00
Qiu Jian
9e91d9ea75 fix: bucket mkdir may create path with empty whitespaces 2019-08-23 22:01:22 +08:00
yunion-ci-robot
15088059dc Merge pull request #2530 from ioito/automated-cherry-pick-of-#2528-upstream-release-2.11
Automated cherry pick of #2528: fix: deploy action not sync guest status in subtask
2019-08-23 21:24:08 +08:00
Qiu Jian
9694523ecc fix: use policy match weight to override less specific policy 2019-08-23 21:20:35 +08:00
ioito
45e3fc45b2 fix: deploy action not sync guest status in subtask 2019-08-23 21:02:37 +08:00
yunion-ci-robot
cf787675e0 Merge pull request #2519 from yousong/automated-cherry-pick-of-#2517-upstream-release-2.11
Automated cherry pick of #2517: snapshotpolicy: 改正bool default:"true"
2019-08-23 19:52:08 +08:00
yunion-ci-robot
7c288a1a81 Merge pull request #2524 from ioito/automated-cherry-pick-of-#2522-upstream-release-2.11
Automated cherry pick of #2522: fix: sync status after guest sync conf
2019-08-23 18:03:10 +08:00
ioito
4c09822976 fix: sync status after guest sync conf 2019-08-23 17:16:48 +08:00
yunion-ci-robot
830977c6d0 Merge pull request #2520 from zexi/automated-cherry-pick-of-#2511-upstream-release-2.11
Automated cherry pick of #2511: schedtags: support scope
2019-08-23 14:27:08 +08:00
Zexi
69bbe99cbe schedtags: support scope 2019-08-23 13:38:59 +08:00
Yousong Zhou
546d53f386 snapshotpolicy: 改正bool default:"true" 2019-08-23 03:28:48 +00:00
yunion-ci-robot
0545078f13 Merge pull request #2504 from ioito/automated-cherry-pick-of-#2499-upstream-release-2.11
Automated cherry pick of #2499: fix: qcloud sync unavailable storages
2019-08-23 10:55:09 +08:00
yunion-ci-robot
366b527430 Merge pull request #2515 from zexi/automated-cherry-pick-of-#2513-upstream-release-2.11
Automated cherry pick of #2513: scheduler: fix disk or net specify resource id execute schedtag filter
2019-08-23 03:39:08 +08:00
yunion-ci-robot
82d7304419 Merge pull request #2508 from wanyaoqi/automated-cherry-pick-of-#2456-upstream-release-2.11
Automated cherry pick of #2456: io throttle
2019-08-23 03:38:10 +08:00
yunion-ci-robot
96ba6bfbce Merge pull request #2493 from yousong/automated-cherry-pick-of-#2491-upstream-release-2.11
Automated cherry pick of #2491: networks: 添加ifname_hint字段
2019-08-23 03:37:14 +08:00
yunion-ci-robot
b1a22d7d28 Merge pull request #2497 from yousong/automated-cherry-pick-of-#2495-upstream-release-2.11
Automated cherry pick of #2495: appsrv: 反转义path segs
2019-08-23 03:14:08 +08:00
yunion-ci-robot
d434fdd121 Merge pull request #2489 from tb365/automated-cherry-pick-of-#2487-upstream-release-2.11
Automated cherry pick of #2487: huawei & aws bugfix
2019-08-23 03:10:09 +08:00
Zexi
398cc61cb6 scheduler: fix disk or net specify resource id execute schedtag filter 2019-08-22 21:59:23 +08:00
wanyaoqi
12a59fd256 add io-throttle doc 2019-08-22 21:00:46 +08:00
wanyaoqi
8dbdc9d3ee io throttle 2019-08-22 21:00:46 +08:00
ioito
f30886bfc1 fix: qcloud sync unavailable storages 2019-08-22 20:47:35 +08:00
Yousong Zhou
c42221e8f4 guests: detachnetwork时支持以名字指定network 2019-08-22 08:44:49 +00:00
Yousong Zhou
7cc11a293e appsrv: 反转义path segs
支持"climc network-delete 中文"
2019-08-22 08:44:48 +00:00
Yousong Zhou
1588690951 networks: 添加ifname_hint字段
- 升级部署时,从network.Name初始化
 - 创建时,尝试从network.Name取值,取不到则生成随机值
 - 不允许更新
2019-08-22 08:10:15 +00:00
TangBin
c83988ba68 huawei bugfix 2019-08-22 14:35:55 +08:00
TangBin
43ed2b8ebf huawei & aws bugfix 2019-08-22 14:35:55 +08:00
yunion-ci-robot
295a6ac93d Merge pull request #2485 from ioito/automated-cherry-pick-of-#2483-upstream-release-2.11
Automated cherry pick of #2483: fix: zstack reset passworkd with username
2019-08-22 11:42:08 +08:00
ioito
cd42443083 fix: zstack reset passworkd with username 2019-08-22 11:25:56 +08:00
yunion-ci-robot
24076578db Merge pull request #2479 from ioito/automated-cherry-pick-of-#2451-upstream-release-2.11
Automated cherry pick of #2451: bugfix: 避免openstack磁盘扩容成功后未能挂载到虚拟机上
2019-08-22 10:25:07 +08:00
ioito
a204a3c231 bugfix: 避免openstack磁盘扩容成功后未能挂载到虚拟机上 2019-08-22 10:15:09 +08:00
yunion-ci-robot
d4dd0fb2e7 Merge pull request #2475 from swordqiu/automated-cherry-pick-of-#2473-upstream-release-2.11
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
1bda7601d1 Merge pull request #2471 from swordqiu/automated-cherry-pick-of-#2469-upstream-release-2.11
Automated cherry pick of #2469: fix: disk-resize sync guest status cause deadlock
2019-08-22 09:45:08 +08:00
yunion-ci-robot
e6fc769053 Merge pull request #2467 from swordqiu/automated-cherry-pick-of-#2465-upstream-release-2.11
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:08 +08:00
yunion-ci-robot
ab957c0a20 Merge pull request #2454 from tb365/automated-cherry-pick-of-#2452-upstream-release-2.11
Automated cherry pick of #2452: add update vm name method
2019-08-22 08:11:08 +08:00
yunion-ci-robot
4d80247b21 Merge pull request #2431 from ioito/automated-cherry-pick-of-#2414-upstream-release-2.11
Automated cherry pick of #2414: hotfix: 避免上传镜像后,再次获取镜像列表因网络原因导致任务失败
2019-08-22 08:09:08 +08:00
Qiu Jian
a4550b84e1 fix: doamin admin cannot access private networks across domain 2019-08-22 00:27:28 +08:00
Qiu Jian
e29645e49f fix: disk-resize sync guest status cause deadlock 2019-08-21 23:57:11 +08:00
Qiu Jian
a60e603248 fix: a join update is allowed if one of the joint models is allowed to update 2019-08-21 20:41:42 +08:00
yunion-ci-robot
00df4331c3 Merge pull request #2429 from ioito/automated-cherry-pick-of-#2416-upstream-release-2.11
Automated cherry pick of #2416: fix: 避免provider污染sql,导致查询结果为空
2019-08-21 20:33:06 +08:00
yunion-ci-robot
9d644948e5 Merge pull request #2459 from zexi/automated-cherry-pick-of-#2457-upstream-release-2.11
Automated cherry pick of #2457: region: capability domain public network must equal domain_id
2019-08-21 20:30:07 +08:00
yunion-ci-robot
ff9389de7d Merge pull request #2463 from wanyaoqi/automated-cherry-pick-of-#2461-upstream-release-2.11
Automated cherry pick of #2461: fix snapshot can't delete
2019-08-21 20:17:09 +08:00
Zexi
828e44d0e5 region: capability domain public network must equal domain_id 2019-08-21 19:24:51 +08:00
wanyaoqi
add2b6af1c fix snapshot can't delete 2019-08-21 19:12:26 +08:00
TangBin
5c26f733b0 add update vm name method 2019-08-21 15:44:48 +08:00
yunion-ci-robot
b70c8a6795 Merge pull request #2437 from ioito/automated-cherry-pick-of-#2407-upstream-release-2.11
Automated cherry pick of #2407: fix: 避免admin=false时,不显示其余项目下的标签信息
2019-08-21 15:32:09 +08:00
yunion-ci-robot
f767617628 Merge pull request #2444 from wanyaoqi/automated-cherry-pick-of-#2406-upstream-release-2.11
Automated cherry pick of #2406: - snapshot support custom snapshot policy
2019-08-21 15:30:06 +08:00
yunion-ci-robot
751543f947 Merge pull request #2449 from zexi/automated-cherry-pick-of-#2447-upstream-release-2.11
Automated cherry pick of #2447: scheduler: sku not unmarshal to ServerConfigs
2019-08-21 14:57:08 +08:00
Zexi
dedbe1cb82 scheduler: sku not unmarshal to ServerConfigs 2019-08-21 12:31:06 +08:00
yunion-ci-robot
02d824dc79 Merge pull request #2445 from Mjoycarry/automated-cherry-pick-of-#2442-upstream-release-2.11
Automated cherry pick of #2442: nat delele should overvide Delete() and call RealDelete() after delete cloud resource successfully
2019-08-21 12:01:07 +08:00
Rain
f5a038cf79 nat delele should overvide Delete() and call RealDelete() after delete cloud resource successfully 2019-08-21 11:22:01 +08:00
wanyaoqi
249df4bdf9 - snapshot support custom snapshot policy 2019-08-21 11:19:52 +08:00
yunion-ci-robot
fb45719b89 Merge pull request #2434 from ioito/automated-cherry-pick-of-#2412-upstream-release-2.11
Automated cherry pick of #2412: hotfix: snapshot create optimized
2019-08-21 10:57:08 +08:00
ioito
6f3f2708fb fix: 避免admin=false时,不显示其余项目下的标签信息 2019-08-21 10:27:30 +08:00
ioito
4c5cc5ab34 hotfix: snapshot create optimized 2019-08-21 10:22:23 +08:00
ioito
1e01f48a7e hotfix: 避免上传镜像后,再次获取镜像列表因网络原因导致任务失败 2019-08-21 10:07:18 +08:00
ioito
8e07684181 fix: 避免provider污染sql,导致查询结果为空 2019-08-21 10:05:15 +08:00
yunion-ci-robot
acb4ce15dd Merge pull request #2426 from ioito/automated-cherry-pick-of-#2424-upstream-release-2.11
Automated cherry pick of #2424: fix: 允许更改私有云region名称
2019-08-20 23:48:08 +08:00
yunion-ci-robot
3ca067c493 Merge pull request #2410 from ioito/automated-cherry-pick-of-#2408-upstream-release-2.11
Automated cherry pick of #2408: fix: avoid sku validate delete return error
2019-08-20 23:34:11 +08:00
ioito
dae129738d fix: 允许更改私有云region名称 2019-08-20 21:20:46 +08:00
yunion-ci-robot
7ef70d069b Merge pull request #2384 from zexi/automated-cherry-pick-of-#2382-upstream-release-2.11
Automated cherry pick of #2382: baremetal: fix ext4 rootfs inode inconsistent
2019-08-20 21:01:07 +08:00
yunion-ci-robot
23cc08a80f Merge pull request #2419 from wanyaoqi/automated-cherry-pick-of-#2417-upstream-release-2.11
Automated cherry pick of #2417: fix snapshot ops log
2019-08-20 20:54:07 +08:00
yunion-ci-robot
6762313e0b Merge pull request #2404 from swordqiu/automated-cherry-pick-of-#2402-upstream-release-2.11
Automated cherry pick of #2402: fix: sysadmin should be a system account
2019-08-20 20:47:08 +08:00
wanyaoqi
526a4a42ef fix snapshot ops log 2019-08-20 20:27:23 +08:00
Zexi
1ebc11363d baremetal: fix ext4 rootfs inode inconsistent 2019-08-20 17:16:57 +08:00
ioito
feff0569b8 fix: avoid sku validate delete return error 2019-08-20 15:26:18 +08:00
Qiu Jian
d6f8efbce2 fix: sysadmin should be a system account 2019-08-20 14:02:37 +08:00
yunion-ci-robot
c49ff16066 Merge pull request #2393 from swordqiu/automated-cherry-pick-of-#2392-upstream-release-2.11
Automated cherry pick of #2392: fix: qcloud change config failed
2019-08-20 11:30:07 +08:00
yunion-ci-robot
bb6858a779 Merge pull request #2389 from swordqiu/automated-cherry-pick-of-#2387-upstream-release-2.11
Automated cherry pick of #2387: fix: cloud-provider-region add cloudaccount_domain_id
2019-08-20 11:28:07 +08:00
yunion-ci-robot
cf9782355b Merge pull request #2397 from ioito/automated-cherry-pick-of-#2381-upstream-release-2.11
Automated cherry pick of #2381: fix: httputils show error when resp body is not dict
2019-08-20 10:25:08 +08:00
ioito
c73ff1a3f9 fix: httputils show error when resp body is not dict 2019-08-20 10:18:40 +08:00
Qiu Jian
4b69c5c4aa fix: qcloud change config failed 2019-08-20 01:48:52 +08:00
yunion-ci-robot
ab20127b28 Merge pull request #2379 from wanyaoqi/automated-cherry-pick-of-#2377-upstream-release-2.11
Automated cherry pick of #2377: snapshot bugs fix
2019-08-20 00:04:07 +08:00
Qiu Jian
d7436e4718 fix: cloud-provider-region add cloudaccount_domain_id 2019-08-19 22:29:30 +08:00
wanyaoqi
d1d8b9bc49 snapshot bugs fix 2019-08-19 20:33:32 +08:00
yunion-ci-robot
c627096533 Merge pull request #2374 from swordqiu/automated-cherry-pick-of-#2373-upstream-release-2.11
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
244be990ae fix: not sync correctly aws VM's tempoaral public ip 2019-08-19 02:00:39 +08:00
yunion-ci-robot
2dee6f0d85 Merge pull request #2371 from swordqiu/automated-cherry-pick-of-#2369-upstream-release-2.11
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
c03abdaf64 fix: avoid duplicate image uploading if multiple identical instances created at same time 2019-08-18 23:27:16 +08:00
yunion-ci-robot
be252c74b8 Merge pull request #2367 from swordqiu/automated-cherry-pick-of-#2357-upstream-release-2.11
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:09 +08:00
Qiu Jian
ec5b6af2fc update vendor 2019-08-17 18:56:02 +08:00
Qiu Jian
0373b5f025 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:02 +08:00
yunion-ci-robot
21be87d52c Merge pull request #2364 from swordqiu/automated-cherry-pick-of-#2362-upstream-release-2.11
Automated cherry pick of #2362: fix: cloud-account-usage no data for domain admin
2019-08-17 18:55:05 +08:00
Qiu Jian
0e40833636 fix: cloud-account-usage no data for domain admin 2019-08-17 18:41:44 +08:00
yunion-ci-robot
278a195a0d Merge pull request #2360 from swordqiu/automated-cherry-pick-of-#2358-upstream-release-2.11
Automated cherry pick of #2358: fix: new user without porject may view any resources
2019-08-17 18:27:05 +08:00
Qiu Jian
500c11f1f1 fix: new user without porject may view any resources 2019-08-17 13:42:10 +08:00
yunion-ci-robot
71fb35aea3 Merge pull request #2355 from yousong/automated-cherry-pick-of-#2353-upstream-release-2.11
Automated cherry pick of #2353: Makefile: 改正rpm target
2019-08-17 10:00:06 +08:00
yunion-ci-robot
bf586f75cc Merge pull request #2345 from yousong/automated-cherry-pick-of-#2343-upstream-release-2.11
Automated cherry pick of #2343: hostman: windows: 改正批处理代码
2019-08-17 09:58:06 +08:00
yunion-ci-robot
ab4baf8a50 Merge pull request #2351 from swordqiu/automated-cherry-pick-of-#2349-upstream-release-2.11
Automated cherry pick of #2349: fix: project_id/domain_id was cleared after FetchProjectInfo/FetchDomainInfo called
2019-08-16 22:09:07 +08:00
Yousong Zhou
ffefc8dd3a .travis.yml: 去掉过时comment 2019-08-16 13:57:41 +00:00
Yousong Zhou
fd1643282c Makefile: 改正rpm target 2019-08-16 13:57:41 +00:00
Qiu Jian
495b8ede20 fix: project_id/domain_id was cleared after FetchProjectInfo/FetchDomainInfo called 2019-08-16 21:26:30 +08:00
yunion-ci-robot
2897c96070 Merge pull request #2341 from wanyaoqi/automated-cherry-pick-of-#2339-upstream-release-2.11
Automated cherry pick of #2339: fix managered disk reset not update disk size
2019-08-16 21:23:06 +08:00
Yousong Zhou
bbcbb4992d hostman: windows: 改正批处理代码 2019-08-16 13:21:04 +00:00
wanyaoqi
d9ff944212 fix managered disk reset not update disk size 2019-08-16 18:01:33 +08:00
yunion-ci-robot
c70cea36e9 Merge pull request #2334 from tb365/automated-cherry-pick-of-#2332-upstream-release-2.11
Automated cherry pick of #2332: aws & huawei & ucloud fix
2019-08-16 17:21:06 +08:00
yunion-ci-robot
1095bceecd Merge pull request #2313 from ioito/automated-cherry-pick-of-#2311-upstream-release-2.11
Automated cherry pick of #2311: fix: avoid duplicate sku error
2019-08-16 17:11:06 +08:00
yunion-ci-robot
0328d466e0 Merge pull request #2310 from Mjoycarry/automated-cherry-pick-of-#2291-upstream-release-2.11
Automated cherry pick of #2291: snapshotpolicy list create delete apply cancel finish except that disk sync snapshot policy
2019-08-16 17:05:06 +08:00
yunion-ci-robot
205141c840 Merge pull request #2303 from wanyaoqi/automated-cherry-pick-of-#2301-upstream-release-2.11
Automated cherry pick of #2301: fix image head no field tenant
2019-08-16 17:04:05 +08:00
yunion-ci-robot
01b4643aa2 Merge pull request #2289 from wanyaoqi/automated-cherry-pick-of-#2287-upstream-release-2.11
Automated cherry pick of #2287: fix ceph rescue mode migrate
2019-08-16 17:03:05 +08:00
TangBin
0ea70f9df6 aws & huawei & ucloud fix 2019-08-16 16:45:53 +08:00
yunion-ci-robot
d9098ab8e4 Merge pull request #2328 from ioito/automated-cherry-pick-of-#2326-upstream-release-2.11
Automated cherry pick of #2326: fix: azure快照的磁盘id应该小写
2019-08-16 16:29:04 +08:00
yunion-ci-robot
4bba4e51fc Merge pull request #2324 from swordqiu/automated-cherry-pick-of-#2322-upstream-release-2.11
Automated cherry pick of #2322: fix: openstack provider string should be OpenStack
2019-08-16 16:28:04 +08:00
yunion-ci-robot
222da06ab1 Merge pull request #2307 from Mjoycarry/automated-cherry-pick-of-#2292-upstream-release-2.11
Automated cherry pick of #2292: task.Params pass paramters
2019-08-16 16:20:05 +08:00
yunion-ci-robot
ee2004caeb Merge pull request #2294 from zexi/automated-cherry-pick-of-#2293-upstream-release-2.11
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
e8e72845ed fix: azure快照的磁盘id应该小写 2019-08-16 15:52:52 +08:00
Qiu Jian
44803bc413 fix: openstack provider string should be OpenStack 2019-08-16 15:42:03 +08:00
yunion-ci-robot
cd14775433 Merge pull request #2318 from ioito/automated-cherry-pick-of-#2316-upstream-release-2.11
Automated cherry pick of #2316: fix: create disk with project-src=local
2019-08-16 15:22:06 +08:00
ioito
7cfd414fa3 fix: create disk with project-src=local 2019-08-16 15:04:10 +08:00
ioito
e57416c3ed fix: avoid duplicate sku error 2019-08-16 14:44:34 +08:00
yunion-ci-robot
09677ddb36 Merge pull request #2308 from yousong/automated-cherry-pick-of-#2305-upstream-release-2.11
Automated cherry pick of #2305: .travis.yml: 不使用docker
2019-08-16 14:39:07 +08:00
Rain
1651dfaea1 snapshotpolicy list create delete apply cancel finish except that disk sync snapshot policy
add copyright

fix some imprefection

fix test file
2019-08-16 14:36:38 +08:00
Yousong Zhou
d062220e9f .travis.yml: 不使用docker 2019-08-16 05:43:33 +00:00
Rain
bf45edb016 task.Params pass paramters 2019-08-16 13:42:38 +08:00
wanyaoqi
5db5ff30e3 fix image head no field tenant 2019-08-16 12:16:56 +08:00
yunion-ci-robot
13913fcf61 Merge pull request #2299 from yousong/automated-cherry-pick-of-#2297-upstream-release-2.11
Automated cherry pick of #2297: Makefile: 使用rpm/%
2019-08-16 10:36:05 +08:00
Yousong Zhou
3f161c805f .travis.yml: 改正权限问题 2019-08-16 02:20:50 +00:00
Yousong Zhou
a0fb6398e4 Makefile: 使用rpm/% 2019-08-16 02:20:50 +00:00
yunion-ci-robot
1a8825fcee Merge pull request #2274 from yousong/automated-cherry-pick-of-#2272-upstream-release-2.11
Automated cherry pick of #2272: .travis.yml: 改正配置
2019-08-15 22:03:04 +08:00
Zexi
09f63b6a58 baremetal: raid disk inode inconsistent due to mkfs.ext4 largefile option 2019-08-15 21:33:30 +08:00
yunion-ci-robot
b32272cf8a Merge pull request #2285 from swordqiu/automated-cherry-pick-of-#2284-upstream-release-2.11
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
40407be7a3 fix ceph rescue mode migrate 2019-08-15 16:01:53 +08:00
yunion-ci-robot
e52c179abd Merge pull request #2282 from wanyaoqi/automated-cherry-pick-of-#2280-upstream-release-2.11
Automated cherry pick of #2280: add distinct field manager
2019-08-15 10:38:02 +08:00
Qiu Jian
875349e8d7 feature: 1. limit for bucket object count and size 2. quota for object count and size 2019-08-14 22:31:41 +08:00
wanyaoqi
53ac3f79ce add distinct field manager 2019-08-14 21:02:51 +08:00
yunion-ci-robot
1dda992340 Merge pull request #2278 from ioito/automated-cherry-pick-of-#2276-upstream-release-2.11
Automated cherry pick of #2276: fix: missing setup managerId for snapshot
2019-08-14 20:38:05 +08:00
ioito
971f3f7738 fix: missing setup managerId for snapshot 2019-08-14 20:14:44 +08:00
Yousong Zhou
600672641c Makefile: fail for unknown target 2019-08-14 07:12:21 +00:00
Yousong Zhou
0132701dde .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:21 +00:00
yunion-ci-robot
91763813d5 Merge pull request #2262 from ioito/automated-cherry-pick-of-#2198-upstream-release-2.11
Automated cherry pick of #2198: fix: private sku sync and delete
2019-08-14 11:41:01 +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
ioito
18ca4ef9be fix: private sku sync and delete 2019-08-13 21:44:27 +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
3713 changed files with 166512 additions and 455762 deletions

39
.circleci/Dockerfile Normal file
View File

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

View File

@@ -5,10 +5,10 @@ version: 2
jobs:
check:
docker:
- image: yunionio/centos-build:1.0-1
- image: yunionio/onecloud-ci:v1.0.3
environment:
ONECLOUD_CI_BUILD: "1"
working_directory: /root/go/onecloud
working_directory: /home/build/go/src/yunion.io/x/onecloud
steps:
- checkout
- run:
@@ -18,7 +18,7 @@ jobs:
requires:
- check
docker:
- image: yunionio/centos-build:1.0-1
- image: yunionio/onecloud-ci:v1.0.2
environment:
ONECLOUD_CI_BUILD: "1"
@@ -26,14 +26,14 @@ jobs:
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /root/go/onecloud
working_directory: /home/build/go/src/yunion.io/x/onecloud
parallelism: 4
steps:
- checkout
- restore_cache:
key: onecloud-build-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
- /home/build/.cache/go-build
- run:
command: |
targets="$(circleci tests glob "cmd/*" | grep -v cmd/host-image | circleci tests split)"
@@ -43,7 +43,7 @@ jobs:
- save_cache:
key: onecloud-build-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
- /home/build/.cache/go-build
- store_artifacts:
path: _output/
@@ -51,16 +51,16 @@ jobs:
requires:
- check
docker:
- image: yunionio/centos-build:1.0-1
- image: yunionio/onecloud-ci:v1.0.2
environment:
GO111MODULE: "on"
working_directory: /root/go/onecloud
working_directory: /home/build/go/src/yunion.io/x/onecloud
steps:
- checkout
- restore_cache:
key: onecloud-test-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
- /home/build/.cache/go-build
- run:
name: unit_test
command: |
@@ -68,7 +68,7 @@ jobs:
- save_cache:
key: onecloud-test-cache-{{ checksum "go.mod" }}-{{ checksum "Makefile" }}
paths:
- /root/.cache/go-build
- /home/build/.cache/go-build
workflows:
version: 2

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,232 +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 # baremetal-agent needs this
make cmd/apigateway cmd/climc cmd/keystone
make cmd/logger cmd/region cmd/scheduler cmd/webconsole
make cmd/yunionconf cmd/glance cmd/torrent cmd/s3gateway
make cmd/ansibleserver cmd/cloudnet cmd/notify
make cmd/host-deployer && ./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
make docker-alpine-build F='-j4 cmd/host cmd/vpcagent cmd/region-dns'
- name: Image baremetal-agent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/baremetal-agent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.baremetal-agent
- name: Image esxi-agent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/esxi-agent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.esxi-agent
- name: Image vpcagent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/vpcagent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.vpcagent
- name: Image climc
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/climc
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.climc
- name: Image keystone
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/keystone
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.keystone
- name: Image logger
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/logger
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.logger
- name: Image 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
- name: Image region DNS
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/region-dns
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.region-dns

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

114
Makefile
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)/$@
@@ -192,77 +186,43 @@ mod:
go mod vendor -v
DOCKER_BUILD_IMAGE_VERSION?=1.0-1
DOCKER_BUILD_IMAGE_VERSION?=latest
define dockerCentOSBuildCmd
set -o xtrace
define dockerBuildCmd
set -o errexit
set -o pipefail
cd /root/onecloud
cd /home/build/onecloud
export GOFLAGS=-mod=vendor
make $(1)
chown -R $(shell id -u):$(shell id -g) _output
endef
docker-centos-build: export dockerCentOSBuildCmd:=$(call dockerCentOSBuildCmd,$(F))
docker-centos-build:
docker-build: export dockerBuildCmd:=$(call dockerBuildCmd,$(F))
docker-build:
echo "$$dockerBuildCmd"
docker rm --force onecloud-ci-build &>/dev/null || true
docker run \
--name onecloud-ci-build \
--rm \
--volume $(CURDIR):/root/onecloud \
--volume $(CURDIR)/_output/_cache:/root/.cache \
registry.cn-beijing.aliyuncs.com/yunionio/centos-build:$(DOCKER_BUILD_IMAGE_VERSION) \
/bin/bash -c "$$dockerCentOSBuildCmd"
--volume $(CURDIR):/home/build/onecloud \
yunionio/onecloud-ci:$(DOCKER_BUILD_IMAGE_VERSION) \
/bin/bash -c "$$dockerBuildCmd"
chown -R $$(id -u):$$(id -g) _output
ls -lh _output/bin
# NOTE we need a way to stop and remove the container started by docker-build.
# No --tty, --stop-signal won't work
docker-centos-build-stop:
docker-centos stop --time 0 onecloud-ci-build || true
docker-build-stop:
docker stop --time 0 onecloud-ci-build || true
.PHONY: docker-centos-build
.PHONY: docker-centos-build-stop
define dockerAlpineBuildCmd
set -o xtrace
set -o errexit
set -o pipefail
cd /root/go/src/yunion.io/x/onecloud
export GOFLAGS=-mod=vendor
make $(1)
chown -R $(shell id -u):$(shell id -g) _output
endef
docker-alpine-build: export dockerAlpineBuildCmd:=$(call dockerAlpineBuildCmd,$(F))
docker-alpine-build:
docker rm --force onecloud-docker-alpine-build &>/dev/null || true
docker run --rm \
--name onecloud-docker-alpine-build \
-v $(CURDIR):/root/go/src/yunion.io/x/onecloud \
-v $(CURDIR)/_output/alpine-build:/root/go/src/yunion.io/x/onecloud/_output \
-v $(CURDIR)/_output/alpine-build/_cache:/root/.cache \
registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-1 \
/bin/sh -c "$$dockerAlpineBuildCmd"
ls -lh _output/alpine-build/bin
docker-alpine-build-stop:
docker stop --time 0 onecloud-docker-alpine-build || true
.PHONY: docker-alpine-build
.PHONY: docker-alpine-build-stop
.PHONY: docker-build
.PHONY: docker-build-stop
define helpText
Build with docker
make docker-centos-build F='-j4'
make docker-centos-build F='-j4 cmd/region cmd/climc'
make docker-centos-build-stop
make docker-alpine-build F='-j4'
make docker-alpine-build F='-j4 cmd/host cmd/host-deployer'
make docker-alpine-build-stop
make docker-build F='-j4'
make docker-build F='-j4 cmd/region cmd/climc'
make docker-build-stop
Tidy up go modules and vendor directory
@@ -272,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,6 +1 @@
DESCRIPTION="Baremetal Agent Command Line Utility"
REQUIRES=(
ipmitool
mkisofs
)
DESCRIPTION="Baremetal Agent Command Line Utility"

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

View File

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

View File

@@ -1 +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,39 +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
# use GNU timeout command replace busybox timeout command
RUN rm /usr/bin/timeout
ADD ./timeout /bin/timeout
ADD ./.timeout.bin /bin/.timeout.bin
ADD ./bundles/timeout /bin/bundles/timeout

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

View File

@@ -1,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
ADD ./_output/bin/monitor /opt/yunion/bin/monitor

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,4 +0,0 @@
FROM alpine:3.11.3
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/region-dns /opt/yunion/bin/region-dns

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base: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,6 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.9.6-1
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/vpcagent /opt/yunion/bin/vpcagent

View File

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

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

View File

@@ -1,2 +0,0 @@
DESCRIPTION="Yunion Host Image Server"
SERVICE="yes"

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
DESCRIPTION="Yunion Cloud noitfy Service"

View File

@@ -84,11 +84,7 @@ func newClient(options *BaseOptions) (*aliyun.SRegion, error) {
return nil, fmt.Errorf("Missing secret")
}
cli, err := aliyun.NewAliyunClient(
aliyun.NewAliyunClientConfig(
options.AccessKey, options.Secret,
).Debug(options.Debug),
)
cli, err := aliyun.NewAliyunClient("", "", options.AccessKey, options.Secret, options.Debug)
if err != nil {
return nil, err
}

View File

@@ -85,13 +85,7 @@ func newClient(options *BaseOptions) (*aws.SRegion, error) {
return nil, fmt.Errorf("Missing secret")
}
cli, err := aws.NewAwsClient(
aws.NewAwsClientConfig(
options.AccessUrl,
options.AccessKey,
options.Secret,
).Debug(options.Debug),
)
cli, err := aws.NewAwsClient("", "", options.AccessUrl, options.AccessKey, options.Secret, options.Debug)
if err != nil {
return nil, err
}

View File

@@ -100,17 +100,11 @@ func newClient(options *BaseOptions) (*azure.SRegion, error) {
return nil, fmt.Errorf("Missing Cloud Environment")
}
cli, err := azure.NewAzureClient(
azure.NewAzureClientConfig(
options.CloudEnv,
options.DirectoryID,
options.ApplicationID,
options.ApplicationKey,
).
SubscriptionId(options.SubscriptionID).
Debug(options.Debug),
)
cli, err := azure.NewAzureClient("", "", options.CloudEnv,
options.DirectoryID,
options.ApplicationID, options.ApplicationKey,
options.SubscriptionID,
options.Debug)
if err != nil {
return nil, err
}

View File

@@ -32,10 +32,8 @@ import (
"yunion.io/x/onecloud/cmd/climc/promputils"
"yunion.io/x/onecloud/cmd/climc/shell"
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudnet"
_ "yunion.io/x/onecloud/cmd/climc/shell/etcd"
_ "yunion.io/x/onecloud/cmd/climc/shell/k8s"
_ "yunion.io/x/onecloud/cmd/climc/shell/monitor"
"yunion.io/x/onecloud/pkg/mcclient"
)

View File

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

View File

@@ -1,52 +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 AnsiblePlaybookV2IdOptions struct {
ID string `help:"name/id of the playbook"`
}
type AnsiblePlaybookV2ListOptions struct {
options.BaseListOptions
}
R(&AnsiblePlaybookV2IdOptions{}, "ansibleplaybookv2-show", "Show ansible playbook", func(s *mcclient.ClientSession, opts *AnsiblePlaybookV2IdOptions) error {
apb, err := modules.AnsiblePlaybooksV2.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(apb)
return nil
})
R(&AnsiblePlaybookV2ListOptions{}, "ansibleplaybookv2-list", "List ansible playbooks", func(s *mcclient.ClientSession, opts *AnsiblePlaybookV2ListOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
apbs, err := modules.AnsiblePlaybooksV2.List(s, params)
if err != nil {
return err
}
printList(apbs, modules.AnsiblePlaybooksV2.GetColumns(s))
return nil
})
}

View File

@@ -1,44 +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 AssociatedBillListOptions struct {
options.BaseListOptions
StartDay int `help:"time range of the associated bills, example: 20060102" required:"true"`
EndDay int `help:"time range of the associated bills, example: 20060102" required:"true"`
ResourceId string `help:"resource id"`
}
R(&AssociatedBillListOptions{}, "associated-bill-list", "List associated bills",
func(s *mcclient.ClientSession, args *AssociatedBillListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.AssociatedBills.List(s, params)
if err != nil {
return err
}
printList(result, modules.AssociatedBills.GetColumns(s))
return nil
})
}

View File

@@ -47,15 +47,6 @@ func init() {
type BaremetalAgentOpsOperations struct {
ID string `help:"ID or name of agent"`
}
R(&BaremetalAgentOpsOperations{}, "agent-show", "Show details of an agent", func(s *mcclient.ClientSession, args *BaremetalAgentOpsOperations) error {
result, err := modules.Baremetalagents.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&BaremetalAgentOpsOperations{}, "agent-enable", "Enable agent", func(s *mcclient.ClientSession, args *BaremetalAgentOpsOperations) error {
result, err := modules.Baremetalagents.PerformAction(s, args.ID, "enable", nil)
if err != nil {

View File

@@ -1,73 +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"
)
func init() {
type BaremetalEventListOptions struct {
HostId string `help:"filter by hostId"`
HostName string `help:"filter by hostname"`
IpmiIp string `help:"filter by ipmi_ip"`
Type string `help:"filter by type" choices:"system|manager"`
PagingMarker string `help:"marker for pagination"`
Limit int `help:"page limit, default 20" default:"20"`
Severity string `help:"filter by severity"`
Since string `help:"Show logs since specific date" metavar:"DATETIME"`
Until string `help:"Show logs until specific date" metavar:"DATETIME"`
}
R(&BaremetalEventListOptions{}, "baremetal-event-list", "List baremetal events", func(s *mcclient.ClientSession, args *BaremetalEventListOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.BaremetalEvents.List(s, params)
if err != nil {
return err
}
printList(result, modules.BaremetalEvents.GetColumns(s))
return nil
})
type BaremetalEventCreateOptions struct {
HOST string `json:"-" help:"Host Id"`
Type string `json:"type" help:"event type" choices:"system|manager"`
EventId string `json:"event_id" help:"original event Id"`
MESSAGE string `json:"message" help:"content of event"`
Severity string `json:"severity" help:"Severity of event"`
CREATED string `json:"created" help:"when event was created"`
}
R(&BaremetalEventCreateOptions{}, "baremetal-event-create", "Create baremetal event", func(s *mcclient.ClientSession, args *BaremetalEventCreateOptions) error {
host, err := modules.Hosts.Get(s, args.HOST, nil)
if err != nil {
return err
}
hostId, _ := host.Get("id")
hostName, _ := host.Get("name")
ipmiIp, _ := host.Get("ipmi_ip")
params := jsonutils.Marshal(args).(*jsonutils.JSONDict)
params.Add(hostId, "host_id")
params.Add(hostName, "host_name")
params.Add(ipmiIp, "ipmi_ip")
result, err := modules.BaremetalEvents.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -18,7 +18,6 @@ import (
"yunion.io/x/jsonutils"
"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"
)
@@ -42,7 +41,7 @@ func init() {
if len(args.Network) > 0 {
params.Add(jsonutils.NewString(args.Network), "network_id")
}
var result *modulebase.ListResult
var result *modules.ListResult
var err error
if len(args.Host) > 0 {
result, err = modules.Baremetalnetworks.ListDescendent(s, args.Host, params)

View File

@@ -18,7 +18,6 @@ import (
"yunion.io/x/jsonutils"
"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"
)
@@ -38,7 +37,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *modules.ListResult
var err error
if len(args.Host) > 0 {
result, err = modules.Baremetalstorages.ListDescendent(s, args.Host, params)

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

@@ -21,12 +21,9 @@ import (
"yunion.io/x/jsonutils"
api "yunion.io/x/onecloud/pkg/apis/compute"
"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"
objectshell "yunion.io/x/onecloud/pkg/multicloud/objectstore"
)
func init() {
@@ -107,11 +104,9 @@ func init() {
})
type BucketListObjectsOptions struct {
ID string `help:"ID or name of bucket" json:"-"`
Prefix string `help:"List objects with prefix"`
Recursive bool `help:"List objects recursively"`
Limit int `help:"maximal items per request"`
PagingMarker string `help:"paging marker"`
ID string `help:"ID or name of bucket" json:"-"`
Prefix string `help:"List objects with prefix"`
Recursive bool `help:"List objects recursively"`
}
R(&BucketListObjectsOptions{}, "bucket-object-list", "List objects in a bucket", func(s *mcclient.ClientSession, args *BucketListObjectsOptions) error {
params, err := options.StructToParams(args)
@@ -123,11 +118,8 @@ func init() {
return err
}
listResult := modulebase.ListResult{}
err = result.Unmarshal(&listResult)
if err != nil {
return err
}
arrays, _ := result.GetArray("objects")
listResult := modules.ListResult{Data: arrays}
printList(&listResult, []string{})
return nil
})
@@ -166,10 +158,9 @@ func init() {
Path string `help:"Path to file to upload" required:"true"`
ContentLength int64 `help:"Content lenght (bytes)" default:"-1"`
ContentType string `help:"Content type"`
StorageClass string `help:"storage CLass"`
Acl string `help:"object acl." choices:"private|public-read|public-read-write"`
objectshell.ObjectHeaderOptions
}
R(&BucketUploadObjectsOptions{}, "bucket-object-upload", "Upload an object into a bucket", func(s *mcclient.ClientSession, args *BucketUploadObjectsOptions) error {
var body io.Reader
@@ -195,9 +186,7 @@ func init() {
return fmt.Errorf("required content-length")
}
meta := args.ObjectHeaderOptions.Options2Header()
err := modules.Buckets.Upload(s, args.ID, args.KEY, body, args.ContentLength, args.StorageClass, args.Acl, meta)
err := modules.Buckets.Upload(s, args.ID, args.KEY, body, args.ContentLength, args.ContentType, args.StorageClass, args.Acl)
if err != nil {
return err
}
@@ -300,27 +289,4 @@ func init() {
printObject(result)
return nil
})
type BucketSetMetadataOptions struct {
ID string `help:"ID or name of bucket" json:"-"`
Key []string `help:"Optional object key" json:"key"`
objectshell.ObjectHeaderOptions
}
R(&BucketSetMetadataOptions{}, "bucket-set-metadata", "Set metadata of object", func(s *mcclient.ClientSession, args *BucketSetMetadataOptions) error {
input := api.BucketMetadataInput{}
input.Key = args.Key
input.Metadata = args.ObjectHeaderOptions.Options2Header()
err := input.Validate()
if err != nil {
return err
}
result, err := modules.Buckets.PerformAction(s, args.ID, "metadata", jsonutils.Marshal(input))
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -16,43 +16,18 @@ package shell
import (
"fmt"
"io/ioutil"
"yunion.io/x/jsonutils"
api "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"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 {
options.BaseListOptions
Capability []string `help:"capability filter" choices:"project|compute|network|loadbalancer|objectstore|rds|cache|event"`
}
R(&CloudaccountListOptions{}, "cloud-account-list", "List cloud accounts", func(s *mcclient.ClientSession, args *CloudaccountListOptions) error {
var params *jsonutils.JSONDict
@@ -62,9 +37,6 @@ func init() {
if err != nil {
return err
}
if len(args.Capability) > 0 {
params.Add(jsonutils.NewStringArray(args.Capability), "capability")
}
}
result, err := modules.Cloudaccounts.List(s, params)
if err != nil {
@@ -114,19 +86,6 @@ func init() {
R(&options.SAliyunCloudAccountCreateOptions{}, "cloud-account-create-aliyun", "Create an Aliyun cloud account", func(s *mcclient.ClientSession, args *options.SAliyunCloudAccountCreateOptions) error {
params := jsonutils.Marshal(args)
params.(*jsonutils.JSONDict).Add(jsonutils.NewString("Aliyun"), "provider")
options := jsonutils.NewDict()
if len(args.OptionsBillingReportBucket) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingReportBucket), "billing_report_bucket")
}
if len(args.OptionsBillingBucketAccount) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingBucketAccount), "billing_bucket_account")
}
if len(args.OptionsBillingFilePrefix) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingFilePrefix), "billing_file_prefix")
}
if options.Size() > 0 {
params.(*jsonutils.JSONDict).Add(options, "options")
}
result, err := modules.Cloudaccounts.Create(s, params)
if err != nil {
return err
@@ -157,37 +116,12 @@ 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()
if len(args.OptionsBillingReportBucket) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingReportBucket), "billing_report_bucket")
}
if len(args.OptionsBillingBucketAccount) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingBucketAccount), "billing_bucket_account")
}
if len(args.OptionsBillingFilePrefix) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingFilePrefix), "billing_file_prefix")
}
if options.Size() > 0 {
params.Add(options, "options")
}
@@ -277,17 +211,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"`
@@ -321,34 +244,6 @@ func init() {
if params.Size() == 0 {
return InvalidUpdateError()
}
options := jsonutils.NewDict()
if len(args.OptionsBillingReportBucket) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingReportBucket), "billing_report_bucket")
}
if len(args.OptionsBillingBucketAccount) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingBucketAccount), "billing_bucket_account")
}
if len(args.OptionsBillingFilePrefix) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingFilePrefix), "billing_file_prefix")
}
if options.Size() > 0 {
params.Add(options, "options")
}
removeOptions := make([]string, 0)
if args.RemoveOptionsBillingReportBucket {
removeOptions = append(removeOptions, "billing_report_bucket")
}
if args.RemoveOptionsBillingBucketAccount {
removeOptions = append(removeOptions, "billing_bucket_account")
}
if args.RemoveOptionsBillingFilePrefix {
removeOptions = append(removeOptions, "billing_file_prefix")
}
if len(removeOptions) > 0 {
params.Add(jsonutils.NewStringArray(removeOptions), "remove_options")
}
result, err := modules.Cloudaccounts.Update(s, args.ID, params)
if err != nil {
return err
@@ -399,19 +294,6 @@ func init() {
return nil
})
R(&options.SGoogleCloudAccountUpdateOptions{}, "cloud-account-update-google", "update a google cloud account", func(s *mcclient.ClientSession, args *options.SGoogleCloudAccountUpdateOptions) 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
})
R(&options.SAWSCloudAccountUpdateOptions{}, "cloud-account-update-aws", "update an AWS cloud account", func(s *mcclient.ClientSession, args *options.SAWSCloudAccountUpdateOptions) error {
params := jsonutils.Marshal(args).(*jsonutils.JSONDict)
@@ -419,12 +301,6 @@ func init() {
if len(args.OptionsBillingReportBucket) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingReportBucket), "billing_report_bucket")
}
if len(args.OptionsBillingBucketAccount) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingBucketAccount), "billing_bucket_account")
}
if len(args.OptionsBillingFilePrefix) > 0 {
options.Add(jsonutils.NewString(args.OptionsBillingFilePrefix), "billing_file_prefix")
}
if options.Size() > 0 {
params.Add(options, "options")
}
@@ -432,12 +308,6 @@ func init() {
if args.RemoveOptionsBillingReportBucket {
removeOptions = append(removeOptions, "billing_report_bucket")
}
if args.RemoveOptionsBillingBucketAccount {
removeOptions = append(removeOptions, "billing_bucket_account")
}
if args.RemoveOptionsBillingFilePrefix {
removeOptions = append(removeOptions, "billing_file_prefix")
}
if len(removeOptions) > 0 {
params.Add(jsonutils.NewStringArray(removeOptions), "remove_options")
}
@@ -453,7 +323,7 @@ func init() {
return nil
})
R(&options.SOpenStackCloudAccountUpdateOptions{}, "cloud-account-update-openstack", "update an OpenStack cloud account", func(s *mcclient.ClientSession, args *options.SOpenStackCloudAccountUpdateOptions) error {
R(&options.SOpenStackCloudAccountUpdateOptions{}, "cloud-account-update-openstack", "update an AWS cloud account", func(s *mcclient.ClientSession, args *options.SOpenStackCloudAccountUpdateOptions) error {
params := jsonutils.Marshal(args).(*jsonutils.JSONDict)
if params.Size() == 0 {
return InvalidUpdateError()
@@ -518,19 +388,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"`
}
@@ -705,19 +562,6 @@ func init() {
return nil
})
R(&options.SGoogleCloudAccountUpdateCredentialOptions{}, "cloud-account-update-credential-google", "Update credential of a Google cloud account", func(s *mcclient.ClientSession, args *options.SGoogleCloudAccountUpdateCredentialOptions) error {
params, err := parseGcpCredential(args.GoogleJsonFile)
if err != nil {
return err
}
result, err := modules.Cloudaccounts.PerformAction(s, args.ID, "update-credential", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.SS3CloudAccountUpdateCredentialOptions{}, "cloud-account-update-credential-s3", "Update credential of a generic S3 cloud account", func(s *mcclient.ClientSession, args *options.SS3CloudAccountUpdateCredentialOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.Cloudaccounts.PerformAction(s, args.ID, "update-credential", params)
@@ -728,16 +572,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"`
@@ -819,49 +653,4 @@ func init() {
printObject(result)
return nil
})
type CloudaccountShareModeOptions struct {
ID string `help:"ID or name of cloud account"`
MODE string `help:"cloud account share mode" choices:"account_domain|system|provider_domain"`
}
R(&CloudaccountShareModeOptions{}, "cloud-account-share-mode", "Set share_mode of a cloud account", func(s *mcclient.ClientSession, args *CloudaccountShareModeOptions) error {
input := api.CloudaccountShareModeInput{}
input.ShareMode = args.MODE
result, err := modules.Cloudaccounts.PerformAction(s, args.ID, "share-mode", jsonutils.Marshal(input))
if err != nil {
return err
}
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

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

View File

@@ -1,82 +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 cloudnet
import (
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudnet"
base_options "yunion.io/x/onecloud/pkg/mcclient/options"
options "yunion.io/x/onecloud/pkg/mcclient/options/cloudnet"
)
func init() {
R(&options.MeshNetworkCreateOptions{}, "meshnetwork-create", "Create mesh network", func(s *mcclient.ClientSession, opts *options.MeshNetworkCreateOptions) error {
params, err := base_options.StructToParams(opts)
if err != nil {
return err
}
mn, err := modules.MeshNetworks.Create(s, params)
if err != nil {
return err
}
printObject(mn)
return nil
})
R(&options.MeshNetworkGetOptions{}, "meshnetwork-show", "Show mesh network", func(s *mcclient.ClientSession, opts *options.MeshNetworkGetOptions) error {
mn, err := modules.MeshNetworks.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(mn)
return nil
})
R(&options.MeshNetworkListOptions{}, "meshnetwork-list", "List mesh networks", func(s *mcclient.ClientSession, opts *options.MeshNetworkListOptions) error {
params, err := base_options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.MeshNetworks.List(s, params)
if err != nil {
return err
}
printList(result, modules.MeshNetworks.GetColumns(s))
return nil
})
R(&options.MeshNetworkUpdateOptions{}, "meshnetwork-update", "Update mesh network", func(s *mcclient.ClientSession, opts *options.MeshNetworkUpdateOptions) error {
params, err := base_options.StructToParams(opts)
mn, err := modules.MeshNetworks.Update(s, opts.ID, params)
if err != nil {
return err
}
printObject(mn)
return nil
})
R(&options.MeshNetworkDeleteOptions{}, "meshnetwork-delete", "Delete mesh network", func(s *mcclient.ClientSession, opts *options.MeshNetworkDeleteOptions) error {
mn, err := modules.MeshNetworks.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(mn)
return nil
})
R(&options.MeshNetworkActionRealizeOptions{}, "meshnetwork-realize", "Realize mesh network", func(s *mcclient.ClientSession, opts *options.MeshNetworkActionRealizeOptions) error {
mn, err := modules.MeshNetworks.PerformAction(s, opts.ID, "realize", nil)
if err != nil {
return err
}
printObject(mn)
return nil
})
}

View File

@@ -1,134 +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 cloudnet
import (
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudnet"
base_options "yunion.io/x/onecloud/pkg/mcclient/options"
options "yunion.io/x/onecloud/pkg/mcclient/options/cloudnet"
)
func init() {
R(&options.RouterCreateOptions{}, "router-create", "Create router", func(s *mcclient.ClientSession, opts *options.RouterCreateOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
router, err := modules.Routers.Create(s, params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouterGetOptions{}, "router-show", "Show router", func(s *mcclient.ClientSession, opts *options.RouterGetOptions) error {
router, err := modules.Routers.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouterListOptions{}, "router-list", "List routers", func(s *mcclient.ClientSession, opts *options.RouterListOptions) error {
params, err := base_options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.Routers.List(s, params)
if err != nil {
return err
}
printList(result, modules.Routers.GetColumns(s))
return nil
})
R(&options.RouterUpdateOptions{}, "router-update", "Update router", func(s *mcclient.ClientSession, opts *options.RouterUpdateOptions) error {
params, err := base_options.StructToParams(opts)
router, err := modules.Routers.Update(s, opts.ID, params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouterDeleteOptions{}, "router-delete", "Delete router", func(s *mcclient.ClientSession, opts *options.RouterDeleteOptions) error {
router, err := modules.Routers.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouterActionJoinMeshNetworkOptions{}, "router-join-meshnetwork", "Router join meshnetwork", func(s *mcclient.ClientSession, opts *options.RouterActionJoinMeshNetworkOptions) error {
params, err := base_options.StructToParams(opts)
if err != nil {
return err
}
router, err := modules.Routers.PerformAction(s, opts.ID, "join-mesh-network", params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouterActionLeaveMeshNetworkOptions{}, "router-leave-meshnetwork", "Router leave meshnetwork", func(s *mcclient.ClientSession, opts *options.RouterActionLeaveMeshNetworkOptions) error {
params, err := base_options.StructToParams(opts)
if err != nil {
return err
}
router, err := modules.Routers.PerformAction(s, opts.ID, "leave-mesh-network", params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouterActionRegisterIfnameOptions{}, "router-register-ifname", "Router register new ifname", func(s *mcclient.ClientSession, opts *options.RouterActionRegisterIfnameOptions) error {
params, err := base_options.StructToParams(opts)
if err != nil {
return err
}
router, err := modules.Routers.PerformAction(s, opts.ID, "register-ifname", params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouterActionUnregisterIfnameOptions{}, "router-unregister-ifname", "Router unregister ifname", func(s *mcclient.ClientSession, opts *options.RouterActionUnregisterIfnameOptions) error {
params, err := base_options.StructToParams(opts)
if err != nil {
return err
}
router, err := modules.Routers.PerformAction(s, opts.ID, "unregister-ifname", params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouterActionRealizeOptions{}, "router-realize", "Router realize", func(s *mcclient.ClientSession, opts *options.RouterActionRealizeOptions) error {
params, err := base_options.StructToParams(opts)
if err != nil {
return err
}
router, err := modules.Routers.PerformAction(s, opts.ID, "realize", params)
if err != nil {
return err
}
printObject(router)
return nil
})
}

View File

@@ -1,74 +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 cloudnet
import (
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudnet"
base_options "yunion.io/x/onecloud/pkg/mcclient/options"
options "yunion.io/x/onecloud/pkg/mcclient/options/cloudnet"
)
func init() {
R(&options.RouteCreateOptions{}, "router-route-create", "Create router route", func(s *mcclient.ClientSession, opts *options.RouteCreateOptions) error {
params, err := base_options.StructToParams(opts)
if err != nil {
return err
}
router, err := modules.Routes.Create(s, params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouteGetOptions{}, "router-route-show", "Show router route", func(s *mcclient.ClientSession, opts *options.RouteGetOptions) error {
router, err := modules.Routes.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouteListOptions{}, "router-route-list", "List router routes", func(s *mcclient.ClientSession, opts *options.RouteListOptions) error {
params, err := base_options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.Routes.List(s, params)
if err != nil {
return err
}
printList(result, modules.Routes.GetColumns(s))
return nil
})
R(&options.RouteUpdateOptions{}, "router-route-update", "Update router route", func(s *mcclient.ClientSession, opts *options.RouteUpdateOptions) error {
params, err := base_options.StructToParams(opts)
router, err := modules.Routes.Update(s, opts.ID, params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RouteDeleteOptions{}, "router-route-delete", "Delete router route", func(s *mcclient.ClientSession, opts *options.RouteDeleteOptions) error {
router, err := modules.Routes.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(router)
return nil
})
}

View File

@@ -1,74 +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 cloudnet
import (
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudnet"
base_options "yunion.io/x/onecloud/pkg/mcclient/options"
options "yunion.io/x/onecloud/pkg/mcclient/options/cloudnet"
)
func init() {
R(&options.RuleCreateOptions{}, "router-rule-create", "Create router rule", func(s *mcclient.ClientSession, opts *options.RuleCreateOptions) error {
params, err := base_options.StructToParams(opts)
if err != nil {
return err
}
router, err := modules.Rules.Create(s, params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RuleGetOptions{}, "router-rule-show", "Show router rule", func(s *mcclient.ClientSession, opts *options.RuleGetOptions) error {
router, err := modules.Rules.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RuleListOptions{}, "router-rule-list", "List router rules", func(s *mcclient.ClientSession, opts *options.RuleListOptions) error {
params, err := base_options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.Rules.List(s, params)
if err != nil {
return err
}
printList(result, modules.Rules.GetColumns(s))
return nil
})
R(&options.RuleUpdateOptions{}, "router-rule-update", "Update router rule", func(s *mcclient.ClientSession, opts *options.RuleUpdateOptions) error {
params, err := base_options.StructToParams(opts)
router, err := modules.Rules.Update(s, opts.ID, params)
if err != nil {
return err
}
printObject(router)
return nil
})
R(&options.RuleDeleteOptions{}, "router-rule-delete", "Delete router rule", func(s *mcclient.ClientSession, opts *options.RuleDeleteOptions) error {
router, err := modules.Rules.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(router)
return nil
})
}

View File

@@ -18,7 +18,6 @@ import (
"yunion.io/x/jsonutils"
"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"
)
@@ -38,7 +37,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *modules.ListResult
var err error
if len(args.Manager) > 0 {
result, err = modules.CloudproviderregionManager.ListDescendent(s, args.Manager, params)

View File

@@ -31,9 +31,8 @@ func init() {
Usable bool `help:"Vpc & Network usable"`
HasObjectStorage bool `help:"filter cloudproviders that has object storage"`
NoObjectStorage bool `help:"filter cloudproviders that has no object storage"`
Capability []string `help:"capability filter" choices:"project|compute|network|loadbalancer|objectstore|rds|cache|event"`
HasObjectStorage bool `help:"filter cloudproviders that has object storage"`
NoObjectStorage bool `help:"filter cloudproviders that has no object storage"`
}
R(&CloudproviderListOptions{}, "cloud-provider-list", "List cloud providers", func(s *mcclient.ClientSession, args *CloudproviderListOptions) error {
var params *jsonutils.JSONDict
@@ -53,10 +52,6 @@ func init() {
} else if args.NoObjectStorage {
params.Add(jsonutils.JSONFalse, "has_object_storage")
}
if len(args.Capability) > 0 {
params.Add(jsonutils.NewStringArray(args.Capability), "capability")
}
}
result, err := modules.Cloudproviders.List(s, params)
if err != nil {

View File

@@ -18,7 +18,6 @@ import (
"yunion.io/x/jsonutils"
"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"
)
@@ -27,9 +26,8 @@ func init() {
type CloudregionListOptions struct {
options.BaseListOptions
Usable *bool `help:"List regions where networks are usable"`
UsableVpc *bool `help:"List regions where VPC are usable"`
Service string `help:"List regions which service has available skus" choices:"dbinstances|servers"`
Usable *bool `help:"List regions where networks are usable"`
UsableVpc *bool `help:"List regions where VPC are usable"`
City string `help:"List regions in the specified city"`
}
@@ -49,7 +47,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"`
@@ -70,7 +68,7 @@ func init() {
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult := modules.ListResult{}
listResult.Data, err = results.GetArray()
if err != nil {
return err
@@ -88,7 +86,7 @@ func init() {
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult := modules.ListResult{}
listResult.Data, err = results.GetArray()
if err != nil {
return err

View File

@@ -18,7 +18,6 @@ import (
"yunion.io/x/jsonutils"
"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"
)
@@ -29,11 +28,10 @@ func init() {
* 操作用户的通信地址(如果用户的通信地址不存在则进行添加;如果已存在则进行修改;如果设置空则进行删除。)
*/
type ContactsUpdateOptions struct {
UID string `help:"The user you wanna add contact to (Keystone User ID)"`
CONTACTTYPE string `help:"The contact type email|mobile" choices:"email|mobile|dingtalk"`
CONTACT string `help:"The contacts details mobile number or email address or dingtalk's userid, if set it the empty str means delete"`
Status string `help:"Enabled or disabled contact status" choices:"enable|disable"`
Pull []string `help:"pull some subcontacts(e.g., dingtalk, feishu, etc) related to mobile"`
UID string `help:"The user you wanna add contact to (Keystone User ID)"`
CONTACTTYPE string `help:"The contact type" choices:"email|mobile"`
CONTACT string `help:"The contacts details mobile number or email address, if set it the empty str means delete"`
Status string `help:"Enabled or disabled contact status" choices:"enable|disable"`
}
R(&ContactsUpdateOptions{}, "contact-update", "Create, delete or update contact for user", func(s *mcclient.ClientSession, args *ContactsUpdateOptions) error {
arr := jsonutils.NewArray()
@@ -42,9 +40,9 @@ func init() {
tmpObj.Add(jsonutils.NewString(args.CONTACT), "contact")
if len(args.Status) > 0 {
if args.Status == "disable" {
tmpObj.Add(jsonutils.NewInt(0), "enabled")
tmpObj.Add(jsonutils.JSONFalse, "enabled")
} else {
tmpObj.Add(jsonutils.NewInt(1), "enabled")
tmpObj.Add(jsonutils.JSONTrue, "enabled")
}
}
@@ -53,13 +51,8 @@ func init() {
params := jsonutils.NewDict()
params.Add(arr, "contacts")
pulls := jsonutils.NewArray()
for _, pull := range args.Pull {
pulls.Add(jsonutils.NewString(pull))
}
params.Add(pulls, "pull")
contact, err := modules.Contacts.PerformAction(s, args.UID, "update-contact", params)
contact, err := modules.Contacts.CustomizedPerformAction(s, args.UID, "update-contact", params)
if err != nil {
return err
}
@@ -68,25 +61,9 @@ func init() {
return nil
})
type ContactsPullOptions struct {
UID string `help:"The user you wanna pull contact"`
CONTACTTYPE string `help:"The contact type"`
}
R(&ContactsPullOptions{}, "contact-pull", "Pull contact", func(s *mcclient.ClientSession, args *ContactsPullOptions) error {
params := jsonutils.NewDict()
params.Set("contacts", jsonutils.NewArray())
params.Set("pull", jsonutils.NewArray(jsonutils.NewString(args.CONTACTTYPE)))
contact, err := modules.Contacts.CustomizedPerformAction(s, args.UID, "update-contact", params)
if err != nil {
return err
}
printObject(contact)
return nil
})
type ContactsDeleteOptions struct {
UID string `help:"The user you wanna add contact to (Keystone User ID)"`
CONTACTTYPE string `help:"The contact type email|mobile|dingtalk" choices:"email|mobile|dingtalk"`
CONTACTTYPE string `help:"The contact type" choices:"email|mobile"`
}
R(&ContactsDeleteOptions{}, "contact-delete", "Delete contact for user", func(s *mcclient.ClientSession, args *ContactsDeleteOptions) error {
arr := jsonutils.NewArray()
@@ -96,7 +73,7 @@ func init() {
arr.Add(tmpObj)
params := jsonutils.NewDict()
params.Add(arr, "contacts")
contact, err := modules.Contacts.CustomizedPerformAction(s, args.UID, "update-contact", params)
contact, err := modules.Contacts.PerformAction(s, args.UID, "update-contact", params)
if err != nil {
return err
}
@@ -120,7 +97,6 @@ func init() {
}
}
params.Add(jsonutils.JSONTrue, "details")
result, err := modules.Contacts.List(s, params)
if err != nil {
@@ -149,16 +125,14 @@ func init() {
}
}
params.Add(jsonutils.JSONTrue, "details")
result, err := modules.Contacts.CustomizedGet(s, args.UID, params)
result, err := modules.Contacts.Get(s, args.UID, params)
if err != nil {
return err
}
contactsStr, err := result.GetString("details")
if err != nil {
return nil
return err
}
contactsJson, err := jsonutils.ParseString(contactsStr)
@@ -171,7 +145,7 @@ func init() {
return err
}
printList(&modulebase.ListResult{Data: contacts}, nil)
printList(&modules.ListResult{Data: contacts}, nil)
return nil
})
@@ -184,10 +158,19 @@ func init() {
CONTACT string `help:"The contacts details mobile number or email address"`
}
R(&ContactsVerifyOptions{}, "contact-verify-trigger", "Trigger contact verify", func(s *mcclient.ClientSession, args *ContactsVerifyOptions) error {
tmpDict := jsonutils.NewDict()
tmpDict.Add(jsonutils.NewString(args.CONTACT_TYPE), "contact_type")
tmpDict.Add(jsonutils.NewString(args.CONTACT), "contact")
_, err := modules.Contacts.CustomizedPerformAction(s, args.UID, "verify", tmpDict)
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.CONTACT_TYPE), "contact_type")
params.Add(jsonutils.NewString(args.CONTACT), "contact")
/*
if len(args.Email) > 0 {
params.Add(jsonutils.NewString(args.Email), "email")
}
if len(args.Mobile) > 0 {
params.Add(jsonutils.NewString(args.Mobile), "mobile")
}
*/
_, err := modules.Contacts.PerformAction(s, args.UID, "verify", params)
if err != nil {
return err
}

View File

@@ -15,14 +15,7 @@
package shell
import (
"bufio"
"bytes"
"encoding/base64"
"fmt"
"io/ioutil"
"mime/multipart"
"net/http"
"path/filepath"
"yunion.io/x/jsonutils"
@@ -63,78 +56,4 @@ func init() {
printObject(r)
return nil
})
type EnterpriseUpdateOptions struct {
Name string `help:"Enterprise name"`
Copyright string `help:"The Email"`
Logo string `help:"logo file path"`
LoginLogo string `help:"login page logo file path"`
Favicon string `help:"favicon path"`
}
R(&EnterpriseUpdateOptions{}, "infos-update", "update enterprise info", func(s *mcclient.ClientSession, args *EnterpriseUpdateOptions) error {
var b bytes.Buffer
w := multipart.NewWriter(&b)
if len(args.Name) > 0 {
w.WriteField("name", args.Name)
}
if len(args.Copyright) > 0 {
w.WriteField("copyright", args.Copyright)
}
writeFile := func(filedName, filePath string) error {
if len(filePath) == 0 {
return nil
}
c, err := ioutil.ReadFile(filePath)
if err != nil {
return err
}
var v string
c64 := base64.StdEncoding.EncodeToString(c)
ext := filepath.Ext(filePath)
switch ext {
case ".png":
v = fmt.Sprintf("data:image/png;base64,%s", c64)
case ".jpg":
v = fmt.Sprintf("data:image/jpg;base64,%s", c64)
default:
return fmt.Errorf("only support png/jpg image")
}
err = w.WriteField(filedName, v)
if err != nil {
return err
}
return nil
}
if err := writeFile("logo", args.Logo); err != nil {
return err
}
if err := writeFile("login_logo", args.LoginLogo); err != nil {
return err
}
if err := writeFile("favicon", args.Favicon); err != nil {
return err
}
header := make(http.Header)
header.Set("content-type", fmt.Sprintf("multipart/form-data; boundary=%s", w.Boundary()))
w.Close()
ret, err := modules.Info.Update(s, header, bufio.NewReader(&b))
if err != nil {
return err
}
printObject(ret)
return nil
})
}

View File

@@ -21,7 +21,6 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules"
)
@@ -205,7 +204,7 @@ func init() {
if err != nil {
return err
}
result := modulebase.ListResult{}
result := modules.ListResult{}
result.Data = make([]jsonutils.JSONObject, len(secrets))
for i := range secrets {
result.Data[i] = jsonutils.Marshal(secrets[i])

View File

@@ -1,64 +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 DBInstanceAccountListOptions struct {
options.BaseListOptions
DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
}
R(&DBInstanceAccountListOptions{}, "dbinstance-account-list", "List DB instance accounts", func(s *mcclient.ClientSession, opts *DBInstanceAccountListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstanceAccounts.List(s, params)
if err != nil {
return err
}
printList(result, modules.DBInstanceAccounts.GetColumns(s))
return nil
})
type DBInstanceAccountIdOptions struct {
ID string `help:"ID or Name of DBInstanceaccount"`
}
R(&DBInstanceAccountIdOptions{}, "dbinstance-account-show", "Show DB instance account", func(s *mcclient.ClientSession, opts *DBInstanceAccountIdOptions) error {
account, err := modules.DBInstanceAccounts.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(account)
return nil
})
R(&DBInstanceAccountIdOptions{}, "dbinstance-account-delete", "Delete DB instance account", func(s *mcclient.ClientSession, opts *DBInstanceAccountIdOptions) error {
account, err := modules.DBInstanceAccounts.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(account)
return nil
})
}

View File

@@ -1,91 +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 DBInstanceBackupListOptions struct {
options.BaseListOptions
DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
Cloudregion string `help:"ID or Name of cloudregion"`
}
R(&DBInstanceBackupListOptions{}, "dbinstance-backup-list", "List DB instance backups", func(s *mcclient.ClientSession, opts *DBInstanceBackupListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstanceBackups.List(s, params)
if err != nil {
return err
}
printList(result, modules.DBInstanceBackups.GetColumns(s))
return nil
})
type DBInstanceBackupCreateOptions struct {
INSTANCE string `help:"ID or Name of DBInstance" json:"dbinstance"`
NAME string
Databases []string
Description string
}
R(&DBInstanceBackupCreateOptions{}, "dbinstance-backup-create", "Create DB instance backup", func(s *mcclient.ClientSession, opts *DBInstanceBackupCreateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(opts.INSTANCE), "dbinstance")
params.Add(jsonutils.NewString(opts.NAME), "name")
params.Add(jsonutils.NewString(opts.Description), "description")
databases := jsonutils.NewArray()
for _, database := range opts.Databases {
databases.Add(jsonutils.NewString(database))
}
params.Add(databases, "databases")
result, err := modules.DBInstanceBackups.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceBackupIdOptions struct {
ID string
}
R(&DBInstanceBackupIdOptions{}, "dbinstance-backup-show", "Show DB instance backup", func(s *mcclient.ClientSession, opts *DBInstanceBackupIdOptions) error {
result, err := modules.DBInstanceBackups.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceBackupIdOptions{}, "dbinstance-backup-delete", "Delete DB instance backup", func(s *mcclient.ClientSession, opts *DBInstanceBackupIdOptions) error {
result, err := modules.DBInstanceBackups.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -1,74 +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 DBInstanceDatabaseListOptions struct {
options.BaseListOptions
DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
}
R(&DBInstanceDatabaseListOptions{}, "dbinstance-database-list", "List DB instance databases", func(s *mcclient.ClientSession, opts *DBInstanceDatabaseListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstanceDatabases.List(s, params)
if err != nil {
return err
}
printList(result, modules.DBInstanceDatabases.GetColumns(s))
return nil
})
type DBInstanceDatabaseCreateOptions struct {
NAME string
DBINSTANCE string `help:"ID or Name of DBInstance" json:"dbinstance"`
CharacterSet string `help:"CharacterSet for database"`
}
R(&DBInstanceDatabaseCreateOptions{}, "dbinstance-database-create", "Create DB instance databases", func(s *mcclient.ClientSession, opts *DBInstanceDatabaseCreateOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstanceDatabases.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceDatabaseIdOptions struct {
ID string
}
R(&DBInstanceDatabaseIdOptions{}, "dbinstance-database-delete", "Delete DB instance databases", func(s *mcclient.ClientSession, opts *DBInstanceDatabaseIdOptions) error {
result, err := modules.DBInstanceDatabases.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -1,58 +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 DBInstanceSkuListOption struct {
options.BaseListOptions
Engine string
EngineVersion string
Category string
StorageType string
Cloudregion string
}
R(&DBInstanceSkuListOption{}, "dbinstance-sku-list", "List dbinstance skus", func(s *mcclient.ClientSession, args *DBInstanceSkuListOption) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.DBInstanceSkus.List(s, params)
if err != nil {
return err
}
printList(result, modules.DBInstanceSkus.GetColumns(s))
return nil
})
type DBInstanceSkuIdOption struct {
ID string `help:"DBInstance Id or name"`
}
R(&DBInstanceSkuIdOption{}, "dbinstance-sku-show", "Show dbinstance sku details", func(s *mcclient.ClientSession, args *DBInstanceSkuIdOption) error {
result, err := modules.DBInstanceSkus.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -15,13 +15,7 @@
package shell
import (
"fmt"
"strings"
"yunion.io/x/jsonutils"
"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"
)
@@ -45,228 +39,6 @@ func init() {
return nil
})
type DBInstanceCreateOptions struct {
NAME string `help:"DBInstance Name"`
InstanceType string `help:"InstanceType for DBInstance"`
VcpuCount int `help:"Core of cpu for DBInstance"`
VmemSizeMb int `help:"Memory size of DBInstance"`
Port int `help:"Port of DBInstance"`
Category string `help:"Category of DBInstance"`
Network string `help:"Network of DBInstance"`
Address string `help:"Address of DBInstance"`
Engine string `help:"Engine of DBInstance"`
EngineVersion string `help:"EngineVersion of DBInstance Engine"`
StorageType string `help:"StorageTyep of DBInstance"`
Secgroup string `help:"Secgroup name or Id for DBInstance"`
Zone string `help:"ZoneId or name for DBInstance"`
DiskSizeGB int `help:"Storage size for DBInstance"`
Duration string `help:"Duration for DBInstance"`
AllowDelete *bool `help:"not lock dbinstance" `
}
R(&DBInstanceCreateOptions{}, "dbinstance-create", "Create DB instance", func(s *mcclient.ClientSession, opts *DBInstanceCreateOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
return err
}
if opts.AllowDelete != nil && *opts.AllowDelete {
params.Add(jsonutils.JSONFalse, "disable_delete")
}
result, err := modules.DBInstance.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceRenewOptions struct {
ID string `help:"ID or name of server to renew"`
DURATION string `help:"Duration of renew, ADMIN only command"`
}
R(&DBInstanceRenewOptions{}, "dbinstance-renew", "Renew a dbinstance", func(s *mcclient.ClientSession, args *DBInstanceRenewOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.DURATION), "duration")
result, err := modules.DBInstance.PerformAction(s, args.ID, "renew", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceUpdateOptions struct {
ID string `help:"ID or name of server to renew"`
Name string
Description string
Delete string `help:"Lock or not lock dbinstance" choices:"enable|disable"`
}
R(&DBInstanceUpdateOptions{}, "dbinstance-update", "Update a dbinstance", func(s *mcclient.ClientSession, args *DBInstanceUpdateOptions) error {
params, err := options.StructToParams(args)
if err != nil {
return err
}
if len(args.Delete) > 0 {
if args.Delete == "disable" {
params.Add(jsonutils.JSONTrue, "disable_delete")
} else {
params.Add(jsonutils.JSONFalse, "disable_delete")
}
}
result, err := modules.DBInstance.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceChangeConfigOptions struct {
ID string `help:"ID or name of server to renew"`
DiskSizeGb int64 `help:"Change DBInstance storage size"`
VcpuCount int64 `help:"Change DBInstance vcpu count"`
VmemSizeMb int64 `help:"Change DBInstance vmem size mb"`
InstanceType string `help:"Change DBInstance instanceType"`
Category string `help:"Change DBInstance category"`
}
R(&DBInstanceChangeConfigOptions{}, "dbinstance-change-config", "ChangeConfig a dbinstance", func(s *mcclient.ClientSession, args *DBInstanceChangeConfigOptions) error {
params := jsonutils.NewDict()
if len(args.Category) > 0 {
params.Add(jsonutils.NewString(args.Category), "category")
}
if len(args.InstanceType) > 0 {
params.Add(jsonutils.NewString(args.InstanceType), "instance_type")
}
if args.DiskSizeGb > 0 {
params.Add(jsonutils.NewInt(args.DiskSizeGb), "disk_size_gb")
}
if args.VcpuCount > 0 {
params.Add(jsonutils.NewInt(args.VcpuCount), "vcpu_count")
}
if args.VmemSizeMb > 0 {
params.Add(jsonutils.NewInt(args.VmemSizeMb), "vmeme_size_mb")
}
result, err := modules.DBInstance.PerformAction(s, args.ID, "change-config", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceIdOptions struct {
ID string `help:"ID of dbinstance"`
}
R(&DBInstanceIdOptions{}, "dbinstance-open-public-connection", "Open DB instance public connection", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.JSONTrue, "open")
result, err := modules.DBInstance.PerformAction(s, opts.ID, "public-connection", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-close-public-connection", "Close DB instance public connection", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.JSONFalse, "open")
result, err := modules.DBInstance.PerformAction(s, opts.ID, "public-connection", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceRecoveryOptions struct {
ID string
BACKUP string
Databases []string
}
R(&DBInstanceRecoveryOptions{}, "dbinstance-recovery", "Recovery DB instance database from backup", func(s *mcclient.ClientSession, opts *DBInstanceRecoveryOptions) error {
params := jsonutils.NewDict()
params.Set("dbinstancebackup", jsonutils.NewString(opts.BACKUP))
dbs := jsonutils.NewDict()
for _, database := range opts.Databases {
if len(database) > 0 {
dbInfo := strings.Split(database, ":")
if len(dbInfo) == 1 {
dbs.Add(jsonutils.NewString(dbInfo[0]), dbInfo[0])
} else if len(dbInfo) == 2 {
dbs.Add(jsonutils.NewString(dbInfo[1]), dbInfo[0])
} else {
return fmt.Errorf("Invalid dbinfo: %s", database)
}
}
}
if dbs.Length() > 0 {
params.Add(dbs, "databases")
}
result, err := modules.DBInstance.PerformAction(s, opts.ID, "recovery", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-show", "Show DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-reboot", "Reboot DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.PerformAction(s, opts.ID, "reboot", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceDeleteOptions struct {
ID string `help:"DBInstance Id or name"`
KeepBackup bool `help:"Keep dbinstance manual backup after delete dbinstance"`
}
R(&DBInstanceDeleteOptions{}, "dbinstance-delete", "Delete DB instance", func(s *mcclient.ClientSession, opts *DBInstanceDeleteOptions) error {
params := jsonutils.NewDict()
if opts.KeepBackup {
params.Add(jsonutils.JSONTrue, "keep_backup")
}
result, err := modules.DBInstance.Delete(s, opts.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-purge", "Purge DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.PerformAction(s, opts.ID, "purge", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&DBInstanceIdOptions{}, "dbinstance-sync-status", "Sync status for DB instance", func(s *mcclient.ClientSession, opts *DBInstanceIdOptions) error {
result, err := modules.DBInstance.PerformAction(s, opts.ID, "sync-status", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type DBInstanceNetworkListOptions struct {
options.BaseListOptions
DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
@@ -278,7 +50,7 @@ func init() {
return err
}
var result *modulebase.ListResult
var result *modules.ListResult
if len(opts.DBInstance) > 0 {
result, err = modules.DBInstanceNetworks.ListDescendent(s, opts.DBInstance, params)
} else if len(opts.Network) > 0 {
@@ -312,6 +84,74 @@ func init() {
return nil
})
type DBInstanceDatabaseListOptions struct {
options.BaseListOptions
DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
}
R(&DBInstanceDatabaseListOptions{}, "dbinstance-database-list", "List DB instance databases", func(s *mcclient.ClientSession, opts *DBInstanceDatabaseListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstanceDatabases.List(s, params)
if err != nil {
return err
}
printList(result, modules.DBInstanceDatabases.GetColumns(s))
return nil
})
type DBInstanceBackupListOptions struct {
options.BaseListOptions
DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
Cloudregion string `help:"ID or Name of cloudregion"`
}
R(&DBInstanceBackupListOptions{}, "dbinstance-backup-list", "List DB instance backups", func(s *mcclient.ClientSession, opts *DBInstanceBackupListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstanceBackups.List(s, params)
if err != nil {
return err
}
printList(result, modules.DBInstanceBackups.GetColumns(s))
return nil
})
type DBInstanceAccountListOptions struct {
options.BaseListOptions
DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
}
R(&DBInstanceAccountListOptions{}, "dbinstance-account-list", "List DB instance accounts", func(s *mcclient.ClientSession, opts *DBInstanceAccountListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstanceAccounts.List(s, params)
if err != nil {
return err
}
printList(result, modules.DBInstanceAccounts.GetColumns(s))
return nil
})
type DBInstanceAccountIdOptions struct {
ID string `help:"ID or Name of DBInstanceaccount"`
}
R(&DBInstanceAccountIdOptions{}, "dbinstance-account-show", "Show DB instance account", func(s *mcclient.ClientSession, opts *DBInstanceAccountIdOptions) error {
account, err := modules.DBInstanceAccounts.Get(s, opts.ID, nil)
if err != nil {
return err
}
printObject(account)
return nil
})
type DBInstancePrivilegeListOptions struct {
options.BaseListOptions
DBInstanceaccount string `help:"ID or Name of DBInstanceaccount" json:"dbinstanceaccount"`
@@ -331,21 +171,4 @@ func init() {
return nil
})
type DBInstanceChangeOwnerOptions struct {
ID string `help:"DBInstance to change owner" json:"-"`
PROJECT string `help:"Project ID or change" json:"tenant"`
}
R(&DBInstanceChangeOwnerOptions{}, "dbinstance-change-owner", "Change owner porject of a dbinstance", func(s *mcclient.ClientSession, opts *DBInstanceChangeOwnerOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
return err
}
result, err := modules.DBInstance.PerformAction(s, opts.ID, "change-owner", params)
if err != nil {
return err
}
printObject(result)
return nil
})
}

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

@@ -81,7 +81,6 @@ func init() {
type DiskDeleteOptions struct {
ID []string `help:"ID of disks to delete" metavar:"DISK"`
OverridePendingDelete bool `help:"Delete disk directly instead of pending delete" short-token:"f"`
DeleteSnapshots bool `help:"Delete disk snapshots before delete disk"`
}
R(&DiskDeleteOptions{}, "disk-delete", "Delete a disk", func(s *mcclient.ClientSession, args *DiskDeleteOptions) error {
@@ -89,9 +88,6 @@ func init() {
if args.OverridePendingDelete {
params.Add(jsonutils.JSONTrue, "override_pending_delete")
}
if args.DeleteSnapshots {
params.Add(jsonutils.JSONTrue, "delete_snapshots")
}
ret := modules.Disks.BatchDeleteWithParam(s, args.ID, params, nil)
printBatchResults(ret, modules.Disks.GetColumns(s))
return nil

View File

@@ -1,386 +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() {
R(&options.BaseListOptions{}, "elastic-cache-list", "List elastisc cache instance", func(s *mcclient.ClientSession, opts *options.BaseListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCache.List(s, params)
if err != nil {
return err
}
printList(result, nil)
return nil
})
R(&options.ElasticCacheCreateOptions{}, "elastic-cache-create", "Create elastisc cache instance", func(s *mcclient.ClientSession, opts *options.ElasticCacheCreateOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCache.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-restart", "Restart elastisc cache instance", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
result, err := modules.ElasticCache.PerformAction(s, opts.ID, "restart", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-flush-instance", "Flush elastisc cache instance", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
result, err := modules.ElasticCache.PerformAction(s, opts.ID, "flush-instance", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-delete", "Delete elastisc cache instance", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
result, err := modules.ElasticCache.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type ElasticCacheChangeSpecOptions struct {
options.ElasticCacheIdOptions
Sku string `help:"elastic cache sku id"`
}
R(&ElasticCacheChangeSpecOptions{}, "elastic-cache-change-spec", "Change elastisc cache instance specification", func(s *mcclient.ClientSession, opts *ElasticCacheChangeSpecOptions) error {
params := jsonutils.NewDict()
params.Set("sku", jsonutils.NewString(opts.Sku))
result, err := modules.ElasticCache.PerformAction(s, opts.ID, "change-spec", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type ElasticCacheMainteananceTimeOptions struct {
options.ElasticCacheIdOptions
START_TIME string `help:"elastic cache sku maintenance start time,format: HH:mm"`
END_TIME string `help:"elastic cache sku maintenance end time, format: HH:mm"`
}
R(&ElasticCacheMainteananceTimeOptions{}, "elastic-cache-set-maintenance-time", "set elastisc cache instance maintenance time", func(s *mcclient.ClientSession, opts *ElasticCacheMainteananceTimeOptions) error {
params := jsonutils.NewDict()
start := fmt.Sprintf("%sZ", opts.START_TIME)
end := fmt.Sprintf("%sZ", opts.END_TIME)
params.Set("maintain_start_time", jsonutils.NewString(start))
params.Set("maintain_end_time", jsonutils.NewString(end))
result, err := modules.ElasticCache.PerformAction(s, opts.ID, "set-maintain-time", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-allocate-public-connect", "Allocate elastisc cache instance public access connection", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
result, err := modules.ElasticCache.PerformAction(s, opts.ID, "allocate-public-connection", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-enable-auth", "Enable elastisc cache instance auth", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
params := jsonutils.NewDict()
params.Set("auth_mode", jsonutils.NewString("on"))
result, err := modules.ElasticCache.PerformAction(s, opts.ID, "update-auth-mode", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-disable-auth", "Disable elastisc cache instance auth", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
params := jsonutils.NewDict()
params.Set("auth_mode", jsonutils.NewString("off"))
result, err := modules.ElasticCache.PerformAction(s, opts.ID, "update-auth-mode", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type ElasticCacheAccountResetPasswordOptions struct {
options.ElasticCacheIdOptions
PASSWORD string `help:"elastic cache account password."`
}
R(&ElasticCacheAccountResetPasswordOptions{}, "elastic-cache-account-reset-password", "Reset elastisc cache instance account password", func(s *mcclient.ClientSession, opts *ElasticCacheAccountResetPasswordOptions) error {
params := jsonutils.NewDict()
params.Set("password", jsonutils.NewString(opts.PASSWORD))
result, err := modules.ElasticCacheAccount.PerformAction(s, opts.ID, "reset-password", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type ElasticCacheBaseListOptions struct {
options.BaseListOptions
ElasticcacheId string `help:"elastic cache id"`
}
R(&ElasticCacheBaseListOptions{}, "elastic-cache-account-list", "List elastisc cache account", func(s *mcclient.ClientSession, opts *ElasticCacheBaseListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCacheAccount.List(s, params)
if err != nil {
return err
}
printList(result, nil)
return nil
})
R(&options.ElasticCacheAccountCreateOptions{}, "elastic-cache-account-create", "Create elastisc cache account", func(s *mcclient.ClientSession, opts *options.ElasticCacheAccountCreateOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCacheAccount.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-account-delete", "Delete elastisc cache account", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
result, err := modules.ElasticCacheAccount.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheBackupCreateOptions{}, "elastic-cache-backup-create", "Create elastisc cache backup", func(s *mcclient.ClientSession, opts *options.ElasticCacheBackupCreateOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCacheBackup.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.BaseListOptions{}, "elastic-cache-backup-list", "List elastisc cache backup", func(s *mcclient.ClientSession, opts *options.BaseListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCacheBackup.List(s, params)
if err != nil {
return err
}
printList(result, nil)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-backup-delete", "Delete elastisc cache backup", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
result, err := modules.ElasticCacheBackup.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-backup-restore", "Restore elastisc cache backup", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
result, err := modules.ElasticCacheBackup.PerformAction(s, opts.ID, "restore-instance", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheAclCreateOptions{}, "elastic-cache-acl-create", "Create elastisc cache acl", func(s *mcclient.ClientSession, opts *options.ElasticCacheAclCreateOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCacheAcl.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ElasticCacheIdOptions{}, "elastic-cache-acl-delete", "Delete elastisc cache acl", func(s *mcclient.ClientSession, opts *options.ElasticCacheIdOptions) error {
result, err := modules.ElasticCacheAcl.Delete(s, opts.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.BaseListOptions{}, "elastic-cache-acl-list", "List elastisc cache acl", func(s *mcclient.ClientSession, opts *options.BaseListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCacheAcl.List(s, params)
if err != nil {
return err
}
printList(result, nil)
return nil
})
R(&options.ElasticCacheAclUpdateOptions{}, "elastic-cache-acl-update", "Update elastisc cache acl", func(s *mcclient.ClientSession, opts *options.ElasticCacheAclUpdateOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
params.Remove("id")
result, err := modules.ElasticCacheAcl.Update(s, opts.Id, params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.BaseListOptions{}, "elastic-cache-parameter-list", "List elastisc cache parameters", func(s *mcclient.ClientSession, opts *options.BaseListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticCacheParameter.List(s, params)
if err != nil {
return err
}
printList(result, nil)
return nil
})
R(&options.ElasticCacheParameterUpdateOptions{}, "elastic-cache-parameter-update", "Update elastisc cache parameter", func(s *mcclient.ClientSession, opts *options.ElasticCacheParameterUpdateOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
params.Remove("id")
result, err := modules.ElasticCacheParameter.Update(s, opts.Id, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type ElasticCacheSkusListOptions struct {
options.BaseListOptions
Cloudregion string `help:"region Id or name"`
Usable bool `help:"Filter usable sku"`
Zone string `help:"zone Id or name"`
City *string `help:"city name,eg. BeiJing"`
LocalCategory *string `help:"local category,eg. single"`
EngineVersion *string `help:"engine version,eg. 3.0"`
Cpu *int `help:"Cpu core count" json:"cpu_core_count"`
Mem *int `help:"Memory size in MB" json:"memory_size_mb"`
Name string `help:"Name of Sku"`
}
R(&ElasticCacheSkusListOptions{}, "elastic-cache-sku-list", "List elastisc cache sku", func(s *mcclient.ClientSession, opts *ElasticCacheSkusListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.ElasticcacheSkus.List(s, params)
if err != nil {
return err
}
printList(result, nil)
return nil
})
}

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