Compare commits

...

1183 Commits

Author SHA1 Message Date
Zexi Li
26b2312ad0 Merge pull request #14255 from swordqiu/automated-cherry-pick-of-#14249-upstream-release-3.8
Automated cherry pick of #14249: fix(apigateway): 修复oidc认证中,返回的id_token为空
2022-05-15 15:09:12 +08:00
屈轩
cccc1e1b70 fix(region): secgroup guest cnt (#14242) 2022-05-13 22:05:27 +08:00
huangzekeng
415ae7933c fix(apigateway): 修复oidc认证中,返回的id_token为空
修复odic认证返回的id_token为空
2022-05-13 21:53:33 +08:00
Zexi Li
b6348499af Merge pull request #14247 from zexi/automated-cherry-pick-of-#14246-upstream-release-3.8
Automated cherry pick of #14246: feat(climc): SERVERIDS of devtool batch apply
2022-05-13 17:35:36 +08:00
屈轩
01b82a4170 fix(reigon): ecloud sign time (#14252) 2022-05-13 17:28:14 +08:00
Zexi Li
56692f9349 feat(climc): SERVERIDS of devtool batch apply 2022-05-13 13:42:38 +08:00
Zexi Li
653bb5a76a Merge pull request #14245 from swordqiu/automated-cherry-pick-of-#14243-upstream-release-3.8
Automated cherry pick of #14243: fix: set procutils execution LANG env
2022-05-13 10:07:16 +08:00
Qiu Jian
321568726e fix: set procutils execution LANG env 2022-05-12 19:04:33 +08:00
Zexi Li
20e98510a3 fix(region): get spec of baremetal in ready status (#14235) 2022-05-11 08:30:01 +08:00
Jian Qiu
e361a1be28 fix: ignore no partition error for initial deployment (#14222)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-08 23:42:39 +08:00
屈轩
61590acbc2 fix(region): remove metadata (#14216) 2022-05-07 20:35:28 +08:00
yunion-ci-robot
0b6405774c Merge pull request #14212 from zexi/automated-cherry-pick-of-#14211-upstream-release-3.8
Automated cherry pick of #14211: Server usb filter
2022-05-07 19:34:32 +08:00
Zexi Li
7c8d7d30c7 fix(region): server usb filter 2022-05-07 19:22:30 +08:00
Zexi Li
79c21982a0 fix(baremetal): try clear jbod devices before create (#14179) 2022-05-01 21:37:04 +08:00
Jian Qiu
d9b514ef71 fix: clean temp server when migrate prepare dest fail (#14176)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-29 08:11:14 +08:00
Jian Qiu
eb1c333b2d fix(host): fix get disk pci addr (#14173)
Fix hot-plug virtio disk failed.
after add usb and rng deivce, available pci address should update.

Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>

Co-authored-by: wanyaoqi <wanyaoqi1995@163.com>
2022-04-29 02:45:57 +08:00
Zexi Li
a17016ae7c fix(baremetal): bond network not config and chage not found (#14149) 2022-04-26 02:49:44 +08:00
Zexi Li
bd7d174d0d Merge pull request #14143 from swordqiu/automated-cherry-pick-of-#14141-upstream-release-3.8
Automated cherry pick of #14141: fix: fail to delete storages with fake-deleted snapshots
2022-04-26 02:26:02 +08:00
Qiu Jian
e735c800a2 fix: fail to delete storages with fake-deleted snapshots 2022-04-25 22:53:36 +08:00
Zexi Li
69a3dd46b0 Merge pull request #14132 from ioito/automated-cherry-pick-of-#14130-upstream-release-3.8
Automated cherry pick of #14130: fix(region): vdi check
2022-04-24 19:20:07 +08:00
ioito
6c2cad69db fix(region): vdi check 2022-04-24 17:13:06 +08:00
Zexi Li
f9ad5e33dc Merge pull request #14126 from ioito/automated-cherry-pick-of-#14120-upstream-release-3.8
Automated cherry pick of #14120: fix(host): mount disk error
2022-04-24 15:05:36 +08:00
Zexi Li
16993c2e67 Merge pull request #14123 from zexi/host-access-ip-update
fix(region): make access_ip of host updatable
2022-04-24 14:29:15 +08:00
ioito
be5047af40 fix(host): mount disk error 2022-04-24 11:48:43 +08:00
Zexi Li
800cca4222 fix(region): make access_ip of host updatable 2022-04-24 11:40:21 +08:00
Jian Qiu
37c4927554 fix: imags peripherals missing id (#14116)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-23 19:21:53 +08:00
Zexi Li
a933f4934c Merge pull request #14107 from ioito/automated-cherry-pick-of-#14105-upstream-release-3.8
Automated cherry pick of #14105: fix(region): avoid panic
2022-04-22 14:20:38 +08:00
ioito
aa4aa35bd4 fix(region): avoid panic 2022-04-22 11:04:13 +08:00
Zexi Li
bab73aac3f Merge pull request #14095 from ioito/automated-cherry-pick-of-#14093-upstream-release-3.8
Automated cherry pick of #14093: fix(region): avoid panic
2022-04-21 19:06:28 +08:00
ioito
36fdbd75bc fix(region): avoid panic 2022-04-21 17:11:02 +08:00
Jian Qiu
acb76d06c5 fix: always recycle disk files (#14068)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-20 16:43:25 +08:00
Jian Qiu
1e18f6db90 fix: make notify template example field nullable (#14085)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-20 15:01:31 +08:00
Zexi Li
dd1d59a571 Merge pull request #14078 from ioito/automated-cherry-pick-of-#14076-upstream-release-3.8
Automated cherry pick of #14076: fix(region): account sync
2022-04-19 19:43:48 +08:00
ioito
f36cfb4011 fix(region): account sync 2022-04-19 16:50:31 +08:00
Zexi Li
1e5a1f7193 Merge pull request #14071 from ioito/automated-cherry-pick-of-#14069-upstream-release-3.8
Automated cherry pick of #14069: fix(region): enable and disable log for provider regions
2022-04-19 16:25:27 +08:00
ioito
acd99bf286 fix(region): enable and disable log for provider regions 2022-04-19 11:45:26 +08:00
Zexi Li
93484ea3a8 Merge pull request #14032 from ioito/automated-cherry-pick-of-#14030-upstream-release-3.8
Automated cherry pick of #14030: fix(region): qcloud bandwidth and networkinterface
2022-04-18 18:39:49 +08:00
Jian Qiu
4ce52013df fix: extend guest disk attributes (#14052)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-17 23:08:54 +08:00
Zexi Li
0735ab6358 Merge pull request #14035 from ioito/automated-cherry-pick-of-#14033-upstream-release-3.8
Automated cherry pick of #14033: fix(region): azure created time sync
2022-04-17 00:34:12 +08:00
ioito
deedc5e38e fix(region): azure created time sync 2022-04-15 17:36:47 +08:00
ioito
41612a8861 fix(region): qcloud bandwidth and networkinterface 2022-04-15 16:11:25 +08:00
Zexi Li
d82b44deec Merge pull request #14029 from ioito/automated-cherry-pick-of-#14027-upstream-release-3.8
Automated cherry pick of #14027: fix(climc): eip change bw cli
2022-04-15 11:34:09 +08:00
ioito
9ad4fcdf2e fix(climc): eip change bw cli 2022-04-15 11:15:19 +08:00
Zexi Li
046ffb41d0 Merge pull request #14009 from ioito/automated-cherry-pick-of-#14007-upstream-release-3.8
Automated cherry pick of #14007: fix(region): avoid export duplicate tag key
2022-04-13 16:21:10 +08:00
ioito
9e14f10e4a fix(region): avoid export duplicate tag key 2022-04-13 16:11:10 +08:00
Zexi Li
f209066eba Merge pull request #14004 from ioito/automated-cherry-pick-of-#14002-upstream-release-3.8
Automated cherry pick of #14002: fix(region): host order by commit rate
2022-04-13 12:19:22 +08:00
ioito
743a40d0c8 fix(region): host order by commit rate 2022-04-13 11:34:28 +08:00
Zexi Li
9711675697 Merge pull request #13982 from zexi/automated-cherry-pick-of-#13981-upstream-release-3.8
Automated cherry pick of #13981: fix(region): multi disk created after instance snapshot
2022-04-13 00:56:09 +08:00
Zexi Li
dd34c0e4b0 Merge pull request #13994 from ioito/automated-cherry-pick-of-#13987-upstream-release-3.8
Automated cherry pick of #13987: fix(region): huawei api
2022-04-12 16:45:47 +08:00
ioito
9650234007 fix(region): huawei api 2022-04-12 16:02:11 +08:00
Zexi Li
1aac3a3911 Merge pull request #13991 from ioito/automated-cherry-pick-of-#13989-upstream-release-3.8
Automated cherry pick of #13989: fix(region): avoid panic
2022-04-12 15:06:10 +08:00
ioito
e0880e533a fix(region): avoid panic 2022-04-12 14:57:13 +08:00
Zexi Li
14b295b138 fix(region): multi disk created after instance snapshot 2022-04-12 13:54:58 +08:00
Jian Qiu
9cd8397d4d fix: more detailed privilege hint (#13977)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-12 12:10:18 +08:00
Zexi Li
7aee8ac2f5 Merge pull request #13964 from ioito/automated-cherry-pick-of-#13962-upstream-release-3.8
Automated cherry pick of #13962: fix(region): aws all regions
2022-04-11 20:46:37 +08:00
ioito
5ab7beed71 fix(region): aws all regions 2022-04-11 20:01:31 +08:00
Zexi Li
bbadc6cf51 Merge pull request #13945 from ioito/automated-cherry-pick-of-#13940-upstream-release-3.8
Automated cherry pick of #13940: fix(region): google label encode
2022-04-11 09:53:20 +08:00
Zexi Li
a32575ebd8 Merge pull request #13943 from rainzm/automated-cherry-pick-of-#13941-upstream-release-3.8
Automated cherry pick of #13941: fix(region): exclude the host whose config or config.network is nil
2022-04-09 14:32:25 +08:00
ioito
62a4611363 fix(region): google label encode 2022-04-08 17:55:24 +08:00
rainzm
5db92933cf fix(region): exclude the host whose config or config.network is nil 2022-04-08 17:50:39 +08:00
Jian Qiu
3ab0ca40f8 host: fix isImportFromLibvirt (#13935)
should check __origin_id not getOriginId

Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>

Co-authored-by: wanyaoqi <wanyaoqi1995@163.com>
2022-04-08 01:30:27 +08:00
Zexi Li
d454244273 Merge pull request #13927 from ioito/automated-cherry-pick-of-#13923-upstream-release-3.8
Automated cherry pick of #13923: fix(region): cloudpods misc fix
2022-04-07 22:04:28 +08:00
Zexi Li
eb94ca902b Merge pull request #13930 from ioito/automated-cherry-pick-of-#13928-upstream-release-3.8
Automated cherry pick of #13928: fix(region): aws storage type sync
2022-04-07 17:46:33 +08:00
ioito
8ffe05fadb fix(region): aws storage type sync 2022-04-07 17:33:58 +08:00
ioito
83faca0aba fix(region): cloudpods misc fix 2022-04-06 16:40:52 +08:00
Jian Qiu
5670fe825b fix: logout event log (#13918)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-06 01:30:32 +08:00
Jian Qiu
f1349e6b1c fix: chage parameter not compatible with fangde OS (#13909)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 16:14:35 +08:00
Jian Qiu
1473fb42ee fix: save image for aarch64 os show os_arch of x86_64 (#13905)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 16:12:32 +08:00
屈轩
d8faef261d fix(region): optimized disk-list (#13876) 2022-04-05 11:20:39 +08:00
Jian Qiu
837bd868b0 fix: cloudaccounts getMoreDetails should pass ctx (#13886)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 11:18:50 +08:00
Jian Qiu
a34f0503bd fix: better handling of network not avaiable on host error (#13892)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 11:17:37 +08:00
Jian Qiu
e2b0727629 fix: make temporary snapshots invisible (#13883)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 11:15:53 +08:00
Jian Qiu
5cfc8792bb fix: make test format errors (#13900)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 11:13:49 +08:00
Zexi Li
4a8e88ed96 Merge pull request #13879 from rainzm/automated-cherry-pick-of-#13877-upstream-release-3.8
Automated cherry pick of #13877: fix(notify): enable websocket notifications defaultly for event notify
2022-04-02 18:59:44 +08:00
rainzm
4d0ff1a19c fix(notify): enable websocket notifications defaultly for event notify 2022-04-02 18:52:42 +08:00
Zexi Li
7b0cd0bfa3 Merge pull request #13871 from ioito/automated-cherry-pick-of-#13869-upstream-release-3.8
Automated cherry pick of #13869: fix(region): vm public ip sync
2022-04-02 14:56:18 +08:00
Zexi Li
e10245f02d Merge pull request #13841 from ioito/automated-cherry-pick-of-#13839-upstream-release-3.8
Automated cherry pick of #13839: fix(region): qcloud use new dns api
2022-04-02 14:15:22 +08:00
ioito
89c2b86989 fix(region): qcloud use new dns api 2022-04-02 14:10:42 +08:00
ioito
d73cf738a2 fix(region): vm public ip sync 2022-04-02 11:54:54 +08:00
Zexi Li
cea0d759e5 Merge pull request #13862 from zhaoxiangchun/automated-cherry-pick-of-#13860-upstream-release-3.8
Automated cherry pick of #13860: fix(cloudmon): fix gcp metric pull
2022-04-01 23:04:17 +08:00
Zexi Li
c049131851 Merge pull request #13850 from ioito/automated-cherry-pick-of-#13848-upstream-release-3.8
Automated cherry pick of #13848: fix(region): show account lake of permission
2022-04-01 19:50:31 +08:00
zhaoxiangchun
3c484ca458 fix(cloudmon): fix gcp metric pull
1. external_id format
2022-04-01 14:51:57 +08:00
Jian Qiu
1a4a8dccf6 fix: cloudshell use dynamic keystone endpoint (#13855)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-01 13:15:08 +08:00
ioito
fd47ebe87d fix(region): show account lake of permission 2022-04-01 11:47:24 +08:00
屈轩
44c3db5849 fix(apigateway): export timeout (#13829) 2022-03-31 12:57:37 +08:00
Zexi Li
8b24ebdacd Merge pull request #13826 from ioito/automated-cherry-pick-of-#13824-upstream-release-3.8
Automated cherry pick of #13824: fix(region): curl vender update
2022-03-30 16:56:14 +08:00
Zexi Li
b46718dd55 Merge pull request #13833 from rainzm/automated-cherry-pick-of-#13831-upstream-release-3.8
Automated cherry pick of #13831: fix(glance): check image after initializing s3
2022-03-30 16:53:24 +08:00
rainzm
df7b80ac09 fix(glance): check image after initializing s3 2022-03-30 16:04:23 +08:00
ioito
2e323d9e57 fix(region): curl vender update 2022-03-30 11:05:54 +08:00
Zexi Li
d3c2d09537 Merge pull request #13823 from swordqiu/automated-cherry-pick-of-#13821-upstream-release-3.8
Automated cherry pick of #13821: fix: remote file not move
2022-03-30 10:14:46 +08:00
Zexi Li
8672ed971b fix(telegraf-raid-plugin): zombies recycle (#13818) 2022-03-30 07:41:22 +08:00
Qiu Jian
ebb16ad63a fix: remote file not move 2022-03-30 07:39:05 +08:00
Zexi Li
182fc704a9 Merge pull request #13815 from ioito/automated-cherry-pick-of-#13813-upstream-release-3.8
Automated cherry pick of #13813: fix(apigateway): report data for cloudpods
2022-03-29 22:38:26 +08:00
ioito
648cff9073 fix(apigateway): report data for cloudpods 2022-03-29 18:42:25 +08:00
Zexi Li
72b917acb5 Merge pull request #13810 from ioito/automated-cherry-pick-of-#13808-upstream-release-3.8
Automated cherry pick of #13808: fix(region): cloudprovider distinct
2022-03-29 11:54:01 +08:00
Zexi Li
89610f19ce Merge pull request #13805 from ioito/automated-cherry-pick-of-#13803-upstream-release-3.8
Automated cherry pick of #13803: fix(region): order by host storage
2022-03-29 11:53:25 +08:00
ioito
c4d5f81042 fix(region): cloudprovider distinct 2022-03-29 09:53:03 +08:00
ioito
3b603618b9 fix(region): order by host storage 2022-03-28 11:34:03 +08:00
Jian Qiu
772f444621 region/host: fix reset ceph root disk after rebuild root (#13798)
Ceph storage disk rebuild root will rename origin disk to backing
disk, so we need use backing disk reset snapshot.

Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>

Co-authored-by: wanyaoqi <wanyaoqi1995@163.com>
2022-03-27 11:34:55 +08:00
Zexi Li
d5f0cad736 Merge pull request #13787 from swordqiu/automated-cherry-pick-of-#13785-upstream-release-3.8
Automated cherry pick of #13785: fix: instance group with classic network cannot associate with eip
2022-03-26 19:00:31 +08:00
Qiu Jian
dc3f08f428 fix: instance group with classic network cannot associate with eip 2022-03-26 03:26:59 +08:00
Zexi Li
f88d237d58 fix(host-deployer): chage for exists cloudroot user (#13784) 2022-03-25 20:10:37 +08:00
Zexi Li
5baa4f738e Merge pull request #13779 from ioito/automated-cherry-pick-of-#13777-upstream-release-3.8
Automated cherry pick of #13777: fix(region): cpu float to int
2022-03-25 11:45:22 +08:00
ioito
f7be009b24 fix(region): cpu float to int 2022-03-25 11:31:12 +08:00
Zexi Li
602a111d5f Merge pull request #13771 from ioito/automated-cherry-pick-of-#13769-upstream-release-3.8
Automated cherry pick of #13769: fix(region): cloudpods misc fix
2022-03-24 21:24:49 +08:00
ioito
262b9ba670 fix(region): cloudpods misc fix 2022-03-24 14:34:17 +08:00
Zexi Li
c73da9dff3 Merge pull request #13755 from ioito/automated-cherry-pick-of-#13753-upstream-release-3.8
Automated cherry pick of #13753: fix(region): clean glance image cache
2022-03-23 23:44:36 +08:00
Zexi Li
5993c23fdf Merge pull request #13766 from rainzm/automated-cherry-pick-of-#13764-upstream-release-3.8
Automated cherry pick of #13764: fix(region): release lock in SyncAppEnvironments
2022-03-23 16:41:05 +08:00
rainzm
6175b9d246 fix(region): release lock in SyncAppEnvironments 2022-03-23 16:33:57 +08:00
Zexi Li
2742b22840 Merge pull request #13751 from ioito/automated-cherry-pick-of-#13749-upstream-release-3.8
Automated cherry pick of #13749: fix(region): vmware no need secgroup
2022-03-23 10:59:58 +08:00
Zexi Li
9126074f90 Merge pull request #13759 from ioito/automated-cherry-pick-of-#13757-upstream-release-3.8
Automated cherry pick of #13757: fix(region): host sched tag sync
2022-03-23 00:28:28 +08:00
ioito
5869ffd6e1 fix(region): host sched tag sync 2022-03-22 18:55:10 +08:00
ioito
d8b591e839 fix(region): clean glance image cache 2022-03-22 17:32:13 +08:00
ioito
b3d41db897 fix(region): vmware no need secgroup 2022-03-21 20:09:40 +08:00
Zexi Li
941a8bb47f Merge pull request #13743 from ioito/automated-cherry-pick-of-#13738-upstream-release-3.8
Automated cherry pick of #13738: fix(region): elastic search public connection
2022-03-21 16:41:24 +08:00
Zexi Li
e35ce474f9 Merge pull request #13741 from ioito/automated-cherry-pick-of-#13739-upstream-release-3.8
Automated cherry pick of #13739: fix(region): sku init
2022-03-21 12:52:25 +08:00
Zexi Li
416c204f47 Merge pull request #13723 from zhaoxiangchun/automated-cherry-pick-of-#13721-upstream-release-3.8
Automated cherry pick of #13721: fix(host): fix guest nicStat  Metric in host
2022-03-21 12:51:34 +08:00
ioito
9cbba9218d fix(region): elastic search public connection 2022-03-21 12:10:31 +08:00
ioito
064129478d fix(region): sku init 2022-03-21 11:47:16 +08:00
Zexi Li
054bd14a17 Merge pull request #13729 from ioito/automated-cherry-pick-of-#13727-upstream-release-3.8
Automated cherry pick of #13727: fix(region): sku name
2022-03-21 11:45:55 +08:00
ioito
3e96256204 fix(region): sku name 2022-03-18 18:09:09 +08:00
zhaoxiangchun
1fff52b7b9 fix(host): fix guest nicStat Metric in host 2022-03-18 15:54:33 +08:00
Zexi Li
5cc6b58f23 Merge pull request #13720 from ioito/automated-cherry-pick-of-#13718-upstream-release-3.8
Automated cherry pick of #13718: fix(region): host schedtags with topology
2022-03-18 14:37:49 +08:00
ioito
a7e55f8b09 fix(region): host schedtags with topology 2022-03-18 14:11:51 +08:00
Zexi Li
a06df48097 Merge pull request #13710 from ioito/automated-cherry-pick-of-#13708-upstream-release-3.8
Automated cherry pick of #13708: fix(region): google gcp and label
2022-03-18 11:52:33 +08:00
Zexi Li
c997c0840e Merge pull request #13717 from ioito/automated-cherry-pick-of-#13715-upstream-release-3.8
Automated cherry pick of #13715: fix(region): sku init
2022-03-18 11:52:18 +08:00
ioito
513b7ad616 fix(region): sku init 2022-03-18 10:09:04 +08:00
Zexi Li
5bd78340cc Merge pull request #13713 from swordqiu/automated-cherry-pick-of-#13711-upstream-release-3.8
Automated cherry pick of #13711: fix: host deploy mkdir permission
2022-03-17 21:25:13 +08:00
Qiu Jian
5fe64d34af fix: host deploy mkdir permission 2022-03-17 16:53:33 +08:00
ioito
452fc07a25 fix(region): google gcp and label 2022-03-17 16:26:05 +08:00
Zexi Li
72ad2e2730 Merge pull request #13704 from ioito/automated-cherry-pick-of-#13702-upstream-release-3.8
Automated cherry pick of #13702: fix(region): sync with storagecachedimage status
2022-03-16 18:10:37 +08:00
Zexi Li
56dbef726c Merge pull request #13698 from ioito/automated-cherry-pick-of-#13696-upstream-release-3.8
Automated cherry pick of #13696: fix(region): cloudpods error
2022-03-16 17:46:24 +08:00
Zexi Li
84c0c023cd Merge pull request #13701 from ioito/automated-cherry-pick-of-#13699-upstream-release-3.8
Automated cherry pick of #13699: fix(region): sync owner id
2022-03-16 17:37:09 +08:00
Zexi Li
3c36c73943 Merge pull request #13707 from rainzm/automated-cherry-pick-of-#13705-upstream-release-3.8
Automated cherry pick of #13705: feat(region,esxiagent): support specifying storage when creating a data disk
2022-03-16 17:36:26 +08:00
rainzm
f2be4299bc feat(region,esxiagent): support specifying storage when creating a data disk 2022-03-16 16:41:03 +08:00
ioito
571bbe9802 fix(region): sync with storagecachedimage status 2022-03-16 14:43:09 +08:00
ioito
9b6df5d24d fix(region): sync owner id 2022-03-15 21:35:55 +08:00
ioito
737dc84362 fix(region): cloudpods error 2022-03-15 20:21:19 +08:00
Zexi Li
4c1e883f9e Merge pull request #13695 from ioito/automated-cherry-pick-of-#13693-upstream-release-3.8
Automated cherry pick of #13693: fix(region): redis project sync
2022-03-15 20:01:23 +08:00
ioito
38a5688ac5 fix(region): redis project sync 2022-03-15 19:51:55 +08:00
Jian Qiu
c3b850d639 fix(host/region): fix import servers from libvirt (#13690)
make servers_import_from_libvirt workable in container environment.
bindmount libvirt monitor dir to host container and use procutils read
guest xml configure.

Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>

Co-authored-by: wanyaoqi <wanyaoqi1995@163.com>
2022-03-15 00:51:36 +08:00
Rain Zheng
39d8077fd4 fix(region): add generate_name if not before validate guest creating data (#13686) 2022-03-15 00:49:57 +08:00
Zexi Li
fea5135403 Merge pull request #13685 from ioito/automated-cherry-pick-of-#13683-upstream-release-3.8
Automated cherry pick of #13683: fix(region): remove random sync
2022-03-14 15:11:37 +08:00
ioito
64be156e80 fix(region): remove random sync 2022-03-14 10:50:59 +08:00
屈轩
249f209bc2 fix(glance): image save (#13675) 2022-03-11 16:17:03 +08:00
屈轩
aa19d116b0 fix(region): google disk name (#13672) 2022-03-11 16:15:21 +08:00
屈轩
73e71c2f9a fix(climc): add purge splitable for action and cloudevent (#13665) 2022-03-10 23:41:43 +08:00
Zexi Li
4983520780 Merge pull request #13661 from swordqiu/automated-cherry-pick-of-#13659-upstream-release-3.8
Automated cherry pick of #13659: fix: aws s3 object with leading slash
2022-03-10 18:51:33 +08:00
Zexi Li
3d9d4c4d10 Merge pull request #13669 from rainzm/automated-cherry-pick-of-#13667-upstream-release-3.8
Automated cherry pick of #13667: fix(host): avoid deadlock when fetch image fails
2022-03-10 18:50:30 +08:00
rainzm
f01df4b5cc fix(host): avoid deadlock when fetch image fails 2022-03-10 18:39:05 +08:00
Jian Qiu
1033ccc777 fix: qemu no nic addr at release/3.8 (#13666)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-03-10 16:49:06 +08:00
Qiu Jian
ab9f4800c2 fix: aws s3 object with leading slash 2022-03-10 11:04:22 +08:00
Zexi Li
bff5e4556b Merge pull request #13649 from ioito/automated-cherry-pick-of-#13647-upstream-release-3.8
Automated cherry pick of #13647: fix(region): huawei storage type
2022-03-09 14:58:37 +08:00
Zexi Li
67fcd66e76 Merge pull request #13655 from rainzm/automated-cherry-pick-of-#13651-upstream-release-3.8
Automated cherry pick of #13651: fix(scheduler): init db after init auth
2022-03-09 14:57:17 +08:00
ioito
5dbd7f329d fix(region): huawei storage type 2022-03-09 14:46:31 +08:00
rainzm
fe1ee2cf21 fix(scheduler): init db after init auth 2022-03-09 14:36:09 +08:00
Zexi Li
972abbf326 Merge pull request #13545 from zexi/update-etcd-package
feat(vendor): update etcd package for v3.8
2022-03-08 10:41:30 +08:00
Zexi Li
f110d05439 Merge pull request #13635 from ioito/automated-cherry-pick-of-#13633-upstream-release-3.8
Automated cherry pick of #13633: fix(region): allow skip server sync by system tags
2022-03-08 10:34:55 +08:00
ioito
d16d522962 fix(region): allow skip server sync by system tags 2022-03-07 17:45:53 +08:00
Zexi Li
504a90c899 Merge pull request #13608 from swordqiu/automated-cherry-pick-of-#13606-upstream-release-3.8
Automated cherry pick of #13606: fix: disable cache for oidc auth callback
2022-03-07 16:01:20 +08:00
Zexi Li
eef7f63d8b Merge pull request #13622 from ioito/automated-cherry-pick-of-#13620-upstream-release-3.8
Automated cherry pick of #13620: fix(region): qcloud disk range changed
2022-03-07 16:00:27 +08:00
Zexi Li
6a8cdf78b3 Merge pull request #13626 from zexi/automated-cherry-pick-of-#13624-upstream-release-3.8
Automated cherry pick of #13624: feat(telegraf-raid-plugin): update rootfs and image version
2022-03-07 15:59:21 +08:00
Zexi Li
615c25a87d feat(telegraf-raid-plugin): update rootfs and image version 2022-03-07 11:55:03 +08:00
ioito
ec77d41f0f fix(region): qcloud disk range changed 2022-03-07 11:14:59 +08:00
屈轩
3a4f394f3c fix(region): rds project sync (#13615) 2022-03-06 17:08:37 +08:00
Rain Zheng
586df97708 fix(scheduledtask): treat hour and minute as utc time (#13612) 2022-03-06 17:08:09 +08:00
Qiu Jian
2284e5bb68 fix: disable cache for oidc auth callback 2022-03-06 12:02:10 +08:00
Zexi Li
7b7fde9fec Merge pull request #13605 from ioito/automated-cherry-pick-of-#13603-upstream-release-3.8
Automated cherry pick of #13603: fix(region): expend length lb info
2022-03-06 11:07:25 +08:00
ioito
29f496693c fix(region): expend length lb info 2022-03-06 11:06:06 +08:00
Zexi Li
98696b39c8 Merge pull request #13602 from ioito/automated-cherry-pick-of-#13600-upstream-release-3.8
Automated cherry pick of #13600: fix(region): remote useless info of azure lb
2022-03-06 10:20:16 +08:00
ioito
f13fb322b4 fix(region): remote useless info of azure lb 2022-03-06 10:03:33 +08:00
Zexi Li
24af1c1476 Merge pull request #13598 from rainzm/automated-cherry-pick-of-#13596-upstream-release-3.8
Automated cherry pick of #13596: fix(ansible): use the correct length value 'text'
2022-03-04 22:00:42 +08:00
rainzm
2e6578150e fix(ansible): use the correct length value 'text' 2022-03-04 16:14:50 +08:00
Zexi Li
0ed98698bb Merge pull request #13595 from ioito/automated-cherry-pick-of-#13593-upstream-release-3.8
Automated cherry pick of #13593: fix(region): external project filter by manager id
2022-03-04 12:28:41 +08:00
ioito
74f077a6ba fix(region): external project filter by manager id 2022-03-04 12:04:18 +08:00
Zexi Li
032cc391ba Merge pull request #13591 from rainzm/automated-cherry-pick-of-#13589-upstream-release-3.8
Automated cherry pick of #13589: fix(region,devtool): get ssh port from 'servers/<id>/sshport' api
2022-03-03 21:00:34 +08:00
Zexi Li
7db0616b86 Merge pull request #13586 from ioito/automated-cherry-pick-of-#13584-upstream-release-3.8
Automated cherry pick of #13584: fix(region): not allow merge default secgroup
2022-03-03 20:59:34 +08:00
rainzm
5cfee31020 fix(region,devtool): get ssh port from 'servers/<id>/sshport' api 2022-03-03 19:14:17 +08:00
ioito
2f9c202bc9 fix(region): not allow merge default secgroup 2022-03-03 15:50:22 +08:00
Zexi Li
9122aa5d58 Merge pull request #13572 from ioito/automated-cherry-pick-of-#13570-upstream-release-3.8
Automated cherry pick of #13570: fix(host): rbd disk path
2022-03-02 12:01:12 +08:00
ioito
7f3f376b24 fix(host): rbd disk path 2022-03-02 11:45:06 +08:00
Zexi Li
1b662aff30 Merge pull request #13568 from ioito/automated-cherry-pick-of-#13566-upstream-release-3.8
Automated cherry pick of #13566: fix(notify): add panic notify
2022-03-01 19:19:07 +08:00
Zexi Li
86e402762d Merge pull request #13565 from rainzm/automated-cherry-pick-of-#13563-upstream-release-3.8
Automated cherry pick of #13563: fix(region): expiration notification works for resources after renewal
2022-03-01 19:06:55 +08:00
rainzm
3f34aff827 fix(region): expiration notification works for resources after renewal 2022-03-01 17:30:10 +08:00
ioito
6d2564e84a fix(notify): add panic notify 2022-03-01 17:21:24 +08:00
Zexi Li
34e48f1c33 Merge pull request #13557 from ioito/automated-cherry-pick-of-#13555-upstream-release-3.8
Automated cherry pick of #13555: fi(apigateway): user info with totp
2022-03-01 11:15:23 +08:00
Zexi Li
95afa04d39 Merge pull request #13554 from ioito/automated-cherry-pick-of-#13552-upstream-release-3.8
Automated cherry pick of #13552: fix(yunionapi): reset password with base64
2022-03-01 11:04:03 +08:00
ioito
eb9890fdd5 fi(apigateway): user info with totp 2022-02-28 11:16:49 +08:00
ioito
57c9ce5e63 fix(yunionapi): reset password with base64 2022-02-28 10:56:08 +08:00
Zexi Li
c7472ce331 Merge pull request #13295 from rainzm/automated-cherry-pick-of-#13293-upstream-release-3.8
Automated cherry pick of #13293: fix(glance): convert image in s3 storage
2022-02-28 10:48:45 +08:00
rainzm
ea75cf865b fix(glance): re-convert as long as subformat is not active
之前的写法会导致saving或者save_fail状态的subformat,不会再次
转换。而且镜像是否需要转换,由ImageCheckTask决定了,ImageConvertTask
只需要注意不重新转换active的subformat就好了,save失败的subformat
也应该设置状态为save_fail。
2022-02-25 18:55:11 +08:00
rainzm
39958e6ebc fix(glance): convert image in s3 storage 2022-02-25 18:55:11 +08:00
Zexi Li
0cbfe2b11d Merge pull request #13538 from ioito/automated-cherry-pick-of-#13536-upstream-release-3.8
Automated cherry pick of #13536: fix(region): nutanix nic sync
2022-02-25 16:39:29 +08:00
Zexi Li
ca51861d39 feat(vendor): update etcd package 2022-02-25 14:32:28 +08:00
ioito
93899d3f89 fix(region): nutanix nic sync 2022-02-24 14:35:59 +08:00
Zexi Li
c37b47f8fc Merge pull request #13533 from rainzm/automated-cherry-pick-of-#13531-upstream-release-3.8
Automated cherry pick of #13531: fix(region): init scalinggroup controller in correct order
2022-02-24 10:18:14 +08:00
rainzm
89ee7ea7f2 fix(region): init scalinggroup controller in correct order 2022-02-23 20:15:17 +08:00
Zexi Li
1538ee7669 Merge pull request #13520 from ioito/automated-cherry-pick-of-#13518-upstream-release-3.8
Automated cherry pick of #13518: fix(region): vm nic sync with network
2022-02-22 19:23:30 +08:00
Rain Zheng
94a8c1e0bd fix(region): delete disk actually when cleaning disks (#13523) 2022-02-22 17:59:24 +08:00
ioito
e405c0a930 fix(region): vm nic sync with network 2022-02-22 16:18:21 +08:00
Zexi Li
09af63f34c Merge pull request #13517 from ioito/automated-cherry-pick-of-#13515-upstream-release-3.8
Automated cherry pick of #13515: fix(host): host register
2022-02-22 15:53:29 +08:00
ioito
b9edc20064 fix(host): host register 2022-02-22 15:30:36 +08:00
Zexi Li
def01da248 Merge pull request #13513 from ioito/automated-cherry-pick-of-#13511-upstream-release-3.8
Automated cherry pick of #13511: fix(host): ceph df with total_bytes
2022-02-22 11:04:12 +08:00
ioito
2f3e11e70a fix(host): ceph df with total_bytes 2022-02-22 09:48:40 +08:00
Zexi Li
15cf101747 Merge pull request #13498 from ioito/automated-cherry-pick-of-#13496-upstream-release-3.8
Automated cherry pick of #13496: fix(host): add host online offline log
2022-02-21 18:11:46 +08:00
Zexi Li
4e6c1bf8e3 Merge pull request #13506 from swordqiu/automated-cherry-pick-of-#13504-upstream-release-3.8
Automated cherry pick of #13504: fix: user create user nil pointer error
2022-02-21 16:53:26 +08:00
Qiu Jian
93de681d5b fix: user create user nil pointer error 2022-02-21 12:18:09 +08:00
ioito
935b4fca35 fix(host): add host online offline log 2022-02-18 18:31:57 +08:00
Zexi Li
428be3b0f1 Merge pull request #13491 from rainzm/automated-cherry-pick-of-#13489-upstream-release-3.8
Automated cherry pick of #13489: feat(climc): add public and private for backupstorage
2022-02-18 09:50:54 +08:00
rainzm
85257b5021 feat(climc): add public and private for backupstorage 2022-02-17 19:26:53 +08:00
Zexi Li
018f9cbc86 Merge pull request #13488 from rainzm/automated-cherry-pick-of-#13486-upstream-release-3.8
Automated cherry pick of #13486: fix(region): send SERVER_DELETE event notify when guest is actually deleted
2022-02-17 17:55:21 +08:00
rainzm
97d449ed13 fix(region): send SERVER_DELETE event notify when guest is actually deleted 2022-02-17 17:47:18 +08:00
Zexi Li
4e5dce87fb Merge pull request #13473 from ioito/automated-cherry-pick-of-#13396-upstream-release-3.8
Automated cherry pick of #13396: fix(host): sparse file seek
2022-02-16 12:02:20 +08:00
ioito
7124485fd6 fix(host): sparse file seek 2022-02-16 12:01:43 +08:00
Zexi Li
567d3aaf8d Merge pull request #13472 from ioito/automated-cherry-pick-of-#13341-upstream-release-3.8
Automated cherry pick of #13341: feat(host): transfer sparse file over network
2022-02-16 12:01:23 +08:00
ioito
63d3fa8af8 feat(host): transfer sparse file over network 2022-02-16 11:53:47 +08:00
Zexi Li
6b8b74714f Merge pull request #13470 from ioito/automated-cherry-pick-of-#13468-upstream-release-3.8
Automated cherry pick of #13468: fix(glance): image statistics
2022-02-16 10:27:34 +08:00
Zexi Li
ab562c5cf6 Merge pull request #13459 from ioito/automated-cherry-pick-of-#13457-upstream-release-3.8
Automated cherry pick of #13457: fix(keyston): add sync log for ldap
2022-02-15 19:04:42 +08:00
Zexi Li
9f12b55c97 Merge pull request #13465 from ioito/automated-cherry-pick-of-#13463-upstream-release-3.8
Automated cherry pick of #13463: fix(region): tag key export
2022-02-15 19:03:08 +08:00
ioito
7a1de1553e fix(glance): image statistics 2022-02-15 18:48:38 +08:00
ioito
35daf10b6c fix(region): tag key export 2022-02-15 18:17:11 +08:00
Zexi Li
1ee470a996 Merge pull request #13462 from ioito/automated-cherry-pick-of-#13460-upstream-release-3.8
Automated cherry pick of #13460: fix(region): qcloud tdsql tags
2022-02-15 17:54:54 +08:00
ioito
89b94e1faa fix(region): qcloud tdsql tags 2022-02-15 17:31:25 +08:00
Zexi Li
558d1385f6 Merge pull request #13453 from swordqiu/automated-cherry-pick-of-#13451-upstream-release-3.8
Automated cherry pick of #13451: fix: class network mtu should consider default_mtu
2022-02-15 15:58:22 +08:00
ioito
8d2b1fffff fix(keyston): add sync log for ldap 2022-02-15 15:48:25 +08:00
Zexi Li
d9b62aa631 Merge pull request #13456 from zexi/automated-cherry-pick-of-#13454-upstream-release-3.8
Automated cherry pick of #13454: fix(host): aarch64 vm usb id duplicated
2022-02-15 15:24:38 +08:00
Zexi Li
a1a43aa63d fix(host): aarch64 vm usb id duplicated 2022-02-15 11:45:07 +08:00
Qiu Jian
dd4552c131 fix: class network mtu should consider default_mtu 2022-02-15 10:00:01 +08:00
Zexi Li
008690d92c Merge pull request #13450 from swordqiu/automated-cherry-pick-of-#13442-upstream-release-3.8
Automated cherry pick of #13442: fix: filter server by vip or eip of vip
2022-02-15 09:52:51 +08:00
Qiu Jian
5638376ec8 fix: filter server by vip or eip of vip 2022-02-15 09:07:59 +08:00
Zexi Li
ef9b3b4601 Merge pull request #13448 from ioito/automated-cherry-pick-of-#13446-upstream-release-3.8
Automated cherry pick of #13446: fix(host): arm qemu remove -no-kvm
2022-02-14 21:32:08 +08:00
Zexi Li
0a95651e95 Merge pull request #13445 from ioito/automated-cherry-pick-of-#13443-upstream-release-3.8
Automated cherry pick of #13443: fix(region): minio s3 object set acl error
2022-02-14 18:59:22 +08:00
ioito
514ed8baca fix(host): arm qemu remove -no-kvm 2022-02-14 17:48:06 +08:00
ioito
21d6c0c9a4 fix(region): minio s3 object set acl error 2022-02-14 15:24:15 +08:00
Zexi Li
de8c8befc8 Merge pull request #13441 from swordqiu/automated-cherry-pick-of-#13439-upstream-release-3.8
Automated cherry pick of #13439: fix: delete disk skip recycle_bin
2022-02-14 09:59:59 +08:00
Qiu Jian
dcbab20684 fix: delete disk skip recycle_bin 2022-02-13 20:49:48 +08:00
Zexi Li
6eacbbb365 Merge pull request #13428 from swordqiu/automated-cherry-pick-of-#13426-upstream-release-3.8
Automated cherry pick of #13426: fix: delay block stream after server start
2022-02-12 21:15:37 +08:00
Zexi Li
e5a6f8fe31 Merge pull request #13432 from swordqiu/automated-cherry-pick-of-#13430-upstream-release-3.8
Automated cherry pick of #13430: feature: local user add need_reset_password field
2022-02-12 21:14:53 +08:00
Zexi Li
635f74d949 Merge pull request #13435 from swordqiu/automated-cherry-pick-of-#13433-upstream-release-3.8
Automated cherry pick of #13433: feature: customizable totp issuer string
2022-02-12 21:14:16 +08:00
Zexi Li
c4641665d2 Merge pull request #13438 from swordqiu/automated-cherry-pick-of-#13436-upstream-release-3.8
Automated cherry pick of #13436: fix: missing instance type for cloned server
2022-02-12 21:13:42 +08:00
Qiu Jian
d28dc140c7 fix: missing instance type for cloned server 2022-02-12 06:21:16 +08:00
Qiu Jian
084dc9a486 feature: local user add need_reset_password field 2022-02-12 02:21:55 +08:00
Qiu Jian
34d4e1b681 feature: customizable totp issuer string 2022-02-12 02:18:48 +08:00
Qiu Jian
239dc082f0 fix: delay block stream after server start 2022-02-12 00:34:45 +08:00
Zexi Li
b63445749d fix(region): vm_sync_isolated_device i18n (#13421) 2022-02-11 12:16:37 +08:00
Zexi Li
b0f27d9b57 Merge pull request #13418 from ioito/automated-cherry-pick-of-#13415-upstream-release-3.8
Automated cherry pick of #13415: fix(region): action log
2022-02-11 11:38:09 +08:00
ioito
bed2057130 fix(region): action log 2022-02-11 11:14:09 +08:00
Zexi Li
14d6a05b3d Merge pull request #13408 from ioito/automated-cherry-pick-of-#13406-upstream-release-3.8
Automated cherry pick of #13406: fix(region): skip first sync waf rule
2022-02-10 18:27:00 +08:00
Zexi Li
5e25b87903 Merge pull request #13413 from swordqiu/automated-cherry-pick-of-#13411-upstream-release-3.8
Automated cherry pick of #13411: feature: policy import/export utils
2022-02-10 18:26:09 +08:00
Qiu Jian
aadd6df5bd feature: policy import/export utils 2022-02-10 18:24:01 +08:00
ioito
c1576f864c fix(region): skip first sync waf rule 2022-02-10 16:24:13 +08:00
Zexi Li
85fe7c432b Merge pull request #13400 from ioito/automated-cherry-pick-of-#13398-upstream-release-3.8
Automated cherry pick of #13398: fix(region): huawei routetable
2022-02-09 17:35:45 +08:00
ioito
1b558448a9 fix(region): huawei routetable 2022-02-09 14:07:54 +08:00
Zexi Li
ddaa655119 Merge pull request #13353 from rainzm/automated-cherry-pick-of-#13239-upstream-release-3.8
Automated cherry pick of #13239: Instance/Disk Backup Support
2022-02-08 17:51:21 +08:00
Zexi Li
3cbdc76b91 Merge pull request #13393 from zexi/automated-cherry-pick-of-#13392-upstream-release-3.8
Automated cherry pick of #13392: fix(host): make tls-creds empty when no tls migrate
2022-02-08 16:44:58 +08:00
Zexi Li
1571b696a6 fix(host): make tls-creds empty when no tls migrate 2022-02-08 16:20:27 +08:00
Zexi Li
93d8d3903b Merge pull request #13390 from zexi/automated-cherry-pick-of-#13389-upstream-release-3.8
Automated cherry pick of #13389: fix(region): batch migrate use enable_tls_migration option
2022-02-08 16:13:11 +08:00
Zexi Li
cf33d7e788 fix(region): batch migrate use enable_tls_migration option 2022-02-08 15:12:36 +08:00
Zexi Li
1f1ff61667 Merge pull request #13386 from zexi/fix-tls-certs-prepare
fix(host): dist prepare migrate_certs
2022-02-08 12:36:02 +08:00
Zexi Li
3f35a0d8b5 Merge pull request #13385 from zexi/host-hugepage-opt
fix(host): add space before -object memory-backend-ram
2022-02-08 12:33:17 +08:00
Zexi Li
fe6d521487 fix(host): dist prepare migrate_certs 2022-02-08 12:29:17 +08:00
Zexi Li
071a2e7952 fix(host): add space before -object memory-backend-ram 2022-02-08 12:16:52 +08:00
Zexi Li
41a05298fc Merge pull request #13384 from swordqiu/hotfix/qj-qemu-img-force-share-3.8
fix: qemu-img info force share (-U) 3.8
2022-02-08 10:10:12 +08:00
Qiu Jian
362ff79882 fix: qemu-img info force share (-U) 3.8 2022-02-08 02:30:13 +08:00
Zexi Li
b2714f3a0a feat(region,keystone): add enable_tls_migration config (#13381) 2022-02-07 15:24:45 +08:00
Zexi Li
a69a12fb80 Merge pull request #13378 from swordqiu/automated-cherry-pick-of-#13376-upstream-release-3.8
Automated cherry pick of #13376: feature: cleanup native hugepage codes
2022-02-07 14:21:03 +08:00
Qiu Jian
8284c368f7 feature: cleanup native hugepage codes 2022-02-06 18:39:43 +08:00
Jian Qiu
cb94e5a4ac feature: baremetal tftp send customized files according to a file map (#13373)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-02-03 21:21:09 +08:00
Rain Zheng
ccbc5dcfb8 fix(host): judge whether the resource exists correctly (#13370) 2022-01-29 00:58:46 +08:00
屈轩
6b80791d8d fix(region): optimized public image sync (#13357) 2022-01-29 00:57:08 +08:00
Jian Qiu
608178b8bc fix: test secgroup rules to ovn ACL and recode guest adminSecgroup (#13363)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-01-29 00:51:42 +08:00
rainzm
b0ecb4bf06 fix(region): marshall correctly SDiskBackup.DiskConfig 2022-01-28 11:58:09 +08:00
rainzm
0f7ec3e47e fix(host): init local backup dir 2022-01-28 11:58:09 +08:00
屈轩
74c8f6d1dd fix(host,region): add action log (#13304) 2022-01-28 11:18:54 +08:00
屈轩
0e602964c8 fix(region): set sys disk index to 0 (#13324) 2022-01-28 11:16:42 +08:00
屈轩
18fc2fe18f fix(region): 支持同时指定项目切自动创建项目 (#13361) 2022-01-28 11:13:36 +08:00
Zexi Li
1fb2f6b016 Merge pull request #13350 from ioito/automated-cherry-pick-of-#13348-upstream-release-3.8
Automated cherry pick of #13348: fix(region): clear vm secgroup
2022-01-27 15:30:39 +08:00
Zexi Li
dc53ec60ed Merge pull request #13352 from zexi/automated-cherry-pick-of-#13339-upstream-release-3.8
Automated cherry pick of #13339: Tls migration
2022-01-27 15:28:27 +08:00
rainzm
786af1bd7e fix(region): be compatible with 3.8 2022-01-27 14:09:52 +08:00
Zexi Li
4320fa49e3 Merge pull request #13347 from ioito/automated-cherry-pick-of-#13345-upstream-release-3.8
Automated cherry pick of #13345: fix(region): nutanix disk
2022-01-27 12:25:40 +08:00
rainzm
c0c83a97f6 fix(region): optimize codes
1. do not ignore err
2. replace jsonutils.JSONObject with specific structure
3. delete redundant code
4. fix edge problems
2022-01-27 12:20:39 +08:00
rainzm
69cebfd840 fix(region): set status creating for instance backup when creating 2022-01-27 12:20:39 +08:00
rainzm
56b2e3bed9 feat(climc): add climc command for instance/disk backup 2022-01-27 12:20:39 +08:00
rainzm
0a18af0ed3 feat(region): support instance backup
Instance backup is a logical collection of multiple disk backups
2022-01-27 12:20:39 +08:00
rainzm
f965f6aefd feat(region, host): support disk backup
1. create backup for disk
2. create disk from backup
3. recovery disk directly
4. delete backup
2022-01-27 12:18:39 +08:00
rainzm
58a5f23238 fix(cloudcommon): splice notifyurl correctly 2022-01-27 12:15:43 +08:00
Zexi Li
4b5c67b739 feat(region,host): tls live migrating 2022-01-27 12:09:36 +08:00
Zexi Li
9cbd3e42d7 feat(util): add tls util 2022-01-27 12:07:09 +08:00
ioito
cac44ba945 fix(region): clear vm secgroup 2022-01-27 11:18:02 +08:00
ioito
6f97e8b575 fix(region): nutanix disk 2022-01-27 10:17:36 +08:00
Zexi Li
32c4ccd34e Merge pull request #13344 from swordqiu/automated-cherry-pick-of-#13342-upstream-release-3.8
Automated cherry pick of #13342: feature: support fangde OS
2022-01-27 01:37:21 +08:00
Qiu Jian
baf37c9aa6 feature: support fangde OS 2022-01-26 23:28:01 +08:00
Zexi Li
08c47492ae Merge pull request #13338 from ioito/automated-cherry-pick-of-#13336-upstream-release-3.8
Automated cherry pick of #13336: fix(region): huawei rtb name
2022-01-26 19:08:18 +08:00
Zexi Li
facbd29e6c Merge pull request #13334 from ioito/automated-cherry-pick-of-#13332-upstream-release-3.8
Automated cherry pick of #13332: fix(region): nutanix image and vpc vlan id
2022-01-26 18:39:24 +08:00
Zexi Li
f44fdca8d7 Merge pull request #13329 from rainzm/scheduledtask/timezone_3.8
fix(region): format time from utc_offset in scheduledtask
2022-01-26 18:33:23 +08:00
rainzm
9893545a86 fix(region): format time from utc_offset in scheduledtask 2022-01-26 18:01:54 +08:00
ioito
987f69b16b fix(region): huawei rtb name 2022-01-26 16:14:39 +08:00
ioito
660e74b85f fix(region): nutanix image and vpc vlan id 2022-01-26 15:49:07 +08:00
Zexi Li
99d71383f4 Merge pull request #13321 from ioito/automated-cherry-pick-of-#13319-upstream-release-3.8
Automated cherry pick of #13319: fix(region): nutanix disk type
2022-01-26 10:31:00 +08:00
ioito
04bc7e48ef fix(region): nutanix disk type 2022-01-25 16:52:55 +08:00
Zexi Li
5b39a05827 Merge pull request #13318 from ioito/automated-cherry-pick-of-#13316-upstream-release-3.8
Automated cherry pick of #13316: fix(region): nutanix instance vcpu
2022-01-25 14:58:08 +08:00
ioito
3dfa0fbba6 fix(region): nutanix instance vcpu 2022-01-25 14:47:14 +08:00
Zexi Li
5854517e5a Merge pull request #13310 from swordqiu/automated-cherry-pick-of-#13308-upstream-release-3.8
Automated cherry pick of #13308: fix: allow view events of owner objects
2022-01-25 11:18:13 +08:00
Zexi Li
e685fbb77f Merge pull request #13313 from ioito/automated-cherry-pick-of-#13311-upstream-release-3.8
Automated cherry pick of #13311: fix(region): nutanix misc fix
2022-01-25 11:17:33 +08:00
ioito
9335a3ad64 fix(region): nutanix misc fix 2022-01-25 11:11:19 +08:00
Qiu Jian
5fd5252d9d fix: allow view events of owner objects 2022-01-25 02:08:44 +08:00
Zexi Li
e3299fa608 Merge pull request #13301 from ioito/automated-cherry-pick-of-#13299-upstream-release-3.8
Automated cherry pick of #13299: fix(region): nutanix duplicate vlan id
2022-01-24 23:30:11 +08:00
Zexi Li
837ae9ff69 Merge pull request #13307 from swordqiu/hotfix/qj-rng-device-use-urandom-3.8
fix: rng device shoud use /dev/urandom instead of /dev/random
2022-01-24 23:29:21 +08:00
Qiu Jian
292335161c fix: rng device shoud use /dev/urandom instead of /dev/random 2022-01-24 23:23:44 +08:00
ioito
e86ef16744 fix(region): nutanix duplicate vlan id 2022-01-24 14:18:59 +08:00
Zexi Li
9a6b95d8a2 Merge pull request #13297 from ioito/hotfix/qx-nutanix-nic
fix(region): nutanix instance nic
2022-01-24 11:02:39 +08:00
Zexi Li
fffbf60b82 Merge pull request #13292 from swordqiu/automated-cherry-pick-of-#13290-upstream-release-3.8
Automated cherry pick of #13290: fix: baremetal mismatch with empty Guid
2022-01-24 10:46:54 +08:00
ioito
3508f87024 fix(region): nutanix instance nic 2022-01-24 10:24:25 +08:00
Qiu Jian
eb3447e97a fix: baremetal mismatch with empty Guid 2022-01-22 18:55:27 +08:00
Zexi Li
81994613a2 Merge pull request #13281 from ioito/automated-cherry-pick-of-#13216-upstream-release-3.8
Automated cherry pick of #13216: feat(region): support nutanix
2022-01-22 18:24:24 +08:00
Zexi Li
d0ba2f09a7 Merge pull request #13284 from ioito/automated-cherry-pick-of-#13282-upstream-release-3.8
Automated cherry pick of #13282: fix(common): always return next_marker
2022-01-22 12:19:57 +08:00
Zexi Li
8acb329e4f Merge pull request #13287 from swordqiu/automated-cherry-pick-of-#13285-upstream-release-3.8
Automated cherry pick of #13285: fix: arm image support UEFI by default
2022-01-22 12:19:13 +08:00
Qiu Jian
21c8696670 fix: arm image support UEFI by default 2022-01-21 19:05:18 +08:00
ioito
9613fe4721 fix(common): always return next_marker 2022-01-21 18:44:53 +08:00
ioito
bf68493c49 feat(region): support nutanix 2022-01-21 14:25:49 +08:00
Zexi Li
6271b8845f Merge pull request #13276 from zexi/automated-cherry-pick-of-#13274-upstream-release-3.8
Automated cherry pick of #13274: fix(hostman): cmdline option range panic
2022-01-21 11:51:14 +08:00
Zexi Li
1c08fdd748 fix(hostman): cmdline option range panic 2022-01-21 11:47:31 +08:00
Zexi Li
fc328319b0 Merge pull request #13272 from zexi/automated-cherry-pick-of-#13268-upstream-release-3.8
Automated cherry pick of #13268: Qemu migrate args
2022-01-21 10:18:15 +08:00
Zexi Li
fca0a86d05 Merge pull request #13267 from swordqiu/automated-cherry-pick-of-#13265-upstream-release-3.8
Automated cherry pick of #13265: fix: batch migrate in parrallel
2022-01-21 10:12:51 +08:00
Zexi Li
03c226f6fb Merge pull request #13273 from swordqiu/automated-cherry-pick-of-#13269-upstream-release-3.8
Automated cherry pick of #13269: feature: support log to remote syslog server
2022-01-21 10:12:15 +08:00
Zexi Li
5353b2d56a feat(host,region): unify target qemu commandline from source 2022-01-21 10:10:47 +08:00
Qiu Jian
72e79c5f7a feature: support log to remote syslog server 2022-01-21 00:11:55 +08:00
Qiu Jian
0347c5bb8c fix: batch migrate in parrallel 2022-01-20 21:42:21 +08:00
Zexi Li
1654bca3ba Merge pull request #13262 from rainzm/automated-cherry-pick-of-#13260-upstream-release-3.8
Automated cherry pick of #13260: fix(host): Stop the retry of purge when the target does not exist
2022-01-20 21:09:26 +08:00
rainzm
4e8d6500ee fix(host): Stop the retry of purge when the target does not exist 2022-01-20 18:11:13 +08:00
Zexi Li
c9076e094e Merge pull request #13259 from ioito/automated-cherry-pick-of-#13257-upstream-release-3.8
Automated cherry pick of #13257: fix(common): metadata update key
2022-01-20 17:44:07 +08:00
ioito
84283c1321 fix(common): metadata update key 2022-01-20 17:41:05 +08:00
Zexi Li
ddc8a41434 Merge pull request #13245 from rainzm/automated-cherry-pick-of-#13243-upstream-release-3.8
Automated cherry pick of #13243: feat(notify): judge whether to enable automatic renewal when the expiration notice is given
2022-01-20 09:54:29 +08:00
Zexi Li
9b69f48222 Merge pull request #13252 from swordqiu/automated-cherry-pick-of-#13240-upstream-release-3.8
Automated cherry pick of #13240: fix: add header x-xss-protection
2022-01-20 09:44:54 +08:00
Zexi Li
c6b45fd460 Merge pull request #13255 from swordqiu/automated-cherry-pick-of-#13253-upstream-release-3.8
Automated cherry pick of #13253: fix: vpcagent nil pointer panic
2022-01-20 09:44:06 +08:00
Qiu Jian
89f1c296ec fix: vpcagent nil pointer panic 2022-01-20 00:44:53 +08:00
Zexi Li
3617d0f77f fix(baremetal): raid ssd disk as firstly root disk (#13247) 2022-01-20 00:42:02 +08:00
Qiu Jian
32da719452 fix: add header x-xss-protection 2022-01-20 00:40:23 +08:00
Zexi Li
702b552227 Merge pull request #13251 from ioito/automated-cherry-pick-of-#13249-upstream-release-3.8
Automated cherry pick of #13249: fix(apigateway): add is forget login user option
2022-01-19 20:06:26 +08:00
ioito
de2be98b31 fix(apigateway): add is forget login user option 2022-01-19 20:03:20 +08:00
rainzm
55b6940a14 fix(region,notify): add create, delete and sync notification of loadbalancerbackendgroup 2022-01-19 19:20:53 +08:00
rainzm
bcc309eb2f feat(notify): judge whether to enable automatic renewal when the expiration notice is given 2022-01-19 19:20:53 +08:00
Zexi Li
c8d229d0ff Merge pull request #13237 from ioito/automated-cherry-pick-of-#13235-upstream-release-3.8
Automated cherry pick of #13235: fix(region): vpc tag sync
2022-01-19 11:01:37 +08:00
ioito
114b77eb02 fix(region): vpc tag sync 2022-01-19 10:58:54 +08:00
Zexi Li
d71db6ccb8 Merge pull request #13234 from ioito/automated-cherry-pick-of-#13232-upstream-release-3.8
Automated cherry pick of #13232: fix(region): qcloud lb bandwidth
2022-01-19 00:44:08 +08:00
ioito
fdd7d78f7e fix(region): qcloud lb bandwidth 2022-01-18 22:14:41 +08:00
Zexi Li
ddb0048a87 Merge pull request #13229 from zexi/glance-base-img
feat(build): make glance-base image
2022-01-18 16:46:44 +08:00
Zexi Li
e79b1b7439 feat(build): make glance-base image 2022-01-18 16:20:09 +08:00
Zexi Li
aecc0ebbbe fix(hostman): config BONDING_OPTS for ifcfg-bondx (#13225) 2022-01-18 02:47:03 +08:00
Zexi Li
4663765f8a Merge pull request #13221 from ioito/automated-cherry-pick-of-#13219-upstream-release-3.8
Automated cherry pick of #13219: fix(region): sync tags for vpc and network
2022-01-17 20:40:00 +08:00
ioito
6e52827276 fix(region): sync tags for vpc and network 2022-01-17 20:38:09 +08:00
Zexi Li
3bd1f34dcf Merge pull request #13215 from zexi/automated-cherry-pick-of-#13213-upstream-release-3.8
Automated cherry pick of #13213: fix(region): create wire input bw deprecated
2022-01-17 18:38:59 +08:00
Zexi Li
094226e14b fix(region): create wire input bw deprecated 2022-01-17 14:56:09 +08:00
Zexi Li
7e7ef10afe Merge pull request #13205 from ioito/automated-cherry-pick-of-#13203-upstream-release-3.8
Automated cherry pick of #13203: fix(region): add cidr filter for route table
2022-01-17 10:10:20 +08:00
Zexi Li
ca4f24d123 Merge pull request #13207 from swordqiu/hotfix/qj-migrate-cancel-quit-handling
fix: handle exception that qemu quit or cancel migrate during migration
2022-01-17 10:09:07 +08:00
Zexi Li
256c3fbf9e Merge pull request #13212 from swordqiu/automated-cherry-pick-of-#13209-upstream-release-3.8
Automated cherry pick of #13209: feature: support dhcp relay information option 82
2022-01-17 10:08:25 +08:00
Qiu Jian
5fc7ac0217 feature: support dhcp relay information option 82 2022-01-17 01:08:57 +08:00
Qiu Jian
45073bc956 fix: handle exception that qemu quit or cancel migrate during migration 2022-01-16 14:54:39 +08:00
ioito
66377de7a5 fix(region): add cidr filter for route table 2022-01-15 16:15:18 +08:00
Zexi Li
cd9cdd1133 Merge pull request #13201 from zhaoxiangchun/automated-cherry-pick-of-#13200-upstream-release-3.8
Automated cherry pick of #13200: fix(common): ListItemFilter func exec in the end
2022-01-15 10:42:16 +08:00
zhaoxiangchun
333c736a24 fix(common): ListItemFilter func exec in the end
1.ListItemFilter 中如果有group by 操作(meter服务),如果使用框架解析filter参数,
会把filter 解析加入到 having结构中。
2022-01-15 10:37:38 +08:00
Zexi Li
7140bb56e8 Merge pull request #13198 from zhaoxiangchun/automated-cherry-pick-of-#13196-upstream-release-3.8
Automated cherry pick of #13196: fix(monitor): alerting resourece filter by scope
2022-01-14 10:33:43 +08:00
Zexi Li
58174076a6 Merge pull request #13195 from ioito/automated-cherry-pick-of-#13193-upstream-release-3.8
Automated cherry pick of #13193: feat(region): add nutanix sync
2022-01-13 19:09:25 +08:00
zhaoxiangchun
6b49c7267b fix(monitor): alerting resourece filter by scope 2022-01-13 18:46:43 +08:00
ioito
344596cdf0 feat(region): add nutanix sync 2022-01-13 18:28:19 +08:00
Zexi Li
1671cb6e7a Merge pull request #13181 from zexi/automated-cherry-pick-of-#13180-upstream-release-3.8
Automated cherry pick of #13180: feat(scheduler): log CheckDisksAllocable skipped storage
2022-01-11 11:21:08 +08:00
Zexi Li
6587086660 feat(scheduler): log CheckDisksAllocable skipped storage 2022-01-11 11:18:28 +08:00
Zexi Li
4064385d91 Merge pull request #13169 from swordqiu/hotfix/qj-sync-status-persist-block-stream
fix: guest sync status persistent block_stream status
2022-01-11 10:31:45 +08:00
Zexi Li
826afc62cb Merge pull request #13178 from swordqiu/automated-cherry-pick-of-#13176-upstream-release-3.8
Automated cherry pick of #13176: fix: add snapshot_and_clone event notes
2022-01-11 10:31:22 +08:00
Qiu Jian
557834f333 fix: guest sync status persistent block_stream status 2022-01-11 10:11:30 +08:00
Qiu Jian
c3e0579abe fix: add snapshot_and_clone event notes 2022-01-11 09:35:30 +08:00
Zexi Li
cbcfeedd09 Merge pull request #13172 from swordqiu/automated-cherry-pick-of-#13171-upstream-release-3.8
Automated cherry pick of #13171: fix: ceph clone image across pool should use pool of target image
2022-01-11 09:23:10 +08:00
Qiu Jian
797e436497 fix: ceph clone image across pool should use pool of target image 2022-01-11 02:58:00 +08:00
Zexi Li
cd7f685ce4 Merge pull request #13166 from rainzm/automated-cherry-pick-of-#13165-upstream-release-3.8
Automated cherry pick of #13165: fix(region): reset status to block_stream after restarting network
2022-01-10 15:35:18 +08:00
rainzm
993173d7dd fix(region): reset status to block_stream after restarting network 2022-01-10 15:30:10 +08:00
Zexi Li
f5efd14315 Merge pull request #13159 from ioito/automated-cherry-pick-of-#13158-upstream-release-3.8
Automated cherry pick of #13158: fix(region): kvm vm no need remote update
2022-01-10 15:08:45 +08:00
Zexi Li
3981989255 Merge pull request #13162 from zhaoxiangchun/fix/zxc-3.8
fix(cloudmon): fix cloudmon options err
2022-01-10 15:07:50 +08:00
Zexi Li
5981b3f01b Merge pull request #13164 from rainzm/automated-cherry-pick-of-#13163-upstream-release-3.8
Automated cherry pick of #13163: feat(region): allow restart network when guest in block stream status
2022-01-10 14:55:51 +08:00
rainzm
4533fcdd1f feat(region): allow restart network when guest in block stream status 2022-01-10 14:46:51 +08:00
zhaoxiangchun
6c70816ad6 fix(cloudmon): fix cloudmon options err 2022-01-10 14:28:52 +08:00
ioito
5984d3cddf fix(region): kvm vm no need remote update 2022-01-10 11:07:35 +08:00
Jian Qiu
68df8b253e fix: not using MarshalAll for output jsonobject (#13157)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-01-10 09:53:43 +08:00
Jian Qiu
5ce9abf5ec fix: vpcagent access group panic (#13147)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-01-10 09:15:56 +08:00
Zexi Li
5fcd69a6b3 Merge pull request #13154 from swordqiu/automated-cherry-pick-of-#13153-upstream-release-3.8
Automated cherry pick of #13153: fix: windows server name cannot be longer than 15 chars
2022-01-09 21:30:44 +08:00
Qiu Jian
82a3f6706a fix: windows server name cannot be longer than 15 chars 2022-01-09 19:53:04 +08:00
Zexi Li
7f2bbb8087 Merge pull request #13149 from swordqiu/automated-cherry-pick-of-#13148-upstream-release-3.8
Automated cherry pick of #13148: feature: add API for image perform probe
2022-01-09 14:37:32 +08:00
Zexi Li
9ce9bf848f Merge pull request #13151 from swordqiu/automated-cherry-pick-of-#13150-upstream-release-3.8
Automated cherry pick of #13150: fix: usb id in spice command args conflict with usb-xhci
2022-01-09 14:36:14 +08:00
Qiu Jian
f2566bf86e fix: usb id in spice command args conflict with usb-xhci 2022-01-08 02:30:56 +08:00
Qiu Jian
a892b8aa3b feature: add API for image perform probe 2022-01-08 02:03:40 +08:00
Zexi Li
d904be3e00 Merge pull request #13144 from ioito/automated-cherry-pick-of-#13143-upstream-release-3.8
Automated cherry pick of #13143: fix(cloudevent): skip cloudevent init data
2022-01-07 22:42:21 +08:00
ioito
48dd601b95 fix(cloudevent): skip cloudevent init data 2022-01-07 19:33:37 +08:00
Zexi Li
b2416efef1 Merge pull request #13142 from zexi/automated-cherry-pick-of-#13141-upstream-release-3.8
Automated cherry pick of #13141: refix(region): skip_cpu_check for batch migrate api
2022-01-07 16:31:18 +08:00
Zexi Li
779ae51fe0 fix(region): skip_cpu_check for batch migrate api 2022-01-07 15:49:29 +08:00
Zexi Li
8d3e06de15 Merge pull request #13138 from ioito/hotfix/qx-skip-log
fix(region): skip progress log
2022-01-06 20:19:39 +08:00
ioito
bd6356c42a fix(region): skip progress log 2022-01-06 20:18:02 +08:00
Zexi Li
a669b09895 Merge pull request #13137 from swordqiu/automated-cherry-pick-of-#13136-upstream-release-3.8
Automated cherry pick of #13136: fix: add detach network i18n
2022-01-06 18:52:35 +08:00
Qiu Jian
8087e9d72a fix: add detach network i18n 2022-01-06 11:27:35 +08:00
Zexi Li
d15d906aaa Merge pull request #13133 from swordqiu/automated-cherry-pick-of-#13132-upstream-release-3.8
Automated cherry pick of #13132: fix: fetch image properties from iso properly
2022-01-05 22:06:48 +08:00
Zexi Li
52ce5a7d29 Merge pull request #13130 from ioito/automated-cherry-pick-of-#13129-upstream-release-3.8
Automated cherry pick of #13129: fix(region): image not found details error
2022-01-05 22:05:30 +08:00
Zexi Li
b29ca7963d Merge pull request #13135 from zexi/automated-cherry-pick-of-#13134-upstream-release-3.8
Automated cherry pick of #13134: fix(host): purge isolated_device not work
2022-01-05 17:59:15 +08:00
Zexi Li
19d936ca09 fix(host): purge isolated_device not work 2022-01-05 17:36:44 +08:00
Qiu Jian
a852b3836b fix: fetch image properties from iso properly 2022-01-05 16:41:26 +08:00
ioito
1d6893a236 fix(region): image not found details error 2022-01-05 11:56:34 +08:00
Zexi Li
db0dd72774 Merge pull request #13127 from zexi/automated-cherry-pick-of-#13126-upstream-release-3.8
Automated cherry pick of #13126: fix(host): unplugged isolated devices probe not deleted
2022-01-05 10:42:35 +08:00
Zexi Li
1f1ada5258 Merge pull request #13128 from zexi/usb-passthrough-opt
fix(host): qemu usb passthrough option convert to int
2022-01-04 20:35:53 +08:00
Zexi Li
3a630b2bb9 fix(host): qemu usb passthrough option convert to int 2022-01-04 20:30:18 +08:00
Zexi Li
30ba135be5 fix(host): unplugged isolated devices probe not deleted 2022-01-04 18:39:07 +08:00
Zexi Li
00d7a7186c Merge pull request #13124 from ioito/automated-cherry-pick-of-#13123-upstream-release-3.8
Automated cherry pick of #13123: Hotfix/qx qemu block dev
2022-01-04 17:11:03 +08:00
ioito
778825d363 fix(host): migrate progress 2022-01-04 16:03:07 +08:00
ioito
94b692fb8d fix(host): qemu block device 2022-01-04 16:01:39 +08:00
Zexi Li
228d0811cd Merge pull request #13121 from rainzm/automated-cherry-pick-of-#13120-upstream-release-3.8
Automated cherry pick of #13120: fix(region): check whether ipProvider is nil
2022-01-04 14:35:16 +08:00
rainzm
c534fb78ab fix(region): check whether ipProvider is nil 2022-01-04 11:47:12 +08:00
Zexi Li
d18552a9d8 Merge pull request #13118 from swordqiu/automated-cherry-pick-of-#13117-upstream-release-3.8
Automated cherry pick of #13117: fix: host tune system set default arp gc threshold
2022-01-04 11:45:04 +08:00
Qiu Jian
0dcdb14a9b fix: host tune system set default arp gc threshold 2022-01-04 11:02:04 +08:00
Zexi Li
277bfb765f Merge pull request #13114 from swordqiu/automated-cherry-pick-of-#13113-upstream-release-3.8
Automated cherry pick of #13113: fix: qemu-img convert may hang on aarach64
2022-01-04 09:35:51 +08:00
Zexi Li
ba33c9ac02 Merge pull request #13116 from swordqiu/automated-cherry-pick-of-#13115-upstream-release-3.8
Automated cherry pick of #13115: fix: automatic set ovsbridge MTU, consistent MTU settings
2022-01-04 09:35:19 +08:00
Zexi Li
b88edfd3ac Merge pull request #13112 from swordqiu/automated-cherry-pick-of-#13111-upstream-release-3.8
Automated cherry pick of #13111: fix: update server desc host_id after migration
2022-01-04 09:34:20 +08:00
Qiu Jian
4b0a16645b fix: automatic set ovsbridge MTU, consistent MTU settings 2022-01-04 00:19:40 +08:00
Qiu Jian
d33dbc47c2 fix: qemu-img convert may hang on aarach64 2022-01-03 02:54:50 +08:00
Qiu Jian
aaec778dad fix: update server desc host_id after migration 2022-01-02 12:31:14 +08:00
Jian Qiu
fad8ef451d feature: vip support (#13106)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-01-02 08:49:18 +08:00
Zexi Li
1ca48db0af Merge pull request #13108 from ioito/automated-cherry-pick-of-#13107-upstream-release-3.8
Automated cherry pick of #13107: fix(region): qcloud lb support bandwidth
2022-01-01 13:48:33 +08:00
ioito
d579f484d3 fix(region): qcloud lb support bandwidth 2021-12-31 15:47:43 +08:00
Zexi Li
48ca832cb6 Merge pull request #13105 from ioito/automated-cherry-pick-of-#13104-upstream-release-3.8
Automated cherry pick of #13104: fix(host): clean progress when migrate complete
2021-12-31 10:30:23 +08:00
ioito
f10de6ce5c fix(host): clean progress when migrate complete 2021-12-31 10:26:50 +08:00
屈轩
ffb1e92184 fix(host): add progress for migrate (#13102) 2021-12-31 06:09:25 +08:00
Zexi Li
4ab9c065dc Merge pull request #13082 from ioito/automated-cherry-pick-of-#13081-upstream-release-3.8
Automated cherry pick of #13081: fix(region): storage add unmount status
2021-12-30 17:47:58 +08:00
Zexi Li
d8d55de807 Merge pull request #13099 from ioito/automated-cherry-pick-of-#13098-upstream-release-3.8
Automated cherry pick of #13098: fix(host): guest clone progress complete
2021-12-30 16:58:46 +08:00
ioito
2db95d1c31 fix(host): guest clone progress complete 2021-12-30 16:56:40 +08:00
屈轩
fb1c583a3d fix(region): guest progress (#13097) 2021-12-30 14:22:33 +08:00
Zexi Li
3581fefe32 Merge pull request #13094 from zexi/automated-cherry-pick-of-#13093-upstream-release-3.8
Automated cherry pick of #13093: feat(region): isolated devices filter by guest_id
2021-12-30 13:36:14 +08:00
Zexi Li
7417812788 Merge pull request #13096 from swordqiu/automated-cherry-pick-of-#13095-upstream-release-3.8
Automated cherry pick of #13095: fix: start block stream detach qemu startup task
2021-12-30 13:19:06 +08:00
Qiu Jian
5a8118d33f fix: start block stream detach qmu startup task 2021-12-30 12:52:08 +08:00
Zexi Li
3dd144197e feat(region): isolated devices filter by guest_id 2021-12-30 11:48:18 +08:00
Zexi Li
6ae7ead502 Merge pull request #13092 from zexi/automated-cherry-pick-of-#13091-upstream-release-3.8
Automated cherry pick of #13091: feat(compute): server probe isolated devices supported
2021-12-30 11:35:48 +08:00
Zexi Li
4528a48d5f feat(compute): server probe isolated devices supported 2021-12-30 11:25:05 +08:00
Zexi Li
348442d65f Merge pull request #13072 from ioito/automated-cherry-pick-of-#13071-upstream-release-3.8
Automated cherry pick of #13071: fix(region): keystone default policy
2021-12-30 10:45:31 +08:00
Zexi Li
3a504d74ac Merge pull request #13090 from zexi/automated-cherry-pick-of-#13089-upstream-release-3.8
Automated cherry pick of #13089: fix(region): isolated device reserved memory default typo
2021-12-30 10:27:17 +08:00
Zexi Li
be61defd4a fix(region): isolated device reserved memory default typo 2021-12-30 10:26:41 +08:00
Zexi Li
5f7a7c54e8 Merge pull request #13086 from zexi/automated-cherry-pick-of-#13085-upstream-release-3.8
Automated cherry pick of #13085: fix(region): not override migrating status when manually sync status
2021-12-30 10:04:33 +08:00
Zexi Li
03133e867d Merge pull request #13088 from swordqiu/automated-cherry-pick-of-#13087-upstream-release-3.8
Automated cherry pick of #13087: fix: several improvements on qemu migration:
2021-12-30 10:04:07 +08:00
Qiu Jian
9a20e80ae0 fix: several improvements on qemu migration: 1. enable qemu debug log if host log_level is debug. 2. disable rng device by default. 3. handle resume fail post migration 2021-12-30 02:03:09 +08:00
Zexi Li
1287ad997a fix(region): not override migrating status when manually sync status 2021-12-29 23:17:21 +08:00
Zexi Li
939fc20411 Merge pull request #13074 from ioito/automated-cherry-pick-of-#13073-upstream-release-3.8
Automated cherry pick of #13073: fix(region): lb filter by owner
2021-12-29 19:25:00 +08:00
Zexi Li
8a6016a204 Merge pull request #13064 from rainzm/automated-cherry-pick-of-#13063-upstream-release-3.8
Automated cherry pick of #13063: fix(region): distinguish guests_ Root and data of image sub image
2021-12-29 19:23:34 +08:00
Zexi Li
c45cf5778a Merge pull request #13084 from zexi/automated-cherry-pick-of-#13083-upstream-release-3.8
Automated cherry pick of #13083: fix(region,host): sync usb isolated device error not display
2021-12-29 17:42:32 +08:00
Zexi Li
7048bd5e67 fix(region,host): sync usb isolated device error not display 2021-12-29 17:40:57 +08:00
Zexi Li
7ea18998ac Merge pull request #13077 from ioito/automated-cherry-pick-of-#13076-upstream-release-3.8
Automated cherry pick of #13076: fix(region): wire topology name
2021-12-29 17:38:12 +08:00
Zexi Li
a913e111f9 Merge pull request #13080 from swordqiu/automated-cherry-pick-of-#13079-upstream-release-3.8
Automated cherry pick of #13079: fix: fail to fetch disk storage_type
2021-12-29 17:37:05 +08:00
ioito
46c8fd38eb fix(region): storage add unmount status 2021-12-29 17:31:12 +08:00
Qiu Jian
888bc23060 fix: fail to fetch disk storage_type 2021-12-29 17:25:13 +08:00
ioito
9fb52362fb fix(region): wire topology name 2021-12-29 16:37:07 +08:00
ioito
deaa431808 fix(region): lb filter by owner 2021-12-29 14:51:41 +08:00
ioito
4484ca582a fix(region): keystone default policy 2021-12-29 11:22:00 +08:00
Zexi Li
e34399fe34 Merge pull request #13057 from ioito/automated-cherry-pick-of-#13056-upstream-release-3.8
Automated cherry pick of #13056: fix(region): ignore invalid zone id skus
2021-12-29 11:14:36 +08:00
Zexi Li
691101883b Merge pull request #13068 from ioito/automated-cherry-pick-of-#13067-upstream-release-3.8
Automated cherry pick of #13067: fix(region): add owner status for vpc topology
2021-12-28 19:48:14 +08:00
Zexi Li
6ee36626c4 Merge pull request #13070 from zexi/automated-cherry-pick-of-#13069-upstream-release-3.8
Automated cherry pick of #13069: fix(region): set isolated_device model 512 length
2021-12-28 19:42:47 +08:00
Zexi Li
e39f65ff30 fix(region): set isolated_device model 512 length 2021-12-28 19:42:16 +08:00
ioito
2bcdbba51b fix(region): add owner status for vpc topology 2021-12-28 19:42:09 +08:00
Zexi Li
a49d5f08e8 Merge pull request #13066 from zexi/automated-cherry-pick-of-#13026-upstream-release-3.8
Automated cherry pick of #13026: feat(region,host): usb passthrough
2021-12-28 19:21:23 +08:00
Zexi Li
1947384abe feat(region,host): usb passthrough 2021-12-28 19:16:43 +08:00
rainzm
455545a779 fix(region): distinguish guests_ Root and data of image sub image 2021-12-28 18:35:24 +08:00
Zexi Li
5bfe6efa2d Merge pull request #13060 from ioito/automated-cherry-pick-of-#13059-upstream-release-3.8
Automated cherry pick of #13059: fix(region): vpc topology scope with system
2021-12-28 16:27:56 +08:00
ioito
d0bacf552c fix(region): vpc topology scope with system 2021-12-28 16:19:26 +08:00
ioito
7ab21a04b9 fix(region): ignore invalid zone id skus 2021-12-28 14:40:22 +08:00
Zexi Li
24862e6a9c Merge pull request #13051 from ioito/automated-cherry-pick-of-#13050-upstream-release-3.8
Automated cherry pick of #13050: fix(region): aws security group name generate
2021-12-28 10:57:01 +08:00
Zexi Li
d346340fd7 Merge pull request #13009 from ioito/automated-cherry-pick-of-#13008-upstream-release-3.8
Automated cherry pick of #13008: fix(region): secgroup purge with cloudaccount deleted
2021-12-28 10:55:50 +08:00
Zexi Li
35d5a5848d Merge pull request #13054 from ioito/automated-cherry-pick-of-#13053-upstream-release-3.8
Automated cherry pick of #13053: fix(region): json to string fix
2021-12-28 10:54:09 +08:00
ioito
6166a6d17a fix(region): json to string fix 2021-12-28 10:42:12 +08:00
ioito
154d33707c fix(region): aws security group name generate 2021-12-28 09:56:59 +08:00
Zexi Li
6659bcc9e7 Merge pull request #13048 from ioito/automated-cherry-pick-of-#13047-upstream-release-3.8
Automated cherry pick of #13047: fix(region): vpc topology data fix
2021-12-27 15:59:56 +08:00
ioito
be529e9f65 fix(region): vpc topology data fix 2021-12-27 15:31:25 +08:00
Zexi Li
9d01b212ca Merge pull request #13043 from swordqiu/automated-cherry-pick-of-#13042-upstream-release-3.8
Automated cherry pick of #13042: Hotfix/qj migrate progress update
2021-12-27 12:17:06 +08:00
Zexi Li
cddbcbf097 Merge pull request #13032 from rainzm/automated-cherry-pick-of-#13031-upstream-release-3.8
Automated cherry pick of #13031: fix(notify): real delete for email and mobile
2021-12-27 12:14:08 +08:00
Zexi Li
30ce77d4da Merge pull request #13011 from ioito/automated-cherry-pick-of-#13010-upstream-release-3.8
Automated cherry pick of #13010: fix(region): 删除vm中间不会出现ready状态,避免前端停止刷新
2021-12-27 12:12:58 +08:00
Zexi Li
ce5737aaf8 Merge pull request #13037 from swordqiu/automated-cherry-pick-of-#13036-upstream-release-3.8
Automated cherry pick of #13036: fix: enable kvm_pv_eoi by default
2021-12-27 12:10:31 +08:00
Zexi Li
0616dbd175 Merge pull request #13041 from swordqiu/automated-cherry-pick-of-#13040-upstream-release-3.8
Automated cherry pick of #13040: fix: hostinfo onfail should return immediately
2021-12-27 12:09:32 +08:00
Zexi Li
bdf8cf4c0e Merge pull request #13046 from ioito/automated-cherry-pick-of-#13045-upstream-release-3.8
Automated cherry pick of #13045: fix(region): add vpc host topology
2021-12-27 11:08:20 +08:00
ioito
353deaa0bb fix(region): add vpc host topology 2021-12-27 10:50:01 +08:00
Qiu Jian
39bd995fc1 fix: add migrate progress metrics 2021-12-26 00:17:41 +08:00
Qiu Jian
5395d56176 feature: migrate progress update 2021-12-26 00:17:41 +08:00
yunion-ci-robot
b23f4cf5c8 Merge pull request #13034 from ioito/automated-cherry-pick-of-#13033-upstream-release-3.8
Automated cherry pick of #13033: fix(host): add vm clonse progress and mbps
2021-12-25 15:33:40 +08:00
Qiu Jian
5929a97c24 fix: hostinfo onfail should return immediately 2021-12-25 14:49:22 +08:00
yunion-ci-robot
3ff56b2dd1 Merge pull request #13035 from swordqiu/automated-cherry-pick-of-#13030-upstream-release-3.8
Automated cherry pick of #13030: fix: arm supported maxcpu<64
2021-12-24 21:58:41 +08:00
Qiu Jian
166e3624f2 fix: enable kvm_pv_eoi by default 2021-12-24 21:48:42 +08:00
ioito
fff9ce2f1e fix(host): add vm clonse progress and mbps 2021-12-24 20:04:05 +08:00
rainzm
2b3d2b4dec fix(notify): real delete for email and mobile 2021-12-24 18:57:39 +08:00
Zexi Li
b5ec683084 Merge pull request #13019 from swordqiu/automated-cherry-pick-of-#13018-upstream-release-3.8
Automated cherry pick of #13018: fix: hide systemd detection logs
2021-12-24 18:24:14 +08:00
Zexi Li
8a011b2952 Merge pull request #13028 from ioito/automated-cherry-pick-of-#13027-upstream-release-3.8
Automated cherry pick of #13027: fix(region): google security group fix
2021-12-24 18:23:12 +08:00
Zexi Li
c7aa57e3bc Merge pull request #13016 from ioito/automated-cherry-pick-of-#13015-upstream-release-3.8
Automated cherry pick of #13015: fix(region): vpc create with tags
2021-12-24 18:11:16 +08:00
Zexi Li
997d63b307 Merge pull request #13023 from zexi/automated-cherry-pick-of-#13022-upstream-release-3.8
Automated cherry pick of #13022: fix(region): gpu fuzzy match model name exactly
2021-12-24 18:09:48 +08:00
Zexi Li
7f3524d419 Merge pull request #13014 from ioito/automated-cherry-pick-of-#13013-upstream-release-3.8
Automated cherry pick of #13013: fix(region): 对等连接同步状态恢复对端id
2021-12-24 18:09:28 +08:00
Qiu Jian
a60c014a6c fix: arm supported maxcpu<64 2021-12-24 17:59:58 +08:00
ioito
ba647fcab7 fix(region): google security group fix 2021-12-24 17:55:31 +08:00
Zexi Li
37fcaaf64f fix(region): gpu fuzzy match model name exactly 2021-12-24 14:51:17 +08:00
Qiu Jian
108236dcd0 fix: hide systemd detection logs 2021-12-23 20:43:52 +08:00
ioito
ea3f8c91b1 fix(region): vpc create with tags 2021-12-23 19:39:18 +08:00
ioito
45fa2c1cfa fix(region): 对等连接同步状态恢复对端id 2021-12-23 18:28:48 +08:00
ioito
db9cadcaf9 fix(region): 删除vm中间不会出现ready状态,避免前端停止刷新 2021-12-23 18:04:50 +08:00
ioito
89f3592aad fix(region): secgroup purge with cloudaccount deleted 2021-12-23 16:20:13 +08:00
Zexi Li
0db4c4f440 Merge pull request #13006 from ioito/automated-cherry-pick-of-#13005-upstream-release-3.8
Automated cherry pick of #13005: fix(region): sku scheduler sync
2021-12-23 16:19:36 +08:00
ioito
d3bea782b9 fix(region): sku scheduler sync 2021-12-23 14:51:45 +08:00
Zexi Li
a0d3aec3db Merge pull request #13004 from rainzm/automated-cherry-pick-of-#13003-upstream-release-3.8
Automated cherry pick of #13003: Fixex for restart network
2021-12-23 14:46:07 +08:00
rainzm
505815374a fix(region): Make function calls to the region instead of API calls in task
The mechanism of task resource locking will lead to the blocking and blocking of API calls
2021-12-23 14:40:41 +08:00
rainzm
62e50fc7d9 feat(region, host): allow open forward with specified remote addr 2021-12-23 14:40:41 +08:00
Zexi Li
2eeb381c00 Merge pull request #12988 from ioito/automated-cherry-pick-of-#12987-upstream-release-3.8
Automated cherry pick of #12987: fix(region): auto switch server sku when create vm fail
2021-12-23 10:33:42 +08:00
Zexi Li
e356ef0acf Merge pull request #13002 from swordqiu/automated-cherry-pick-of-#13001-upstream-release-3.8
Automated cherry pick of #13001: fix: migrate no event notes
2021-12-23 09:59:20 +08:00
Zexi Li
bc02fb4e44 Merge pull request #12999 from swordqiu/automated-cherry-pick-of-#12998-upstream-release-3.8
Automated cherry pick of #12998: fix: migrate timeout error
2021-12-23 09:59:00 +08:00
Zexi Li
ecace6a64c Merge pull request #12996 from swordqiu/automated-cherry-pick-of-#12995-upstream-release-3.8
Automated cherry pick of #12995: fix: 1. migration timeout applicable to shared storage migrate only
2021-12-23 09:58:31 +08:00
Qiu Jian
5ab02e6bdc fix: migrate no event notes 2021-12-23 07:59:30 +08:00
Qiu Jian
99c99c28b2 fix: migrate timeout error 2021-12-23 07:56:35 +08:00
Qiu Jian
b2c6a8ccd7 fix: 1. migration timeout applicable to shared storage migrate only 2. migration timeout logic error 3. cancel host download handler timeout 4. add enable_vm_uuid option 5. add migrate event log notes 2021-12-23 01:36:10 +08:00
Zexi Li
61b2586d4f Merge pull request #12994 from rainzm/automated-cherry-pick-of-#12993-upstream-release-3.8
Automated cherry pick of #12993: fix(region): replace vpc_delete with vpc_sync_delete when sycnRemoveVpc
2021-12-22 22:31:40 +08:00
rainzm
4c111ad756 fix(region): replace vpc_delete with vpc_sync_delete when sycnRemoveVpc 2021-12-22 21:43:28 +08:00
Zexi Li
cd78bebac6 Merge pull request #12992 from rainzm/automated-cherry-pick-of-#12991-upstream-release-3.8
Automated cherry pick of #12991: Webhook fix for notify
2021-12-22 19:45:42 +08:00
rainzm
e23078a62a feat(notify): add topic 'resource release due 30 day' 2021-12-22 19:30:10 +08:00
rainzm
e1a5de60b2 fix(notify): add missing webhook notification 2021-12-22 19:30:10 +08:00
ioito
fb69861c23 fix(region): auto switch server sku when create vm fail 2021-12-22 17:07:03 +08:00
Zexi Li
c08890cdbf Merge pull request #12970 from rainzm/automated-cherry-pick-of-#12969-upstream-release-3.8
Automated cherry pick of #12969: feat(region): restart network after change ipaddr for guest
2021-12-22 16:56:20 +08:00
rainzm
a30040c6de feat(region): restart network after change ipaddr for guest 2021-12-22 16:15:40 +08:00
Zexi Li
bfc0dd378a Merge pull request #12982 from ioito/automated-cherry-pick-of-#12981-upstream-release-3.8
Automated cherry pick of #12981: fix(region): qcloud vpc peer connection
2021-12-22 15:52:29 +08:00
Zexi Li
3d40ef138b Merge pull request #12985 from ioito/automated-cherry-pick-of-#12984-upstream-release-3.8
Automated cherry pick of #12984: fix(region): add vpc topology
2021-12-22 15:51:57 +08:00
ioito
0b442354b3 fix(region): add vpc topology 2021-12-22 15:12:34 +08:00
ioito
69e4465f75 fix(region): qcloud vpc peer connection 2021-12-22 14:18:22 +08:00
Zexi Li
e30888a649 Merge pull request #12979 from zexi/automated-cherry-pick-of-#12978-upstream-release-3.8
Automated cherry pick of #12978: fix(build): move librbd librados to baremetal-agent-base image
2021-12-22 11:15:15 +08:00
Zexi Li
db0bb55cdd fix(build): move librbd librados to baremetal-agent-base image 2021-12-22 11:14:39 +08:00
Zexi Li
9358dd6b33 Merge pull request #12959 from ioito/automated-cherry-pick-of-#12958-upstream-release-3.8
Automated cherry pick of #12958: fix(region): qcloud secgroup rule sync
2021-12-22 10:36:25 +08:00
Zexi Li
eb3c4296e2 Merge pull request #12962 from ioito/automated-cherry-pick-of-#12961-upstream-release-3.8
Automated cherry pick of #12961: fix(region): aws capability
2021-12-22 10:36:02 +08:00
Zexi Li
4c15b69e08 Merge pull request #12966 from ioito/automated-cherry-pick-of-#12965-upstream-release-3.8
Automated cherry pick of #12965: fix(region): show empty array disabled brands
2021-12-22 10:27:49 +08:00
Zexi Li
99fd35a96e Merge pull request #12964 from ioito/automated-cherry-pick-of-#12963-upstream-release-3.8
Automated cherry pick of #12963: fix(region): vmware sync fix ip
2021-12-22 10:26:12 +08:00
Zexi Li
c65710b75e Merge pull request #12968 from ioito/automated-cherry-pick-of-#12967-upstream-release-3.8
Automated cherry pick of #12967: fix(region): aws eip dissociate
2021-12-22 10:25:31 +08:00
Zexi Li
dc160907d0 Merge pull request #12972 from ioito/automated-cherry-pick-of-#12971-upstream-release-3.8
Automated cherry pick of #12971: fix(region): security group cache filter
2021-12-22 10:24:37 +08:00
Zexi Li
13df35432b Merge pull request #12977 from swordqiu/automated-cherry-pick-of-#12956-upstream-release-3.8
Automated cherry pick of #12956: fix: system server randomly lose connectivity in vpc network
2021-12-22 10:23:49 +08:00
Qiu Jian
eec2df4b19 fix: system server randomly lose connectivity in vpc network 2021-12-22 02:51:30 +08:00
Zexi Li
85a1d5835a fix(host): update vlan (#12975) 2021-12-22 00:59:14 +08:00
Zexi Li
8602869c4e optimize(host-image,fetcherfs): download disk speed too slow (#12957) 2021-12-22 00:56:37 +08:00
ioito
3917d23f18 fix(region): security group cache filter 2021-12-21 21:28:29 +08:00
ioito
9e662e61a2 fix(region): aws eip dissociate 2021-12-21 20:17:18 +08:00
ioito
dac20be73a fix(region): vmware sync fix ip 2021-12-21 16:35:52 +08:00
ioito
a0a7cff42f fix(region): show empty array disabled brands 2021-12-21 16:08:01 +08:00
ioito
179990df77 fix(region): aws capability 2021-12-21 14:34:27 +08:00
ioito
43a75704b5 fix(region): qcloud secgroup rule sync 2021-12-21 14:20:53 +08:00
Zexi Li
bee3109463 Merge pull request #12910 from ioito/automated-cherry-pick-of-#12909-upstream-release-3.8
Automated cherry pick of #12909: fix(host): add speed info for block-job
2021-12-20 15:59:24 +08:00
ioito
6ab26b92bf fix(host): add speed info for block-job 2021-12-20 15:53:12 +08:00
Zexi Li
f29acab75d Merge pull request #12930 from ioito/automated-cherry-pick-of-#12929-upstream-release-3.8
Automated cherry pick of #12929: fix(region): security group name generate for every cloud platform
2021-12-20 13:03:19 +08:00
Zexi Li
a1cc334df3 Merge pull request #12943 from ioito/automated-cherry-pick-of-#12942-upstream-release-3.8
Automated cherry pick of #12942: fix(keystone): scope resource count
2021-12-20 13:00:40 +08:00
Zexi Li
7eb76a4990 Merge pull request #12953 from swordqiu/automated-cherry-pick-of-#12938-upstream-release-3.8
Automated cherry pick of #12938: fix: server migration halted by an unexpected STOP event
2021-12-19 18:33:22 +08:00
Qiu Jian
28715046b6 fix: server migration halted by an unexpected STOP event 2021-12-18 22:00:37 +08:00
Zexi Li
6ac0d35081 Merge pull request #12947 from ioito/automated-cherry-pick-of-#12946-upstream-release-3.8
Automated cherry pick of #12946: fix(region): dns zone cache purge
2021-12-18 01:05:49 +08:00
ioito
d85e04253c fix(region): dns zone cache purge 2021-12-17 18:07:40 +08:00
ioito
1c29892306 fix(keystone): scope resource count 2021-12-17 16:10:43 +08:00
Zexi Li
aceae9d112 Merge pull request #12934 from ioito/automated-cherry-pick-of-#12933-upstream-release-3.8
Automated cherry pick of #12933: fix(region): add eip and disk usage
2021-12-17 14:34:27 +08:00
Zexi Li
4ecf4f0193 Merge pull request #12940 from zexi/automated-cherry-pick-of-#12939-upstream-release-3.8
Automated cherry pick of #12939: fix(region): vm start failed stage not invoked
2021-12-17 11:24:05 +08:00
Zexi Li
499d8e8e87 fix(region): vm start failed stage not invoked 2021-12-17 11:20:44 +08:00
屈轩
13228cc497 fix(region): merge input and output json (#12921) 2021-12-16 21:18:28 +08:00
Zexi Li
f34f5a2463 fix(host): more readable error info of GetWireOfIp (#12936) 2021-12-16 21:13:45 +08:00
ioito
340db0e603 fix(region): add eip and disk usage 2021-12-16 16:36:51 +08:00
Zexi Li
ced8dfcb86 Merge pull request #12915 from rainzm/automated-cherry-pick-of-#12914-upstream-release-3.8
Automated cherry pick of #12914: feat(region): support detach disk with disk_type 'sys'
2021-12-16 15:16:29 +08:00
rainzm
526dd2b24f feat(region): support detach disk with disk_type 'sys' 2021-12-16 15:08:26 +08:00
ioito
4427387043 fix(region): security group name generate for every cloud platform 2021-12-16 14:28:54 +08:00
Zexi Li
fefb26a754 Merge pull request #12918 from ioito/automated-cherry-pick-of-#12913-upstream-release-3.8
Automated cherry pick of #12913: fix(region): vpc sync misc fix
2021-12-16 10:51:58 +08:00
Zexi Li
05d25bccc2 Merge pull request #12886 from ioito/automated-cherry-pick-of-#12885-upstream-release-3.8
Automated cherry pick of #12885: feat(region): aws nat gateway read
2021-12-16 10:41:01 +08:00
Zexi Li
3eea35e46e Merge pull request #12926 from swordqiu/automated-cherry-pick-of-#12925-upstream-release-3.8
Automated cherry pick of #12925: fix: lbagent pull resources of OneCloud only
2021-12-16 10:40:02 +08:00
Qiu Jian
396a2303da fix: lbagent pull resources of OneCloud only 2021-12-15 22:43:12 +08:00
Zexi Li
239391c25a Merge pull request #12923 from zexi/automated-cherry-pick-of-#12922-upstream-release-3.8
Automated cherry pick of #12922: fix(host): cold migration disk removed
2021-12-15 19:12:13 +08:00
Zexi Li
f582e45249 fix(host): cold migration disk removed 2021-12-15 18:27:29 +08:00
ioito
1f658253bd fix(region): vpc sync misc fix 2021-12-15 16:40:25 +08:00
Zexi Li
6b290732d5 Merge pull request #12917 from zexi/automated-cherry-pick-of-#12916-upstream-release-3.8
Automated cherry pick of #12916: fix(host): enable file.locking=off option for local disk
2021-12-15 16:29:06 +08:00
Zexi Li
8f09982044 fix(host): enable file.locking=off option for local disk 2021-12-15 16:21:44 +08:00
Zexi Li
c89a26bba3 Merge pull request #12912 from zexi/automated-cherry-pick-of-#12911-upstream-release-3.8
Automated cherry pick of #12911: fix(region): live migrate target_storage_id quoted
2021-12-15 15:09:43 +08:00
Zexi Li
e636a43810 fix(region): live migrate target_storage_id quoted 2021-12-15 15:01:22 +08:00
Rain Zheng
d5ae563843 feat(region): add storage_id in GuestDiskInfo (#12882) 2021-12-15 04:17:37 +08:00
Zexi Li
294b7123f6 Merge pull request #12903 from zexi/automated-cherry-pick-of-#12902-upstream-release-3.8
Automated cherry pick of #12902: feat(host): qemu add uuid option
2021-12-14 21:25:14 +08:00
Zexi Li
c32b11585a Merge pull request #12907 from rainzm/automated-cherry-pick-of-#12906-upstream-release-3.8
Automated cherry pick of #12906: fix(region): respect disk's snapshotId in disk_batch_create_task
2021-12-14 21:24:07 +08:00
rainzm
7d6c3df866 fix(region): respect disk's snapshotId in disk_batch_create_task 2021-12-14 21:17:06 +08:00
Zexi Li
892c4b2162 Merge pull request #12892 from ioito/automated-cherry-pick-of-#12891-upstream-release-3.8
Automated cherry pick of #12891: fix(region): aliyun error translation
2021-12-14 21:11:37 +08:00
Zexi Li
70d536ea65 Merge pull request #12894 from ioito/automated-cherry-pick-of-#12893-upstream-release-3.8
Automated cherry pick of #12893: fix(region): openstack use proxy
2021-12-14 21:08:42 +08:00
Zexi Li
5c1a16cbe6 feat(host): qemu add uuid option 2021-12-14 21:03:23 +08:00
ioito
3b42f746a8 fix(region): openstack use proxy 2021-12-14 14:33:54 +08:00
ioito
667a2feab8 fix(region): aliyun error translation 2021-12-14 11:42:08 +08:00
Zexi Li
c67988fc98 Merge pull request #12888 from ioito/automated-cherry-pick-of-#12887-upstream-release-3.8
Automated cherry pick of #12887: fix(region): add filter for global vpc
2021-12-13 22:55:26 +08:00
Zexi Li
b53bc0a1f6 Merge pull request #12870 from ioito/automated-cherry-pick-of-#12869-upstream-release-3.8
Automated cherry pick of #12869: fix(region): vpc filter params
2021-12-13 17:15:52 +08:00
Zexi Li
72b9e7363b Merge pull request #12862 from rainzm/automated-cherry-pick-of-#12861-upstream-release-3.8
Automated cherry pick of #12861: fix(hostman): update storagecacheimage status from 'ready' to 'avtive'
2021-12-13 17:15:09 +08:00
Zexi Li
bbd06b7bcb Merge pull request #12857 from ioito/automated-cherry-pick-of-#12856-upstream-release-3.8
Automated cherry pick of #12856: fix(region): google vm disk attach
2021-12-13 17:14:38 +08:00
Zexi Li
939f53bd84 Merge pull request #12854 from swordqiu/automated-cherry-pick-of-#12853-upstream-release-3.8
Automated cherry pick of #12853: fix: fail to start arm vm
2021-12-13 17:14:10 +08:00
Zexi Li
e588e7955a Merge pull request #12849 from ioito/automated-cherry-pick-of-#12848-upstream-release-3.8
Automated cherry pick of #12848: fix(region): set auto renew with duration
2021-12-13 17:13:16 +08:00
ioito
3ec73fb4b1 fix(region): add filter for global vpc 2021-12-13 16:55:32 +08:00
ioito
2cc3ca9313 feat(region): aws nat gateway read 2021-12-13 16:43:06 +08:00
Zexi Li
c0f616bc18 Merge pull request #12874 from ioito/automated-cherry-pick-of-#12873-upstream-release-3.8
Automated cherry pick of #12873: fix(region): avoid panic when sync vpc peer connection
2021-12-13 16:23:36 +08:00
Zexi Li
88b3ae1adc Merge pull request #12872 from ioito/automated-cherry-pick-of-#12871-upstream-release-3.8
Automated cherry pick of #12871: fix(region): show more global vpc details
2021-12-13 16:22:50 +08:00
Zexi Li
1050cce0ef Merge pull request #12883 from zexi/fix-change-conf-sched
fix(region): inject OsArch to scheduler input when change config
2021-12-13 12:23:56 +08:00
Zexi Li
98346b861c fix(region): inject OsArch to scheduler input when change config 2021-12-13 12:22:54 +08:00
Zexi Li
f2769c5205 Merge pull request #12876 from swordqiu/automated-cherry-pick-of-#12875-upstream-release-3.8
Automated cherry pick of #12875: feature: support galaxy kylin guest OS
2021-12-12 12:12:48 +08:00
Qiu Jian
35f43c1043 feature: support galaxy kylin guest OS 2021-12-11 13:26:53 +08:00
ioito
217645b28e fix(region): avoid panic when sync vpc peer connection 2021-12-10 17:52:28 +08:00
ioito
041f4c5c0e fix(region): show more global vpc details 2021-12-10 17:32:34 +08:00
ioito
7ca5db2f45 fix(region): vpc filter params 2021-12-10 17:28:28 +08:00
Zexi Li
c2cc1e16e9 Merge pull request #12859 from ioito/automated-cherry-pick-of-#12858-upstream-release-3.8
Automated cherry pick of #12858: fix(region): zstack time zone auth
2021-12-10 16:57:29 +08:00
Zexi Li
61c906dda1 Merge pull request #12865 from ioito/automated-cherry-pick-of-#12864-upstream-release-3.8
Automated cherry pick of #12864: fix(region): aliyun route table sync
2021-12-10 16:54:58 +08:00
Zexi Li
807a25b17b Merge pull request #12868 from ioito/automated-cherry-pick-of-#12867-upstream-release-3.8
Automated cherry pick of #12867: fix(region): unified vpc not found error
2021-12-10 16:54:19 +08:00
ioito
52719c90fd fix(region): unified vpc not found error 2021-12-10 16:42:31 +08:00
ioito
60bca7ef88 fix(region): aliyun route table sync 2021-12-10 16:33:45 +08:00
ioito
d98b013cbf fix(region): google vm disk attach 2021-12-10 15:33:56 +08:00
rainzm
cee7a9dd74 fix(hostman): update storagecacheimage status from 'ready' to 'avtive' 2021-12-10 15:30:28 +08:00
ioito
e889d6f5d1 fix(region): zstack time zone auth 2021-12-10 15:08:03 +08:00
Qiu Jian
a2d8949a5c fix: fail to start arm vm 2021-12-10 02:03:08 +08:00
Zexi Li
a2540210b3 Merge pull request #12852 from ioito/automated-cherry-pick-of-#12851-upstream-release-3.8
Automated cherry pick of #12851: fix(region): google eip and snapshot op fix
2021-12-09 23:08:10 +08:00
ioito
69dec5d998 fix(region): google eip and snapshot op fix 2021-12-09 18:40:30 +08:00
ioito
6bb5943d7d fix(region): set auto renew with duration 2021-12-09 17:15:36 +08:00
Zexi Li
02ca025b83 Merge pull request #12836 from rainzm/automated-cherry-pick-of-#12835-upstream-release-3.8
Automated cherry pick of #12835: fix(hostdeployer): Operate with the original name when vgrename fails
2021-12-09 11:22:28 +08:00
Zexi Li
4acf9efca1 Merge pull request #12844 from ioito/automated-cherry-pick-of-#12843-upstream-release-3.8
Automated cherry pick of #12843: fix(region): google sync fix
2021-12-09 01:01:30 +08:00
Zexi Li
eb901814f4 Merge pull request #12842 from ioito/automated-cherry-pick-of-#12841-upstream-release-3.8
Automated cherry pick of #12841: fix(region): add access info for es
2021-12-09 01:01:02 +08:00
Zexi Li
7a3c060427 Merge pull request #12846 from ioito/automated-cherry-pick-of-#12845-upstream-release-3.8
Automated cherry pick of #12845: fix(region): kafka data
2021-12-09 00:58:43 +08:00
ioito
12f61a60c3 fix(region): kafka data 2021-12-08 19:19:39 +08:00
ioito
dcdd65f65f fix(region): google sync fix 2021-12-08 18:58:41 +08:00
ioito
86fa92cab9 fix(region): add access info for es 2021-12-08 18:22:05 +08:00
Zexi Li
5eca4f260e Merge pull request #12838 from swordqiu/automated-cherry-pick-of-#12837-upstream-release-3.8
Automated cherry pick of #12837: fix: fail to recover disk status if disk in unknown status
2021-12-08 12:45:01 +08:00
Zexi Li
a826796b7a Merge pull request #12812 from zexi/automated-cherry-pick-of-#12811-upstream-release-3.8
Automated cherry pick of #12811: fix(host): adjust kvm block_stream query frequency and speed limit
2021-12-08 12:44:37 +08:00
Zexi Li
70f6ad02f0 fix(host): adjust kvm block_stream query frequency and speed limit 2021-12-08 10:17:58 +08:00
Qiu Jian
a7f92206b5 fix: fail to recover disk status if disk in unknown status 2021-12-08 00:28:59 +08:00
rainzm
f4f7f77efb fix(hostdeployer): Operate with the original name when vgrename fails 2021-12-07 20:27:56 +08:00
Zexi Li
7fd630e29f Merge pull request #12834 from ioito/automated-cherry-pick-of-#12833-upstream-release-3.8
Automated cherry pick of #12833: fix(region): google replace globalid
2021-12-07 20:01:28 +08:00
Qu Xuan
a6268bf84f fix(region): google replace globalid 2021-12-07 19:22:11 +08:00
Zexi Li
9d37da517d Merge pull request #12830 from swordqiu/automated-cherry-pick-of-#12829-upstream-release-3.8
Automated cherry pick of #12829: fix: opslog might log event with empty usercred
2021-12-07 10:24:28 +08:00
Qiu Jian
43caa7ba9e fix: opslog might log event with empty usercred 2021-12-06 22:16:42 +08:00
Zexi Li
161dac5ff5 Merge pull request #12808 from rainzm/automated-cherry-pick-of-#12807-upstream-release-3.8
Automated cherry pick of #12807: fix(scheduler): consider perfer and avoid score when sorting HostPrirityList
2021-12-06 14:49:17 +08:00
Zexi Li
5cedea92fa Merge pull request #12826 from swordqiu/automated-cherry-pick-of-#12825-upstream-release-3.8
Automated cherry pick of #12825: feature: set docker daemon default mtu when deploy
2021-12-06 10:08:14 +08:00
Qiu Jian
1794963b79 feature: set docker daemon default mtu when deploy 2021-12-06 07:20:48 +08:00
Zexi Li
bde167c977 Merge pull request #12820 from swordqiu/automated-cherry-pick-of-#12819-upstream-release-3.8
Automated cherry pick of #12819: fix: fail to insert action log with empty notes
2021-12-06 00:04:06 +08:00
Zexi Li
34f069ff19 Merge pull request #12823 from swordqiu/automated-cherry-pick-of-#12822-upstream-release-3.8
Automated cherry pick of #12822: fix: image service can start without valid track endpoints
2021-12-06 00:03:25 +08:00
Qiu Jian
7029525a9f fix: image service can start without valid track endpoints 2021-12-05 23:29:49 +08:00
Qiu Jian
5965d6ace3 fix: fail to insert action log with empty notes 2021-12-05 23:25:38 +08:00
Zexi Li
1d83a92bff Merge pull request #12818 from swordqiu/automated-cherry-pick-of-#12817-upstream-release-3.8
Automated cherry pick of #12817: feature: server create with existing disks
2021-12-05 23:19:59 +08:00
Qiu Jian
506953f4c6 feature: server create with existing disks 2021-12-05 23:05:01 +08:00
rainzm
a31d408421 fix(scheduler): consider perfer and avoid score when sorting HostPriorityList 2021-12-03 15:01:16 +08:00
Zexi Li
1b959a229b Merge pull request #12804 from zexi/automated-cherry-pick-of-#12803-upstream-release-3.8
Automated cherry pick of #12803: fix(build): unify docker image UTC timezone
2021-12-03 11:36:06 +08:00
Zexi Li
43a6cbe67f fix(build): unify docker image UTC timezone 2021-12-03 11:35:20 +08:00
Zexi Li
c0a8a1eedd Merge pull request #12806 from zexi/automated-cherry-pick-of-#12805-upstream-release-3.8
Automated cherry pick of #12805: fix(region): filter deleted storages
2021-12-03 11:29:19 +08:00
yangbaoqiang
0f9c71bf20 fix(region): filter deleted storages
In some situation, getValidStorages return deleted storage and the zone was deleted from
remote(openstack or others).
2021-12-03 11:28:52 +08:00
Zexi Li
234d079579 Merge pull request #12798 from rainzm/automated-cherry-pick-of-#12797-upstream-release-3.8
Automated cherry pick of #12797: fix(scheduler): correct sorting for HostPriorityList
2021-12-02 21:15:05 +08:00
rainzm
47d26c0cb0 fix(scheduler): correct sorting for HostPriorityList 2021-12-02 21:04:24 +08:00
Zexi Li
1b2c19bbd4 Merge pull request #12788 from rainzm/automated-cherry-pick-of-#12787-upstream-release-3.8
Automated cherry pick of #12787: fix(esxiagent): update storagecachedimage status from 'ready' to 'active'
2021-12-02 14:15:04 +08:00
rainzm
58e0e7d373 fix(esxiagent): update storagecachedimage status from 'ready' to 'active' 2021-12-02 11:23:52 +08:00
Zexi Li
971ba4befd Merge pull request #12784 from zexi/host-list-by-os-arch
fix(region): host support list by os_arch
2021-12-01 18:20:41 +08:00
Zexi Li
97bf4b81b9 fix(region): host support list by os_arch 2021-12-01 17:37:01 +08:00
Zexi Li
c9b98e3066 Merge pull request #12782 from zexi/automated-cherry-pick-of-#12781-upstream-release-3.8
Automated cherry pick of #12781: fix(region): improve validate machine type message
2021-12-01 15:35:42 +08:00
Zexi Li
e4537c9442 fix(region): improve validate machine type message 2021-12-01 15:21:35 +08:00
Zexi Li
544f293527 Merge pull request #12778 from rainzm/automated-cherry-pick-of-#12777-upstream-release-3.8
Automated cherry pick of #12777: fix(ansibleserver): update file-repo from v0.3.3 to v0.3.4
2021-11-30 20:16:12 +08:00
rainzm
51c2210c21 fix(ansibleserver): update file-repo from v0.3.3 to v0.3.4
1. When checking telegraf, it is compatible with higher version Debian
2. Debian compatible when getting the installation package name
2021-11-30 17:53:17 +08:00
Zexi Li
1285835893 Merge pull request #12776 from rainzm/automated-cherry-pick-of-#12775-upstream-release-3.8
Automated cherry pick of #12775: fix(region): setExteranlId and upload tags after creating cdndomain
2021-11-30 17:38:37 +08:00
rainzm
db54ce91f3 fix(region): setExteranlId and upload tags after creating cdndomain 2021-11-30 17:11:04 +08:00
Zexi Li
f974128e06 Merge pull request #12764 from ioito/automated-cherry-pick-of-#12763-upstream-release-3.8
Automated cherry pick of #12763: fix(region): delete vm and disk when it was not found
2021-11-30 00:04:25 +08:00
Zexi Li
8cfef508b4 Merge pull request #12767 from ioito/automated-cherry-pick-of-#12766-upstream-release-3.8
Automated cherry pick of #12766: fix(region): add third_party for qcloud
2021-11-30 00:02:47 +08:00
ioito
5c58a30d9d fix(region): add third_party for qcloud 2021-11-29 19:13:26 +08:00
ioito
0fd694a30b fix(region): delete vm and disk when it was not found 2021-11-29 16:38:28 +08:00
Zexi Li
5aebf14f93 Merge pull request #12748 from swordqiu/automated-cherry-pick-of-#12747-upstream-release-3.8
Automated cherry pick of #12747: fix: vpcagent fail to refresh session token
2021-11-28 18:12:50 +08:00
Zexi Li
f0d243f091 Merge pull request #12755 from ioito/automated-cherry-pick-of-#12754-upstream-release-3.8
Automated cherry pick of #12754: fix(region): cdn create fix
2021-11-28 18:12:27 +08:00
Zexi Li
7552304ae0 Merge pull request #12759 from ioito/automated-cherry-pick-of-#12757-upstream-release-3.8
Automated cherry pick of #12757: fix(region): support nas create with tag
2021-11-28 18:11:42 +08:00
Qu Xuan
d5638381df fix(region): support nas create with tag 2021-11-26 18:29:05 +08:00
Qu Xuan
96e6805122 fix(region): cdn create fix 2021-11-26 18:19:12 +08:00
Qiu Jian
93707b972a fix: vpcagent fail to refresh session token 2021-11-26 01:16:29 +08:00
Zexi Li
24afac97fd Merge pull request #12739 from ioito/automated-cherry-pick-of-#12738-upstream-release-3.8
Automated cherry pick of #12738: feat(region): add cdn create op for qcloud
2021-11-25 21:40:27 +08:00
Zexi Li
58e4737bbf Merge pull request #12741 from rainzm/automated-cherry-pick-of-#12740-upstream-release-3.8
Automated cherry pick of #12740: fix: close it after using sql.Rows
2021-11-25 21:35:38 +08:00
Zexi Li
aa03e7e5b7 Merge pull request #12743 from rainzm/automated-cherry-pick-of-#12737-upstream-release-3.8
Automated cherry pick of #12737: fix(region): add rows.Close func
2021-11-25 21:35:08 +08:00
yangbaoqiang
c122f00d52 fix(region): add rows.Close func 2021-11-25 17:43:43 +08:00
rainzm
fad531f21d fix: close it after using sql.Rows 2021-11-25 17:42:01 +08:00
Qu Xuan
564fccaf1f feat(region): add cdn create op for qcloud 2021-11-25 16:03:26 +08:00
Zexi Li
3c0b0555ca Merge pull request #12733 from ioito/automated-cherry-pick-of-#12732-upstream-release-3.8
Automated cherry pick of #12732: fix(region): apsara rds network sync
2021-11-25 00:43:24 +08:00
Qu Xuan
faced4cae4 fix(region): apsara rds network sync 2021-11-24 16:25:20 +08:00
Zexi Li
e9079f9f2c Merge pull request #12727 from zexi/automated-cherry-pick-of-#12724-upstream-release-3.8
Automated cherry pick of #12724: fix(region): adjust the logic of rebuild guest
2021-11-23 10:14:44 +08:00
Zexi Li
490c3b2705 Merge pull request #12717 from swordqiu/automated-cherry-pick-of-#12716-upstream-release-3.8
Automated cherry pick of #12716: fix: correct prefined policies definitions
2021-11-23 10:13:29 +08:00
Zexi Li
5de6d4ed6d Merge pull request #12725 from swordqiu/automated-cherry-pick-of-#12720-upstream-release-3.8
Automated cherry pick of #12720: fix: disk driver persistence
2021-11-23 10:13:00 +08:00
yangbaoqiang
11e5ce0210 fix(region): openstack.go
1.调整eip解绑后,重新绑定函数位置
2.调整guest数据盘卸载后,重新挂载函数位置
2021-11-23 10:11:38 +08:00
Qiu Jian
1479ecd6f6 fix: disk driver persistence 2021-11-22 20:50:36 +08:00
Qiu Jian
37d22b33cb fix: correct prefined policies definitions 2021-11-20 10:40:19 +08:00
Zexi Li
cc8124bce8 Merge pull request #12712 from swordqiu/automated-cherry-pick-of-#12711-upstream-release-3.8
Automated cherry pick of #12711: fix: add host option for ethtool_enable_gso
2021-11-19 18:30:26 +08:00
Qiu Jian
7d643c6121 fix: add host option for ethtool_enable_gso 2021-11-19 03:15:06 +08:00
Zexi Li
931da8218b Merge pull request #12703 from ioito/automated-cherry-pick-of-#12700-upstream-release-3.8
Automated cherry pick of #12700: fix(apigateway): support filename export
2021-11-18 22:24:56 +08:00
Zexi Li
fcb916cf56 Merge pull request #12702 from zexi/automated-cherry-pick-of-#12701-upstream-release-3.8
Automated cherry pick of #12701: fix(host): only local disk enable file.locking option on arm64 host
2021-11-18 22:23:38 +08:00
Zexi Li
7a0dc1fbb2 Merge pull request #12706 from tb365/automated-cherry-pick-of-#12705-upstream-release-3.8
Automated cherry pick of #12705: gcp lb sync address bugfix
2021-11-18 22:22:55 +08:00
tb365
eab2eb347a gcp lb sync address bugfix 2021-11-18 13:23:50 +08:00
Qu Xuan
549ad633bb fix(apigateway): support filename export 2021-11-18 10:48:46 +08:00
Zexi Li
7073c522db fix(host): only local disk enable file.locking option on arm64 host 2021-11-18 10:48:00 +08:00
Jian Qiu
270a4d01e8 fix: add switch of sdnagent tc man (#12698)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-11-18 05:16:55 +08:00
Zexi Li
0beadec4e7 Merge pull request #12691 from swordqiu/automated-cherry-pick-of-#12640-upstream-release-3.8
Automated cherry pick of #12640: fix: validate VM vdi,vga,machine input
2021-11-17 16:53:07 +08:00
Zexi Li
49853ff500 Merge pull request #12688 from ioito/automated-cherry-pick-of-#12687-upstream-release-3.8
Automated cherry pick of #12687: fix(cloudevent): qcloud event time
2021-11-17 16:41:06 +08:00
Zexi Li
ae38e4697b Merge pull request #12690 from swordqiu/automated-cherry-pick-of-#12626-upstream-release-3.8
Automated cherry pick of #12626: fix: qemu extra options support multiple values
2021-11-17 15:57:26 +08:00
Zexi Li
0b35d90e5f Merge pull request #12693 from tb365/automated-cherry-pick-of-#12692-upstream-release-3.8
Automated cherry pick of #12692: gcp lb sync ip address fix
2021-11-17 15:44:09 +08:00
Zexi Li
1aaa1e607b Merge pull request #12694 from swordqiu/hotfix/qj-fix-sqlchemy-version-for-3.8
fix: fix sqlchemy version to v1.0.0 for release/3.8
2021-11-17 15:43:09 +08:00
tb365
e41cb3a7a7 lb cloudregion overwrite fix 2021-11-17 14:55:14 +08:00
tb365
2cd87724a0 gcp lb sync ip address fix 2021-11-17 14:55:14 +08:00
Qiu Jian
50f0e77fb6 fix: fix sqlchemy version to v1.0.0 for release/3.8 2021-11-17 14:42:29 +08:00
Qiu Jian
bd57ee406e fix: validate VM vdi,vga,machine input 2021-11-17 07:56:44 +08:00
Qiu Jian
2004e00a42 fix: qemu extra options support multiple values 2021-11-17 07:35:50 +08:00
Qu Xuan
499cd9445d fix(cloudevent): qcloud event time 2021-11-16 17:40:37 +08:00
Zexi Li
83da0272e7 Merge pull request #12682 from swordqiu/automated-cherry-pick-of-#12681-upstream-release-3.8
Automated cherry pick of #12681: fix: server-create-eip allocation prefer owner's eip network
2021-11-16 16:11:03 +08:00
Zexi Li
4599ebec43 Merge pull request #12665 from tb365/automated-cherry-pick-of-#12664-upstream-release-3.8
Automated cherry pick of #12664: ctyun support crm account
2021-11-16 10:16:14 +08:00
Zexi Li
89f3c84046 Merge pull request #12680 from ioito/automated-cherry-pick-of-#12679-upstream-release-3.8
Automated cherry pick of #12679: fix(region): tag sync
2021-11-16 10:15:24 +08:00
Zexi Li
ff7a50d400 Merge pull request #12684 from ioito/automated-cherry-pick-of-#12683-upstream-release-3.8
Automated cherry pick of #12683: fix(region): export user_tags
2021-11-16 09:11:40 +08:00
Qiu Jian
b13d6c86c9 fix: server-create-eip allocation prefer owner's eip network 2021-11-15 19:32:02 +08:00
Zexi Li
0776a61e08 Merge pull request #12677 from zhaoxiangchun/automated-cherry-pick-of-#12671-upstream-release-3.8
Automated cherry pick of #12671: fix(monitor): 告警历史问题修复
2021-11-15 18:25:19 +08:00
Qu Xuan
19f9e5114d fix(region): export user_tags 2021-11-15 17:36:31 +08:00
Qu Xuan
b1ed622f02 fix(region): tag sync 2021-11-15 17:04:13 +08:00
zhaoxiangchun
0c043d985b fix(monitor): remove websocket import in monitor service 2021-11-15 09:55:49 +08:00
zhaoxiangchun
58026fb5ff fix(monitor): 告警历史问题修复
1.https://bug.yunion.io/zentao/bug-view-7933.html
2021-11-15 09:52:34 +08:00
Zexi Li
d668007522 Merge pull request #12673 from ioito/automated-cherry-pick-of-#12672-upstream-release-3.8
Automated cherry pick of #12672: fix(region): waf app tag sync
2021-11-13 18:53:08 +08:00
Qu Xuan
f86c3d543a fix(region): waf app tag sync 2021-11-12 16:30:51 +08:00
tb365
ce00e36236 ctyun support crm account 2021-11-12 11:16:04 +08:00
Zexi Li
f18a2f6dd9 Merge pull request #12662 from ioito/automated-cherry-pick-of-#12661-upstream-release-3.8
Automated cherry pick of #12661: fix(climc): fix proxy for cli
2021-11-11 10:07:03 +08:00
Zexi Li
85e57e0ce1 Merge pull request #12667 from swordqiu/automated-cherry-pick-of-#12666-upstream-release-3.8
Automated cherry pick of #12666: fix: fail to free reserved ip in non-owner project
2021-11-11 10:06:09 +08:00
Zexi Li
5b58925c72 Merge pull request #12630 from ioito/automated-cherry-pick-of-#12629-upstream-release-3.8
Automated cherry pick of #12629: fix(region): add api field for vpc-peering
2021-11-11 10:05:24 +08:00
Qiu Jian
29c250e4e8 fix: fail to free reserved ip in non-owner project 2021-11-11 07:38:49 +08:00
Qu Xuan
8f21d7e5c4 fix(climc): fix proxy for cli 2021-11-10 15:50:26 +08:00
Qu Xuan
39d5659a67 fix(region): add api field for vpc-peering 2021-11-10 15:16:28 +08:00
Zexi Li
6628c14be4 Merge pull request #12617 from tb365/automated-cherry-pick-of-#12616-upstream-release-3.8
Automated cherry pick of #12616: Bugfix/tb bugfix 110501
2021-11-10 12:22:19 +08:00
Zexi Li
09998e5794 Merge pull request #12657 from swordqiu/automated-cherry-pick-of-#12656-upstream-release-3.8
Automated cherry pick of #12656: fix: allocate eip from network that belong sto the same project
2021-11-10 12:21:16 +08:00
Zexi Li
dec00ac58e Merge pull request #12659 from ioito/automated-cherry-pick-of-#12658-upstream-release-3.8
Automated cherry pick of #12658: fix(region): google secgroup sync
2021-11-10 12:20:54 +08:00
Zexi Li
a174c5f026 Merge pull request #12619 from swordqiu/automated-cherry-pick-of-#12597-upstream-release-3.8
Automated cherry pick of #12597: feature: pass ntp server by DHCP option
2021-11-10 12:16:36 +08:00
Qiu Jian
a8b1a9578f update vendor 2021-11-10 11:56:51 +08:00
Qiu Jian
ff389df452 update vendor 2021-11-10 11:54:56 +08:00
Qiu Jian
ecf6c65c22 update vendor 2021-11-10 11:54:17 +08:00
Qiu Jian
6ba2937e48 fix: fixed on merge Input json 2021-11-10 11:53:36 +08:00
Qiu Jian
77a989fbeb update vendor 2021-11-10 11:53:36 +08:00
Qiu Jian
24825d642a feature: pass ntp server by DHCP option 2021-11-10 11:53:36 +08:00
Qu Xuan
fa5364ab5a fix(region): google secgroup sync 2021-11-10 11:07:19 +08:00
Qiu Jian
c37511ad3c fix: allocate eip from network that belong sto the same project 2021-11-10 10:12:35 +08:00
Zexi Li
09a28d2264 Merge pull request #12653 from swordqiu/automated-cherry-pick-of-#12641-upstream-release-3.8
Automated cherry pick of #12641: fix: false delted field for deleted resources
2021-11-09 20:51:47 +08:00
Qiu Jian
6573c23ff7 fix: false delted field for deleted resources 2021-11-09 19:46:00 +08:00
屈轩
518417cad5 fix(climc): json output (#12652)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2021-11-09 19:33:36 +08:00
Zexi Li
1dbb84b97f Merge pull request #12647 from zexi/host-ssh-closed
fix(webconsole): host ssh use cloudroot user error
2021-11-09 19:31:51 +08:00
Zexi Li
0154346da7 fix(webconsole): host ssh use cloudroot user error 2021-11-09 18:32:58 +08:00
Zexi Li
296859b2d7 Merge pull request #12643 from zexi/automated-cherry-pick-of-#12642-upstream-release-3.8
Automated cherry pick of #12642: fix(host): nfs clone disk from storage not implement
2021-11-09 18:14:46 +08:00
Zexi Li
8c0df9b2d0 Merge pull request #12645 from ioito/automated-cherry-pick-of-#12644-upstream-release-3.8
Automated cherry pick of #12644: fix(climc): climc json output
2021-11-09 18:13:50 +08:00
Qu Xuan
592b076040 fix(climc): climc json output 2021-11-09 17:16:05 +08:00
Zexi Li
f56dc81625 fix(host): nfs clone disk from storage not implement 2021-11-09 10:05:26 +08:00
Zexi Li
8a1fcf7382 Merge pull request #12628 from swordqiu/automated-cherry-pick-of-#12627-upstream-release-3.8
Automated cherry pick of #12627: fix: optimize vm disk io parameters
2021-11-09 01:18:09 +08:00
Zexi Li
9a76b09d49 Merge pull request #12632 from ioito/automated-cherry-pick-of-#12631-upstream-release-3.8
Automated cherry pick of #12631: fix(region): sync cloudpods metadata
2021-11-09 01:17:11 +08:00
Zexi Li
82f84a02c8 Merge pull request #12634 from ioito/automated-cherry-pick-of-#12633-upstream-release-3.8
Automated cherry pick of #12633: fix(region): aws redis not found error
2021-11-09 01:16:22 +08:00
Zexi Li
70e43c5974 Merge pull request #12637 from tb365/automated-cherry-pick-of-#12636-upstream-release-3.8
Automated cherry pick of #12636: qcloud&aliyun update backend weight value range fix
2021-11-09 01:15:34 +08:00
tb365
2de66d3f1d qcloud&aliyun update backend weight value range fix 2021-11-08 17:23:35 +08:00
Qu Xuan
ce30b0067e fix(region): aws redis not found error 2021-11-08 14:57:54 +08:00
Qu Xuan
9b93f19a40 fix(region): sync cloudpods metadata 2021-11-08 14:39:23 +08:00
Qiu Jian
cd61b49526 fix: optimize vm disk io parameters 2021-11-08 12:03:28 +08:00
Jian Qiu
03591ce71b fix: cleanup compile warnings (#12621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-11-06 12:29:46 +08:00
tb365
f299be672e loadbalancer sync remove backend group 2021-11-05 19:14:48 +08:00
tb365
39588989ad loadbalancer ipfronts 2021-11-05 19:14:48 +08:00
Zexi Li
73246a90b7 Merge pull request #12614 from zhaoxiangchun/automated-cherry-pick-of-#12613-upstream-release-3.8
Automated cherry pick of #12613: fix(monitor): monitor host query fix
2021-11-05 18:37:14 +08:00
zhaoxiangchun
5cf2937871 fix(monitor): monitor host query fix 2021-11-05 14:14:49 +08:00
Zexi Li
a7064c792e Merge pull request #12610 from ioito/automated-cherry-pick-of-#12609-upstream-release-3.8
Automated cherry pick of #12609: fix(region): avoid cidr change 0.0.0.0/0
2021-11-05 10:40:07 +08:00
Qu Xuan
d797eb3144 fix(region): avoid cidr change 0.0.0.0/0 2021-11-05 10:04:46 +08:00
Zexi Li
a3fa8463dd Merge pull request #12601 from tb365/automated-cherry-pick-of-#12600-upstream-release-3.8
Automated cherry pick of #12600: support gcp regional lb sync
2021-11-05 01:15:33 +08:00
Zexi Li
ddc7c4ffb6 feat(region,host): create or update server add machine option (#12606) 2021-11-04 22:27:00 +08:00
tb365
9a94f03e11 support gcp regional lb sync 2021-11-04 16:59:09 +08:00
Zexi Li
194998499b Merge pull request #12596 from zhaoxiangchun/automated-cherry-pick-of-#12595-upstream-release-3.8
Automated cherry pick of #12595: fix(monitor): monitor alert support:{level} filter
2021-11-04 16:25:12 +08:00
zhaoxiangchun
d435034e6d fix(monitor): add monitor sheild {expired} state 2021-11-04 16:20:21 +08:00
zhaoxiangchun
d51ea4d961 fix(monitor): onecloud notifier send sys when user_ids and robot_ids length == 0 2021-11-04 16:20:21 +08:00
zhaoxiangchun
8381a3f1f2 fix(monitor): monitor alert support:{level} filter 2021-11-04 16:20:21 +08:00
Zexi Li
df141ff513 Merge pull request #12599 from rainzm/automated-cherry-pick-of-#12598-upstream-release-3.8
Automated cherry pick of #12598: fix(notify): init system tenant_id for robot without tenant_id
2021-11-03 22:56:08 +08:00
rainzm
09854f51c3 fix(notify): init system tenant_id for robot without tenant_id 2021-11-03 19:58:54 +08:00
Zexi Li
f0fd038faa Merge pull request #12594 from rainzm/automated-cherry-pick-of-#12593-upstream-release-3.8
Automated cherry pick of #12593: fix(region): avoid syncing when starting or stoping esxi vm
2021-11-03 18:08:38 +08:00
Zexi Li
c9c2c8e478 Merge pull request #12591 from rainzm/automated-cherry-pick-of-#12590-upstream-release-3.8
Automated cherry pick of #12590: fix(esxi): avoid uplink dvpg
2021-11-03 18:07:14 +08:00
rainzm
25a9086f98 fix(region): avoid syncing when starting or stoping esxi vm 2021-11-03 18:02:46 +08:00
Zexi Li
b736a6d483 Merge pull request #12588 from zexi/automated-cherry-pick-of-#12585-upstream-release-3.8
Automated cherry pick of #12585: feat(region,host): implement server change disk storage
2021-11-03 17:14:00 +08:00
rainzm
d3c8315b81 fix(esxi): avoid uplink dvpg 2021-11-03 17:04:41 +08:00
Zexi Li
bad21c8698 feat(region,host): implement server change disk storage 2021-11-03 11:44:54 +08:00
Jian Qiu
f42bce4184 fix: disable MFA by default (#12587) 2021-11-03 01:41:08 +08:00
Zexi Li
a0e31df7be Merge pull request #12562 from swordqiu/automated-cherry-pick-of-#12561-upstream-release-3.8
Automated cherry pick of #12561: fix: delayed probing GPU on host init and add disable_gpu option
2021-11-03 00:00:56 +08:00
Zexi Li
e4e1469114 Merge pull request #12578 from rainzm/automated-cherry-pick-of-#12577-upstream-release-3.8
Automated cherry pick of #12577: fix(region): delete instance snapshot itself after deleting subsnapshots
2021-11-02 23:47:50 +08:00
Zexi Li
982430a025 Merge pull request #12582 from ioito/automated-cherry-pick-of-#12581-upstream-release-3.8
Automated cherry pick of #12581: fix(region): cdn purge
2021-11-02 23:46:34 +08:00
Zexi Li
e1fd572f0e Merge pull request #12584 from rainzm/automated-cherry-pick-of-#12583-upstream-release-3.8
Automated cherry pick of #12583: fix(notify): init ProjectId for robots without ProjectId
2021-11-02 23:45:19 +08:00
rainzm
4938bd8b4f fix(notify): init ProjectId for robots without ProjectId 2021-11-02 20:19:37 +08:00
Qu Xuan
5f5f02ac07 fix(region): cdn purge 2021-11-02 19:26:58 +08:00
rainzm
101502895e fix(region): delete instance snapshot itself after deleting subsnapshots 2021-11-02 10:28:56 +08:00
Zexi Li
8ecd6b5967 Merge pull request #12569 from swordqiu/automated-cherry-pick-of-#12568-upstream-release-3.8
Automated cherry pick of #12568: fix: clean up region data
2021-11-01 20:29:19 +08:00
Zexi Li
e0aaf54316 Merge pull request #12572 from ioito/automated-cherry-pick-of-#12571-upstream-release-3.8
Automated cherry pick of #12571: fix(region): avoid panic when query is nil
2021-11-01 20:28:39 +08:00
Zexi Li
07ea3fa160 Merge pull request #12575 from rainzm/automated-cherry-pick-of-#12574-upstream-release-3.8
Automated cherry pick of #12574: Flag for installing agent
2021-11-01 20:27:25 +08:00
rainzm
d36f8103dd feat(region): add have-agent action for guest 2021-11-01 19:41:54 +08:00
rainzm
15af5feed5 feat(cloudproxy): add purge-forward for proxy endpoint 2021-11-01 19:41:54 +08:00
Qu Xuan
d9165e540e fix(region): avoid panic when query is nil 2021-11-01 16:31:36 +08:00
Zexi Li
3d15d0ffde Merge pull request #12560 from rainzm/automated-cherry-pick-of-#12559-upstream-release-3.8
Automated cherry pick of #12559: fixes for notify
2021-11-01 10:07:34 +08:00
Zexi Li
5bc85cc8a9 Merge pull request #12565 from rainzm/automated-cherry-pick-of-#12564-upstream-release-3.8
Automated cherry pick of #12564: fix(region): init timerQueue correctly
2021-11-01 10:05:53 +08:00
Qiu Jian
5b55749dbd fix: clean up region data 2021-10-30 22:08:10 +08:00
rainzm
0d0c52ddb1 fix(region): init timerQueue correctly 2021-10-30 18:01:34 +08:00
Qiu Jian
d766d5a979 fix: delayed probing GPU on host init and add disable_gpu option 2021-10-30 11:51:45 +08:00
rainzm
2798b9e592 feat(notify): add WebconsoleDisable for topic 2021-10-29 19:35:41 +08:00
rainzm
b67dd5200a fix(notify): init robot project info 2021-10-29 19:35:41 +08:00
Zexi Li
3c7c40e71a Merge pull request #12557 from ioito/automated-cherry-pick-of-#12556-upstream-release-3.8
Automated cherry pick of #12556: fix(region): avoid empty ip addr for vm
2021-10-29 15:22:59 +08:00
Zexi Li
77ed62fbf0 Merge pull request #12555 from ioito/automated-cherry-pick-of-#12554-upstream-release-3.8
Automated cherry pick of #12554: fix(region): filter vpcs by zone
2021-10-29 15:21:17 +08:00
Qu Xuan
8e982788fe fix(region): avoid empty ip addr for vm 2021-10-29 14:55:14 +08:00
Qu Xuan
35cba00416 fix(region): filter vpcs by zone 2021-10-29 14:34:39 +08:00
Zexi Li
58e8f9dd03 Merge pull request #12549 from swordqiu/automated-cherry-pick-of-#12548-upstream-release-3.8
Automated cherry pick of #12548: fix: apigateway request api_server option directly from keystone
2021-10-29 11:08:32 +08:00
Qiu Jian
a663c5ce87 fix: apigateway request api_server option directly from keystone 2021-10-28 23:54:28 +08:00
Zexi Li
6a661d3eae Merge pull request #12547 from ioito/automated-cherry-pick-of-#12546-upstream-release-3.8
Automated cherry pick of #12546: fix(host): cephx closed
2021-10-28 21:01:31 +08:00
Qu Xuan
928bb282ac fix(host): cephx closed 2021-10-28 20:17:10 +08:00
Zexi Li
928e2902a1 Merge pull request #12541 from ioito/automated-cherry-pick-of-#12540-upstream-release-3.8
Automated cherry pick of #12540: fix(host): avoid storage attach not report error
2021-10-28 18:25:51 +08:00
Zexi Li
eeec217220 Merge pull request #12545 from rainzm/automated-cherry-pick-of-#12544-upstream-release-3.8
Automated cherry pick of #12544: fix(notify): be compatible with Chinese when generating names
2021-10-28 18:24:25 +08:00
rainzm
8ab7b49f05 fix(notify): be compatible with Chinese when generating names 2021-10-28 17:12:37 +08:00
Qu Xuan
4c00be06a2 fix(host): avoid storage attach not report error 2021-10-28 17:00:41 +08:00
Zexi Li
06dcc0b6d9 Merge pull request #12536 from ioito/automated-cherry-pick-of-#12535-upstream-release-3.8
Automated cherry pick of #12535: fix(region): validate update
2021-10-28 16:36:39 +08:00
Zexi Li
881f4085ea Merge pull request #12532 from ioito/automated-cherry-pick-of-#12531-upstream-release-3.8
Automated cherry pick of #12531: fix(region): add cdn domain
2021-10-28 10:03:28 +08:00
Zexi Li
37223ce58a Merge pull request #12534 from ioito/automated-cherry-pick-of-#12533-upstream-release-3.8
Automated cherry pick of #12533: Hotfix/qx waf app tags sync
2021-10-28 09:55:35 +08:00
Zexi Li
aa80106b84 Merge pull request #12539 from ioito/automated-cherry-pick-of-#12538-upstream-release-3.8
Automated cherry pick of #12538: fix(apigateway): api_server changed
2021-10-28 09:53:25 +08:00
Qu Xuan
d8f0cc6b4a fix(apigateway): api_server changed 2021-10-27 19:38:27 +08:00
Qu Xuan
57244dcbd0 fix(region): validate update 2021-10-27 17:55:23 +08:00
yunion-ci-robot
6e7d07f47e Merge pull request #12513 from zhaoxiangchun/automated-cherry-pick-of-#12495-upstream-release-3.8
Automated cherry pick of #12495: fix(cloudcommon): update db_dispatcher set order by to sqlchemy.SQuery
2021-10-27 17:28:45 +08:00
Qu Xuan
e90f89efa8 fix(region): add waf and app tags sync 2021-10-27 17:04:26 +08:00
Qu Xuan
7756028da0 fix(region): waf and app tags sync 2021-10-27 17:04:26 +08:00
Qu Xuan
fe66a6e907 fix(region): add cdn domain 2021-10-27 15:38:25 +08:00
Zexi Li
7e68d87c60 Merge pull request #12480 from tb365/automated-cherry-pick-of-#12469-upstream-release-3.8
Automated cherry pick of #12469: eip bind aws server fix
2021-10-27 10:00:47 +08:00
Zexi Li
7f1f9e21d8 Merge pull request #12528 from zhaoxiangchun/automated-cherry-pick-of-#12527-upstream-release-3.8
Automated cherry pick of #12527: feat(monitor,cloudmon): add azure rds,redis,lb metric
2021-10-26 19:34:29 +08:00
Zexi Li
b773be0f73 Merge pull request #12519 from tb365/automated-cherry-pick-of-#12517-upstream-release-3.8
Automated cherry pick of #12517: cn-southwest-2 default bgp type 5_sbgp
2021-10-26 19:32:35 +08:00
Zexi Li
777920cd29 Merge pull request #12524 from ioito/automated-cherry-pick-of-#12523-upstream-release-3.8
Automated cherry pick of #12523: fix(region): openstack eip sync
2021-10-26 19:16:08 +08:00
zhaoxiangchun
00cb7fb015 feat(monitor,cloudmon): add azure rds,redis,lb metric
1.支持azure相关资源监控
2021-10-26 17:39:19 +08:00
Qu Xuan
8b1aa2e675 fix(region): openstack eip sync 2021-10-26 15:36:02 +08:00
yunion-ci-robot
3940d23b21 Merge pull request #12522 from rainzm/automated-cherry-pick-of-#12476-upstream-release-3.8
Automated cherry pick of #12476: Webhook/extend
2021-10-26 15:18:45 +08:00
rainzm
c874e90985 feat(notify): configure the new resource and its translation 2021-10-26 14:47:24 +08:00
rainzm
5a71c664d1 feat(region): add some resources to create deleted webhook notifications 2021-10-26 14:47:24 +08:00
rainzm
17aeab6b4e feat(notify): add Action sync_create, sync_update, sync_delete 2021-10-26 14:47:24 +08:00
rainzm
b73d206365 feat(notify): update topic 2021-10-26 14:47:24 +08:00
Zexi Li
722855f8f1 Merge pull request #12521 from zexi/automated-cherry-pick-of-#12520-upstream-release-3.8
Automated cherry pick of #12520: fix(region): cdn generated code
2021-10-26 11:01:57 +08:00
Zexi Li
5f0c1cfd49 fix(region): cdn generated code 2021-10-26 11:01:27 +08:00
tb365
6b115aa28b cn-southwest-2 default bgp type 5_sbgp 2021-10-26 09:30:28 +08:00
Zexi Li
fee8a08fb9 Merge pull request #12511 from zexi/automated-cherry-pick-of-#12510-upstream-release-3.8
Automated cherry pick of #12510: fix(baremetal): TaskWorkerCount options not init
2021-10-25 15:34:55 +08:00
zhaoxiangchun
0a6daca02d fix(cloudcommon): update db_dispatcher set order by to sqlchemy.SQuery
1. 支持对使用了聚合函数的field进行orderby 操作,如:sum(amount) as
   amount
2021-10-25 14:22:15 +08:00
Zexi Li
eafd63ed99 fix(baremetal): TaskWorkerCount options not init 2021-10-25 12:03:55 +08:00
yunion-ci-robot
0c6d7f1534 Merge pull request #12506 from ioito/automated-cherry-pick-of-#12505-upstream-release-3.8
Automated cherry pick of #12505: fix(region): qcloud classic nic and storage sync
2021-10-24 16:57:09 +08:00
Qu Xuan
55db52bc3a fix(region): qcloud classic nic and storage sync 2021-10-22 18:30:52 +08:00
Zexi Li
4365c22e31 Merge pull request #12499 from ioito/automated-cherry-pick-of-#12498-upstream-release-3.8
Automated cherry pick of #12498: fix(region): hide rbd disk secret
2021-10-22 16:50:59 +08:00
Qu Xuan
904f00cc55 fix(region): hide rbd disk secret 2021-10-22 15:38:33 +08:00
Zexi Li
5350c65fdd Merge pull request #12497 from ioito/automated-cherry-pick-of-#12496-upstream-release-3.8
Automated cherry pick of #12496: fix(host): ceph snap delete
2021-10-22 15:26:55 +08:00
Qu Xuan
5be6a18f2b fix(host): ceph snap delete 2021-10-22 15:01:29 +08:00
Zexi Li
798f5e638e Merge pull request #12492 from ioito/automated-cherry-pick-of-#12491-upstream-release-3.8
Automated cherry pick of #12491: fix(region): set storage with snapshot id when change vm disk config
2021-10-22 13:13:09 +08:00
Zexi Li
29cdd2154c Merge pull request #12490 from ioito/automated-cherry-pick-of-#12486-upstream-release-3.8
Automated cherry pick of #12486: fix(host): struct disk create params
2021-10-22 11:51:41 +08:00
Qu Xuan
98a31154e5 fix(region): set storage with snapshot id when change vm disk config 2021-10-22 11:47:04 +08:00
yunion-ci-robot
14431ff1dc Merge pull request #12488 from zexi/automated-cherry-pick-of-#12487-upstream-release-3.8
Automated cherry pick of #12487: fix(host): disk snapshot file locking off
2021-10-22 11:41:16 +08:00
Qu Xuan
00c4490ec8 fix(host): struct disk create params 2021-10-22 11:33:42 +08:00
Zexi Li
c3f37211a2 fix(host): disk snapshot file locking off 2021-10-22 11:21:16 +08:00
Zexi Li
1b741f18fc Merge pull request #12472 from tb365/automated-cherry-pick-of-#12471-upstream-release-3.8
Automated cherry pick of #12471: host count add filters
2021-10-21 20:09:05 +08:00
Zexi Li
de876d1736 Merge pull request #12482 from ioito/automated-cherry-pick-of-#12481-upstream-release-3.8
Automated cherry pick of #12481: fix(host): same mountpoint rbd storage
2021-10-21 17:11:19 +08:00
Qu Xuan
65786781e1 fix(host): same mountpoint rbd storage 2021-10-21 14:36:25 +08:00
tb365
8cc318ac34 eip bind aws server fix 2021-10-21 11:57:29 +08:00
Zexi Li
22a7f0a748 Merge pull request #12479 from zexi/automated-cherry-pick-of-#12477-upstream-release-3.8
Automated cherry pick of #12477: fix(baremetal): rebuild root calculate root disk partitions incorrect
2021-10-21 11:27:53 +08:00
Zexi Li
23bde8e519 fix(baremetal): rebuild root calculate root disk partitions incorrect 2021-10-21 01:07:11 +08:00
tb365
8345f0ab8f host count add filters 2021-10-20 17:29:25 +08:00
Zexi Li
3b5c84f5e0 Merge pull request #12458 from zexi/automated-cherry-pick-of-#12457-upstream-release-3.8
Automated cherry pick of #12457: fix(baremetal): add task_worker_count option
2021-10-19 22:42:09 +08:00
Zexi Li
505303c708 Merge pull request #12461 from ioito/automated-cherry-pick-of-#12460-upstream-release-3.8
Automated cherry pick of #12460: optimized(region): improve img convert speed
2021-10-19 22:38:45 +08:00
Zexi Li
34c96d68ac Merge pull request #12468 from ioito/automated-cherry-pick-of-#12467-upstream-release-3.8
Automated cherry pick of #12467: fix(region): sync cdn domain origins
2021-10-19 22:31:39 +08:00
Zexi Li
68b341561c Merge pull request #12465 from swordqiu/automated-cherry-pick-of-#12464-upstream-release-3.8
Automated cherry pick of #12464: fix: glance depends s3fs
2021-10-19 22:29:53 +08:00
Qu Xuan
bd1cb2fc1d fix(region): sync cdn domain origins 2021-10-19 16:11:24 +08:00
Qiu Jian
69d66eef67 fix: glance depends s3fs 2021-10-19 12:30:06 +08:00
Qu Xuan
0a140753be optimized(region): improve img convert speed 2021-10-19 10:56:21 +08:00
Zexi Li
fe54f42735 fix(baremetal): add task_worker_count option 2021-10-18 22:43:44 +08:00
Zexi Li
1e53b7a995 Merge pull request #12456 from ioito/automated-cherry-pick-of-#12455-upstream-release-3.8
Automated cherry pick of #12455: fix(region): tag list for natgateways
2021-10-18 22:16:39 +08:00
Qu Xuan
40a9c4723f fix(region): tag list for natgateways 2021-10-18 19:05:55 +08:00
Zexi Li
b880951a01 Merge pull request #12349 from tb365/automated-cherry-pick-of-#12347-upstream-release-3.8
Automated cherry pick of #12347: ctyun api updates
2021-10-18 18:20:03 +08:00
Zexi Li
a0c176936e Merge pull request #12453 from ioito/automated-cherry-pick-of-#12452-upstream-release-3.8
Automated cherry pick of #12452: fix(region): capacities overflow with azure
2021-10-18 17:20:38 +08:00
Zexi Li
09c02afdac Merge pull request #12439 from ioito/automated-cherry-pick-of-#12438-upstream-release-3.8
Automated cherry pick of #12438: fix(region): allow account sync when auto sync enabled
2021-10-18 17:20:12 +08:00
Qu Xuan
3acb2469a7 fix(region): capacities overflow with azure 2021-10-18 16:13:48 +08:00
Zexi Li
6ab9b68ab5 Merge pull request #12448 from swordqiu/automated-cherry-pick-of-#12447-upstream-release-3.8
Automated cherry pick of #12447: feature: support PhoenixOS guest
2021-10-18 15:22:34 +08:00
Zexi Li
9ba603e29b Merge pull request #12450 from swordqiu/automated-cherry-pick-of-#12449-upstream-release-3.8
Automated cherry pick of #12449: fix: update server vdi and vga with correlation
2021-10-18 15:15:44 +08:00
Zexi Li
0a4f530d4b Merge pull request #12445 from swordqiu/automated-cherry-pick-of-#12444-upstream-release-3.8
Automated cherry pick of #12444: fix: glance use multicloud objectstorage client to manipulate objectstorage
2021-10-18 15:14:29 +08:00
Qiu Jian
ed3bd14773 fix: update server vdi and vga with correlation 2021-10-17 22:11:31 +08:00
Qiu Jian
bd40d802ec feature: support PhoenixOS guest 2021-10-17 04:21:29 +08:00
Qiu Jian
ea8f261ed6 fix: remove s3fs client from docker image 2021-10-17 02:53:28 +08:00
Qiu Jian
86817febe1 fix: make minio endpoint compatible with multicloud objectstorage 2021-10-17 02:53:28 +08:00
Qiu Jian
8f1d9998f1 fix: glance use multicloud objectstorage client to manipulate objectstorage 2021-10-17 02:53:28 +08:00
Qu Xuan
3026b2d73c fix(region): allow account sync when auto sync enabled 2021-10-15 14:35:34 +08:00
Zexi Li
5ea09eea51 Merge pull request #12420 from ioito/automated-cherry-pick-of-#12412-upstream-release-3.8
Automated cherry pick of #12412: fix(host): xfs unlock
2021-10-15 09:46:33 +08:00
Zexi Li
bbb91f39d9 Merge pull request #12424 from ioito/automated-cherry-pick-of-#12423-upstream-release-3.8
Automated cherry pick of #12423: fix(region): google rds tags sync
2021-10-15 09:45:34 +08:00
Zexi Li
a7bf1fc8c6 Merge pull request #12427 from rainzm/automated-cherry-pick-of-#12426-upstream-release-3.8
Automated cherry pick of #12426: fix(region): wait all goroutine finished when execute scheduled_tasks
2021-10-15 09:38:52 +08:00
Zexi Li
63b97fbad0 Merge pull request #12430 from rainzm/automated-cherry-pick-of-#12429-upstream-release-3.8
Automated cherry pick of #12429: fix(notify): robot ListItemFilter
2021-10-15 09:37:42 +08:00
Zexi Li
a0bd95fabb Merge pull request #12435 from swordqiu/automated-cherry-pick-of-#12434-upstream-release-3.8
Automated cherry pick of #12434: feature: add global mac prefix option
2021-10-15 09:37:04 +08:00
Zexi Li
f87e5c4004 Merge pull request #12433 from swordqiu/automated-cherry-pick-of-#12432-upstream-release-3.8
Automated cherry pick of #12432: fix: set qemu cpu sockets to 2 for x86 cpu
2021-10-15 09:36:24 +08:00
Qiu Jian
155f9620c6 feature: add global mac prefix option 2021-10-15 01:08:12 +08:00
Qiu Jian
48d45592e4 fix: set qemu cpu sockets to 2 for x86 cpu 2021-10-14 23:27:05 +08:00
rainzm
5ebb30ed83 fix(notify): robot ListItemFilter 2021-10-14 17:06:09 +08:00
rainzm
a09dccf981 fix(region): wait all goroutine finished when execute scheduled_tasks 2021-10-14 16:03:44 +08:00
Qu Xuan
7d49c48eff fix(region): google rds tags sync 2021-10-14 15:23:27 +08:00
Qu Xuan
9407ff7397 fix(host): xfs unlock 2021-10-14 14:32:19 +08:00
Zexi Li
7cc3a98825 Merge pull request #12399 from ioito/automated-cherry-pick-of-#12398-upstream-release-3.8
Automated cherry pick of #12398: Hotfix/qx nat cdn tags
2021-10-14 12:45:14 +08:00
Zexi Li
cea2968b04 Merge pull request #12405 from rainzm/automated-cherry-pick-of-#12403-upstream-release-3.8
Automated cherry pick of #12403: fix(devtool): change agent install metadata key
2021-10-14 12:44:43 +08:00
Zexi Li
b2b21f8095 Merge pull request #12408 from rainzm/automated-cherry-pick-of-#12407-upstream-release-3.8
Automated cherry pick of #12407: Fix changing of subscribers
2021-10-14 12:42:30 +08:00
Zexi Li
e4280eaa48 Merge pull request #12411 from rainzm/automated-cherry-pick-of-#12410-upstream-release-3.8
Automated cherry pick of #12410: fix(climc): set param 'enable' as *bool
2021-10-14 12:07:40 +08:00
Zexi Li
c6e291b425 Merge pull request #12414 from rainzm/automated-cherry-pick-of-#12413-upstream-release-3.8
Automated cherry pick of #12413: fix(notify): modify resource list of topic
2021-10-14 12:06:05 +08:00
Zexi Li
140898a2f8 Merge pull request #12416 from swordqiu/automated-cherry-pick-of-#12415-upstream-release-3.8
Automated cherry pick of #12415: fix: enable disabled select user for windows (especially for windows 10)
2021-10-14 12:05:24 +08:00
Zexi Li
32b3d831b6 Merge pull request #12397 from tb365/automated-cherry-pick-of-#12396-upstream-release-3.8
Automated cherry pick of #12396: batch add user add displayname
2021-10-14 11:15:11 +08:00
Qiu Jian
b974842932 fix: enable disabled select user for windows (especially for windows 10) 2021-10-14 00:37:44 +08:00
rainzm
30875951e1 fix(notify): modify resource list of topic 2021-10-13 19:57:28 +08:00
rainzm
c6fd3d5dbd fix(climc): set param 'enable' as *bool 2021-10-13 18:44:44 +08:00
rainzm
5414541ce5 fix(notify): support modify rolescope when change subscriber 2021-10-13 16:51:43 +08:00
rainzm
8b889fc561 fix(notify): use roleCache to display role info 2021-10-13 16:51:43 +08:00
rainzm
3ce447c35e fix(notify): SetModelManager to delete successfully 2021-10-13 16:51:43 +08:00
Qu Xuan
9a2e197c43 fix(region): cdn nat tags sync 2021-10-13 12:01:45 +08:00
Qu Xuan
dc27b93775 fix(region): sync nat and cnd tags 2021-10-13 12:01:45 +08:00
rainzm
2a49b7903b fix(devtool): change agent install metadata key
The tag beginning with sys will be overwritten by the cloud
2021-10-13 11:45:38 +08:00
Zexi Li
272e4173c2 Merge pull request #12402 from rainzm/automated-cherry-pick-of-#12401-upstream-release-3.8
Automated cherry pick of #12401: feat(cloudproxy): support generateName for createFromServer
2021-10-13 10:02:44 +08:00
rainzm
ac674553ee feat(cloudproxy): support generateName for createFromServer 2021-10-12 20:33:56 +08:00
Zexi Li
d7078cd1d6 Merge pull request #12395 from rainzm/automated-cherry-pick-of-#12394-upstream-release-3.8
Automated cherry pick of #12394: Notify fixes
2021-10-12 19:57:13 +08:00
Zexi Li
2c34090015 Merge pull request #12392 from ioito/automated-cherry-pick-of-#12391-upstream-release-3.8
Automated cherry pick of #12391: fix(region): aliyun rds tags sync
2021-10-12 19:55:58 +08:00
rainzm
b5d55c7ebc fix: change errors package 2021-10-12 18:09:56 +08:00
rainzm
62189913f1 fix(notify): modify 'dingtalk-robot' to 'workwx-robot' 2021-10-12 18:09:56 +08:00
rainzm
05e19381d8 fix(notify): remove "已经" in templ 2021-10-12 18:09:56 +08:00
rainzm
ae98388b8a fix(notify): add PENDING_DELETE tmpl 2021-10-12 18:09:56 +08:00
rainzm
da1fc9e8f3 fix(notify): get the receivers that need to be added and deleted correctly 2021-10-12 18:09:56 +08:00
Qu Xuan
ee3df76aa3 fix(region): aliyun rds tags sync 2021-10-12 18:04:59 +08:00
tb365
7ce28e78fd batch add user add displayname 2021-10-12 17:41:56 +08:00
Zexi Li
436b809249 Merge pull request #12390 from zexi/automated-cherry-pick-of-#12226-upstream-release-3.8
Automated cherry pick of #12226: [WIP] fix(baremetal): avoid redfish resp nil cause panic
2021-10-12 11:47:03 +08:00
Zexi Li
d894992e29 fix(baremetal): avoid redfish resp nil cause panic 2021-10-12 11:33:31 +08:00
Zexi Li
c0db3ead14 Merge pull request #12388 from ioito/automated-cherry-pick-of-#12387-upstream-release-3.8
Automated cherry pick of #12387: fix(region): support tag sync for mongodb
2021-10-11 19:18:23 +08:00
Qu Xuan
91dbb1b64e fix(region): support tag sync for mongodb 2021-10-11 17:12:31 +08:00
Zexi Li
7f52cc5ec0 Merge pull request #12385 from zexi/automated-cherry-pick-of-#12384-upstream-release-3.8
Automated cherry pick of #12384: fix(glance): s3 uploaded image removed
2021-10-11 15:02:39 +08:00
Zexi Li
213637679e Merge pull request #12382 from rainzm/automated-cherry-pick-of-#12381-upstream-release-3.8
Automated cherry pick of #12381: fix(devtool): creates a forward using the specified address
2021-10-11 12:45:19 +08:00
Zexi Li
02dc737ccd fix(glance): s3 uploaded image removed 2021-10-11 12:43:35 +08:00
rainzm
627e97b73a fix(devtool): creates a forward using the specified address 2021-10-11 10:55:49 +08:00
屈轩
3d8a727eb8 fix(glance): remove image clean (#12376)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2021-10-10 12:03:54 +08:00
屈轩
49366c5174 fix(host): show disk details error (#12375)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2021-10-10 12:03:41 +08:00
Zexi Li
a50782ab52 fix(climc): host-ssh use privateKey when ciphertext too short (#12371) 2021-10-10 12:02:35 +08:00
Zexi Li
974dd220e8 Merge pull request #12379 from zexi/automated-cherry-pick-of-#12378-upstream-release-3.8
Automated cherry pick of #12378: fix(monitor): use swagger ignore comment out structs
2021-10-09 21:46:56 +08:00
Zexi Li
bf99c1d824 fix(monitor): use swagger ignore comment out structs 2021-10-09 21:15:21 +08:00
Zexi Li
678626ff3a Merge pull request #12365 from ioito/automated-cherry-pick-of-#12364-upstream-release-3.8
Automated cherry pick of #12364: fix(region): fix cloudpods scheduler error
2021-10-09 09:17:06 +08:00
Zexi Li
8b6791b908 Merge pull request #12367 from zhaoxiangchun/automated-cherry-pick-of-#12366-upstream-release-3.8
Automated cherry pick of #12366: fix(monitor): alert record details add trigger_time field
2021-10-09 09:15:52 +08:00
Zexi Li
78b5b0a94c Merge pull request #12369 from rainzm/automated-cherry-pick-of-#12368-upstream-release-3.8
Automated cherry pick of #12368: Fixes for Notify Subscribers
2021-10-09 09:15:25 +08:00
rainzm
cb264e7d1a fix(notify): update mobile where appropriate 2021-10-08 21:26:47 +08:00
rainzm
6fb58e8c63 fix(notify): modify the width of ReceiverId 2021-10-08 21:26:47 +08:00
rainzm
4c12de8eea fix(notify): add default policy for subscribers 2021-10-08 21:26:47 +08:00
zhaoxiangchun
e55aa144fa fix(monitor): alert record details add trigger_time field 2021-10-08 17:13:01 +08:00
Qu Xuan
a55732b782 fix(region): fix cloudpods scheduler error 2021-10-08 15:16:41 +08:00
Zexi Li
128ea60569 Merge pull request #12363 from ioito/automated-cherry-pick-of-#12362-upstream-release-3.8
Automated cherry pick of #12362: fix(region): sync resource by capability with read only
2021-10-08 12:08:25 +08:00
Qu Xuan
0988bf1578 fix(region): sync resource by capability with read only 2021-10-08 11:48:04 +08:00
Zexi Li
42612205fd Merge pull request #12361 from tb365/automated-cherry-pick-of-#12359-upstream-release-3.8
Automated cherry pick of #12359: kvm lb update lb listener redirect code fix
2021-10-08 10:13:53 +08:00
Zexi Li
de48910c63 Merge pull request #12354 from swordqiu/automated-cherry-pick-of-#12353-upstream-release-3.8
Automated cherry pick of #12353: fix: webconsole close socket when read on error
2021-10-08 10:12:29 +08:00
tangbin
c80945338e kvm lb update lb listener redirect code fix 2021-10-08 09:42:58 +08:00
yunion-ci-robot
96973b15bd Merge pull request #12356 from zexi/automated-cherry-pick-of-#12355-upstream-release-3.8
Automated cherry pick of #12355: fix(baremetal): change cat path
2021-10-06 20:53:42 +08:00
Zexi Li
04521a1548 fix(baremetal): change cat path 2021-10-05 21:35:38 +08:00
Qiu Jian
9025a56617 fix: webconsole close socket when read on error 2021-10-03 10:52:34 +08:00
yunion-ci-robot
973ebbf9f3 Merge pull request #12351 from ioito/automated-cherry-pick-of-#12350-upstream-release-3.8
Automated cherry pick of #12350: fix(region): network brand
2021-10-01 12:54:38 +08:00
Qu Xuan
c53164e430 fix(region): network brand 2021-10-01 11:53:42 +08:00
tb365
0ac263dee1 ctyun api updates 2021-09-30 15:45:17 +08:00
Zexi Li
95aaa66c76 Merge pull request #12331 from ioito/automated-cherry-pick-of-#12317-upstream-release-3.8
Automated cherry pick of #12317: fix(region): read only capability
2021-09-30 10:09:43 +08:00
Zexi Li
1e2773bd18 Merge pull request #12344 from ioito/automated-cherry-pick-of-#12343-upstream-release-3.8
Automated cherry pick of #12343: fix(host): show error for online resize
2021-09-30 09:49:02 +08:00
Qu Xuan
e6ba4a1dc7 fix(host): show error for online resize 2021-09-29 20:30:06 +08:00
Zexi Li
e5afb63551 Merge pull request #12336 from zexi/automated-cherry-pick-of-#12335-upstream-release-3.8
Automated cherry pick of #12335: fix(baremetal): adjust adaptec raid logical volume order
2021-09-29 17:36:18 +08:00
Zexi Li
ced94cfb66 Merge pull request #12342 from zhaoxiangchun/automated-cherry-pick-of-#12341-upstream-release-3.8
Automated cherry pick of #12341: fix(monitor): update usage query param and alert record query support tigger_time
2021-09-29 17:27:19 +08:00
zhaoxiangchun
628244f7b9 fix(monitor): update usage query param and alert record query support tigger_time 2021-09-29 15:52:27 +08:00
Zexi Li
7033974ab4 Merge pull request #12339 from rainzm/automated-cherry-pick-of-#12316-upstream-release-3.8
Automated cherry pick of #12316: Notify Bug Fixes
2021-09-29 14:52:00 +08:00
Zexi Li
cb733ded80 Merge pull request #12340 from rainzm/automated-cherry-pick-of-#12325-upstream-release-3.8
Automated cherry pick of #12325: fix(region): avoid duplicate playbook names
2021-09-29 14:21:12 +08:00
rainzm
658d734ec4 fix(region): avoid duplicate playbook names 2021-09-29 14:17:12 +08:00
rainzm
2f3e6f80a7 fix(notify): optimization of message template 2021-09-29 14:13:19 +08:00
rainzm
c4b5f59e11 fix(notify): add connect info in EXPIRED_RELEASE template 2021-09-29 14:13:18 +08:00
rainzm
5a5cca4110 fix(notify): remove disk in 'update' topic 2021-09-29 14:13:18 +08:00
rainzm
5f8c36b407 fix(notify): solve the permission problem of subscriber 2021-09-29 14:13:18 +08:00
rainzm
a62ac5fb30 fix(notify): allow list and get topics for all 2021-09-29 14:13:18 +08:00
rainzm
9694075bee fix(notify): correctly use tenant cache to query domain 2021-09-29 14:13:18 +08:00
rainzm
4e84ace30a fix(notify): check for duplicate subscribers when creating 2021-09-29 14:13:18 +08:00
rainzm
e96dbaba60 fix(notify): update database when change subscriber's identification 2021-09-29 14:13:18 +08:00
rainzm
05d7a87c1b fix(cloudcommon): set Priority as normal when calling EventNotify 2021-09-29 14:13:18 +08:00
rainzm
d94ddc43a4 fix(notify): repull subcontact correctly when creating or deleting config 2021-09-29 14:13:18 +08:00
rainzm
57d3e37c08 fix(notify): modify NotifyRobotWithCtx 2021-09-29 14:13:18 +08:00
rainzm
ce7dd991d2 fix(notify): change the delivery format of config and eliminate some redundant steps of sending messages 2021-09-29 14:13:18 +08:00
Zexi Li
6364389877 fix(baremetal): adjust adaptec raid logical volume order 2021-09-29 12:16:12 +08:00
Zexi Li
3c2f99313b Merge pull request #12334 from zhaoxiangchun/automated-cherry-pick-of-#12333-upstream-release-3.8
Automated cherry pick of #12333: fix(monitor): shield list support alert_name and res_name like query
2021-09-29 11:29:18 +08:00
Zexi Li
e91bc4e8fb Merge pull request #12332 from ioito/automated-cherry-pick-of-#12104-upstream-release-3.8
Automated cherry pick of #12104: fix(region): optimized vm disk sync
2021-09-29 11:28:48 +08:00
zhaoxiangchun
946a0395ad fix(monitor): shield list support alert_name and res_name like query 2021-09-28 20:41:22 +08:00
Qu Xuan
dea562a733 fix(region): optimized vm disk sync 2021-09-28 20:10:53 +08:00
Qu Xuan
a552c3ff85 fix(region): read only capability 2021-09-28 20:10:05 +08:00
Zexi Li
cc5d7713e4 Merge pull request #12329 from ioito/automated-cherry-pick-of-#12328-upstream-release-3.8
Automated cherry pick of #12328: fix(region): optimized dns zone sync
2021-09-28 19:56:10 +08:00
Qu Xuan
a94b00604d fix(region): optimized dns zone sync 2021-09-28 19:32:49 +08:00
Zexi Li
3d5361bee1 Merge pull request #12323 from ioito/automated-cherry-pick-of-#12322-upstream-release-3.8
Automated cherry pick of #12322: fix(region): support query for project domain statistic
2021-09-28 17:58:46 +08:00
Zexi Li
8c44e4e3e9 Merge pull request #12321 from ioito/automated-cherry-pick-of-#12320-upstream-release-3.8
Automated cherry pick of #12320: fix(region): set google vm running after start
2021-09-28 17:58:28 +08:00
Zexi Li
d46f44ccc1 Merge pull request #12319 from zhaoxiangchun/automated-cherry-pick-of-#12318-upstream-release-3.8
Automated cherry pick of #12318: feat(cloudmon): usage add domain.servers and project.servers statistic
2021-09-28 17:57:48 +08:00
Qu Xuan
3f06837b92 fix(region): support query for project domain statistic 2021-09-27 17:10:47 +08:00
Qu Xuan
2c6aa4fb09 fix(region): set google vm running after start 2021-09-27 16:52:10 +08:00
zhaoxiangchun
7835d0521b feat(cloudmon): usage add domain.servers and project.servers statistic 2021-09-27 15:16:07 +08:00
Zexi Li
a43a3dc4bc Merge pull request #12308 from zhaoxiangchun/automated-cherry-pick-of-#12307-upstream-release-3.8
Automated cherry pick of #12307: fix(monitor): monitor alert support multi robot
2021-09-27 00:43:43 +08:00
Zexi Li
99fb78de35 Merge pull request #12306 from ioito/automated-cherry-pick-of-#12301-upstream-release-3.8
Automated cherry pick of #12301: fix(region): usage for domain isolated dev
2021-09-27 00:42:43 +08:00
Zexi Li
e7d67a41f5 Merge pull request #12303 from ioito/automated-cherry-pick-of-#12302-upstream-release-3.8
Automated cherry pick of #12302: fix(region): aliyun rds billing type
2021-09-26 20:10:58 +08:00
Zexi Li
5f1d1f748f Merge pull request #12312 from swordqiu/automated-cherry-pick-of-#12311-upstream-release-3.8
Automated cherry pick of #12311: fix: host add disable_kvm option
2021-09-26 20:09:54 +08:00
Zexi Li
8189fdb496 Merge pull request #12315 from zhaoxiangchun/automated-cherry-pick-of-#12314-upstream-release-3.8
Automated cherry pick of #12314: fix(monitor): monitor shield fix
2021-09-26 20:09:12 +08:00
zhaoxiangchun
609db4298d fix(monitor): monitor shield fix
1.支持resName过滤
2.告警屏蔽默认屏蔽时间为100year
2021-09-26 19:24:54 +08:00
yunion-ci-robot
09f31ce467 Merge pull request #12310 from tb365/automated-cherry-pick-of-#12309-upstream-release-3.8
Automated cherry pick of #12309: climc update: google account update
2021-09-26 17:40:34 +08:00
Qiu Jian
7cad0e5ee6 fix: host add disable_kvm option 2021-09-26 17:36:25 +08:00
tb365
d5355f21bb climc update: google account update 2021-09-26 17:27:56 +08:00
yunion-ci-robot
e9f6a90bc5 Merge pull request #12300 from zexi/automated-cherry-pick-of-#12241-upstream-release-3.8
Automated cherry pick of #12241: feat(baremetal): adaptec raid driver
2021-09-26 17:21:35 +08:00
zhaoxiangchun
b281ab8543 fix(monitor): monitor alert support multi robot
1. 机器人下放到域后监控报警支持
2021-09-26 16:36:24 +08:00
Qu Xuan
60b333bd1f fix(region): usage for domain isolated dev 2021-09-26 15:58:29 +08:00
Qu Xuan
b3093fbfd6 fix(region): aliyun rds billing type 2021-09-26 15:55:50 +08:00
Zexi Li
f8822c745a feat(baremetal): adaptec raid driver 2021-09-26 11:45:02 +08:00
Zexi Li
4c3adeb328 Merge pull request #12292 from zhaoxiangchun/automated-cherry-pick-of-#12291-upstream-release-3.8
Automated cherry pick of #12291: fix(monitor): project view hide cloudaccount resource
2021-09-26 10:06:10 +08:00
Zexi Li
25c473a435 Merge pull request #12266 from ioito/automated-cherry-pick-of-#12259-upstream-release-3.8
Automated cherry pick of #12259: fix(region): optimized validate delete condition query
2021-09-26 10:03:24 +08:00
Zexi Li
d65471ec41 Merge pull request #12294 from ioito/automated-cherry-pick-of-#12293-upstream-release-3.8
Automated cherry pick of #12293: fix(region): add project and domain statistic
2021-09-26 09:57:52 +08:00
Zexi Li
8961bf4968 Merge pull request #12296 from swordqiu/automated-cherry-pick-of-#12295-upstream-release-3.8
Automated cherry pick of #12295: fix: clean openvswitch config files when save images
2021-09-26 09:56:54 +08:00
Qiu Jian
157921f5c4 fix: clean openvswitch config files when save images 2021-09-24 22:01:17 +08:00
Qu Xuan
cd65b9498b fix(region): add project and domain statistic 2021-09-24 18:59:59 +08:00
zhaoxiangchun
f850e179f2 fix(monitor): project view hide cloudaccount resource 2021-09-24 17:57:33 +08:00
Zexi Li
cf7c8fb03f Merge pull request #12279 from ioito/automated-cherry-pick-of-#12278-upstream-release-3.8
Automated cherry pick of #12278: fix(region): google vm mac addr
2021-09-24 15:25:29 +08:00
Zexi Li
ace44f9490 Merge pull request #12276 from ioito/automated-cherry-pick-of-#12275-upstream-release-3.8
Automated cherry pick of #12275: fix(region): sync aws rds mem size
2021-09-24 15:25:06 +08:00
Zexi Li
72f6412f6c Merge pull request #12282 from swordqiu/automated-cherry-pick-of-#12281-upstream-release-3.8
Automated cherry pick of #12281: fix: disable password expiration for cloudroot
2021-09-24 15:24:11 +08:00
Zexi Li
1eeb11be87 Merge pull request #12286 from ioito/automated-cherry-pick-of-#12285-upstream-release-3.8
Automated cherry pick of #12285: fix(region): export field duplicate vpc
2021-09-24 15:23:20 +08:00
Zexi Li
acab975d94 Merge pull request #12274 from zhaoxiangchun/automated-cherry-pick-of-#12272-upstream-release-3.8
Automated cherry pick of #12272: fix(monitor): fix cloudaccount monitor query return field err
2021-09-24 10:28:12 +08:00
Qu Xuan
b2c52fd1fe fix(region): export field duplicate vpc 2021-09-24 10:00:21 +08:00
Qiu Jian
e6975a6474 fix: disable password expiration for cloudroot 2021-09-24 01:27:30 +08:00
yunion-ci-robot
7c1d16cc63 Merge pull request #12270 from zexi/automated-cherry-pick-of-#12268-upstream-release-3.8
Automated cherry pick of #12268: fix(host): disable usb-kbd for windows 10
2021-09-24 00:28:40 +08:00
Qu Xuan
17c6698073 fix(region): google vm mac addr 2021-09-23 20:28:54 +08:00
Qu Xuan
ea4f290f8c fix(region): sync aws rds mem size 2021-09-23 20:06:11 +08:00
zhaoxiangchun
c5e8ff9b39 fix(monitor): fix alert record shield
1. 修复报警屏蔽列表不显示时间的问题
2. 未恢复报警增加报警策略名称字段
2021-09-23 18:09:37 +08:00
zhaoxiangchun
10ad4c32dc fix(monitor): fix cloudaccount monitor query return field err 2021-09-23 18:09:37 +08:00
Zexi Li
625d7ef304 fix(host): disable usb-kbd for windows 10 2021-09-23 15:11:51 +08:00
Qu Xuan
f68567e28c fix(region): optimized validate delete condition query 2021-09-23 10:00:05 +08:00
Zexi Li
a368985923 Merge pull request #12260 from swordqiu/automated-cherry-pick-of-#12258-upstream-release-3.8
Automated cherry pick of #12258: fix: verify token with expired_at field instead of depending on options.TokenExpirationSeconds
2021-09-23 09:37:54 +08:00
Zexi Li
a12e235fe3 Merge pull request #12264 from ioito/automated-cherry-pick-of-#12263-upstream-release-3.8
Automated cherry pick of #12263: fix(region): external project support domain sync
2021-09-23 09:36:16 +08:00
Qu Xuan
27ec4567cc fix(region): external project support domain sync 2021-09-22 23:11:08 +08:00
Qiu Jian
020092cc4d fix: verify token with expired_at field instead of options.TokenExpirationSeconds 2021-09-22 15:35:21 +08:00
Zexi Li
d64f80ddc8 Merge pull request #12244 from rainzm/automated-cherry-pick-of-#12243-upstream-release-3.8
Automated cherry pick of #12243: fix(region): consider the network of the entire VPC when merging networks
2021-09-22 11:57:27 +08:00
Zexi Li
cee3246346 Merge pull request #12223 from zexi/automated-cherry-pick-of-#12222-upstream-release-3.8
Automated cherry pick of #12222: fix(scheduler): cpu arch match
2021-09-22 11:56:21 +08:00
Zexi Li
7da7ffcb7a Merge pull request #12257 from ioito/automated-cherry-pick-of-#12253-upstream-release-3.8
Automated cherry pick of #12253: fix(region): optimzed network query
2021-09-22 11:30:14 +08:00
Zexi Li
22e2896afc fix(scheduler): cpu arch match 2021-09-22 11:14:06 +08:00
Qu Xuan
c63ed9093b fix(region): optimzed network query 2021-09-18 18:58:31 +08:00
Zexi Li
9f4fc77bd2 Merge pull request #12237 from rainzm/automated-cherry-pick-of-#12236-upstream-release-3.8
Automated cherry pick of #12236: fix: ensure the success of vgrenam
2021-09-18 16:36:36 +08:00
Zexi Li
8702653395 Merge pull request #12255 from ioito/automated-cherry-pick-of-#12254-upstream-release-3.8
Automated cherry pick of #12254: fix(host): ceph snap delete
2021-09-18 16:31:05 +08:00
Qu Xuan
44d738a0b8 fix(host): ceph snap delete 2021-09-18 14:19:43 +08:00
Zexi Li
032353b0cc Merge pull request #12234 from zexi/automated-cherry-pick-of-#12227-upstream-release-3.8
Automated cherry pick of #12227: feat(climc): SSH login of a host by private key
2021-09-17 16:53:15 +08:00
Zexi Li
a6a2e4c288 Merge pull request #12242 from ioito/automated-cherry-pick-of-#12240-upstream-release-3.8
Automated cherry pick of #12240: fix(hostman): rbd command
2021-09-17 16:52:07 +08:00
Zexi Li
0f67656287 Merge pull request #12251 from ioito/automated-cherry-pick-of-#12250-upstream-release-3.8
Automated cherry pick of #12250: fix(region): get region driver
2021-09-17 16:48:14 +08:00
Zexi Li
5ad7bbf61c Merge pull request #12248 from ioito/automated-cherry-pick-of-#12247-upstream-release-3.8
Automated cherry pick of #12247: fix(scheduler): openstack scheduler options
2021-09-17 16:34:27 +08:00
Qu Xuan
22dbb38ff5 fix(region): get region driver 2021-09-17 16:28:11 +08:00
Qu Xuan
420c1968dc fix(scheduler): openstack scheduler options 2021-09-17 16:08:10 +08:00
rainzm
07f482da0f fix(region): consider the network of the entire VPC when merging networks 2021-09-17 14:54:33 +08:00
Qu Xuan
dbee3ec258 fix(hostman): rbd command 2021-09-17 14:20:32 +08:00
Zexi Li
aab33d1355 Merge pull request #12238 from ioito/automated-cherry-pick-of-#12213-upstream-release-3.8
Automated cherry pick of #12213: fix(cloudmon): batch send data
2021-09-17 09:34:52 +08:00
Qu Xuan
8e495f1589 fix(cloudmon): batch send data 2021-09-16 19:41:22 +08:00
rainzm
67513c50c8 fix(host-deployer): ensure the success of vgrenam 2021-09-16 17:49:09 +08:00
rainzm
95abcef299 feat(host-deployer): try again if the partition cannot be found 2021-09-16 17:49:09 +08:00
Stargic
1c2472ae87 feat(climc): SSH login of a host by private key 2021-09-16 15:13:00 +08:00
Zexi Li
ce3e4ac385 Merge pull request #12220 from ioito/automated-cherry-pick-of-#12219-upstream-release-3.8
Automated cherry pick of #12219: fix(region): disk choice master host with os arch
2021-09-15 22:32:30 +08:00
Zexi Li
5e787456b7 Merge pull request #12229 from swordqiu/automated-cherry-pick-of-#12228-upstream-release-3.8
Automated cherry pick of #12228: fix: climc event-show filter by resource name
2021-09-15 22:17:27 +08:00
yunion-ci-robot
5a55a17967 Merge pull request #12231 from zexi/automated-cherry-pick-of-#12230-upstream-release-3.8
Automated cherry pick of #12230: fix(baremetal): parse mptsas duplicated devices
2021-09-15 21:57:34 +08:00
Zexi Li
c1a03c16b3 fix(baremetal): parse mptsas duplicated devices 2021-09-15 21:19:19 +08:00
Qiu Jian
1fc6c8b42e fix: climc event-show filter by resource name 2021-09-15 20:43:34 +08:00
Qu Xuan
a51b977953 fix(region): disk choice master host with os arch 2021-09-15 12:17:33 +08:00
Zexi Li
b6fc27d64f Merge pull request #12215 from zhaoxiangchun/automated-cherry-pick-of-#12214-upstream-release-3.8
Automated cherry pick of #12214: fix(cloudmon): Azure metric pull support metric interval
2021-09-15 10:02:40 +08:00
Zexi Li
aa2445d1c4 Merge pull request #12218 from zexi/automated-cherry-pick-of-#12202-upstream-release-3.8
Automated cherry pick of #12202: feat(climc): SSH Login with cloudroot (add new parameter --use-cloudroot in server-ssh)
2021-09-15 09:41:55 +08:00
Zexi Li
80670214be Merge pull request #12207 from swordqiu/automated-cherry-pick-of-#12206-upstream-release-3.8
Automated cherry pick of #12206: fix: AWS asume role with optional name
2021-09-15 01:15:14 +08:00
Stargic
76c9d8a5ae feat(climc): SSH Login with cloudroot (add new parameter --use-cloudroot in server-ssh)
fix(climc): Fixed the code logic error of FOR loop in server-ssh
2021-09-15 01:14:12 +08:00
zhaoxiangchun
5fd3aebbb1 fix(cloudmon): Azure metric pull support metric interval 2021-09-14 19:32:39 +08:00
Zexi Li
04d533138f Merge pull request #12212 from zexi/automated-cherry-pick-of-#12166-upstream-release-3.8
Automated cherry pick of #12166: feat(region): add cloudcache for dnszone and secgroup details
2021-09-14 16:22:27 +08:00
rainzm
7547142600 feat(region): add cloudcache for dnszone and secgroup details 2021-09-14 16:21:00 +08:00
Zexi Li
7166a100ec Merge pull request #12200 from ioito/automated-cherry-pick-of-#12199-upstream-release-3.8
Automated cherry pick of #12199: fix(region): apsara metric data
2021-09-14 16:17:56 +08:00
Zexi Li
3ff4d65300 Merge pull request #12211 from tb365/automated-cherry-pick-of-#12209-upstream-release-3.8
Automated cherry pick of #12209: fix(region): change aws disk iops
2021-09-14 16:16:31 +08:00
tb365
b61399f12e fix(region): change aws disk iops 2021-09-14 16:03:14 +08:00
Qu Xuan
1d4565807f fix(region): apsara metric data 2021-09-14 11:35:38 +08:00
Qiu Jian
5b232c2ff2 fix: AWS asume role with optional name 2021-09-14 00:50:28 +08:00
yunion-ci-robot
281698906d Merge pull request #12204 from zexi/automated-cherry-pick-of-#12203-upstream-release-3.8
Automated cherry pick of #12203: feat(cloudmon): support classic vm metrics
2021-09-13 23:01:29 +08:00
Zexi Li
c25535d21b feat(cloudmon): support classic vm metrics 2021-09-13 22:33:57 +08:00
Zexi Li
cb0d0b68b2 Merge pull request #12198 from tb365/automated-cherry-pick-of-#12196-upstream-release-3.8
Automated cherry pick of #12196: pure hcso zone is not empty fix
2021-09-13 17:08:59 +08:00
Zexi Li
f6c9aa09ea Merge pull request #12194 from ioito/automated-cherry-pick-of-#12193-upstream-release-3.8
Automated cherry pick of #12193: fix(region): apsara resource group
2021-09-13 17:05:31 +08:00
tb365
2eec54723e pure hcso zone is not empty fix 2021-09-13 14:27:31 +08:00
Qu Xuan
f78047601b fix(region): apsara resource group 2021-09-13 10:15:21 +08:00
Zexi Li
63cd9bec46 Merge pull request #12190 from zexi/automated-cherry-pick-of-#12189-upstream-release-3.8
Automated cherry pick of #12189: fix(region): isolated_device desc include addr
2021-09-10 20:30:39 +08:00
Zexi Li
57bc6f1445 fix(region): isolated_device desc include addr 2021-09-10 19:36:56 +08:00
yunion-ci-robot
d5e6532711 Merge pull request #12185 from ioito/automated-cherry-pick-of-#12184-upstream-release-3.8
Automated cherry pick of #12184: fix(region): qcloud database sync
2021-09-10 19:16:27 +08:00
Zexi Li
4d511c98e9 Merge pull request #12177 from ioito/automated-cherry-pick-of-#12176-upstream-release-3.8
Automated cherry pick of #12176: fix(region): huawei region id with project name
2021-09-10 19:08:54 +08:00
Zexi Li
f96c1f9fd2 Merge pull request #12182 from ioito/automated-cherry-pick-of-#12181-upstream-release-3.8
Automated cherry pick of #12181: Hotfix/qx apsara project
2021-09-10 19:08:08 +08:00
Qu Xuan
315054703c fix(region): qcloud database sync 2021-09-10 18:30:44 +08:00
Qu Xuan
f9064a0018 fix(region): sync apsara project info 2021-09-10 18:00:48 +08:00
Qu Xuan
6641eb15f0 fix(region): support apsara project 2021-09-10 18:00:47 +08:00
Qu Xuan
59f837c0e3 fix(region): 不能通过华为云用户创建时间判断云账号注册时间 2021-09-10 17:18:02 +08:00
Qu Xuan
e5891349cd fix(region): huawei region id with project name 2021-09-10 17:18:02 +08:00
Zexi Li
fe9f5fa4cc Merge pull request #12174 from zexi/automated-cherry-pick-of-#12125-upstream-release-3.8
Automated cherry pick of #12125: fix(climc): SSH terminal window changes with the change of local terminal
2021-09-10 14:47:39 +08:00
Stargic
76b110445e fix(climc): SSH terminal window changes with the change of local terminal 2021-09-10 11:55:53 +08:00
Zexi Li
d274e3078c Merge pull request #12172 from ioito/automated-cherry-pick-of-#12171-upstream-release-3.8
Automated cherry pick of #12171: fix(scheduler): options for openstack scheduler
2021-09-10 11:54:06 +08:00
Zexi Li
e1269cf9fe Merge pull request #12169 from ioito/automated-cherry-pick-of-#12168-upstream-release-3.8
Automated cherry pick of #12168: fix(region): optimized qcloud tag sync
2021-09-09 20:25:58 +08:00
Qu Xuan
5a972e6ddf fix(scheduler): options for openstack scheduler 2021-09-09 17:55:02 +08:00
Qu Xuan
a905f67fb2 fix(region): optimized qcloud tag sync 2021-09-09 17:38:58 +08:00
Zexi Li
9bca310026 Merge pull request #12163 from ioito/automated-cherry-pick-of-#12162-upstream-release-3.8
Automated cherry pick of #12162: fix(region): sync apsara region
2021-09-09 16:29:33 +08:00
Qu Xuan
edcbf3b2d3 fix(region): sync apsara region 2021-09-09 15:48:57 +08:00
Zexi Li
e09c21d452 Merge pull request #12158 from swordqiu/automated-cherry-pick-of-#12157-upstream-release-3.8
Automated cherry pick of #12157: fix: set disk driver and network driver for converting esxi to kvm
2021-09-08 23:06:31 +08:00
Zexi Li
f270daa6ae Merge pull request #12153 from zhaoxiangchun/automated-cherry-pick-of-#12152-upstream-release-3.8
Automated cherry pick of #12152: fix(monitor): add record shield details param
2021-09-08 23:05:53 +08:00
Zexi Li
49d1f6ee1e Merge pull request #12150 from zhaoxiangchun/automated-cherry-pick-of-#12149-upstream-release-3.8
Automated cherry pick of #12149: fix(monitor): add monitor resource details field
2021-09-08 22:52:16 +08:00
Zexi Li
bdf015668f Merge pull request #12155 from ioito/automated-cherry-pick-of-#12154-upstream-release-3.8
Automated cherry pick of #12154: fix(region): sync aliyun qcloud default project
2021-09-08 22:51:31 +08:00
Qiu Jian
334ae46514 fix: set disk driver and network driver for converting esxi to kvm 2021-09-08 22:29:09 +08:00
Qu Xuan
cbbf5c28e1 fix(region): sync aliyun qcloud default project 2021-09-08 20:27:39 +08:00
zhaoxiangchun
f517795c85 fix(monitor): add record shield details param 2021-09-08 18:05:21 +08:00
zhaoxiangchun
82b05b2cd1 fix(monitor): add monitor resource details field 2021-09-08 17:39:17 +08:00
Zexi Li
429d38f06d Merge pull request #12142 from rainzm/automated-cherry-pick-of-#12141-upstream-release-3.8
Automated cherry pick of #12141: fix(devtool): get tenant info via correct field
2021-09-08 16:25:26 +08:00
Zexi Li
b50d54d8cc Merge pull request #12146 from ioito/automated-cherry-pick-of-#12145-upstream-release-3.8
Automated cherry pick of #12145: fix(region): resource apsara resource id not found error
2021-09-08 16:20:33 +08:00
Qu Xuan
d4104bb98d fix(region): resource apsara resource id not found error 2021-09-08 15:54:27 +08:00
Zexi Li
c8b1cfc397 Merge pull request #12138 from ioito/automated-cherry-pick-of-#12126-upstream-release-3.8
Automated cherry pick of #12126: fix(region): apsara default region
2021-09-08 15:53:44 +08:00
rainzm
df3d24b40a fix(devtool): get tenant info via correct field 2021-09-08 15:34:30 +08:00
Qu Xuan
3483446885 fix(region): apsara default region 2021-09-08 14:27:02 +08:00
Zexi Li
b84b5786ed Merge pull request #12127 from ioito/automated-cherry-pick-of-#12126-upstream-release-3.8
Automated cherry pick of #12126: fix(region): apsara default region
2021-09-08 13:58:15 +08:00
Zexi Li
ad4f0da021 Merge pull request #12135 from swordqiu/automated-cherry-pick-of-#12134-upstream-release-3.8
Automated cherry pick of #12134: fix(region): change disk and network drivers for Esxi converted VM
2021-09-08 12:01:41 +08:00
Qiu Jian
31aa3e36ee fix(region): change disk and network drivers for Esxi converted VM 2021-09-08 11:47:51 +08:00
Zexi Li
c4c095e0f8 Merge pull request #12131 from tb365/automated-cherry-pick-of-#12130-upstream-release-3.8
Automated cherry pick of #12130: fix(region): hcso sync server fix
2021-09-08 10:47:24 +08:00
tb365
a9a1c64ef0 fix(region): hcso sync server fix 2021-09-08 10:42:16 +08:00
Qu Xuan
dda5a309ac fix(region): apsara default region 2021-09-08 10:35:29 +08:00
Zexi Li
328dcf8ebb Merge pull request #12122 from ioito/automated-cherry-pick-of-#12121-upstream-release-3.8
Automated cherry pick of #12121: fix(region): apsara endpoint fix
2021-09-07 15:25:46 +08:00
Qu Xuan
7628bd2a81 fix(region): apsara endpoint fix 2021-09-07 14:28:33 +08:00
Zexi Li
237a54a79f Merge pull request #12118 from rainzm/automated-cherry-pick-of-#12117-upstream-release-3.8
Automated cherry pick of #12117: fix(devtool): create serviceurl
2021-09-07 10:50:20 +08:00
rainzm
1927f32109 fix(devtool): create serviceurl 2021-09-07 10:36:44 +08:00
Zexi Li
9dcabdb247 Merge pull request #12116 from tb365/automated-cherry-pick-of-#12114-upstream-release-3.8
Automated cherry pick of #12114: NetworkUsableZoneIds remove duplicate zone ids
2021-09-06 21:48:01 +08:00
tb365
6785b43bad NetworkUsableZoneIds remove duplicate zone ids 2021-09-06 14:43:52 +08:00
yunion-ci-robot
a51f8b6c2c Merge pull request #12113 from ioito/automated-cherry-pick-of-#12112-upstream-release-3.8
Automated cherry pick of #12112: fix(region): sku region info
2021-09-06 00:16:24 +08:00
Qu Xuan
40127b24e6 fix(region): sku region info 2021-09-05 22:56:25 +08:00
Zexi Li
d2f608696f Merge pull request #12106 from rainzm/automated-cherry-pick-of-#12105-upstream-release-3.8
Automated cherry pick of #12105: feat(devtool): add sshinfo and serviceurl
2021-09-05 16:58:43 +08:00
rainzm
a38f03516e feat(devtool): add sshinfo and serviceurl 2021-09-04 18:29:06 +08:00
yunion-ci-robot
e7935d6412 Merge pull request #12103 from ioito/automated-cherry-pick-of-#12102-upstream-release-3.8
Automated cherry pick of #12102: fix(host): return cache image error
2021-09-03 15:17:22 +08:00
Qu Xuan
4a72e87323 fix(host): return cache image error 2021-09-03 10:46:54 +08:00
Zexi Li
a6295d340a fix(baremetal): reindex nic (#12089) 2021-09-03 02:39:44 +08:00
Zexi Li
e8338f2832 Merge pull request #12076 from ioito/automated-cherry-pick-of-#12075-upstream-release-3.8
Automated cherry pick of #12075: fix(region): struct guest json desc
2021-09-02 23:15:48 +08:00
Zexi Li
f87d0e905a Merge pull request #12091 from zexi/automated-cherry-pick-of-#12090-upstream-release-3.8
Automated cherry pick of #12090: fix(climc-base): update tag to 20210901
2021-09-02 23:14:45 +08:00
Zexi Li
9274649334 Merge pull request #12096 from tb365/automated-cherry-pick-of-#12094-upstream-release-3.8
Automated cherry pick of #12094: fix(region): lb list search address fix
2021-09-02 18:33:08 +08:00
Zexi Li
13b05bf0c6 Merge pull request #12098 from zhaoxiangchun/automated-cherry-pick-of-#12097-upstream-release-3.8
Automated cherry pick of #12097: fix(monitor): monitor resource apiHelper fix
2021-09-02 18:27:17 +08:00
Zexi Li
2069057967 Merge pull request #12101 from ioito/automated-cherry-pick-of-#12100-upstream-release-3.8
Automated cherry pick of #12100: fix(region): cloudpods misc fix
2021-09-02 18:26:18 +08:00
Qu Xuan
197ff6f805 fix(region): cloudpods network scheduler 2021-09-02 17:21:52 +08:00
Qu Xuan
c52ee7d073 fix(region): cloudpods misc fix 2021-09-02 17:21:52 +08:00
zhaoxiangchun
3eafa21456 fix(monitor): monitor resource apiHelper fix
1. apiHeleper 中增加interface,对应的ModelSet可以指定资源过滤参数
2. monitor删除过期的资源
2021-09-02 14:39:20 +08:00
tb365
749d063a61 fix(region): lb list search address fix 2021-09-02 14:16:33 +08:00
Zexi Li
7ee8b8abe5 Merge pull request #12068 from rainzm/automated-cherry-pick-of-#12067-upstream-release-3.8
Automated cherry pick of #12067: feat(region): allow custom sshport when make sshable
2021-09-02 11:43:41 +08:00
Zexi Li
3353aa0062 fix(climc-base): update tag to 20210901 2021-09-01 20:17:49 +08:00
Zexi Li
8e493053ee Merge pull request #12081 from ioito/automated-cherry-pick-of-#12080-upstream-release-3.8
Automated cherry pick of #12080: fix(region): access group policy
2021-09-01 16:35:52 +08:00
Zexi Li
eb307bbffd Merge pull request #12079 from tb365/automated-cherry-pick-of-#12077-upstream-release-3.8
Automated cherry pick of #12077: lb list api support search elastic ip
2021-09-01 15:17:06 +08:00
Zexi Li
904f6b3358 Merge pull request #12084 from swordqiu/automated-cherry-pick-of-#12083-upstream-release-3.8
Automated cherry pick of #12083: fix: add ceph-common to climc image, so as to make rbcli work
2021-09-01 14:48:11 +08:00
Qiu Jian
161cec3a08 fix: add ceph-common to climc image, so as to make rbcli work 2021-09-01 12:36:10 +08:00
rainzm
8c6d9ad876 feat(region): allow custom sshport when make sshable 2021-09-01 11:43:24 +08:00
Qu Xuan
bdeed9e7a8 fix(region): access group policy 2021-09-01 11:18:04 +08:00
tb365
b9f3f55e62 lb list api support search elastic ip 2021-09-01 11:12:21 +08:00
Qu Xuan
aa60326bc3 fix(region): struct guest json desc 2021-09-01 09:44:55 +08:00
Zexi Li
43deb292fb Merge pull request #12073 from swordqiu/automated-cherry-pick-of-#12072-upstream-release-3.8
Automated cherry pick of #12072: fix: do not lock system account user
2021-08-31 21:01:49 +08:00
Zexi Li
99eaebe34a Merge pull request #12069 from zexi/automated-cherry-pick-of-#12066-upstream-release-3.8
Automated cherry pick of #12066: fix(climc): host-delete use batch delete function
2021-08-31 18:35:04 +08:00
Qiu Jian
5afb0c82a8 fix: do not lock system account user 2021-08-31 17:44:46 +08:00
Zexi Li
8fbd42e535 Merge pull request #12045 from tb365/automated-cherry-pick-of-#12043-upstream-release-3.8
Automated cherry pick of #12043: count host fix
2021-08-31 16:25:22 +08:00
tb365
c57c4cc5b2 change host type to hcso 2021-08-31 15:49:22 +08:00
tb365
c7ad1243be count host fix 2021-08-31 15:49:22 +08:00
Zexi Li
18b008d838 Merge pull request #12064 from tb365/automated-cherry-pick-of-#12062-upstream-release-3.8
Automated cherry pick of #12062: Bugfix/tb bugfix 083101
2021-08-31 15:16:38 +08:00
Zexi Li
36b91f5afe fix(climc): host-delete use batch delete function 2021-08-31 15:13:19 +08:00
Zexi Li
fe0f3b01b9 Merge pull request #12060 from ioito/automated-cherry-pick-of-#12059-upstream-release-3.8
Automated cherry pick of #12059: fix(region): eip project sync
2021-08-31 11:32:00 +08:00
tb365
45219f3cf4 make fmt 2021-08-31 11:24:40 +08:00
tb365
eebdd2b591 rename huaweicloudstack to hcso 2021-08-31 11:24:40 +08:00
tb365
18e806ba7d syncRemoveCloudHost purge host 2021-08-31 11:24:40 +08:00
Qu Xuan
45dd2ece7c fix(region): eip project sync 2021-08-31 10:34:07 +08:00
Zexi Li
bb62477f80 Merge pull request #12041 from rainzm/automated-cherry-pick-of-#12040-upstream-release-3.8
Automated cherry pick of #12040: feat(region): add no_tags options to filter guests
2021-08-31 10:01:41 +08:00
Zexi Li
a6340afcbe Merge pull request #12057 from rainzm/automated-cherry-pick-of-#12056-upstream-release-3.8
Automated cherry pick of #12056: fix(region): delete the wrong tag 'nullable:false'
2021-08-31 09:56:38 +08:00
rainzm
fc9e1719b7 fix(region): delete the wrong tag 'nullable:false' 2021-08-30 16:54:00 +08:00
rainzm
73a8a01b63 feat(region): add no_tags options to filter guests
no_tags filter the guests without `no_tags`
2021-08-30 16:47:50 +08:00
Zexi Li
1455c52270 Merge pull request #12054 from ioito/automated-cherry-pick-of-#12053-upstream-release-3.8
Automated cherry pick of #12053: fix(region): sync vm os type
2021-08-30 15:04:25 +08:00
Qu Xuan
c810ea46c6 fix(region): sync vm os type 2021-08-30 14:29:40 +08:00
Zexi Li
9b9bcc881e Merge pull request #12052 from zexi/automated-cherry-pick-of-#12050-upstream-release-3.8
Automated cherry pick of #12050: fix(glance): image fuzzy match by distro
2021-08-27 18:02:46 +08:00
Zexi Li
0a4ad0a305 fix(glance): image fuzzy match by distro 2021-08-27 18:01:26 +08:00
Zexi Li
4573622ba5 Merge pull request #12039 from zhaoxiangchun/automated-cherry-pick-of-#12038-upstream-release-3.8
Automated cherry pick of #12038: fix(monitor): monitor rds sync
2021-08-27 16:58:32 +08:00
Zexi Li
11cd699c9c Merge pull request #12049 from ioito/automated-cherry-pick-of-#11987-upstream-release-3.8
Automated cherry pick of #11987: feat(region): cloudpods operation
2021-08-27 16:49:49 +08:00
Qu Xuan
ef873d9f77 feat(region): cloudpods operation 2021-08-27 16:41:57 +08:00
zhaoxiangchun
7ca332aa79 fea(monitor): monitor apiHelper add domain,project 2021-08-27 16:05:34 +08:00
zhaoxiangchun
eca062143b fix(monitor): monitor rds sync 2021-08-27 16:05:34 +08:00
Zexi Li
9b6fe19ea4 Merge pull request #12031 from zexi/automated-cherry-pick-of-#12030-upstream-release-3.8
Automated cherry pick of #12030: fix(keystone): appsrv listen multi port failed cause of race condition
2021-08-27 14:29:52 +08:00
Zexi Li
f0e61cd918 Merge pull request #12035 from ioito/automated-cherry-pick-of-#12034-upstream-release-3.8
Automated cherry pick of #12034: fix(region): sync aliyun classic network ip addr
2021-08-26 18:04:02 +08:00
Qu Xuan
a0170df031 fix(region): sync aliyun classic network ip addr 2021-08-26 17:16:09 +08:00
Zexi Li
c78f7a2f04 fix(keystone): appsrv listen multi port failed cause of race condition 2021-08-26 16:53:31 +08:00
Zexi Li
cb9b344bd4 Merge pull request #12025 from zhaoxiangchun/automated-cherry-pick-of-#12024-upstream-release-3.8
Automated cherry pick of #12024: feat(cloudmon): support HuaweiCloudStack rds metric
2021-08-26 12:34:44 +08:00
Zexi Li
b9c4336dff Merge pull request #12001 from tb365/automated-cherry-pick-of-#11999-upstream-release-3.8
Automated cherry pick of #11999: hcso support sync vm host
2021-08-26 12:23:22 +08:00
Zexi Li
e5f352fa37 Merge pull request #12028 from zexi/automated-cherry-pick-of-#12027-upstream-release-3.8
Automated cherry pick of #12027: fix(vendor): use creack/pty v1.1.11 to adapt go 1.15
2021-08-26 12:03:22 +08:00
Zexi Li
f0862574db fix(vendor): use creack/pty v1.1.11 to adapt go 1.15 2021-08-26 11:46:50 +08:00
Zexi Li
d7978069a9 Merge pull request #12007 from rainzm/automated-cherry-pick-of-#12006-upstream-release-3.8
Automated cherry pick of #12006: feat(region): add direct vpc options
2021-08-26 11:25:59 +08:00
zhaoxiangchun
1df2e03b73 feat(cloudmon): support HuaweiCloudStack rds metric 2021-08-26 11:21:15 +08:00
rainzm
9c2502db8d feat(region): add direct field for vpc
This field describes whether the VPC can be connected directly
2021-08-26 11:10:14 +08:00
Zexi Li
22f188f8c0 Merge pull request #12004 from rainzm/automated-cherry-pick-of-#12003-upstream-release-3.8
Automated cherry pick of #12003: fix(region): check instancesnapshot in correct place when resize disk
2021-08-26 10:42:38 +08:00
Zexi Li
d4656072de Merge pull request #12015 from zexi/automated-cherry-pick-of-#12014-upstream-release-3.8
Automated cherry pick of #12014: fix(cloudcommon): avoid service exit when etcd unreachable
2021-08-26 10:41:31 +08:00
Zexi Li
db34e8ad3b Merge pull request #12021 from zexi/automated-cherry-pick-of-#12020-upstream-release-3.8
Automated cherry pick of #12020: feat(cloudcommon): move ignore_nonrunning_guests option to common
2021-08-26 10:39:09 +08:00
Zexi Li
dd390aa6dd Merge pull request #12019 from ioito/automated-cherry-pick-of-#12018-upstream-release-3.8
Automated cherry pick of #12018: fix(region): cdn misc fix
2021-08-26 00:15:55 +08:00
Zexi Li
e9b0203da4 feat(cloudcommon): move ignore_nonrunning_guests option to common 2021-08-25 21:04:14 +08:00
Qu Xuan
08c5f3c816 fix(region): cdn misc fix 2021-08-25 20:44:38 +08:00
Zexi Li
5317e842f3 Merge pull request #12010 from ioito/automated-cherry-pick-of-#12009-upstream-release-3.8
Automated cherry pick of #12009: fix(region): aliyun rds network sync
2021-08-25 20:18:44 +08:00
tb365
afe7f5d828 hcso support sync vm host 2021-08-25 20:11:57 +08:00
Zexi Li
c8966f7e87 fix(cloudcommon): avoid service exit when etcd unreachable 2021-08-25 19:47:49 +08:00
Qu Xuan
f89c9b933a fix(region): aliyun rds network sync 2021-08-25 18:55:22 +08:00
Zexi Li
66c6a7570c Merge pull request #11997 from zhaoxiangchun/automated-cherry-pick-of-#11995-upstream-release-3.8
Automated cherry pick of #11995: fix(monitor):fix monitor query top 5
2021-08-25 18:19:26 +08:00
rainzm
297d905d4f fix(region): check instancesnapshot in correct place when resize disk 2021-08-25 17:12:06 +08:00
zhaoxiangchun
c24c923a8f fix(monitor):fix monitor query top 5 2021-08-25 10:15:27 +08:00
yunion-ci-robot
40909986f6 Merge pull request #11992 from zexi/automated-cherry-pick-of-#11991-upstream-release-3.8
Automated cherry pick of #11991: fix(region): try to find mediumType matched storage when create disk …
2021-08-25 08:49:05 +08:00
Zexi Li
48d6492715 Merge pull request #11984 from ioito/automated-cherry-pick-of-#11983-upstream-release-3.8
Automated cherry pick of #11983: fix(region): enable zstack allocate ip by itself
2021-08-24 22:56:27 +08:00
Zexi Li
fcc635a90e Merge pull request #11989 from ioito/automated-cherry-pick-of-#11988-upstream-release-3.8
Automated cherry pick of #11988: fix(cloudid): hcso custom role
2021-08-24 22:55:07 +08:00
Zexi Li
38582f5f93 fix(region): try to find mediumType matched storage when create disk for kvm 2021-08-24 21:36:14 +08:00
Qu Xuan
8deacfcf59 fix(cloudid): hcso custom role 2021-08-24 20:55:46 +08:00
Qu Xuan
f1d422e85f fix(region): enable zstack allocate ip by itself 2021-08-24 16:07:53 +08:00
2698 changed files with 171452 additions and 90644 deletions

View File

@@ -268,7 +268,8 @@ dep:
@$(MAKE) mod
mod:
go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p'))
go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p' | grep -v sqlchemy))
go get -d yunion.io/x/sqlchemy@v1.0.2
go mod tidy
go mod vendor -v
@@ -330,7 +331,7 @@ image:
.PHONY: image
image-telegraf-raid-plugin:
VERSION=release-1.6.1 ARCH=all make image telegraf-raid-plugin
VERSION=release-1.6.3 ARCH=all make image telegraf-raid-plugin
%:
@:

View File

@@ -1,7 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.0.5
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.0.5-2
# install playbook and telegraf install pkg
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.3.3 /opt/yunion/playbook /opt/yunion/playbook
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.3.3 /opt/yunion/ansible-install-pkg /opt/yunion/ansible-install-pkg
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.3.4 /opt/yunion/playbook /opt/yunion/playbook
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.3.4 /opt/yunion/ansible-install-pkg /opt/yunion/ansible-install-pkg
ADD ./_output/alpine-build/bin/ansibleserver /opt/yunion/bin/ansibleserver

View File

@@ -2,6 +2,8 @@ FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
MAINTAINER "Yousong Zhou <zhouyousong@yunionyun.com>"
ENV TZ UTC
# openssh-client, for ansible ssh connection
# git, ca-certificates, for fetching ansible roles
RUN set -x \

View File

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

View File

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

View File

@@ -1,19 +1,17 @@
FROM --platform=linux/amd64 registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 as build
RUN yum install -y https://iso.yunion.cn/vm-images/baremetal-pxerom-1.1.0-21080303.x86_64.rpm
#RUN yum install -y http://192.168.122.112:8083/baremetal-pxerom-1.1.0-21080303.x86_64.rpm
RUN yum install -y https://iso.yunion.cn/vm-images/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
#RUN yum install -y http://192.168.23.50:8083/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3-3.13.5
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
RUN mkdir -p /opt/yunion/bin
RUN apk update && \
apk add --no-cache ipmitool ethtool tzdata ca-certificates cdrkit coreutils && \
apk add --no-cache ipmitool ethtool tzdata ca-certificates cdrkit coreutils librados librbd && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /opt/cloud/yunion/baremetal
# udpate latest pci.ids

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20210817
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20210901
ADD ./build/climc/root/opt /opt

View File

@@ -8,7 +8,7 @@ RUN mkdir -p /opt/yunion/bin
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositories
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim ipmitool kubectl && \
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim ipmitool kubectl ceph-common && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
COPY ./build/esxi-agent/root/opt/ /opt/

View File

@@ -1,7 +1,5 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:20210815.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/glance-base:v0.0.1
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN apk add --no-cache s3fs-fuse --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/glance /opt/yunion/bin/glance

View File

@@ -0,0 +1,5 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:20210815.0
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN apk add --no-cache s3fs-fuse --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing

View File

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

View File

@@ -1,8 +1,8 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:1.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:1.1
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ Asia/Shanghai
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin

View File

@@ -0,0 +1,9 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
RUN mkdir -p /opt/yunion/bin
ENV TZ UTC
ADD ./_output/bin/host-image /opt/yunion/bin/host-image
ADD ./_output/bin/.host-image.bin /opt/yunion/bin/.host-image.bin
ADD ./_output/bin/bundles/host-image /opt/yunion/bin/bundles/host-image

View File

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

View File

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

View File

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

View File

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

View File

@@ -3,12 +3,12 @@ FROM alpine:3.13.5
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ Asia/Shanghai
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN apk update && \
apk add --no-cache tzdata curl busybox-extras tcpdump strace ca-certificates && \
rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
MAINTAINER "Zexi Li <zexi.li@icloud.com>"

View File

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

View File

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

View File

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

View File

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

View File

@@ -7,28 +7,40 @@ debian10-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 -f ./Dockerfile.debian-base .
ONECLOUD_BASE_VERSION = v0.3.5
ONECLOUD_BASE_VERSION = v0.3-3.13.5
onecloud-base:
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION) -f ./Dockerfile.onecloud-base .
ANSIBLESERVER_BASE = v1.0.5
ANSIBLESERVER_BASE = v1.0.5-2
ansibleserver-base:
$(DOCKER_BUILDX)/ansibleserver-base:$(ANSIBLESERVER_BASE) -f ./Dockerfile.ansibleserver-base .
CLIMC_BASE_VERSION = 20210817
CLIMC_BASE_VERSION = 20210901
climc-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/climc-base:$(CLIMC_BASE_VERSION) -f ./Dockerfile.climc-base .
BAREMETAL_BASE_VERSION = v0.3.2
WEBCONSOLE_BASE_VERSION = v0.2-1
webconsole-base:
$(DOCKER_BUILDX)/webconsole-base:$(WEBCONSOLE_BASE_VERSION) -f ./Dockerfile.webconsole-base .
BAREMETAL_BASE_VERSION = v0.3.3-2
baremetal-base:
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)
TORRENT_VERSION = 20210815.0
torrent:
$(DOCKER_BUILDX)/torrent:$(TORRENT_VERSION) -f ./Dockerfile.torrent .
GLANCE_BASE_VERSION = v0.0.1
glance-base:
$(DOCKER_BUILDX)/glance-base:$(GLANCE_BASE_VERSION) -f ./Dockerfile.glance-base .
FILE_REPO_VERSION = v0.3.3
file-repo:

View File

@@ -13,6 +13,5 @@ MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ Asia/Shanghai
RUN apk add librados librbd
RUN mkdir -p /opt/yunion/bin
COPY --from=build /root/go/src/yunion.io/x/onecloud/_output/bin/host /opt/yunion/bin/host

View File

@@ -3,7 +3,7 @@
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}已经{{ .action_display }}{{.result_display}}
{{ .resource_type_display }}{{ $d.name }}{{ .action_display }}{{.result_display}}
{{- if eq .result "failed" -}}
,请尽快前往控制台进行处理
{{- end -}}

View File

@@ -4,7 +4,7 @@
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}已经创建成功
{{ .resource_type_display }}{{ $d.name }}创建成功
{{- if $d.private_dns -}}
,内网地址为{{ $d.private_dns }}:{{ $d.private_connect_port }}
{{- end -}}
@@ -13,8 +13,8 @@
,外网地址为{{ $d.public_dns }}:{{ $d.public_connect_port }}
{{- end -}}
{{- if and $d.address_type $d.address -}}
,服务地址为{{ $d.address_type }}{{ $d.address }}
{{- if $d.address -}}
,服务地址为{{ $d.address }}
{{- end -}}
{{- if $d.ips -}}
@@ -29,8 +29,8 @@
IP地址为{{ $d.ip_addr }}
{{- end -}}
{{- if $d.account -}}
,初始帐号为{{ $d.account }}
{{- if $d.login_account -}}
,初始帐号为{{ $d.login_account }}
{{- end -}}
{{- if $d.password -}}
@@ -56,7 +56,7 @@
{{- else -}}
SSH
{{- end -}}
控制面板控制台访问虚拟机。
前往控制台访问虚拟机。
{{- end -}}
{{- if has .resource_type $consoleServiceType -}}

View File

@@ -19,4 +19,4 @@
{{- if $d.ip_addr -}}
IP地址为{{ $d.ip_addr }}
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}已经删除成功
{{ .resource_type_display }}{{ $d.name }}删除成功

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.name }} 发生异常: {{ $d.message }}

View File

@@ -3,4 +3,12 @@
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}还有{{ .advance_days }}天就要到期释放,如需续期使用,请尽快前往控制台处理
{{- if $d.private_dns -}}
,内网地址为{{ $d.private_dns }}:{{ $d.private_connect_port }}
{{- end -}}
{{- if $d.public_dns -}}
,外网地址为{{ $d.public_dns }}:{{ $d.public_connect_port }}的
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}还有{{ .advance_days }}天就要到期释放,{{ if $d.auto_renew }}到期已开启自动续费,{{ end }}如有其它变更,请尽快前往控制台处理

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.name }} 离线 {{- if $d.reason -}} 原因: {{ $d.reason }} {{- end -}}

View File

@@ -0,0 +1,4 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.task_name }} PANIC {{- if $d.error -}} 错误: {{ $d.error }} {{- end -}}
堆栈信息:
{{ $d.stack }}

View File

@@ -0,0 +1,14 @@
{{- $d := .resource_details -}}
您在{{ $d.project }}项目的
{{- if $d.ips -}}
IP地址为{{ $d.ips }}的
{{- end -}}
{{- if $d.ip_addr -}}
IP地址为{{ $d.ip_addr }}的
{{- end -}}
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}成功加入回收站

View File

@@ -3,7 +3,7 @@
{{- if $d.brand -}}
{{ $d.brand }}平台
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}已经{{ .action_display }}成功
{{ .resource_type_display }}{{ $d.name }}{{ .action_display }}成功
{{- if $d.account -}}
,帐号为{{ $d.account }}
{{- end -}}

View File

@@ -9,8 +9,8 @@ Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {
, the internet address is {{ $d.public_dns }}:{{ $d.public_connect_port }}
{{- end -}}
{{- if and $d.address_type $d.address -}}
, the service address is {{ $d.address_type }}{{ $d.address }}
{{- if $d.address -}}
, the service address is {{ $d.address }}
{{- end -}}
{{- if $d.ips -}}
@@ -46,7 +46,7 @@ Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {
{{- end -}}
{{- if eq .resource_type "server" -}}
, and please use {{ if $d.windows -}} Remote Desktop Connector (RDC) {{ else -}} SSH {{ end -}} or the control panel console to access the VM.
, and please use {{ if $d.windows -}} Remote Desktop Connector (RDC) {{ else -}} SSH {{ end -}} or go to the console to access the VM.
{{- end -}}
{{- if has .resource_type $consoleServiceType -}}

View File

@@ -6,7 +6,7 @@ Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {
{{- end -}}
{{- if $d.public_dns -}}
, the internet address is {{ $d.public_dns }}:{{ $d.public_connect_port }}
, the external address is {{ $d.public_dns }}:{{ $d.public_connect_port }}
{{- end -}}
{{- if and $d.address_type $d.address -}}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.name }} exception occurs: {{ $d.message }}

View File

@@ -1,2 +1,2 @@
{{- $d := .resource_details -}}
Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} will expire and be released in {{ .advance_days }} days. If you need to renew, please go to the console as soon as possible
Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type }} {{ $d.name }} {{ if $d.public_dns -}} with external address {{ $d.public_dns }}:{{ $d.public_connect_port }} {{ end -}} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} will expire and be released in {{ .advance_days }} days. {{ if $d.auto_renew }}It has turned on automatic renewal. {{ end }}If there are other changes, please go to the console as soon as possible.

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The {{ .resource_type }} {{ $d.name }} Offline {{- if $d.reason -}} Reason: {{ $d.reason }}的 {{- end -}}

View File

@@ -0,0 +1,4 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.task_name }} PANIC {{- if $d.error -}} Error: {{ $d.error }} {{- end -}}
Stack Info:
{{ $d.stack }}

View File

@@ -0,0 +1,22 @@
{{- $d := .resource_details -}}
Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {{ $d.name }}
{{ if $d.project -}} in project {{ $d.project }} {{ end -}} has been added to recycle bin successfully
{{- if $d.private_dns -}}
, the intranet address is {{ $d.private_dns }}:{{ $d.private_connect_port }}
{{- end -}}
{{- if $d.public_dns -}}
, the external address is {{ $d.public_dns }}:{{ $d.public_connect_port }}
{{- end -}}
{{- if and $d.address_type $d.address -}}
, the service address is {{ $d.address_type }}{{ $d.address }}
{{- end -}}
{{- if $d.ips -}}
, the IP address is {{ $d.ips }}
{{- end -}}
{{- if $d.ip_addr -}}
, the IP address is {{ $d.ip_addr }}
{{- end -}}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.name }} 发生异常: {{ $d.message }}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.name }} 离线

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.task_name }} PANIC

View File

@@ -0,0 +1,5 @@
{{- $d := .resource_details -}}
{{- if $d.project -}}
{{ $d.project }}项目的
{{- end -}}
{{ .resource_type_display }}{{ $d.name }}成功加入回收站

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.name }} exception occurs: {{ $d.message }}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The {{ .resource_type }} {{ $d.name }} Offline

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ .resource_type }} {{ $d.task_name }} PANIC

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The {{ .resource_type_display }} {{ .Name }} {{ if $d.project }} in poject {{ $d.project }} {{ end -}} has been added to recycle bin successfully

View File

@@ -16,10 +16,15 @@ package main
import (
"fmt"
"net/http"
"net/url"
"os"
"golang.org/x/net/http/httpproxy"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud/aliyun"
_ "yunion.io/x/onecloud/pkg/multicloud/aliyun/shell"
"yunion.io/x/onecloud/pkg/util/shellutils"
@@ -85,12 +90,27 @@ func newClient(options *BaseOptions) (*aliyun.SRegion, error) {
return nil, fmt.Errorf("Missing secret")
}
cfg := &httpproxy.Config{
HTTPProxy: os.Getenv("HTTP_PROXY"),
HTTPSProxy: os.Getenv("HTTPS_PROXY"),
NoProxy: os.Getenv("NO_PROXY"),
}
cfgProxyFunc := cfg.ProxyFunc()
proxyFunc := func(req *http.Request) (*url.URL, error) {
return cfgProxyFunc(req.URL)
}
cli, err := aliyun.NewAliyunClient(
aliyun.NewAliyunClientConfig(
options.CloudEnv,
options.AccessKey,
options.Secret,
).Debug(options.Debug),
).Debug(options.Debug).
CloudproviderConfig(
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
)
if err != nil {
return nil, err

View File

@@ -16,8 +16,12 @@ package main
import (
"fmt"
"net/http"
"net/url"
"os"
"golang.org/x/net/http/httpproxy"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
@@ -87,13 +91,28 @@ func newClient(options *BaseOptions) (*apsara.SRegion, error) {
return nil, fmt.Errorf("Missing secret")
}
cfg := &httpproxy.Config{
HTTPProxy: os.Getenv("HTTP_PROXY"),
HTTPSProxy: os.Getenv("HTTPS_PROXY"),
NoProxy: os.Getenv("NO_PROXY"),
}
cfgProxyFunc := cfg.ProxyFunc()
proxyFunc := func(req *http.Request) (*url.URL, error) {
return cfgProxyFunc(req.URL)
}
cli, err := apsara.NewApsaraClient(
apsara.NewApsaraClientConfig(
options.AccessKey,
options.Secret,
options.Endpoint,
options.SApsaraEndpoints,
).Debug(options.Debug),
).Debug(options.Debug).
CloudproviderConfig(
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
)
if err != nil {
return nil, err

View File

@@ -16,11 +16,16 @@ package main
import (
"fmt"
"net/http"
"net/url"
"os"
"golang.org/x/net/http/httpproxy"
"yunion.io/x/pkg/errors"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud/aws"
_ "yunion.io/x/onecloud/pkg/multicloud/aws/shell"
"yunion.io/x/onecloud/pkg/util/shellutils"
@@ -87,13 +92,28 @@ func newClient(options *BaseOptions) (*aws.SRegion, error) {
return nil, fmt.Errorf("Missing secret")
}
cfg := &httpproxy.Config{
HTTPProxy: os.Getenv("HTTP_PROXY"),
HTTPSProxy: os.Getenv("HTTPS_PROXY"),
NoProxy: os.Getenv("NO_PROXY"),
}
cfgProxyFunc := cfg.ProxyFunc()
proxyFunc := func(req *http.Request) (*url.URL, error) {
return cfgProxyFunc(req.URL)
}
cli, err := aws.NewAwsClient(
aws.NewAwsClientConfig(
options.AccessUrl,
options.AccessKey,
options.Secret,
options.AccountId,
).Debug(options.Debug),
).Debug(options.Debug).
CloudproviderConfig(
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
)
if err != nil {
return nil, err

View File

@@ -16,10 +16,15 @@ package main
import (
"fmt"
"net/http"
"net/url"
"os"
"golang.org/x/net/http/httpproxy"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud/azure"
_ "yunion.io/x/onecloud/pkg/multicloud/azure/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
@@ -100,6 +105,16 @@ func newClient(options *BaseOptions) (*azure.SRegion, error) {
return nil, fmt.Errorf("Missing Cloud Environment")
}
cfg := &httpproxy.Config{
HTTPProxy: os.Getenv("HTTP_PROXY"),
HTTPSProxy: os.Getenv("HTTPS_PROXY"),
NoProxy: os.Getenv("NO_PROXY"),
}
cfgProxyFunc := cfg.ProxyFunc()
proxyFunc := func(req *http.Request) (*url.URL, error) {
return cfgProxyFunc(req.URL)
}
cli, err := azure.NewAzureClient(
azure.NewAzureClientConfig(
options.CloudEnv,
@@ -108,7 +123,12 @@ func newClient(options *BaseOptions) (*azure.SRegion, error) {
options.ApplicationKey,
).
SubscriptionId(options.SubscriptionID).
Debug(options.Debug),
Debug(options.Debug).
CloudproviderConfig(
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
)
if err != nil {

View File

@@ -15,6 +15,10 @@
package cloudevent
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"
@@ -41,17 +45,26 @@ func init() {
return nil
})
type CloudeventSplitTableOptions struct {
}
R(&CloudeventSplitTableOptions{}, "cloud-event-splitable", "Show obsolete cloud event logs", func(s *mcclient.ClientSession, opts *CloudeventSplitTableOptions) error {
resp, err := modules.Cloudevents.Get(s, "splitable", nil)
if err != nil {
return err
}
fmt.Println(resp)
return nil
})
type CloudeventLogsPurgeOptions struct {
}
R(&CloudeventLogsPurgeOptions{}, "cloud-event-purge", "Purge obsolete cloud event logs", func(s *mcclient.ClientSession, opts *CloudeventLogsPurgeOptions) error {
_, err := modules.Cloudevents.PerformClassAction(s, "purge-splitable", nil)
if err != nil {
return err
}
_, err = modules.CloudeventLogs.PerformClassAction(s, "purge-splitable", nil)
R(&CloudeventLogsPurgeOptions{}, "cloud-event-purge-splitable", "Purge obsolete cloud event logs", func(s *mcclient.ClientSession, opts *CloudeventLogsPurgeOptions) error {
resp, err := modules.Cloudevents.PerformClassAction(s, "purge-splitable", jsonutils.Marshal(opts))
if err != nil {
return err
}
fmt.Println(resp)
return nil
})
}

View File

@@ -28,4 +28,5 @@ func init() {
cmd.List(&options.ProxyAgentListOptions{})
cmd.Show(&options.ProxyAgentShowOptions{})
cmd.Delete(&options.ProxyAgentDeleteOptions{})
cmd.Perform("purge-forwards", &options.ProxyAgentPurgeForwardsOptions{})
}

View File

@@ -0,0 +1,46 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
bsCmd := shell.NewResourceCmd(&modules.BackupStorages)
bsCmd.List(&compute.BackupStorageListOptions{})
bsCmd.Show(&compute.BackupStorageIdOptions{})
bsCmd.Create(&compute.BackupStorageCreateOptions{})
bsCmd.Delete(&compute.BackupStorageIdOptions{})
bsCmd.Perform("public", &options.BasePublicOptions{})
bsCmd.Perform("private", &options.BaseIdOptions{})
dbCmd := shell.NewResourceCmd(&modules.DiskBackups)
dbCmd.List(&compute.DiskBackupListOptions{})
dbCmd.Show(&compute.DiskBackupIdOptions{})
dbCmd.Delete(&compute.DiskBackupIdOptions{})
dbCmd.Create(&compute.DiskBackupCreateOptions{})
dbCmd.Perform("recovery", &compute.DiskBackupRecoveryOptions{})
dbCmd.Perform("syncstatus", &compute.DiskBackupSyncstatusOptions{})
ibCmd := shell.NewResourceCmd(&modules.InstanceBackups)
ibCmd.List(&compute.InstanceBackupListOptions{})
ibCmd.Show(&compute.InstanceBackupIdOptions{})
ibCmd.Delete(&compute.InstanceBackupIdOptions{})
ibCmd.Perform("recovery", &compute.InstanceBackupRecoveryOptions{})
}

View File

@@ -17,10 +17,15 @@ package compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.CDNDomains)
cmd.List(&compute.CDNDomainListOptions{})
cmd.Show(&options.BaseIdOptions{})
cmd.Update(&compute.CDNDomainUpdateOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Create(&compute.CDNDomainCreateOptions{})
}

View File

@@ -37,7 +37,7 @@ func init() {
cmd.CreateWithKeyword("create-aws", &options.SAWSCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-openstack", &options.SOpenStackCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-huawei", &options.SHuaweiCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-huaweicloudstack", &options.SHuaweiCloudStackAccountCreateOptions{})
cmd.CreateWithKeyword("create-hcso", &options.SHCSOAccountCreateOptions{})
cmd.CreateWithKeyword("create-ucloud", &options.SUcloudCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-zstack", &options.SZStackCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-s3", &options.SS3CloudAccountCreateOptions{})
@@ -48,6 +48,7 @@ func init() {
cmd.CreateWithKeyword("create-ecloud", &options.SEcloudCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-jdcloud", &options.SJDcloudCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-cloudpods", &options.SCloudpodsCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-nutanix", &options.SNutanixCloudAccountCreateOptions{})
cmd.UpdateWithKeyword("update-vmware", &options.SVMwareCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-aliyun", &options.SAliyunCloudAccountUpdateOptions{})
@@ -57,13 +58,14 @@ func init() {
cmd.UpdateWithKeyword("update-aws", &options.SAWSCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-openstack", &options.SOpenStackCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-huawei", &options.SHuaweiCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-huaweicloudstack", &options.SHuaweiCloudStackAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-hcso", &options.SHCSOAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-ucloud", &options.SUcloudCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-zstack", &options.SZStackCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-s3", &options.SS3CloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-ctyun", &options.SCtyunCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-jdcloud", &options.SJDcloudCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-cloudpods", &options.SCloudpodsCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-nutanix", &options.SNutanixCloudAccountUpdateOptions{})
cmd.Perform("update-credential", &options.CloudaccountUpdateCredentialOptions{})
@@ -75,13 +77,14 @@ func init() {
cmd.PerformWithKeyword("update-credential-aws", "update-credential", &options.SAWSCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-openstack", "update-credential", &options.SOpenStackCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-huawei", "update-credential", &options.SHuaweiCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-huaweicloudstack", "update-credential", &options.SHuaweiCloudStackAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-hcso", "update-credential", &options.SHCSOAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-ucloud", "update-credential", &options.SUcloudCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-zstack", "update-credential", &options.SZStackCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-s3", "update-credential", &options.SS3CloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-ctyun", "update-credential", &options.SCtyunCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-jdcloud", "update-credential", &options.SJDcloudCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-cloudpods", "update-credential", &options.SCloudpodsCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("update-credential-nutanix", "update-credential", &options.SNutanixCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("test-connectivity-google", "test-connectivity", &options.SGoogleCloudAccountUpdateCredentialOptions{})
cmd.PerformWithKeyword("test-connectivity-vmware", "test-connectivity", &options.SVMwareCloudAccountUpdateCredentialOptions{})

View File

@@ -21,8 +21,8 @@ import (
var (
R = shell.R
printList = printutils.PrintJSONList
printObject = printutils.PrintJSONObject
printList = shell.PrintList
printObject = shell.PrintObject
printBatchResults = printutils.PrintJSONBatchResults
InvalidUpdateError = shell.InvalidUpdateError

View File

@@ -15,11 +15,26 @@
package compute
import (
"compress/zlib"
"context"
"fmt"
"io"
"net/http"
"os"
"strconv"
"time"
"github.com/cheggaaa/pb/v3"
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/util/httputils"
"yunion.io/x/onecloud/pkg/util/sparsefile"
)
func init() {
@@ -309,4 +324,110 @@ func init() {
return nil
})
type DiskDownloadOptions struct {
ID string `help:"ID or name of disk" json:"-"`
Compress bool
Sparse bool
Timeout int `help:"Timeout hours for download" default:"5"`
Debug bool
FILE string
}
R(&DiskDownloadOptions{}, "disk-download", "Download disk from host", func(s *mcclient.ClientSession, args *DiskDownloadOptions) error {
disk, err := modules.Disks.GetById(s, args.ID, nil)
if err != nil {
return err
}
storageId, _ := disk.GetString("storage_id")
storage, err := modules.Storages.GetById(s, storageId, nil)
if err != nil {
return err
}
hostsInfo := []struct {
Id string
}{}
storage.Unmarshal(&hostsInfo, "hosts")
header := http.Header{}
header.Set("X-Auth-Token", s.GetToken().GetTokenString())
if args.Compress {
header.Set("X-Compress-Content", "zlib")
}
if args.Sparse {
header.Set("X-Sparse-Content", "true")
}
client := httputils.GetTimeoutClient(time.Hour * time.Duration(args.Timeout))
for _, host := range hostsInfo {
host, err := modules.Hosts.GetById(s, host.Id, nil)
if err != nil {
return err
}
managerUri, _ := host.GetString("manager_uri")
if len(managerUri) == 0 {
continue
}
url := fmt.Sprintf("%s/download/disks/%s/%s", managerUri, storageId, args.ID)
resp, err := httputils.Request(client, context.Background(), httputils.GET, url, header, nil, args.Debug)
if err != nil {
log.Errorf("request %s error: %v", url, err)
continue
}
defer resp.Body.Close()
totalSize, _ := strconv.ParseInt(resp.Header.Get("Content-Length"), 10, 64)
sparseHeader, _ := strconv.ParseInt(resp.Header.Get("X-Sparse-Header"), 10, 64)
fi, err := os.Create(args.FILE)
if err != nil {
return errors.Wrapf(err, "os.Create(%s)", args.FILE)
}
defer fi.Close()
var reader = resp.Body
if args.Compress {
zlibRC, err := zlib.NewReader(resp.Body)
if err != nil {
return errors.Wrapf(err, "zlib.NewReader")
}
defer zlibRC.Close()
reader = zlibRC
}
var writer io.Writer = fi
if sparseHeader > 0 {
writer = sparsefile.NewSparseFileWriter(fi, sparseHeader, totalSize)
}
bar := pb.Full.Start64(totalSize)
barReader := bar.NewProxyReader(reader)
_, err = io.Copy(writer, barReader)
return err
}
return fmt.Errorf("no available download url")
})
type SparseHoleOptions struct {
FILE string
}
R(&SparseHoleOptions{}, "sparse-file-hole", "Show sparse file holes", func(s *mcclient.ClientSession, args *SparseHoleOptions) error {
fi, err := os.Open(args.FILE)
if err != nil {
return err
}
defer fi.Close()
sp, err := sparsefile.NewSparseFileReader(fi)
if err != nil {
return err
}
holes := sp.GetHoles()
printObject(jsonutils.Marshal(holes))
return nil
})
}

View File

@@ -27,4 +27,5 @@ func init() {
cmd.Show(&compute.ElasticSearchIdOption{})
cmd.Delete(&compute.ElasticSearchIdOption{})
cmd.Perform("syncstatus", &compute.ElasticSearchIdOption{})
cmd.Get("access-info", &compute.ElasticSearchIdOption{})
}

View File

@@ -33,6 +33,6 @@ func init() {
cmd.Perform("dissociate", &compute.EipDissociateOptions{})
cmd.Perform("sync", &options.BaseIdOptions{})
cmd.Perform("syncstatus", &options.BaseIdOptions{})
cmd.Perform("change-bandwidth", &options.BaseIdOptions{})
cmd.Perform("change-bandwidth", &compute.EipChangeBandwidthOptions{})
cmd.Perform("change-owner", &compute.EipChangeOwnerOptions{})
}

View File

@@ -15,95 +15,16 @@
package compute
import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
type GlobalVpcListOptions struct {
options.BaseListOptions
}
R(&GlobalVpcListOptions{}, "global-vpc-list", "List global vpcs", func(s *mcclient.ClientSession, args *GlobalVpcListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.GlobalVpcs.List(s, params)
if err != nil {
return err
}
printList(result, modules.GlobalVpcs.GetColumns(s))
return nil
})
type GlobalVpcShowOptions struct {
ID string `help:"ID or Name of globalvpc"`
}
R(&GlobalVpcShowOptions{}, "global-vpc-show", "Show details of a global vpc", func(s *mcclient.ClientSession, args *GlobalVpcShowOptions) error {
result, err := modules.GlobalVpcs.GetById(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type GlobalVpcPublicOptions struct {
ID string `help:"ID or name of global vpc" json:"-"`
Scope string `help:"sharing scope" choices:"system|domain"`
SharedDomains []string `help:"share to domains"`
}
R(&GlobalVpcPublicOptions{}, "global-vpc-public", "Make global vpc public", func(s *mcclient.ClientSession, args *GlobalVpcPublicOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.GlobalVpcs.PerformAction(s, args.ID, "public", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type GlobalVpcPrivateOptions struct {
ID string `help:"ID or name of global vpc" json:"-"`
}
R(&GlobalVpcPrivateOptions{}, "global-vpc-private", "Make global vpc private", func(s *mcclient.ClientSession, args *GlobalVpcPrivateOptions) error {
params := jsonutils.Marshal(args)
result, err := modules.GlobalVpcs.PerformAction(s, args.ID, "private", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&GlobalVpcShowOptions{}, "global-vpc-change-owner-candidate-domains", "Show candiate domains of a global vpc for changing owner", func(s *mcclient.ClientSession, args *GlobalVpcShowOptions) error {
result, err := modules.GlobalVpcs.GetSpecific(s, args.ID, "change-owner-candidate-domains", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type GlobalVpcChangeOwnerOptions struct {
ID string `help:"ID or name of vpc" json:"-"`
ProjectDomain string `json:"project_domain" help:"target domain"`
}
R(&GlobalVpcChangeOwnerOptions{}, "global-vpc-change-owner", "Change owner domain of a global vpc", func(s *mcclient.ClientSession, args *GlobalVpcChangeOwnerOptions) error {
if len(args.ProjectDomain) == 0 {
return fmt.Errorf("empty project_domain")
}
params := jsonutils.Marshal(args)
ret, err := modules.GlobalVpcs.PerformAction(s, args.ID, "change-owner", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
cmd := shell.NewResourceCmd(&modules.GlobalVpcs).WithKeyword("global-vpc")
cmd.List(&options.GlobalVpcListOptions{})
cmd.Show(&options.GlobalVpcIdOption{})
cmd.Create(&options.GlobalVpcCreateOptions{})
cmd.Perform("syncstatus", &options.GlobalVpcIdOption{})
cmd.Get("change-owner-candidate-domains", &options.GlobalVpcIdOption{})
}

View File

@@ -15,10 +15,12 @@
package compute
import (
"context"
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
@@ -26,6 +28,7 @@ import (
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
"yunion.io/x/onecloud/pkg/util/fileutils2"
"yunion.io/x/onecloud/pkg/util/httputils"
"yunion.io/x/onecloud/pkg/util/ssh"
)
@@ -43,8 +46,9 @@ func init() {
cmd.Perform("start", &options.BaseIdOptions{})
cmd.Perform("stop", &options.BaseIdOptions{})
cmd.Perform("reset", &options.BaseIdOptions{})
cmd.Perform("delete", &options.BaseIdOptions{})
cmd.BatchDelete(&options.BaseIdsOptions{})
cmd.Perform("remove-all-netifs", &options.BaseIdOptions{})
cmd.Perform("probe-isolated-devices", &options.BaseIdOptions{})
cmd.BatchPerform("enable", &options.BaseIdsOptions{})
cmd.BatchPerform("disable", &options.BaseIdsOptions{})
@@ -523,9 +527,36 @@ func init() {
return e
}
i, e := modules.Hosts.GetLoginInfo(s, srvid, nil)
privateKey := ""
if e != nil {
return e
if httputils.ErrorCode(e) == 404 || e.Error() == "ciphertext too short" {
var err error
privateKey, err = modules.Sshkeypairs.FetchPrivateKeyBySession(context.Background(), s)
if err != nil {
return errors.Wrap(err, "fetch private key")
}
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(string(args.ID)), "ID")
ret, err := modules.Hosts.Get(s, args.ID, params)
if err != nil {
return errors.Wrap(err, "get host by ID")
}
ip, err := ret.GetString("access_ip")
if err != nil {
return errors.Wrap(err, "get the ip of the host")
}
jsonItem := jsonutils.NewDict()
jsonItem.Add(jsonutils.NewString(ip), "ip")
jsonItem.Add(jsonutils.NewString("root"), "username")
jsonItem.Add(jsonutils.NewString(""), "password")
jsonItem.Add(jsonutils.NewInt(22), "port")
i = jsonItem
} else {
return e
}
}
host, err := i.GetString("ip")
if err != nil {
return err
@@ -542,7 +573,7 @@ func init() {
if args.Port != 22 {
port = args.Port
}
sshCli, err := ssh.NewClient(host, port, user, passwd, "")
sshCli, err := ssh.NewClient(host, port, user, passwd, privateKey)
if err != nil {
return err
}

View File

@@ -15,113 +15,28 @@
package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
type InstanceGroupListOptions struct {
options.BaseListOptions
cmd := shell.NewResourceCmd(&modules.InstanceGroups)
cmd.List(&compute.InstanceGroupListOptions{})
cmd.Show(&options.BaseShowOptions{})
cmd.GetMetadata(&options.BaseIdOptions{})
cmd.Create(&compute.InstanceGroupCreateOptions{})
cmd.Update(&compute.InstanceGroupUpdateOptions{})
cmd.Delete(&options.BaseIdOptions{})
ServiceType string `help:"Service Type"`
ParentId string `help:"Parent ID"`
ZoneId string `help:"Zone ID"`
Server string `help:"Guest ID or Name"`
}
cmd.Perform("bind-guests", &compute.InstanceGroupBindGuestsOptions{})
cmd.Perform("unbind-guests", &compute.InstanceGroupBindGuestsOptions{})
R(&InstanceGroupListOptions{}, "instance-group-list", "List instance group", func(s *mcclient.ClientSession,
args *InstanceGroupListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.InstanceGroup.List(s, params)
if err != nil {
return err
}
printList(result, modules.InstanceGroup.GetColumns(s))
return nil
})
type InstanceGroupShowOptions struct {
ID string `help:"ID or Name of instance group"`
}
R(&InstanceGroupShowOptions{}, "instance-group-show", "Show details of a instance group",
func(s *mcclient.ClientSession, args *InstanceGroupShowOptions) error {
result, err := modules.InstanceGroup.GetById(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type InstanceGroupCreateOptions struct {
NAME string `help:"name of instance group"`
ZoneId string `help:"zone id" json:"zone_id"`
ServiceType string `help:"service type"`
ParentId string `help:"parent id"`
SchedStrategy string `help:"scheduler strategy"`
Granularity string `help:"the upper limit number of guests with this group in a host"`
ForceDispersion bool `help:"force to make guest dispersion"`
}
R(&InstanceGroupCreateOptions{}, "instance-group-create", "Create a instance group",
func(s *mcclient.ClientSession, args *InstanceGroupCreateOptions) error {
params, err := options.StructToParams(args)
if err != nil {
return err
}
result, err := modules.InstanceGroup.Create(s, params)
if err != nil {
return err
}
printObject(result)
return nil
},
)
R(&InstanceGroupShowOptions{}, "instance-group-delete", "delete a instance group",
func(s *mcclient.ClientSession, args *InstanceGroupShowOptions) error {
result, err := modules.InstanceGroup.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
},
)
type InstanceGroupUpdateOptions struct {
ID string `help:"ID or Name of servers to update" json:"-"`
Name string `help:"New name to change"`
Granularity string `help:"the upper limit number of guests with this group in a host"`
ForceDispersion string `help:"force to make guest dispersion" choices:"yes|no" json:"-"`
}
R(&InstanceGroupUpdateOptions{}, "instance-group-update", "update a instance group",
func(s *mcclient.ClientSession, args *InstanceGroupUpdateOptions) error {
params, err := options.StructToParams(args)
if err != nil {
return err
}
if args.ForceDispersion == "yes" {
params.Set("force_dispersion", jsonutils.JSONTrue)
} else {
params.Set("force_dispersion", jsonutils.JSONFalse)
}
ret, err := modules.InstanceGroup.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(ret)
return nil
})
cmd.Perform("attachnetwork", &compute.InstanceGroupAttachnetworkOptions{})
cmd.Perform("detachnetwork", &compute.InstanceGroupDetachnetworkOptions{})
cmd.Perform("create-eip", &compute.InstanceGroupCreateEipOptions{})
cmd.Perform("associate-eip", &compute.InstanceGroupAssociateEipOptions{})
cmd.Perform("dissociate-eip", &compute.InstanceGroupDissociateEipOptions{})
}

View File

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

View File

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

View File

@@ -30,6 +30,7 @@ func init() {
Host string `help:"Host ID or Name"`
Region string `help:"Cloudregion ID or Name"`
Zone string `help:"Zone ID or Name"`
Server string `help:"Server ID or Name"`
}
R(&DeviceListOptions{}, "isolated-device-list", "List isolated devices like GPU", func(s *mcclient.ClientSession, args *DeviceListOptions) error {
var params *jsonutils.JSONDict
@@ -56,6 +57,9 @@ func init() {
if args.Zone != "" {
params.Add(jsonutils.NewString(args.Zone), "zone")
}
if args.Server != "" {
params.Add(jsonutils.NewString(args.Server), "guest_id")
}
result, err := modules.IsolatedDevices.List(s, params)
if err != nil {
return err
@@ -76,12 +80,12 @@ func init() {
return nil
})
R(&DeviceShowOptions{}, "isolated-device-delete", "Delete a isolated device", func(s *mcclient.ClientSession, args *DeviceShowOptions) error {
result, err := modules.IsolatedDevices.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
type DeviceDeleteOptions struct {
IDS []string `help:"IDs of the isolated device"`
}
R(&DeviceDeleteOptions{}, "isolated-device-delete", "Delete a isolated device", func(s *mcclient.ClientSession, args *DeviceDeleteOptions) error {
result := modules.IsolatedDevices.BatchDelete(s, args.IDS, nil)
printBatchResults(result, modules.IsolatedDevices.GetColumns(s))
return nil
})

View File

@@ -33,6 +33,7 @@ func init() {
ScheduledType string `help:"scheduled type" choices:"timing|cycle"`
ResourceType string `help:"resource type"`
Operation string `help:"operation"`
UtcOffset int `help:"utc offset"`
}
R(&ScheduledTaskListOptions{}, "scheduledtask-list", "list Scheduled Task", func(s *mcclient.ClientSession, args *ScheduledTaskListOptions) error {
params, err := options.ListStructToParams(args)

View File

@@ -47,7 +47,7 @@ func dump(input jsonutils.JSONObject) (*forwardInfo, error) {
}
if ret.ProxyPort <= 0 {
return nil, errors.Errorf("invalid proxy_port %d", ret.ProxyAddr)
return nil, errors.Errorf("invalid proxy_port %d", ret.ProxyPort)
}
return ret, nil

View File

@@ -48,7 +48,7 @@ func init() {
R(&ServerDetachDeviceOptions{}, "server-detach-isolated-device", "Detach a isolated device from a virtual server", func(s *mcclient.ClientSession, args *ServerDetachDeviceOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.DEVICE), "device")
srv, err := modules.Servers.PerformAction(s, args.SERVER, "detach-isolated_device", params)
srv, err := modules.Servers.PerformAction(s, args.SERVER, "detach-isolated-device", params)
if err != nil {
return err
}

View File

@@ -15,6 +15,7 @@
package compute
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
@@ -88,6 +89,10 @@ func init() {
cmd.Perform("create-eip", &options.ServerCreateEipOptions{})
cmd.Perform("make-sshable", &options.ServerMakeSshableOptions{})
cmd.Perform("migrate-network", &options.ServerMigrateNetworkOptions{})
cmd.Perform("set-sshport", &options.ServerSetSshportOptions{})
cmd.Perform("have-agent", &options.ServerHaveAgentOptions{})
cmd.Perform("change-disk-storage", &options.ServerChangeDiskStorageOptions{})
cmd.Perform("probe-isolated-devices", &options.ServerIdOptions{})
cmd.Get("vnc", new(options.ServerIdOptions))
cmd.Get("desc", new(options.ServerIdOptions))
@@ -98,7 +103,11 @@ func init() {
cmd.Get("make-sshable-cmd", new(options.ServerIdOptions))
cmd.Get("change-owner-candidate-domains", new(options.ServerChangeOwnerCandidateDomainsOptions))
cmd.Get("change-owner-candidate-domains", new(options.ServerChangeOwnerCandidateDomainsOptions))
cmd.Get("sshport", new(options.ServerIdOptions))
cmd.GetProperty(&options.ServerStatusStatisticsOptions{})
cmd.GetProperty(&options.ServerProjectStatisticsOptions{})
cmd.GetProperty(&options.ServerDomainStatisticsOptions{})
type ServerTaskShowOptions struct {
ID string `help:"ID or name of server" json:"-"`
@@ -724,6 +733,20 @@ func init() {
printObject(result)
return nil
})
type ServerCreateBackup struct {
ID string `help:"ID or name of VM" json:"-"`
BACKUP string `help:"Instance backup name" json:"name"`
BACKUPSTORAGEID string `help:"backup storage id" json:"backup_storage_id"`
}
R(&ServerCreateBackup{}, "instance-backup-create", "create instance backup", func(s *mcclient.ClientSession, opts *ServerCreateBackup) error {
params := jsonutils.Marshal(opts)
result, err := modules.Servers.PerformAction(s, opts.ID, "instance-backup", params)
if err != nil {
return err
}
printObject(result)
return nil
})
type ServerSnapshotAndClone struct {
ID string `help:"ID or name of VM" json:"-"`
@@ -817,13 +840,15 @@ func init() {
return fmt.Errorf("Not found ip address from server %s", opts.ID)
}
privateKey := ""
params := jsonutils.NewDict()
if len(opts.Key) > 0 {
privateKey, e := ioutil.ReadFile(opts.Key)
key, e := ioutil.ReadFile(opts.Key)
if e != nil {
return e
}
params.Add(jsonutils.NewString(string(privateKey)), "private_key")
params.Add(jsonutils.NewString(string(key)), "private_key")
privateKey = string(key)
}
i, e := modules.Servers.GetLoginInfo(s, srvid, params)
@@ -831,14 +856,14 @@ func init() {
return e
}
passwd, err := i.GetString("password")
if err != nil {
if err != nil && !opts.UseCloudroot {
return err
}
if opts.Password != "" {
passwd = opts.Password
}
user, err := i.GetString("username")
if err != nil {
if err != nil && !opts.UseCloudroot {
return err
}
if opts.User != "" {
@@ -868,8 +893,22 @@ func init() {
}
}
if opts.UseCloudroot {
var err error
privateKey, err = modules.Sshkeypairs.FetchPrivateKeyBySession(context.Background(), s)
if err != nil {
return err
}
passwd = ""
user = "cloudroot"
}
var sshCli *ssh.Client
for sshCli, err = ssh.NewClient(host, port, user, passwd, ""); err != nil; {
err = nil
for ; sshCli == nil; sshCli, err = ssh.NewClient(host, port, user, passwd, privateKey) {
if err == nil {
continue
}
if opts.Host != "" {
return err
}
@@ -877,12 +916,14 @@ func init() {
closeForward(s, srvid, forwardItem)
return err
} else {
forwardItem, err = openForward(s, srvid)
if err != nil {
return err
if vpcid != "default" {
forwardItem, e = openForward(s, srvid)
if e != nil {
return e
}
host = forwardItem.ProxyAddr
port = forwardItem.ProxyPort
}
host = forwardItem.ProxyAddr
port = forwardItem.ProxyPort
}
}

View File

@@ -36,6 +36,7 @@ func init() {
cmd.Perform("public", &options.BasePublicOptions{})
cmd.Perform("change-owner", &options.VpcChangeOwnerOptions{})
cmd.Get("vpc-change-owner-candidate-domains", &options.VpcIdOptions{})
cmd.Get("topology", &options.VpcIdOptions{})
R(&options.ResourceMetadataOptions{}, "vpc-set-user-metadata", "Set metadata of a vpc", func(s *mcclient.ClientSession, opts *options.ResourceMetadataOptions) error {
params, err := opts.Params()

View File

@@ -32,4 +32,5 @@ func init() {
cmd.Perform("change-owner-candidate-domains", new(options.WireOptions))
cmd.PerformWithKeyword("merge", "merge-from", new(options.WireMergeOptions))
cmd.Perform("merge-network", new(options.WireOptions))
cmd.Get("topology", &options.WireOptions{})
}

View File

@@ -0,0 +1,29 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package devtool
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
options "yunion.io/x/onecloud/pkg/mcclient/options/devtool"
)
func init() {
cmd := shell.NewResourceCmd(&modules.DevToolServiceUrls).WithKeyword("devtool-serviceurl")
cmd.List(new(options.ServiceUrlListOptions))
cmd.Create(new(options.ServiceUrlCreateOptions))
cmd.Show(new(options.ServiceUrlOptions))
cmd.Delete(new(options.ServiceUrlOptions))
}

View File

@@ -0,0 +1,29 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package devtool
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules"
options "yunion.io/x/onecloud/pkg/mcclient/options/devtool"
)
func init() {
cmd := shell.NewResourceCmd(&modules.DevToolSshInfos).WithKeyword("devtool-sshinfo")
cmd.List(new(options.SshInfoListOptions))
cmd.Create(new(options.SshInfoCreateOptions))
cmd.Show(new(options.SshInfoOptions))
cmd.Delete(new(options.SshInfoOptions))
}

View File

@@ -44,13 +44,14 @@ type BaseEventListOptions struct {
type EventListOptions struct {
BaseEventListOptions
Id string `help:"" metavar:"OBJ_ID"`
Id []string `help:"object IDs" metavar:"OBJ_ID"`
Name []string `help:"object names" metavar:"OBJ_NAME"`
Type []string `help:"Type of relevant object" metavar:"OBJ_TYPE"`
}
type TypeEventListOptions struct {
BaseEventListOptions
ID string `help:"" metavar:"OBJ_ID"`
ID []string `help:"object IDs" metavar:"OBJ_ID"`
}
func doComputeEventList(s *mcclient.ClientSession, args *EventListOptions) error {
@@ -71,7 +72,10 @@ func DoEventList(man modulebase.ResourceManager, s *mcclient.ClientSession, args
params.Add(jsonutils.NewStringArray(args.Type), "obj_type")
}
if len(args.Id) > 0 {
params.Add(jsonutils.NewString(args.Id), "obj_id")
params.Add(jsonutils.NewStringArray(args.Id), "obj_id")
}
if len(args.Name) > 0 {
params.Add(jsonutils.NewStringArray(args.Name), "obj_name")
}
if len(args.Since) > 0 {
params.Add(jsonutils.NewString(args.Since), "since")

View File

@@ -160,7 +160,7 @@ func (cmd ResourceCmd) List(args IListOpt) {
ExportList(result, exportFile, args.GetExportKeys(), args.GetExportTexts(), man.GetColumns(s))
return nil
}
printList(result, man.GetColumns(s))
PrintList(result, man.GetColumns(s))
return nil
}
cmd.Run("list", args, callback)
@@ -184,7 +184,7 @@ func (cmd ResourceCmd) create(s *mcclient.ClientSession, args ICreateOpt) error
if err != nil {
return err
}
printObject(ret)
PrintObject(ret)
return nil
}
@@ -240,7 +240,7 @@ func (cmd ResourceCmd) GetProperty(args IPropertyOpt) {
if err != nil {
return err
}
printObject(ret)
PrintObject(ret)
return nil
}
cmd.RunWithDesc(args.Property(), fmt.Sprintf("Get property of a %s", man.GetKeyword()), args, callback)
@@ -257,7 +257,7 @@ func (cmd ResourceCmd) Show(args IShowOpt) {
if err != nil {
return err
}
printObject(ret)
PrintObject(ret)
return nil
}
cmd.RunWithDesc("show", fmt.Sprintf("Show details of a %s", man.GetKeyword()), args, callback)
@@ -274,7 +274,7 @@ func (cmd ResourceCmd) ClassShow(args IShowOpt) {
if err != nil {
return err
}
printObject(ret)
PrintObject(ret)
return nil
}
cmd.RunWithDesc(args.GetId(), fmt.Sprintf("Show %s of a %s", args.GetId(), man.GetKeyword()), args, callback)
@@ -320,7 +320,7 @@ func (cmd ResourceCmd) Custom(action TCustomAction, funcname string, args IGetAc
if reterr.IsNil() {
v, ok := retobj.Interface().(jsonutils.JSONObject)
if ok {
printObject(v)
PrintObject(v)
return nil
}
}
@@ -349,7 +349,7 @@ func (cmd ResourceCmd) Delete(args IDeleteOpt) {
if err != nil {
return err
}
printObject(ret)
PrintObject(ret)
return nil
}
cmd.RunWithDesc("delete", fmt.Sprintf("Delete %s", man.GetKeyword()), args, callback)
@@ -461,7 +461,7 @@ func (cmd ResourceCmd) GetWithCustomShow(specific string, show func(data jsonuti
}
func (cmd ResourceCmd) Get(specific string, args IGetOpt) {
cmd.GetWithCustomShow(specific, printObject, args)
cmd.GetWithCustomShow(specific, PrintObject, args)
}
type IUpdateOpt interface {
@@ -485,7 +485,7 @@ func (cmd ResourceCmd) UpdateWithKeyword(keyword string, args IUpdateOpt) {
if err != nil {
return err
}
printObject(ret)
PrintObject(ret)
return nil
}
cmd.Run(keyword, args, callback)
@@ -511,7 +511,7 @@ func (cmd ResourceCmd) GetMetadata(args IMetadataOpt) {
if err != nil {
return err
}
printObject(ret)
PrintObject(ret)
return nil
}
cmd.RunWithDesc("metadata", fmt.Sprintf("Show metadata of a %s", man.GetKeyword()), args, callback)
@@ -612,7 +612,7 @@ func (cmd JointCmd) List(args IJointListOpt) {
if err != nil {
return err
}
printList(result, man.GetColumns(s))
PrintList(result, man.GetColumns(s))
return nil
}
cmd.RunWithDesc("list", fmt.Sprintf("list %s %s pairs", man.MasterManager().KeyString(), man.SlaveManager().KeyString()), args, callback)
@@ -635,7 +635,7 @@ func (cmd JointCmd) Show(args IJointShowOpt) {
if err != nil {
return err
}
printObject(result)
PrintObject(result)
return nil
}
cmd.Run("show", args, callback)

View File

@@ -193,39 +193,6 @@ func init() {
return nil
})
type GroupBindGuestsOptions struct {
ID string `help:"ID"`
Guest []string `help:"ID or Name of Guest"`
}
R(&GroupBindGuestsOptions{}, "instance-group-bind-guests", "bind instancegroup to guests",
func(s *mcclient.ClientSession, opts *GroupBindGuestsOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
return err
}
sp, err := modules.InstanceGroup.PerformAction(s, opts.ID, "bind-guests", params)
if err != nil {
return err
}
printObject(sp)
return nil
})
R(&GroupBindGuestsOptions{}, "instance-group-unbind-guests", "bind instancegroup to guests",
func(s *mcclient.ClientSession, opts *GroupBindGuestsOptions) error {
params, err := options.StructToParams(opts)
if err != nil {
return err
}
sp, err := modules.InstanceGroup.PerformAction(s, opts.ID, "unbind-guests", params)
if err != nil {
return err
}
printObject(sp)
return nil
})
type GroupAddUsersOptions struct {
GROUP string `help:"group Id or Name" json:"-"`
USER []string `help:"list of user id or name" json:"user"`

View File

@@ -37,9 +37,17 @@ import (
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func createPolicy(s *mcclient.ClientSession, name string, policy string, domain string, enabled bool, disabled bool, desc string, scope string, isSystem *bool) error {
func createPolicy(s *mcclient.ClientSession, name string, genName string, policy string, domain string, enabled bool, disabled bool, desc string, scope string, isSystem *bool) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(name), "type")
if len(genName) > 0 {
params.Add(jsonutils.NewString(genName), "generate_name")
params.Add(jsonutils.NewString(genName), "type")
} else if len(name) > 0 {
params.Add(jsonutils.NewString(name), "name")
params.Add(jsonutils.NewString(name), "type")
} else {
return fmt.Errorf("mising name")
}
params.Add(jsonutils.NewString(policy), "policy")
if len(domain) > 0 {
params.Add(jsonutils.NewString(domain), "project_domain_id")
@@ -71,7 +79,18 @@ func createPolicy(s *mcclient.ClientSession, name string, policy string, domain
printObject(result)
return nil
}
func createPolicyFromJson(s *mcclient.ClientSession, old jsonutils.JSONObject, argsName, genName, argsDomain, argsScope string) error {
policy, _ := old.GetString("policy")
enabled, _ := old.Bool("enabled")
desc, _ := old.GetString("description")
scope, _ := old.GetString("scope")
if len(argsScope) > 0 {
scope = argsScope
}
isSystem, _ := old.Bool("is_system")
return createPolicy(s, argsName, genName, policy, argsDomain, enabled, !enabled, desc, scope, &isSystem)
}
func init() {
@@ -94,10 +113,40 @@ func init() {
return err
}
return createPolicy(s, args.NAME, string(policyBytes), args.Domain, args.Enabled, args.Disabled, args.Desc, args.Scope, args.IsSystem)
return createPolicy(s, args.NAME, "", string(policyBytes), args.Domain, args.Enabled, args.Disabled, args.Desc, args.Scope, args.IsSystem)
})
type PolicyExportOptions struct {
ID string `json:"id"`
}
R(&PolicyExportOptions{}, "policy-export", "Export a policy", func(s *mcclient.ClientSession, args *PolicyExportOptions) error {
ret, err := modules.Policies.Get(s, args.ID, nil)
if err != nil {
return err
}
fmt.Println(ret.PrettyString())
return nil
})
type PolicyImportOptions struct {
FILE string `json:"id"`
Domain string `help:"domain of the policy"`
}
R(&PolicyImportOptions{}, "policy-import", "Import a policy", func(s *mcclient.ClientSession, args *PolicyImportOptions) error {
cont, err := ioutil.ReadFile(args.FILE)
if err != nil {
return err
}
jsonCont, err := jsonutils.Parse(cont)
if err != nil {
return err
}
name, _ := jsonCont.GetString("name")
return createPolicyFromJson(s, jsonCont, "", name, args.Domain, "")
})
type PolicyCloneOptions struct {
Scope string `help:"scope of policy"`
Domain string `help:"domain of the policy"`
OLD string `help:"name or id of the old policy"`
NAME string `help:"name of the policy"`
@@ -107,12 +156,7 @@ func init() {
if err != nil {
return err
}
policy, _ := old.GetString("policy")
enabled, _ := old.Bool("enabled")
desc, _ := old.GetString("description")
scope, _ := old.GetString("scope")
isSystem, _ := old.Bool("is_system")
return createPolicy(s, args.NAME, policy, args.Domain, enabled, !enabled, desc, scope, &isSystem)
return createPolicyFromJson(s, old, args.NAME, "", args.Domain, args.Scope)
})
type PolicyPatchOptions struct {

View File

@@ -22,10 +22,12 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/glance"
)
type ImageOptionalOptions struct {
@@ -55,6 +57,7 @@ type ImageOptionalOptions struct {
DiskDriver string `help:"Perfer disk driver" choices:"virtio|scsi|pvscsi|ide|sata"`
NetDriver string `help:"Preferred network driver" choices:"virtio|e1000|vmxnet3"`
DisableUsbKbd bool `help:"Disable usb keyboard on this image(for hypervisor kvm)"`
BootMode string `help:"UEFI support" choices:"UEFI|BIOS"`
}
func addImageOptionalOptions(s *mcclient.ClientSession, params *jsonutils.JSONDict, args ImageOptionalOptions) error {
@@ -135,73 +138,19 @@ func addImageOptionalOptions(s *mcclient.ClientSession, params *jsonutils.JSONDi
if args.DisableUsbKbd {
params.Add(jsonutils.NewString("true"), "properties", "disable_usb_kbd")
}
if args.BootMode == "UEFI" {
params.Add(jsonutils.JSONTrue, "properties", "uefi_support")
} else if args.BootMode == "BIOS" {
params.Add(jsonutils.JSONFalse, "properties", "uefi_support")
}
return nil
}
func init() {
type ImageListOptions struct {
options.BaseListOptions
IsPublic string `help:"filter images public or not(True, False or None)" choices:"true|false"`
IsStandard string `help:"filter images standard or non-standard" choices:"true|false"`
Protected string `help:"filter images by protected" choices:"true|false"`
IsUefi bool `help:"list uefi image"`
Format []string `help:"Disk formats"`
SubFormats []string `help:"Sub formats"`
Name string `help:"Name filter"`
OsType []string `help:"Type of OS filter e.g. 'Windows, Linux, Freebsd, Android, macOS, VMWare'"`
Distribution []string `help:"Distribution filter, e.g. 'CentOS, Ubuntu, Debian, Windows'"`
}
R(&ImageListOptions{}, "image-list", "List images", func(s *mcclient.ClientSession, args *ImageListOptions) error {
params, err := args.Params()
if err != nil {
return err
}
if len(args.IsPublic) > 0 {
params.Add(jsonutils.NewString(args.IsPublic), "is_public")
}
if len(args.IsStandard) > 0 {
params.Add(jsonutils.NewString(args.IsStandard), "is_standard")
}
if len(args.Protected) > 0 {
params.Add(jsonutils.NewString(args.Protected), "protected")
}
if args.IsUefi {
params.Add(jsonutils.JSONTrue, "uefi")
}
if len(args.Tenant) > 0 {
tid, e := modules.Projects.GetId(s, args.Tenant, nil)
if e != nil {
return e
}
params.Add(jsonutils.NewString(tid), "owner")
}
if len(args.Name) > 0 {
params.Add(jsonutils.NewString(args.Name), "name")
}
if len(args.Format) > 0 {
fs := jsonutils.NewArray()
for _, f := range args.Format {
fs.Add(jsonutils.NewString(f))
}
params.Add(fs, "disk_formats")
}
if len(args.SubFormats) > 0 {
params.Add(jsonutils.Marshal(args.SubFormats), "sub_formats")
}
if len(args.OsType) > 0 {
params.Add(jsonutils.NewStringArray(args.OsType), "os_types")
}
if len(args.Distribution) > 0 {
params.Add(jsonutils.NewStringArray(args.Distribution), "distributions")
}
result, err := modules.Images.List(s, params)
if err != nil {
return err
}
printList(result, modules.Images.GetColumns(s))
return nil
})
cmd := shell.NewResourceCmd(&modules.Images)
cmd.List(&glance.ImageListOptions{})
cmd.GetProperty(&glance.ImageStatusStatisticsOptions{})
type ImageOperationOptions struct {
ID []string `help:"Image id or name" metavar:"IMAGE"`
@@ -477,4 +426,16 @@ func init() {
printObject(srv)
return nil
})
type ImageProbeOptions struct {
ID string `help:"ID or name of image to probe"`
}
R(&ImageProbeOptions{}, "image-probe", "Start image probe task", func(s *mcclient.ClientSession, opts *ImageProbeOptions) error {
img, err := modules.Images.PerformAction(s, opts.ID, "probe", nil)
if err != nil {
return err
}
printObject(img)
return nil
})
}

View File

@@ -120,6 +120,31 @@ func doActionList(s *mcclient.ClientSession, args *ActionListOptions) error {
func init() {
R(&ActionListOptions{}, "action-show", "Show operation action logs", doActionList)
type ActionSplitTableOptions struct {
}
R(&ActionSplitTableOptions{}, "action-splitable", "Show splitables", func(s *mcclient.ClientSession, args *ActionSplitTableOptions) error {
resp, err := modules.Actions.Get(s, "splitable", nil)
if err != nil {
return err
}
printObject(resp)
return nil
})
type ActionPurgeOptions struct {
Tables []string
}
R(&ActionPurgeOptions{}, "action-purge-splitable", "Purge action splitables", func(s *mcclient.ClientSession, args *ActionPurgeOptions) error {
resp, err := modules.Actions.PerformClassAction(s, "purge-splitable", jsonutils.Marshal(args))
if err != nil {
return err
}
printObject(resp)
return nil
})
R(&TypeActionListOptions{}, "server-action", "Show operation action logs of server", func(s *mcclient.ClientSession, args *TypeActionListOptions) error {
nargs := ActionListOptions{BaseActionListOptions: args.BaseActionListOptions, Id: args.ID, Type: []string{"server"}}
return doActionList(s, &nargs)

View File

@@ -41,18 +41,26 @@ func OutputFormat(s string) {
outputFormat = s
}
func printList(list *modulebase.ListResult, columns []string) {
printutils.PrintJSONList(list, columns)
func PrintList(list *modulebase.ListResult, columns []string) {
switch outputFormat {
case OUTPUT_FORMAT_TABLE:
printutils.PrintJSONList(list, columns)
case OUTPUT_FORMAT_JSON:
fmt.Print(jsonutils.Marshal(list).PrettyString())
fmt.Print("\n")
default:
fmt.Fprintf(os.Stderr, "unknown output format: %q\n", outputFormat)
}
}
func printObject(obj jsonutils.JSONObject) {
func PrintObject(obj jsonutils.JSONObject) {
switch outputFormat {
case OUTPUT_FORMAT_TABLE:
printutils.PrintJSONObject(obj)
case OUTPUT_FORMAT_KV:
printObjectFmtKv(obj)
case OUTPUT_FORMAT_JSON:
fmt.Print(obj.String())
fmt.Print(obj.PrettyString())
fmt.Print("\n")
case OUTPUT_FORMAT_FLATTEN_TABLE:
printObjectRecursive(obj)
@@ -88,7 +96,7 @@ func printObjectFmtKv(obj jsonutils.JSONObject) {
}
func printObjectRecursive(obj jsonutils.JSONObject) {
printutils.PrintJSONObjectRecursive(obj)
PrintObject(obj)
}
func printObjectRecursiveEx(obj jsonutils.JSONObject, cb printutils.PrintJSONObjectRecursiveExFunc) {

View File

@@ -16,10 +16,15 @@ package main
import (
"fmt"
"net/http"
"net/url"
"os"
"golang.org/x/net/http/httpproxy"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud/cloudpods"
_ "yunion.io/x/onecloud/pkg/multicloud/cloudpods/shell"
"yunion.io/x/onecloud/pkg/util/shellutils"
@@ -88,12 +93,27 @@ func newClient(options *BaseOptions) (*cloudpods.SRegion, error) {
return nil, fmt.Errorf("Missing access secret")
}
cfg := &httpproxy.Config{
HTTPProxy: os.Getenv("HTTP_PROXY"),
HTTPSProxy: os.Getenv("HTTPS_PROXY"),
NoProxy: os.Getenv("NO_PROXY"),
}
cfgProxyFunc := cfg.ProxyFunc()
proxyFunc := func(req *http.Request) (*url.URL, error) {
return cfgProxyFunc(req.URL)
}
cli, err := cloudpods.NewCloudpodsClient(
cloudpods.NewCloudpodsClientConfig(
options.AuthURL,
options.AccessKey,
options.AccessSecret,
).Debug(options.Debug),
).Debug(options.Debug).
CloudproviderConfig(
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
)
if err != nil {
return nil, err

View File

@@ -16,7 +16,6 @@ package shell
import (
"fmt"
"time"
"yunion.io/x/pkg/util/timeutils"
@@ -110,7 +109,7 @@ func init() {
}
fmt.Println("primary key hash:", fm.PrimaryKeyHash())
ret := fm.Decrypt([]byte(args.MSG), time.Hour*-1)
ret := fm.Decrypt([]byte(args.MSG))
if len(ret) == 0 {
return fmt.Errorf("invalid message")
}

View File

@@ -16,16 +16,23 @@ package main
import (
"fmt"
"net/http"
"net/url"
"os"
"golang.org/x/net/http/httpproxy"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud/ctyun"
_ "yunion.io/x/onecloud/pkg/multicloud/ctyun/shell"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
type BaseOptions struct {
cloudprovider.SCtyunExtraOptions
Help bool `help:"Show help" default:"false"`
Debug bool `help:"Show debug" default:"false"`
AccessKey string `help:"Access key" default:"$CTYUN_ACCESS_KEY"`
@@ -84,10 +91,25 @@ func newClient(options *BaseOptions) (*ctyun.SRegion, error) {
return nil, fmt.Errorf("Missing secret")
}
cfg := &httpproxy.Config{
HTTPProxy: os.Getenv("HTTP_PROXY"),
HTTPSProxy: os.Getenv("HTTPS_PROXY"),
NoProxy: os.Getenv("NO_PROXY"),
}
cfgProxyFunc := cfg.ProxyFunc()
proxyFunc := func(req *http.Request) (*url.URL, error) {
return cfgProxyFunc(req.URL)
}
cli, err := ctyun.NewSCtyunClient(
ctyun.NewSCtyunClientConfig(
options.AccessKey, options.Secret,
).Debug(options.Debug),
options.AccessKey, options.Secret, &options.SCtyunExtraOptions,
).Debug(options.Debug).
CloudproviderConfig(
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
)
if err != nil {
return nil, err

View File

@@ -16,10 +16,15 @@ package main
import (
"fmt"
"net/http"
"net/url"
"os"
"golang.org/x/net/http/httpproxy"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud/ecloud"
_ "yunion.io/x/onecloud/pkg/multicloud/ecloud/shell"
"yunion.io/x/onecloud/pkg/util/shellutils"
@@ -84,10 +89,25 @@ func newClient(options *Options) (*ecloud.SRegion, error) {
return nil, fmt.Errorf("Missing access secret")
}
cfg := &httpproxy.Config{
HTTPProxy: os.Getenv("HTTP_PROXY"),
HTTPSProxy: os.Getenv("HTTPS_PROXY"),
NoProxy: os.Getenv("NO_PROXY"),
}
cfgProxyFunc := cfg.ProxyFunc()
proxyFunc := func(req *http.Request) (*url.URL, error) {
return cfgProxyFunc(req.URL)
}
cli, err := ecloud.NewEcloudClient(
ecloud.NewEcloudClientConfig(
ecloud.NewRamRoleSigner(options.AccessKey, options.AccessSecret),
).SetDebug(options.Debug),
).SetDebug(options.Debug).
SetCloudproviderConfig(
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
)
if err != nil {
return nil, err

View File

@@ -16,10 +16,15 @@ package main
import (
"fmt"
"net/http"
"net/url"
"os"
"golang.org/x/net/http/httpproxy"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud/esxi"
_ "yunion.io/x/onecloud/pkg/multicloud/esxi/shell"
"yunion.io/x/onecloud/pkg/util/shellutils"
@@ -88,13 +93,28 @@ func newClient(options *BaseOptions) (*esxi.SESXiClient, error) {
return nil, fmt.Errorf("Missing password")
}
cfg := &httpproxy.Config{
HTTPProxy: os.Getenv("HTTP_PROXY"),
HTTPSProxy: os.Getenv("HTTPS_PROXY"),
NoProxy: os.Getenv("NO_PROXY"),
}
cfgProxyFunc := cfg.ProxyFunc()
proxyFunc := func(req *http.Request) (*url.URL, error) {
return cfgProxyFunc(req.URL)
}
return esxi.NewESXiClient2(
esxi.NewESXiClientConfig(
options.Host,
options.Port,
options.Account,
options.Password,
),
).
CloudproviderConfig(
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
)
}

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