Compare commits

..

859 Commits

Author SHA1 Message Date
Zexi Li
de3fbdedb5 fix(baremetal): try clear jbod devices before create (#14181) 2022-05-01 21:36:42 +08:00
Zexi Li
cb32843337 Merge pull request #14129 from zexi/automated-cherry-pick-of-#14123-upstream-release-3.6
Automated cherry pick of #14123: fix(region): make access_ip of host updatable
2022-04-24 14:30:03 +08:00
Zexi Li
dc20daafbc fix(region): make access_ip of host updatable 2022-04-24 12:06:20 +08:00
Zexi Li
9b2417d947 fix(telegraf-raid-plugin): zombies recycle (#13820) 2022-03-30 07:40:55 +08:00
Zexi Li
e3c80491c9 Merge pull request #13628 from zexi/automated-cherry-pick-of-#13624-upstream-release-3.6
Automated cherry pick of #13624: feat(telegraf-raid-plugin): update rootfs and image version
2022-03-07 15:59:51 +08:00
Zexi Li
8a078dd8dd feat(telegraf-raid-plugin): update rootfs and image version 2022-03-07 12:15:24 +08:00
Zexi Li
8236ab6ffc Merge pull request #13180 from zexi/bm-allocate-log
feat(scheduler): log CheckDisksAllocable skipped storage
2022-01-11 11:21:03 +08:00
Zexi Li
873e9fa55d feat(scheduler): log CheckDisksAllocable skipped storage 2022-01-11 10:42:53 +08:00
Zexi Li
99d9841230 Merge pull request #13039 from swordqiu/automated-cherry-pick-of-#13036-upstream-release-3.6
Automated cherry pick of #13036: fix: enable kvm_pv_eoi by default
2021-12-27 12:11:22 +08:00
Qiu Jian
9b035be9ef fix: enable kvm_pv_eoi by default 2021-12-24 21:49:28 +08:00
Zexi Li
dd8c012002 Merge pull request #13025 from zexi/automated-cherry-pick-of-#13022-upstream-release-3.6
Automated cherry pick of #13022: fix(region): gpu fuzzy match model name exactly
2021-12-24 18:10:13 +08:00
Zexi Li
70a89ec0ef fix(region): gpu fuzzy match model name exactly 2021-12-24 14:54:50 +08:00
Zexi Li
521d3d30b1 Merge pull request #12945 from ioito/automated-cherry-pick-of-#12942-upstream-release-3.6
Automated cherry pick of #12942: fix(keystone): scope resource count
2021-12-20 13:01:32 +08:00
Zexi Li
dd7c3a936b Merge pull request #12949 from ioito/automated-cherry-pick-of-#12946-upstream-release-3.6
Automated cherry pick of #12946: fix(region): dns zone cache purge
2021-12-18 01:06:01 +08:00
ioito
105e627cab fix(region): dns zone cache purge 2021-12-17 18:08:44 +08:00
ioito
8f026c19a6 fix(keystone): scope resource count 2021-12-17 16:11:31 +08:00
Zexi Li
6a73949913 Merge pull request #12928 from swordqiu/automated-cherry-pick-of-#12925-upstream-release-3.6
Automated cherry pick of #12925: fix: lbagent pull resources of OneCloud only
2021-12-16 10:40:34 +08:00
Qiu Jian
e1b8413c36 fix: lbagent pull resources of OneCloud only 2021-12-15 22:45:17 +08:00
Zexi Li
607f099369 Merge pull request #12905 from zexi/automated-cherry-pick-of-#12902-upstream-release-3.6
Automated cherry pick of #12902: feat(host): qemu add uuid option
2021-12-14 21:24:51 +08:00
Zexi Li
d102d72d88 feat(host): qemu add uuid option 2021-12-14 21:12:43 +08:00
Zexi Li
7ff45c69c6 Merge pull request #12896 from ioito/automated-cherry-pick-of-#12893-upstream-release-3.6
Automated cherry pick of #12893: fix(region): openstack use proxy
2021-12-14 21:08:50 +08:00
ioito
9bdc5035c2 fix(region): openstack use proxy 2021-12-14 14:34:42 +08:00
Zexi Li
5ea6c63eef Merge pull request #12810 from rainzm/automated-cherry-pick-of-#12807-upstream-release-3.6
Automated cherry pick of #12807: fix(scheduler): consider perfer and avoid score when sorting HostPrirityList
2021-12-06 14:49:58 +08:00
rainzm
a116461b26 fix(scheduler): consider perfer and avoid score when sorting HostPriorityList 2021-12-03 15:02:33 +08:00
Zexi Li
54ce649923 Merge pull request #12800 from rainzm/automated-cherry-pick-of-#12797-upstream-release-3.6
Automated cherry pick of #12797: fix(scheduler): correct sorting for HostPriorityList
2021-12-02 21:15:43 +08:00
rainzm
b536d2289a fix(scheduler): correct sorting for HostPriorityList 2021-12-02 21:10:36 +08:00
Zexi Li
2f90af1b8d Merge pull request #12696 from swordqiu/hotfix/qj-fix-sqlchemy-version-for-release-3.6
fix: fix version of sqlchemy to v1.0.0 for release/3.6
2021-11-17 15:43:33 +08:00
Qiu Jian
acef78070d fix: fix version of sqlchemy to v1.0.0 for release/3.6 2021-11-17 14:55:06 +08:00
Zexi Li
c1f309d151 Merge pull request #12655 from swordqiu/automated-cherry-pick-of-#12641-upstream-release-3.6
Automated cherry pick of #12641: fix: false delted field for deleted resources
2021-11-09 20:53:24 +08:00
Qiu Jian
1a78f65e94 fix: false delted field for deleted resources 2021-11-09 19:47:13 +08:00
Zexi Li
cfc00be01a Merge pull request #12612 from ioito/automated-cherry-pick-of-#12609-upstream-release-3.6
Automated cherry pick of #12609: fix(region): avoid cidr change 0.0.0.0/0
2021-11-05 10:40:19 +08:00
Qu Xuan
6d5384aee1 fix(region): avoid cidr change 0.0.0.0/0 2021-11-05 10:37:07 +08:00
Zexi Li
2440b1fc93 Merge pull request #12567 from swordqiu/automated-cherry-pick-of-#12561-upstream-release-3.6
Automated cherry pick of #12561: fix: delayed probing GPU on host init and add disable_gpu option
2021-11-03 00:01:15 +08:00
Qiu Jian
4f6d3acfe7 fix: delayed probing GPU on host init and add disable_gpu option 2021-10-30 18:27:02 +08:00
Zexi Li
2b365ed2c6 Merge pull request #12543 from ioito/automated-cherry-pick-of-#12540-upstream-release-3.6
Automated cherry pick of #12540: fix(host): avoid storage attach not report error
2021-10-28 18:25:56 +08:00
Qu Xuan
28a5da3e6b fix(host): avoid storage attach not report error 2021-10-28 17:11:14 +08:00
Zexi Li
fd6e603e44 Merge pull request #12526 from ioito/automated-cherry-pick-of-#12523-upstream-release-3.6
Automated cherry pick of #12523: fix(region): openstack eip sync
2021-10-26 19:16:13 +08:00
Qu Xuan
c780e76b09 fix(region): openstack eip sync 2021-10-26 15:37:44 +08:00
yunion-ci-robot
572fce03af Merge pull request #12508 from ioito/automated-cherry-pick-of-#12505-upstream-release-3.6
Automated cherry pick of #12505: fix(region): qcloud classic nic and storage sync
2021-10-24 16:57:09 +08:00
Qu Xuan
1d7d1d1cad fix(region): qcloud classic nic and storage sync 2021-10-22 18:31:57 +08:00
Zexi Li
4667d9160d Merge pull request #12501 from ioito/automated-cherry-pick-of-#12498-upstream-release-3.6
Automated cherry pick of #12498: fix(region): hide rbd disk secret
2021-10-22 16:51:11 +08:00
Qu Xuan
b4e59f5dc0 fix(region): hide rbd disk secret 2021-10-22 15:46:11 +08:00
Zexi Li
6e9232f997 Merge pull request #12494 from ioito/automated-cherry-pick-of-#12491-upstream-release-3.6
Automated cherry pick of #12491: fix(region): set storage with snapshot id when change vm disk config
2021-10-22 13:13:29 +08:00
Qu Xuan
3119ad0a46 fix(region): set storage with snapshot id when change vm disk config 2021-10-22 11:51:09 +08:00
Zexi Li
10f3b2bb1e Merge pull request #12463 from ioito/automated-cherry-pick-of-#12460-upstream-release-3.6
Automated cherry pick of #12460: optimized(region): improve img convert speed
2021-10-19 22:38:57 +08:00
Qu Xuan
b25f229fce optimized(region): improve img convert speed 2021-10-19 10:57:28 +08:00
Zexi Li
69922b0061 Merge pull request #12422 from ioito/automated-cherry-pick-of-#12412-upstream-release-3.6
Automated cherry pick of #12412: fix(host): xfs unlock
2021-10-15 09:46:44 +08:00
Qu Xuan
b4015d5686 fix(host): xfs unlock 2021-10-14 14:48:00 +08:00
yunion-ci-robot
e116b32e3d Merge pull request #12358 from zexi/automated-cherry-pick-of-#12355-upstream-release-3.6
Automated cherry pick of #12355: fix(baremetal): change cat path
2021-10-06 20:52:43 +08:00
Zexi Li
30cba4929e fix(baremetal): change cat path 2021-10-05 21:36:33 +08:00
Zexi Li
fe0e26054c Merge pull request #12346 from ioito/automated-cherry-pick-of-#12343-upstream-release-3.6
Automated cherry pick of #12343: fix(host): show error for online resize
2021-09-30 09:49:13 +08:00
Qu Xuan
6d611604d3 fix(host): show error for online resize 2021-09-29 20:31:12 +08:00
Zexi Li
0df0a890be Merge pull request #12338 from zexi/automated-cherry-pick-of-#12335-upstream-release-3.6
Automated cherry pick of #12335: fix(baremetal): adjust adaptec raid logical volume order
2021-09-29 17:36:14 +08:00
Zexi Li
48b98b62d1 fix(baremetal): adjust adaptec raid logical volume order 2021-09-29 12:19:28 +08:00
Zexi Li
0ab0930296 Merge pull request #12305 from ioito/automated-cherry-pick-of-#12302-upstream-release-3.6
Automated cherry pick of #12302: fix(region): aliyun rds billing type
2021-09-26 20:11:16 +08:00
yunion-ci-robot
e9fc5611a6 Merge pull request #12246 from zexi/automated-cherry-pick-of-#12241-upstream-release-3.6
Automated cherry pick of #12241: feat(baremetal): adaptec raid driver
2021-09-26 17:21:35 +08:00
Qu Xuan
15e926bf51 fix(region): aliyun rds billing type 2021-09-26 15:57:36 +08:00
Zexi Li
5b77d406d7 feat(baremetal): adaptec raid driver 2021-09-26 11:46:10 +08:00
Zexi Li
8a6b175dd3 Merge pull request #12298 from swordqiu/automated-cherry-pick-of-#12295-upstream-release-3.6
Automated cherry pick of #12295: fix: clean openvswitch config files when save images
2021-09-26 09:57:18 +08:00
Qiu Jian
7333f9a9fe fix: clean openvswitch config files when save images 2021-09-24 22:05:05 +08:00
Zexi Li
86d41dacda Merge pull request #12284 from swordqiu/automated-cherry-pick-of-#12281-upstream-release-3.6
Automated cherry pick of #12281: fix: disable password expiration for cloudroot
2021-09-24 15:24:21 +08:00
Qiu Jian
bbad8b60d9 fix: disable password expiration for cloudroot 2021-09-24 01:28:20 +08:00
yunion-ci-robot
f155a8fc3e Merge pull request #12269 from zexi/automated-cherry-pick-of-#12268-upstream-release-3.6
Automated cherry pick of #12268: fix(host): disable usb-kbd for windows 10
2021-09-24 00:28:40 +08:00
Zexi Li
fbcd10ea17 fix(host): disable usb-kbd for windows 10 2021-09-23 14:39:03 +08:00
Zexi Li
4cc2165691 Merge pull request #12262 from swordqiu/automated-cherry-pick-of-#12258-upstream-release-3.6
Automated cherry pick of #12258: fix: verify token with expired_at field instead of depending on options.TokenExpirationSeconds
2021-09-23 09:37:59 +08:00
Qiu Jian
f9c226e2c6 fix: verify token with expired_at field instead of options.TokenExpirationSeconds 2021-09-22 15:36:53 +08:00
Zexi Li
ed545e2e86 Merge pull request #12225 from zexi/automated-cherry-pick-of-#12222-upstream-release-3.6
Automated cherry pick of #12222: fix(scheduler): cpu arch match
2021-09-22 11:55:57 +08:00
Zexi Li
a5e158d3ef fix(scheduler): cpu arch match 2021-09-22 11:15:31 +08:00
yunion-ci-robot
da8cce9530 Merge pull request #12233 from zexi/automated-cherry-pick-of-#12230-upstream-release-3.6
Automated cherry pick of #12230: fix(baremetal): parse mptsas duplicated devices
2021-09-15 21:57:34 +08:00
Zexi Li
e6e3510b63 fix(baremetal): parse mptsas duplicated devices 2021-09-15 21:21:10 +08:00
yunion-ci-robot
15e794fd45 Merge pull request #12187 from ioito/automated-cherry-pick-of-#12184-upstream-release-3.6
Automated cherry pick of #12184: fix(region): qcloud database sync
2021-09-10 19:30:29 +08:00
Zexi Li
7b5a70fec2 Merge pull request #12179 from ioito/automated-cherry-pick-of-#12176-upstream-release-3.6
Automated cherry pick of #12176: fix(region): huawei region id with project name
2021-09-10 19:09:06 +08:00
Qu Xuan
4c2a1594a0 fix(region): qcloud database sync 2021-09-10 18:34:25 +08:00
Qu Xuan
7762f7e57e fix(region): 不能通过华为云用户创建时间判断云账号注册时间 2021-09-10 17:20:10 +08:00
Qu Xuan
00b9c3cf52 fix(region): huawei region id with project name 2021-09-10 17:18:44 +08:00
Zexi Li
e57c46a689 Merge pull request #12165 from ioito/automated-cherry-pick-of-#12162-upstream-release-3.6
Automated cherry pick of #12162: fix(region): sync apsara region
2021-09-09 16:29:43 +08:00
Qu Xuan
8a9c8048f8 fix(region): sync apsara region 2021-09-09 15:49:51 +08:00
Zexi Li
90a4ab15e6 Merge pull request #12160 from swordqiu/automated-cherry-pick-of-#12157-upstream-release-3.6
Automated cherry pick of #12157: fix: set disk driver and network driver for converting esxi to kvm
2021-09-08 23:07:10 +08:00
Qiu Jian
8274bd7f51 fix: set disk driver and network driver for converting esxi to kvm 2021-09-08 22:29:56 +08:00
Zexi Li
2d65bcd989 Merge pull request #12148 from ioito/automated-cherry-pick-of-#12145-upstream-release-3.6
Automated cherry pick of #12145: fix(region): resource apsara resource id not found error
2021-09-08 16:21:24 +08:00
Qu Xuan
145949bb43 fix(region): resource apsara resource id not found error 2021-09-08 15:55:35 +08:00
Zexi Li
6f27e00c7c Merge pull request #12140 from ioito/automated-cherry-pick-of-#12126-upstream-release-3.6
Automated cherry pick of #12126: fix(region): apsara default region
2021-09-08 15:54:30 +08:00
Qu Xuan
f615633fcc fix(region): apsara default region 2021-09-08 14:28:58 +08:00
Zexi Li
aa1c1b5af1 Merge pull request #12129 from ioito/automated-cherry-pick-of-#12126-upstream-release-3.6
Automated cherry pick of #12126: fix(region): apsara default region
2021-09-08 13:58:24 +08:00
Zexi Li
6cfec6f9aa Merge pull request #12137 from swordqiu/automated-cherry-pick-of-#12134-upstream-release-3.6
Automated cherry pick of #12134: fix(region): change disk and network drivers for Esxi converted VM
2021-09-08 12:01:52 +08:00
Qiu Jian
143f477895 fix(region): change disk and network drivers for Esxi converted VM 2021-09-08 11:48:42 +08:00
Qu Xuan
b0b2346a2f fix(region): apsara default region 2021-09-08 10:36:57 +08:00
Zexi Li
efbb76a57c Merge pull request #12124 from ioito/automated-cherry-pick-of-#12121-upstream-release-3.6
Automated cherry pick of #12121: fix(region): apsara endpoint fix
2021-09-07 15:26:14 +08:00
Qu Xuan
50f0dea56a fix(region): apsara endpoint fix 2021-09-07 14:30:07 +08:00
Zexi Li
17b80d528f fix(baremetal): reindex nic (#12087) 2021-09-03 02:39:01 +08:00
Zexi Li
f0a2e020f6 Merge pull request #12033 from zexi/automated-cherry-pick-of-#12030-upstream-release-3.6
Automated cherry pick of #12030: fix(keystone): appsrv listen multi port failed cause of race condition
2021-08-27 14:30:04 +08:00
Zexi Li
2c45add982 Merge pull request #12037 from ioito/automated-cherry-pick-of-#12034-upstream-release-3.6
Automated cherry pick of #12034: fix(region): sync aliyun classic network ip addr
2021-08-26 18:04:15 +08:00
Qu Xuan
40c020e768 fix(region): sync aliyun classic network ip addr 2021-08-26 17:17:42 +08:00
Zexi Li
372b2ff6a1 fix(keystone): appsrv listen multi port failed cause of race condition 2021-08-26 16:55:51 +08:00
Zexi Li
3b84c96a94 Merge pull request #12017 from zexi/automated-cherry-pick-of-#12014-upstream-release-3.6
Automated cherry pick of #12014: fix(cloudcommon): avoid service exit when etcd unreachable
2021-08-26 10:41:51 +08:00
Zexi Li
2410cea39e Merge pull request #12012 from ioito/automated-cherry-pick-of-#12009-upstream-release-3.6
Automated cherry pick of #12009: fix(region): aliyun rds network sync
2021-08-25 20:19:03 +08:00
Zexi Li
dc37976b50 fix(cloudcommon): avoid service exit when etcd unreachable 2021-08-25 19:49:05 +08:00
Qu Xuan
ca844df22f fix(region): aliyun rds network sync 2021-08-25 18:56:05 +08:00
Zexi Li
5b1026f243 Merge pull request #11986 from ioito/automated-cherry-pick-of-#11983-upstream-release-3.6
Automated cherry pick of #11983: fix(region): enable zstack allocate ip by itself
2021-08-24 22:56:35 +08:00
Qu Xuan
c6177d7228 fix(region): enable zstack allocate ip by itself 2021-08-24 16:09:17 +08:00
Zexi Li
c9f9eaa68d Merge pull request #11977 from ioito/automated-cherry-pick-of-#11975-upstream-release-3.6
Automated cherry pick of #11975: fix(region): resource count for cachedimages
2021-08-23 19:59:23 +08:00
Qu Xuan
d70235fd11 fix(region): resource count for cachedimages 2021-08-23 14:24:31 +08:00
yunion-ci-robot
920e841636 Merge pull request #11974 from zexi/automated-cherry-pick-of-#11970-upstream-release-3.6
Automated cherry pick of #11970: fix(region): allow guest network zero bandwidth limit
2021-08-23 12:14:13 +08:00
Zexi Li
0abdd5195d fix(region): allow guest network zero bandwidth limit 2021-08-23 11:56:19 +08:00
Zexi Li
223c72cab7 Merge pull request #11962 from rainzm/automated-cherry-pick-of-#11960-upstream-release-3.6
Automated cherry pick of #11960: fix(region): adjust the query range corresponding to the alarm strategy
2021-08-20 11:35:19 +08:00
rainzm
8a4f0cecd1 fix(region): adjust the query range corresponding to the alarm strategy
The data in the cycle range may not be available yet, and the data in the last hour can be queried fixedly
2021-08-20 11:12:50 +08:00
Zexi Li
7dcac0a7c8 Merge pull request #11956 from ioito/automated-cherry-pick-of-#11954-upstream-release-3.6
Automated cherry pick of #11954: fix(region): sync with multi worker
2021-08-19 16:12:04 +08:00
Qu Xuan
b9bb7679eb fix(region): sync with multi worker 2021-08-19 15:35:36 +08:00
Zexi Li
f6f75c17ec Merge pull request #11953 from zexi/automated-cherry-pick-of-#11951-upstream-release-3.6
Automated cherry pick of #11951: fix(host-deployer): XFS uuid冲突 无法 mount
2021-08-19 14:49:55 +08:00
panda
8e582878cd fix(host-deployer): XFS uuid冲突 无法 mount
pkg/hostman/diskutils/fsutils/fsutils.go

1. ResizeFs 操作中 ResizePartitionFs 未对 xfs uuid 加锁
     导致挂载相同uuid 磁盘异异常
 - dmesg 显示
[86653.888361] XFS (nbd2p1): Filesystem has duplicate UUID f4553201-609a-4657-87aa-994cc6339f50 - can't mount

 - 批量创建虚拟机, 虚拟机磁盘为xfs, 多台虚拟机调度到同一宿主机时
   DeployGuestFs 无法 chroot password root
2021-08-19 14:46:44 +08:00
Zexi Li
c8a5b58e7c Merge pull request #11941 from ioito/automated-cherry-pick-of-#11939-upstream-release-3.6
Automated cherry pick of #11939: fix(region): lb resource count
2021-08-18 20:47:25 +08:00
Qu Xuan
43ab653d49 fix(region): lb resource count 2021-08-18 15:30:46 +08:00
Zexi Li
4082f8075c Merge pull request #11938 from swordqiu/automated-cherry-pick-of-#11936-upstream-release-3.6
Automated cherry pick of #11936: fix: dhcp classless route encoding error
2021-08-18 10:03:29 +08:00
Qiu Jian
288c0d5612 fix: dhcp classless route encoding error 2021-08-17 23:29:46 +08:00
Zexi Li
7565613c4c Merge pull request #11923 from ioito/automated-cherry-pick-of-#11921-upstream-release-3.6
Automated cherry pick of #11921: fix(cloudid): azure attach enabled subscription policy
2021-08-16 21:43:13 +08:00
Qu Xuan
1bd783aef8 fix(cloudid): avoid sync clouduser twice 2021-08-16 15:13:33 +08:00
Qu Xuan
916fa8d4b0 fix(cloudid): azure attach enabled subscription policy 2021-08-16 15:13:33 +08:00
yunion-ci-robot
4058856a18 Merge pull request #11855 from zexi/automated-cherry-pick-of-#11853-upstream-release-3.6
Automated cherry pick of #11853: Fix bms reuse ipaddr
2021-08-15 16:26:23 +08:00
Zexi Li
f7e90e55ab Merge pull request #11899 from ioito/automated-cherry-pick-of-#11895-upstream-release-3.6
Automated cherry pick of #11895: fix(region): return region sql error
2021-08-13 21:15:53 +08:00
Qu Xuan
e86e95faf0 fix(region): return region sql error 2021-08-13 18:49:45 +08:00
Zexi Li
4d3ff3d332 Merge pull request #11889 from swordqiu/automated-cherry-pick-of-#11887-upstream-release-3.6
Automated cherry pick of #11887: fix: routes to private prefixes should be distributed on private nic
2021-08-13 14:30:52 +08:00
Qiu Jian
9290e6fbd7 fix: routes to private prefixes should be distributed on private nic 2021-08-12 23:01:39 +08:00
Zexi Li
1396381b80 Merge pull request #11885 from ioito/automated-cherry-pick-of-#11883-upstream-release-3.6
Automated cherry pick of #11883: fix(region): azure vm disk size
2021-08-12 21:03:38 +08:00
Qu Xuan
b4f4bd7502 fix(region): azure vm disk size 2021-08-12 20:39:07 +08:00
Zexi Li
91ec8c4487 Merge pull request #11874 from ioito/automated-cherry-pick-of-#11872-upstream-release-3.6
Automated cherry pick of #11872: fix(region): delete dirty network
2021-08-12 10:55:56 +08:00
Qu Xuan
8da9634767 fix(region): delete dirty network 2021-08-11 20:19:45 +08:00
Zexi Li
41272d8073 Merge pull request #11869 from ioito/automated-cherry-pick-of-#11867-upstream-release-3.6
Automated cherry pick of #11867: fix(region): return sql error
2021-08-11 20:03:56 +08:00
Qu Xuan
3fbb27b8ef fix(region): return sql error 2021-08-11 19:39:54 +08:00
Zexi Li
963550ebf4 Merge pull request #11866 from swordqiu/automated-cherry-pick-of-#11864-upstream-release-3.6
Automated cherry pick of #11864: fix: resolve permission issues for samlusers and quotas
2021-08-11 17:50:49 +08:00
Qiu Jian
aec0affa1b fix: resolve permission issues for samlusers and quotas 2021-08-11 17:24:57 +08:00
Zexi Li
3f6db673b5 fix(region): baremetal server reuse ip address condition 2021-08-10 10:44:48 +08:00
Zexi Li
ed1e2480cc Merge pull request #11851 from swordqiu/automated-cherry-pick-of-#11849-upstream-release-3.6
Automated cherry pick of #11849: fix: inter-vm traffic limited by eip bandwidth limit
2021-08-10 10:07:24 +08:00
yunion-ci-robot
2d818c3e80 Merge pull request #11842 from zexi/automated-cherry-pick-of-#11840-upstream-release-3.6
Automated cherry pick of #11840: fix(region): not set baremetal is_maintenance when action is start
2021-08-10 00:19:01 +08:00
yunion-ci-robot
c0304519e9 Merge pull request #11845 from zexi/automated-cherry-pick-of-#11844-upstream-release-3.6
Automated cherry pick of #11844: fix(baremetal): increase ipmitool reboot sleep wait time
2021-08-10 00:18:00 +08:00
Qiu Jian
5bbe39749a fix: inter-vm traffic limited by eip bandwidth limit 2021-08-10 00:15:29 +08:00
Zexi Li
18c8973c6d fix(baremetal): increase ipmitool reboot sleep wait time 2021-08-09 16:51:31 +08:00
Zexi Li
dc819e77fc fix(region): not set baremetal is_maintenance when action is start 2021-08-09 15:25:21 +08:00
Zexi Li
a4dd439f77 Merge pull request #11835 from ioito/automated-cherry-pick-of-#11832-upstream-release-3.6
Automated cherry pick of #11832: fix(region): sync openstack multi zone storages
2021-08-07 14:29:42 +08:00
Qu Xuan
0025975b4e fix(region): sync openstack multi zone storages 2021-08-06 16:13:32 +08:00
Zexi Li
5b2ef0c5c0 Merge pull request #11825 from rainzm/automated-cherry-pick-of-#11823-upstream-release-3.6
Automated cherry pick of #11823: fix(region): prohibit resizing the disk of a esxi vm with instance snapshots
2021-08-06 10:22:12 +08:00
rainzm
c58c36eab8 fix(region): prohibit resizing the disk of a esxi vm with instance snapshots 2021-08-05 19:04:47 +08:00
Zexi Li
2ffc502b2c Merge pull request #11810 from ioito/automated-cherry-pick-of-#11808-upstream-release-3.6
Automated cherry pick of #11808: fix(region): avoid get openstack hostid panic
2021-08-05 17:18:38 +08:00
Zexi Li
43b963beb9 Merge pull request #11817 from rainzm/automated-cherry-pick-of-#11815-upstream-release-3.6
Automated cherry pick of #11815: feat(region): check whether the esxi host is ip or domain name
2021-08-05 17:18:00 +08:00
rainzm
8959f6675f feat(region): check whether the esxi host is ip or domain name 2021-08-05 16:12:42 +08:00
Qu Xuan
935d73f330 fix(region): avoid get openstack hostid panic 2021-08-05 14:19:56 +08:00
yunion-ci-robot
57b541c295 Merge pull request #11805 from zexi/automated-cherry-pick-of-#11803-upstream-release-3.6
Automated cherry pick of #11803: fix(baremetal): inject mac when admin nic found
2021-08-04 20:10:57 +08:00
Zexi Li
89e8b1fdda fix(baremetal): inject mac when admin nic found 2021-08-04 18:54:09 +08:00
Zexi Li
3706fdea49 Merge pull request #11802 from rainzm/automated-cherry-pick-of-#11796-upstream-release-3.6
Automated cherry pick of #11796: fix(esxiagetn): keep compatible with the lower version vcenter when copying the disk
2021-08-04 16:14:34 +08:00
rainzm
5a34578f94 fix(esxiagetn): keep compatible with the lower version vcenter when copying the disk 2021-08-04 15:30:14 +08:00
yunion-ci-robot
b898a169d4 Merge pull request #11788 from zexi/fix-bm-network-resued-count
fix(region): baremetal server resued address nic count should be subtracted
2021-08-03 23:54:56 +08:00
Zexi Li
91b27c21b1 Merge pull request #11798 from swordqiu/automated-cherry-pick-of-#11794-upstream-release-3.6
Automated cherry pick of #11794: fix: server migrate network to a vlan network
2021-08-03 20:05:48 +08:00
yunion-ci-robot
4e6dd47336 Merge pull request #11786 from zexi/automated-cherry-pick-of-#11784-upstream-release-3.6
Automated cherry pick of #11784: fix(baremetal): inject mac to cmdline
2021-08-03 18:59:56 +08:00
Qiu Jian
5fff71781f fix: server migrate network to a vlan network 2021-08-03 18:50:12 +08:00
Zexi Li
f461726f58 fix(region): baremetal server resued address nic count should be subtracted 2021-08-03 15:29:35 +08:00
Zexi Li
53a6960478 fix(baremetal): inject mac to cmdline 2021-08-03 12:28:45 +08:00
Zexi Li
17dec53169 Merge pull request #11779 from zhaoxiangchun/automated-cherry-pick-of-#11777-upstream-release-3.6
Automated cherry pick of #11777: fix(monitor): fix resource details can't show monitor metric
2021-08-02 19:57:37 +08:00
Zexi Li
306c19f5a8 Merge pull request #11776 from rainzm/automated-cherry-pick-of-#11774-upstream-release-3.6
Automated cherry pick of #11774: fix(scheduler): make option EnableQuotaCheck work
2021-08-02 18:00:47 +08:00
zhaoxiangchun
4c668de666 fix(monitor): fix resource details can't show monitor metric 2021-08-02 17:35:20 +08:00
rainzm
5b9a383e43 fix(scheduler): make option EnableQuotaCheck work 2021-08-02 14:32:43 +08:00
Zexi Li
8281dcbadc Merge pull request #11763 from rainzm/automated-cherry-pick-of-#11761-upstream-release-3.6
Automated cherry pick of #11761: fix: avoid double counting when compute networks nic count
2021-07-31 11:38:40 +08:00
yunion-ci-robot
9223301f78 Merge pull request #11760 from zexi/automated-cherry-pick-of-#11758-upstream-release-3.6
Automated cherry pick of #11758: fix(region): baremetal spec condition
2021-07-31 01:47:36 +08:00
rainzm
07aab1daea fix: avoid double counting when compute networks nic count 2021-07-30 20:06:08 +08:00
Zexi Li
2141af918d fix(region): baremetal spec condition 2021-07-30 17:09:58 +08:00
Zexi Li
a17ac292ea Merge pull request #11738 from zexi/automated-cherry-pick-of-#11736-upstream-release-3.6
Automated cherry pick of #11736: fix(region): raise GetNamedNetworkConfiguration error
2021-07-29 16:39:31 +08:00
Zexi Li
f8f773ecc8 Merge pull request #11745 from ioito/automated-cherry-pick-of-#11743-upstream-release-3.6
Automated cherry pick of #11743: fix(climc): add version list command
2021-07-28 20:03:56 +08:00
Qu Xuan
171792d6ce fix(climc): add version list command 2021-07-28 19:48:40 +08:00
Zexi Li
052499e4eb fix(region): raise GetNamedNetworkConfiguration error 2021-07-28 17:26:01 +08:00
Zexi Li
ab33b39d9f Merge pull request #11731 from swordqiu/automated-cherry-pick-of-#11729-upstream-release-3.6
Automated cherry pick of #11729: fix: simplify SQL for distinct field query of tenant or domain names
2021-07-27 10:29:47 +08:00
Qiu Jian
b5bd5cbbbb fix: simplify SQL for distinct field query of tenant or domain names 2021-07-27 01:19:56 +08:00
Zexi Li
f17dee9a35 Merge pull request #11726 from rainzm/automated-cherry-pick-of-#11724-upstream-release-3.6
Automated cherry pick of #11724: fix(region): fetch zone before syncing promise cloud provider storages
2021-07-26 18:56:47 +08:00
Zexi Li
58201d2aa6 Merge pull request #11722 from ioito/automated-cherry-pick-of-#11720-upstream-release-3.6
Automated cherry pick of #11720: fix(region): openstack ip pre allocate
2021-07-26 18:43:56 +08:00
rainzm
59e7fd819c fix(region): fetch zone before syncing promise cloud provider storages 2021-07-26 17:24:11 +08:00
Qu Xuan
d5fde87fc2 fix(region): openstack ip pre allocate 2021-07-26 15:28:32 +08:00
Zexi Li
fc9ca5daa3 Merge pull request #11717 from ioito/automated-cherry-pick-of-#11715-upstream-release-3.6
Automated cherry pick of #11715: fix(region): cpu desc too long
2021-07-26 14:36:10 +08:00
Qu Xuan
1c5ef3961a fix(region): cpu desc too long 2021-07-26 10:06:26 +08:00
yunion-ci-robot
21298fd10f Merge pull request #11713 from zexi/automated-cherry-pick-of-#11711-upstream-release-3.6
Automated cherry pick of #11711: fix(host): find same vendor iommu_group devices
2021-07-25 00:14:32 +08:00
Zexi Li
980814fce0 fix(host): find same vendor iommu_group devices 2021-07-24 21:42:59 +08:00
Zexi Li
0ec0424b7c Merge pull request #11709 from ioito/automated-cherry-pick-of-#11707-upstream-release-3.6
Automated cherry pick of #11707: fix(region): update qcloud secgroup rule
2021-07-23 18:22:29 +08:00
Qu Xuan
9df734a7fe fix(region): update qcloud secgroup rule 2021-07-23 17:42:41 +08:00
Zexi Li
5e7b926d86 Merge pull request #11703 from ioito/automated-cherry-pick-of-#11701-upstream-release-3.6
Automated cherry pick of #11701: fix(region): azure quota sync
2021-07-23 14:22:23 +08:00
Qu Xuan
8843473697 fix(region): azure quota sync 2021-07-22 19:35:46 +08:00
Zexi Li
a60084ac96 Merge pull request #11697 from swordqiu/automated-cherry-pick-of-#11695-upstream-release-3.6
Automated cherry pick of #11695: fix: qemu-img create disk may fail to preallocation=metadata enable for large disk
2021-07-22 15:27:52 +08:00
Qiu Jian
b98201c0a2 fix: qemu-img create disk may fail to preallocation=metadata enable for large disk
error report: failed to flush the refcount block cache: File too large
2021-07-22 12:17:44 +08:00
Zexi Li
af2e8313d7 Merge pull request #11676 from ioito/automated-cherry-pick-of-#11674-upstream-release-3.6
Automated cherry pick of #11674: fix(region): rds network sync
2021-07-20 21:14:31 +08:00
Zexi Li
ce746b9a28 Merge pull request #11684 from ioito/automated-cherry-pick-of-#11681-upstream-release-3.6
Automated cherry pick of #11681: fix(keystone): policy filter by role
2021-07-20 21:13:44 +08:00
Zexi Li
43fa5d9208 Merge pull request #11666 from rainzm/automated-cherry-pick-of-#11663-upstream-release-3.6
Automated cherry pick of #11663: feat(hostdeployer): change UserAdd to CheckOrAddUser
2021-07-20 18:55:00 +08:00
Qu Xuan
8efdcbf92c fix(keystone): policy filter by role 2021-07-20 15:51:12 +08:00
Zexi Li
50393f47b8 Merge pull request #11678 from zexi/fix/baremetal-build
fix(build): baremetal arm64 build
2021-07-19 20:22:16 +08:00
Zexi Li
ad98d01e9e fix(build): baremetal arm64 build 2021-07-19 20:20:00 +08:00
Qu Xuan
ebdd4ee2a1 fix(region): return rds networks info 2021-07-19 17:30:45 +08:00
Qu Xuan
9a1e0d26eb fix(region): rds network sync 2021-07-19 17:30:45 +08:00
Zexi Li
8f5af535e4 Merge pull request #11669 from ioito/automated-cherry-pick-of-#11667-upstream-release-3.6
Automated cherry pick of #11667: fix(keystone): avoid sql error
2021-07-19 14:22:14 +08:00
Qu Xuan
58709b21a3 fix(keystone): avoid sql error 2021-07-19 14:05:42 +08:00
rainzm
665dd2c0d0 feat(hostdeployer): change UserAdd to CheckOrAddUser
If the user already exists, use the existing user and its information; otherwise, create a new user
2021-07-19 11:22:32 +08:00
Zexi Li
911b1db6c2 Merge pull request #11660 from ioito/automated-cherry-pick-of-#11658-upstream-release-3.6
Automated cherry pick of #11658: fix(region): sync auzre subscription health status
2021-07-16 11:24:35 +08:00
Qu Xuan
e624f422d4 fix(region): sync auzre subscription health status 2021-07-16 10:59:03 +08:00
Zexi Li
75360f220a Merge pull request #11653 from swordqiu/automated-cherry-pick-of-#11641-upstream-release-3.6
Automated cherry pick of #11641: feature: allow server switch network without service interruption
2021-07-15 19:17:44 +08:00
Zexi Li
f10de1e461 Merge pull request #11649 from zexi/automated-cherry-pick-of-#11647-upstream-release-3.6
Automated cherry pick of #11647: fix(baremetal): compatible with SN empty of MegaRaid
2021-07-15 19:16:59 +08:00
Zexi Li
94455340c1 Merge pull request #11655 from ioito/automated-cherry-pick-of-#11274-upstream-release-3.6
Automated cherry pick of #11274: fix(region): disable public cloud ip pre allocate
2021-07-15 17:25:20 +08:00
Qu Xuan
7594720f0a fix(region): disable public cloud ip pre allocate 2021-07-15 17:04:55 +08:00
Zexi Li
2a927ec7a7 fix(baremetal): compatible with SN empty of MegaRaid 2021-07-15 10:29:32 +08:00
Qiu Jian
57a49f8602 fix: migrate interface before commit desc 2021-07-14 21:50:37 +08:00
Qiu Jian
55fe3fa3bb minor fixes 2021-07-14 21:50:37 +08:00
Qiu Jian
ce86205aa6 fix: add codes to switch bridge of ovs port 2021-07-14 21:50:37 +08:00
Qiu Jian
cc44b3a6f2 feature: allow server switch network without service interruption 2021-07-14 21:50:37 +08:00
Zexi Li
deb7c3ea50 Merge pull request #11640 from ioito/automated-cherry-pick-of-#11638-upstream-release-3.6
Automated cherry pick of #11638: fix(region): remove debug info
2021-07-13 20:10:59 +08:00
Qu Xuan
f4c2799815 fix(region): remove debug info 2021-07-13 17:30:16 +08:00
Zexi Li
865b6659aa Merge pull request #11615 from rainzm/automated-cherry-pick-of-#11600-upstream-release-3.6
Automated cherry pick of #11600: fix(region): sync storage before syncing host in syncOnPremiseCloudProviderInfo
2021-07-13 10:46:52 +08:00
Zexi Li
94d0648f55 Merge pull request #11633 from ioito/automated-cherry-pick-of-#11627-upstream-release-3.6
Automated cherry pick of #11627: fix(region): allocate server eip without hostwire restrict
2021-07-12 18:40:45 +08:00
rainzm
ba1202fe16 fix(region): sync storage before syncing host in syncOnPremiseCloudProviderInfo
场景:重新构建了某个存储,相当于把之前某个存储上的所有虚拟机迁移到一个新的存储上。

因为没有syncStorage,所以在同步syncHostStorge的时候无法disconnect host
和 没有的storage,这是因为storage上还有host的虚拟机。syncHostStorages
会失败,storageCache 也就不会同步,上面的icloudImage也不会同步。
2021-07-12 14:57:30 +08:00
Qu Xuan
f5b68f0571 fix(region): allocate server eip without hostwire restrict 2021-07-12 14:55:25 +08:00
yunion-ci-robot
4038fdc2b1 Merge pull request #11630 from tb365/automated-cherry-pick-of-#11628-upstream-release-3.6
Automated cherry pick of #11628: fix(keystone): user not found error fix
2021-07-12 14:03:02 +08:00
tb365
395f74ffd4 fix(keystone): user not found error fix 2021-07-12 13:54:55 +08:00
Zexi Li
509a606ec5 Merge pull request #11624 from rainzm/automated-cherry-pick-of-#11622-upstream-release-3.6
Automated cherry pick of #11622: fix(region): set DefaultSysDiskBackend as empty for esxi guest
2021-07-10 10:54:56 +08:00
rainzm
cafd1b9907 fix(region): set DefaultSysDiskBackend as empty for esxi guest 2021-07-09 19:15:02 +08:00
yunion-ci-robot
468a0b2d12 Merge pull request #11611 from zexi/automated-cherry-pick-of-#11609-upstream-release-3.6
Automated cherry pick of #11609: fix(baremetal): use ipmitool power reset when redfish power on error
2021-07-09 18:55:06 +08:00
Zexi Li
9f0193574e fix(baremetal): use ipmitool power reset when redfish power on error 2021-07-09 14:48:57 +08:00
Zexi Li
6da572d43b Merge pull request #11606 from zhaoxiangchun/automated-cherry-pick-of-#11603-upstream-release-3.6
Automated cherry pick of #11603: fix(monitor):  alert policy use ownerId when update
2021-07-09 12:07:17 +08:00
Zexi Li
0c776e8797 Merge pull request #11614 from swordqiu/automated-cherry-pick-of-#11610-upstream-release-3.6
Automated cherry pick of #11610: fix: host detach wire not update netinterface
2021-07-09 11:53:29 +08:00
Qiu Jian
a3943097c8 fix: host detach wire not update netinterface 2021-07-09 10:47:01 +08:00
zhaoxiangchun
74e00b4322 fix(monitor): alert policy use ownerId when update
1.根据参数中的project和domain属性调用FetchOwnerId方法,然后确定报警策略归属并进行监控查询过滤
2021-07-09 10:21:21 +08:00
yunion-ci-robot
e8af95d6fa Merge pull request #11596 from zexi/automated-cherry-pick-of-#11563-upstream-release-3.6
Automated cherry pick of #11563: feat(host): aware of kubelet eviction config
2021-07-08 20:16:05 +08:00
Zexi Li
2e9c42f8cb Merge pull request #11599 from rainzm/automated-cherry-pick-of-#11597-upstream-release-3.6
Automated cherry pick of #11597: fix(host-deployer): make SKVMGuestLVMPartition work find
2021-07-08 18:40:23 +08:00
rainzm
7aeb30362f fix(host-deployer): make SKVMGuestLVMPartition work fine
1. add needChangeName to indicate whether to change the name when
   putting down
2. remove unnecessary IsVgActice
3. findPartitions from /dev/{vgname}/{lvname} or
   /dev/mapper/{vgname}-{lvname}
2021-07-08 18:21:31 +08:00
Zexi Li
47d7b434ba feat(host): aware of kubelet eviction config 2021-07-07 21:30:16 +08:00
Zexi Li
3ec9f8f2d4 Merge pull request #11585 from rainzm/automated-cherry-pick-of-#11583-upstream-release-3.6
Automated cherry pick of #11583: fix(region): handle the error of RequestGuestCreateAllDisks
2021-07-07 20:29:25 +08:00
rainzm
522aada8b7 fix(region): handle the error of RequestGuestCreateAllDisks 2021-07-07 15:47:09 +08:00
Zexi Li
dd1c95a290 Merge pull request #11572 from rainzm/automated-cherry-pick-of-#11570-upstream-release-3.6
Automated cherry pick of #11570: feat(hostdeployer): change the way fo GetLoginAccount in windows
2021-07-06 22:22:07 +08:00
yunion-ci-robot
d8b9d26c6c Merge pull request #11577 from zexi/automated-cherry-pick-of-#11574-upstream-release-3.6
Automated cherry pick of #11574: fix(host-deployer): detect UEFI supported not correct
2021-07-06 19:51:03 +08:00
Zexi Li
bca3ca19e0 fix(host-deployer): detect UEFI supported not correct 2021-07-06 19:32:09 +08:00
rainzm
b9fc69576b feat(hostdeployer): change the way fo GetLoginAccount in windows
首先,如果不是win10,并且 windowsDefaultAdminUser 置为 true,以及
Administrator 没有lock,那么使用 Administrator。
否则,优先使用第一个没有被锁定且不是 Administrator 的user,如果最后没有
符合条件的user,且Adminstrator 没有被lock,就是用 Administrator。
否则,报错。
2021-07-06 17:44:52 +08:00
yunion-ci-robot
5c67f42c66 Merge pull request #11565 from zexi/automated-cherry-pick-of-#11564-upstream-release-3.6
Automated cherry pick of #11564: feat(host): add openEuler rootFs driver
2021-07-06 15:29:00 +08:00
Zexi Li
f2b0684160 feat(host): add openEuler rootFs driver 2021-07-06 14:50:28 +08:00
Zexi Li
07e183ed62 Merge pull request #11562 from zexi/automated-cherry-pick-of-#11560-upstream-release-3.6
Automated cherry pick of #11560: update OWNERS
2021-07-05 15:55:36 +08:00
Zexi Li
468453951d update OWNERS 2021-07-05 15:54:56 +08:00
Zexi Li
6c2fed1b59 Merge pull request #11556 from swordqiu/automated-cherry-pick-of-#11554-upstream-release-3.6
Automated cherry pick of #11554: fix: add cloudroot as system account, so as not using normal user id
2021-07-04 10:26:42 +08:00
Qiu Jian
0250318839 fix: add cloudroot as system account, so as not using normal user id 2021-07-03 22:25:27 +08:00
Zexi Li
0e774c554e Merge pull request #11542 from zexi/fix-climc-base-aarch64-image
fix(climc): update climc-base image to 20210701
2021-07-02 11:23:23 +08:00
Zexi Li
e698e1df89 fix(climc): update climc-base image to 20210701 2021-07-02 10:02:48 +08:00
Zexi Li
f3859ebf26 Merge pull request #11541 from swordqiu/automated-cherry-pick-of-#11539-upstream-release-3.6
Automated cherry pick of #11539: fix: do not use ntfsresize to resize NTFS partition
2021-07-02 10:01:52 +08:00
Qiu Jian
a1dfe36637 fix: do not use ntfsresize to resize NTFS partition
This makes resizing windows 2003 ntfs partition non-functional
2021-07-02 09:16:50 +08:00
Zexi Li
7459c0c1c8 Merge pull request #11532 from ioito/automated-cherry-pick-of-#11530-upstream-release-3.6
Automated cherry pick of #11530: fix(webconsole): aliyun vnc windows ctl+alt+del
2021-06-30 20:25:33 +08:00
Qu Xuan
8eced7fd02 fix(webconsole): aliyun vnc windows ctl+alt+del 2021-06-30 20:02:21 +08:00
Zexi Li
188355fb1a Merge pull request #11529 from zhaoxiangchun/automated-cherry-pick-of-#11527-upstream-release-3.6
Automated cherry pick of #11527: fix(monitor): fix monitor process alert
2021-06-30 10:26:04 +08:00
zhaoxiangchun
f170d4d6b6 fix(monitor): fix monitor process alert
修复进程监控报警后,没有触发前端报警提示的问题
2021-06-30 09:50:08 +08:00
yunion-ci-robot
ea30963813 Merge pull request #11526 from zexi/automated-cherry-pick-of-#11524-upstream-release-3.6
Automated cherry pick of #11524: fix(scheduler): baremetal network free address out of count
2021-06-29 23:24:16 +08:00
Zexi Li
bd882c0610 fix(scheduler): baremetal network free address out of count 2021-06-29 20:25:21 +08:00
Zexi Li
912ce36abd Merge pull request #11520 from swordqiu/automated-cherry-pick-of-#11518-upstream-release-3.6
Automated cherry pick of #11518: fix(host): allow server directory a symbol link to directory in other location
2021-06-29 10:00:06 +08:00
Qiu Jian
3bf28fd41b fix(host): allow server directory a symbol link to directory in other location 2021-06-29 00:04:26 +08:00
Zexi Li
cc292edc52 Merge pull request #11515 from zhaoxiangchun/automated-cherry-pick-of-#11514-upstream-release-3.6
Automated cherry pick of #11514: fix(monitor): fix alert record not return resource details
2021-06-28 20:22:00 +08:00
zhaoxiangchun
ffbb3a348f fix(monitor): fix alert record not return resource details 2021-06-28 19:41:20 +08:00
Zexi Li
af5b1f3d3d Merge pull request #11511 from rainzm/automated-cherry-pick-of-#11509-upstream-release-3.6
Automated cherry pick of #11509: fix: get datacenter of host via GetDatacenter
2021-06-28 19:35:45 +08:00
rainzm
267d83bdde fix: get datacenter of host via GetDatacenter 2021-06-28 18:17:41 +08:00
Zexi Li
72edc4b253 Merge pull request #11498 from zexi/fix/server-change-ip-addr
fix(region): baremetal server change ip address reuse
2021-06-28 15:07:05 +08:00
Zexi Li
433e03a02a fix(region): baremetal server change ip address reuse 2021-06-28 14:42:38 +08:00
Zexi Li
51a79c88ed Merge pull request #11496 from rainzm/network/natgateway
fix: Remove the nat gateway when computing network usage
2021-06-28 13:12:25 +08:00
rainzm
bf6c114e1d fix: Remove the nat gateway when computing network usage 2021-06-28 12:29:24 +08:00
Zexi Li
479f2732e7 Merge pull request #11488 from rainzm/automated-cherry-pick-of-#10970-upstream-release-3.6
Automated cherry pick of #10970: feat(scheduler): optimize the speed of network predicate
2021-06-25 18:27:42 +08:00
rainzm
bab148685a feat: add interface INetworkNicCountGetter 2021-06-25 15:59:47 +08:00
rainzm
6b92d1d4f0 feat(scheduler): optimize the speed of network predicate 2021-06-25 15:59:47 +08:00
Zexi Li
18bedab65e Merge pull request #11480 from rainzm/automated-cherry-pick-of-#11478-upstream-release-3.6
Automated cherry pick of #11478: fix(notify): distinct field of receivers
2021-06-24 20:11:14 +08:00
rainzm
e5097bcdcf fix(notify): distinct field of receivers 2021-06-24 10:41:10 +08:00
Zexi Li
86825e0235 Merge pull request #11475 from rainzm/automated-cherry-pick-of-#11473-upstream-release-3.6
Automated cherry pick of #11473: Sync VMware resource faster
2021-06-24 10:01:38 +08:00
rainzm
59e52eb7f1 feat(esxi): disable sync cloudimage from image cache 2021-06-23 17:06:57 +08:00
rainzm
7692132acf feat(esxi): reduce the number of requests and the amount of data transferred 2021-06-23 17:06:57 +08:00
rainzm
236b927735 feat(region): add ProhibitRefreshingCloudImage for options 2021-06-23 17:06:57 +08:00
yunion-ci-robot
970bde5753 Merge pull request #11468 from zexi/automated-cherry-pick-of-#11457-upstream-release-3.6
Automated cherry pick of #11457: feat(host): support netplan configuration
2021-06-23 11:39:11 +08:00
Zexi Li
b9426bcd8b Merge pull request #11465 from ioito/automated-cherry-pick-of-#11463-upstream-release-3.6
Automated cherry pick of #11463: fix(hostman): show server status changed reason
2021-06-23 10:53:34 +08:00
Zexi Li
067b2f7fa0 feat(host): support netplan configuration 2021-06-23 10:38:24 +08:00
Qu Xuan
4cd723d096 fix(hostman): show server status changed reason 2021-06-22 17:56:11 +08:00
Zexi Li
8c0b1b6123 Merge pull request #11455 from zhaoxiangchun/automated-cherry-pick-of-#11454-upstream-release-3.6
Automated cherry pick of #11454: fix(monitor): exit monitor engine in time when happen err
2021-06-21 23:49:44 +08:00
zhaoxiangchun
6d67fc5d80 fix(monitor): exit monitor engine in time when happen err 2021-06-21 16:11:42 +08:00
Zexi Li
ee8db3a96a Merge pull request #11450 from zexi/automated-cherry-pick-of-#11448-upstream-release-3.6
Automated cherry pick of #11448: fix(baremetal): remove bundle libs build
2021-06-21 10:43:05 +08:00
Zexi Li
aeb73f0c26 fix(baremetal): remove bundle libs build 2021-06-21 10:33:09 +08:00
yunion-ci-robot
b8499fd093 Merge pull request #11434 from zexi/automated-cherry-pick-of-#11433-upstream-release-3.6
Automated cherry pick of #11433: fix(region,scheduler): baremetal reuse ip
2021-06-19 22:39:57 +08:00
Zexi Li
5d6851472c Merge pull request #11421 from ioito/automated-cherry-pick-of-#11419-upstream-release-3.6
Automated cherry pick of #11419: fix(region): add project filter for cloudprovider
2021-06-18 16:21:48 +08:00
Zexi Li
9e581db915 Merge pull request #11438 from ioito/automated-cherry-pick-of-#11436-upstream-release-3.6
Automated cherry pick of #11436: fix(region): manager distinct field
2021-06-18 16:21:19 +08:00
Zexi Li
b122f1eef4 fix(region,scheduler): baremetal reuse ip 2021-06-18 15:55:54 +08:00
Qu Xuan
f8140a13a5 fix(region): manager distinct field 2021-06-18 14:20:52 +08:00
Zexi Li
8d4d864b3d Merge pull request #11432 from zexi/automated-cherry-pick-of-#11430-upstream-release-3.6
Automated cherry pick of #11430: fix(region): clean schedule cache when host add or delete netif
2021-06-18 11:16:18 +08:00
Zexi Li
f69b97689a fix(region): clean schedule cache when host add or delete netif 2021-06-18 11:04:21 +08:00
Qu Xuan
c86841ede0 fix(region): add project filter for cloudprovider 2021-06-17 17:19:45 +08:00
Zexi Li
c997eeb6f2 Merge pull request #11418 from swordqiu/automated-cherry-pick-of-#11413-upstream-release-3.6
Automated cherry pick of #11413: fix: support windows 2003
2021-06-17 10:18:53 +08:00
Zexi Li
3019b4ae40 Merge pull request #11417 from swordqiu/automated-cherry-pick-of-#11415-upstream-release-3.6
Automated cherry pick of #11415: fix: do not resize LVM paritition and skip and return success
2021-06-17 09:48:17 +08:00
Qiu Jian
3c42e82278 fix: support windows 2003 2021-06-17 09:46:57 +08:00
Qiu Jian
3621719dee fix: do not resize LVM paritition and skip and return success 2021-06-17 01:55:45 +08:00
yunion-ci-robot
61236122c8 Merge pull request #11223 from zexi/automated-cherry-pick-of-#11205-upstream-release-3.6
Automated cherry pick of #11205: feat(baremetal): support management of none BMC host
2021-06-16 23:42:53 +08:00
Zexi Li
f239668975 Merge pull request #11412 from ioito/automated-cherry-pick-of-#11404-upstream-release-3.6
Automated cherry pick of #11404: fix(region): ignore qcloud bw pkg error
2021-06-16 20:10:29 +08:00
Zexi Li
90499535d1 Merge pull request #11408 from yousong/automated-cherry-pick-of-#11406-upstream-release-3.6
Automated cherry pick of #11406: webconsole: wait zombies
2021-06-16 20:09:07 +08:00
Qu Xuan
5753071cc6 fix(region): ignore qcloud bw pkg error 2021-06-16 19:43:03 +08:00
Yousong Zhou
b508901b53 webconsole: wait zombies 2021-06-16 19:34:13 +08:00
Yousong Zhou
95ec3239f1 Merge pull request #11269 from yousong/automated-cherry-pick-of-#10849-upstream-release-3.6
Automated cherry pick of #10849: Feature/yousong zombie
2021-06-16 19:30:08 +08:00
Yousong Zhou
40f7da9ea1 mcclient: Sshkeypairs: add FetchPrivateKey 2021-06-16 13:08:46 +08:00
Zexi Li
7afa251185 fix(baremetal): record uefi info 2021-06-16 13:08:37 +08:00
Zexi Li
9e812526c0 fix(baremetal): nvme allocable 2021-06-16 13:08:37 +08:00
Zexi Li
b6aa4cd39a feat(baremetal): add UEFI related util 2021-06-16 13:08:16 +08:00
Zexi Li
7ff1264724 fix(baremetal): close ssh test client 2021-06-16 13:08:16 +08:00
Zexi Li
e53e36debf feat(baremetal): support management of none BMC host 2021-06-16 13:08:16 +08:00
Zexi Li
9ecd184e41 Merge pull request #11394 from ioito/automated-cherry-pick-of-#11376-upstream-release-3.6
Automated cherry pick of #11376: fix(region): qcloud bandwidth pkg
2021-06-15 16:30:03 +08:00
Qu Xuan
542c10bf25 fix(region): qcloud bandwidth pkg 2021-06-11 19:18:13 +08:00
Zexi Li
57ca9d71d4 Merge pull request #11382 from rainzm/automated-cherry-pick-of-#11380-upstream-release-3.6
Automated cherry pick of #11380: fix(notify): clean verifiedNote when marking verified
2021-06-11 17:50:04 +08:00
Zexi Li
def6d0f36f Merge pull request #11378 from ioito/automated-cherry-pick-of-#11375-upstream-release-3.6
Automated cherry pick of #11375: fix(host): update rbd storage capacity
2021-06-11 17:46:39 +08:00
rainzm
69eeb1dd01 fix(notify): clean verifiedNote when marking verified 2021-06-11 10:09:17 +08:00
Qu Xuan
6a6ca26633 fix(host): update rbd storage capacity 2021-06-11 09:50:29 +08:00
Zexi Li
15d8c5a02a Merge pull request #11371 from ioito/automated-cherry-pick-of-#11369-upstream-release-3.6
Automated cherry pick of #11369: fix(host): get ceph used capacity
2021-06-10 05:32:57 +08:00
Qu Xuan
4dae72d8ab fix(host): get ceph used capacity 2021-06-09 19:26:20 +08:00
Zexi Li
c6fcdacc52 Merge pull request #11343 from ioito/automated-cherry-pick-of-#11340-upstream-release-3.6
Automated cherry pick of #11340: fix(cloudid): huawei group role attach and detach
2021-06-08 23:15:14 +08:00
Zexi Li
9d82e81760 Merge pull request #11351 from ioito/automated-cherry-pick-of-#11349-upstream-release-3.6
Automated cherry pick of #11349: fix(cloudid): avoid duplicate create saml provider
2021-06-08 23:14:00 +08:00
Zexi Li
866214cf73 Merge pull request #11356 from ioito/automated-cherry-pick-of-#11354-upstream-release-3.6
Automated cherry pick of #11354: feat(apigateway): support export dict keys
2021-06-08 23:12:27 +08:00
Zexi Li
0a04c056e7 Merge pull request #11359 from ioito/hotfix/qx-storage-conf-update
fix(region): avoid update storage conf not work
2021-06-08 23:09:44 +08:00
Zexi Li
6b41f70c20 Merge pull request #11363 from ioito/automated-cherry-pick-of-#11361-upstream-release-3.6
Automated cherry pick of #11361: fix(region): validate disk status when create snapshot
2021-06-08 23:08:22 +08:00
Qu Xuan
481fdfb656 fix(region): validate disk status when create snapshot 2021-06-08 20:09:31 +08:00
Qu Xuan
f05468cb4b fix(region): avoid update storage conf not work 2021-06-08 17:42:13 +08:00
Qu Xuan
c2e2a0b246 feat(apigateway): support export dict keys 2021-06-08 16:24:26 +08:00
Qu Xuan
ccaf955162 fix(cloudid): avoid duplicate create saml provider 2021-06-08 14:19:54 +08:00
Qu Xuan
bc9ca31351 fix(cloudid): huawei group role attach and detach 2021-06-07 18:18:34 +08:00
Zexi Li
6d2f84f2e9 Merge pull request #11334 from ioito/automated-cherry-pick-of-#11332-upstream-release-3.6
Automated cherry pick of #11332: fix(region): validate attached disk size and backend
2021-06-07 17:43:53 +08:00
Zexi Li
19791e09ce Merge pull request #11337 from zhaoxiangchun/automated-cherry-pick-of-#11335-upstream-release-3.6
Automated cherry pick of #11335: fix(telegraf-raid-plugin): add image-telegraf-raid-plugin in Makefile
2021-06-07 17:42:42 +08:00
zhaoxiangchun
de6285b19a fix(telegraf-raid-plugin): add image-telegraf-raid-plugin in Makefile 2021-06-07 16:21:17 +08:00
Qu Xuan
8d519ce2eb fix(region): validate attached disk size and backend 2021-06-07 15:45:26 +08:00
Zexi Li
010523d5e4 Merge pull request #11308 from ioito/automated-cherry-pick-of-#11306-upstream-release-3.6
Automated cherry pick of #11306: fix(region): skip server migrate quota check
2021-06-07 10:28:27 +08:00
Qu Xuan
b024ce902f fix(region): skip server migrate quota check 2021-06-07 10:14:10 +08:00
Zexi Li
9709cab7f4 Merge pull request #11322 from zhaoxiangchun/automated-cherry-pick-of-#11320-upstream-release-3.6
Automated cherry pick of #11320: fix: 修复云账号和宿主机报警问题
2021-06-05 12:16:35 +08:00
Zexi Li
7d40de6d4a Merge pull request #11301 from swordqiu/automated-cherry-pick-of-#11299-upstream-release-3.6
Automated cherry pick of #11299: fix: hpssacli should skip empty slots
2021-06-04 21:04:33 +08:00
Zexi Li
0bc662d213 Merge pull request #11321 from ioito/automated-cherry-pick-of-#11318-upstream-release-3.6
Automated cherry pick of #11318: fix(region): avoid guest delete not with disks
2021-06-04 19:46:36 +08:00
zhaoxiangchun
a1a324aec6 fix: 修复云账号和宿主机报警问题
1.云账号报警时过滤掉已经禁用的云账号
2.修复宿主机报警时资源名称重复的问题
2021-06-04 19:20:05 +08:00
Qu Xuan
391ca1efba fix(region): avoid guest delete not with disks 2021-06-04 19:17:41 +08:00
Qiu Jian
16c2e6bd2e fix: hpssacli should skip empty slots
hpssacli may fail when detect disks on empty slots, which cause raid
detection failure
2021-06-03 19:36:20 +08:00
Zexi Li
cdc14d0ef9 Merge pull request #11291 from ioito/automated-cherry-pick-of-#11289-upstream-release-3.6
Automated cherry pick of #11289: fix(host): avoid panic when params is nil
2021-06-03 11:42:48 +08:00
Qu Xuan
9fcaf499d7 fix(host): avoid panic when params is nil 2021-06-03 11:31:47 +08:00
Zexi Li
d45fc59ad6 Merge pull request #11282 from ioito/automated-cherry-pick-of-#11279-upstream-release-3.6
Automated cherry pick of #11279: fix(region): avoid deadlock when resize disk
2021-06-01 19:19:24 +08:00
Qu Xuan
63f1c984e3 fix(region): avoid deadlock when resize disk 2021-06-01 14:38:34 +08:00
Zexi Li
fd03308575 Merge pull request #11277 from swordqiu/automated-cherry-pick-of-#11268-upstream-release-3.6
Automated cherry pick of #11268: fix: windows resize file system
2021-06-01 11:55:26 +08:00
Qiu Jian
b34c35ead9 fix: windows resize file system 2021-06-01 00:00:33 +08:00
Zexi Li
4c4d4615c8 Merge pull request #11273 from zexi/automated-cherry-pick-of-#11240-upstream-release-3.6
Automated cherry pick of #11240: fix(region): migrate use rescue mode
2021-05-31 11:07:05 +08:00
Zexi Li
15bca887ac fix(region): migrate use rescue mode 2021-05-31 11:06:39 +08:00
Zexi Li
82ec26254d Merge pull request #11272 from zexi/automated-cherry-pick-of-#11166-upstream-release-3.6
Automated cherry pick of #11166: feat(region): add server migration predication API
2021-05-31 11:04:54 +08:00
Zexi Li
e3b3b7ab19 feat(region): add server migration predication API 2021-05-31 11:03:42 +08:00
Yousong Zhou
1f10232af0 treewide: wait possible zombies 2021-05-31 10:15:58 +08:00
Yousong Zhou
d6c4eeef59 procutils: WaitZombieLoop: remove unneeded info request 2021-05-31 10:15:58 +08:00
Yousong Zhou
1aae46c8df procutils: WaitZombieLoop: less verbose iota 2021-05-31 10:15:58 +08:00
Yousong Zhou
e8955c6c7c procutils: WaitZombieLoop: use const str "1" for my pid 2021-05-31 10:15:58 +08:00
Yousong Zhou
80a1d43302 procutils: add WaitZombieLoop 2021-05-31 10:15:58 +08:00
Zexi Li
e0e8a6d91a Merge pull request #11260 from zhaoxiangchun/automated-cherry-pick-of-#11258-upstream-release-3.6
Automated cherry pick of #11258: fix(host): raid status
2021-05-28 20:12:49 +08:00
zhaoxiangchun
12dc562583 fix(host): raid status 2021-05-28 19:58:19 +08:00
Zexi Li
1305d7a38e Merge pull request #11257 from tb365/automated-cherry-pick-of-#11253-upstream-release-3.6
Automated cherry pick of #11253: fix(region): lbcert cache clean duplicate data fix
2021-05-28 19:18:22 +08:00
tb365
0e86ff6b2c fix(region): lbcert cache clean duplicate data fix 2021-05-28 15:47:53 +08:00
Zexi Li
f9a6a130a7 Merge pull request #11247 from swordqiu/automated-cherry-pick-of-#11245-upstream-release-3.6
Automated cherry pick of #11245: fix: get apigateway auth/regions with error of illegal mix of collations
2021-05-28 15:43:38 +08:00
Qiu Jian
7f0f640e88 fix: get apigateway auth/regions with error of illegal mix of collations 2021-05-28 09:40:18 +08:00
Zexi Li
19c0825b6f Merge pull request #11239 from zexi/hotfix/resuce-migrate
fix(region): resuce mode of migrate
2021-05-27 19:43:22 +08:00
Zexi Li
3f384a1b4b Merge pull request #11244 from zexi/automated-cherry-pick-of-#11242-upstream-release-3.6
Automated cherry pick of #11242: Revert "fix(host): raid status fix"
2021-05-27 19:42:53 +08:00
Zexi Li
fb0bb14a3c Revert "fix(host): raid status fix"
This reverts commit 392f5ab237.
2021-05-27 19:42:08 +08:00
Zexi Li
244e858760 Merge pull request #11234 from zhaoxiangchun/automated-cherry-pick-of-#11233-upstream-release-3.6
Automated cherry pick of #11233: fix(host): raid status fix
2021-05-27 19:36:18 +08:00
Zexi Li
06459b3dbb fix(region): resuce mode of migrate 2021-05-27 19:15:52 +08:00
zhaoxiangchun
b3932c70b2 fix(host): raid status fix
1. All status are online except offline.
2021-05-27 16:03:44 +08:00
Zexi Li
038ffa615b Merge pull request #11221 from ioito/automated-cherry-pick-of-#11219-upstream-release-3.6
Automated cherry pick of #11219: fix(host): avoid delete removed disk failed
2021-05-26 14:22:04 +08:00
Qu Xuan
406d81e5dd fix(host): avoid delete removed disk failed 2021-05-25 21:02:31 +08:00
Zexi Li
a8953c502f Merge pull request #11203 from ioito/automated-cherry-pick-of-#11201-upstream-release-3.6
Automated cherry pick of #11201: fix(region): show azure deploy failed error
2021-05-25 19:08:57 +08:00
Qu Xuan
aa904b972d fix(region): show azure deploy failed error 2021-05-25 10:35:15 +08:00
Zexi Li
deb1669e11 Merge pull request #11196 from ioito/hotfix/qx-azure-api-version
fix(cloudid): avoid location missing api-version
2021-05-24 18:17:25 +08:00
Qu Xuan
3b5e38f471 fix(cloudid): avoid location missing api-version 2021-05-24 16:03:31 +08:00
Zexi Li
3d262bac30 Merge pull request #11174 from zhaoxiangchun/automated-cherry-pick-of-#11172-upstream-release-3.6
Automated cherry pick of #11172: fix(monitor): fix storage tag
2021-05-20 18:51:46 +08:00
zhaoxiangchun
2ae6c7b6ca fix(monitor): fix storage tag 2021-05-20 17:26:32 +08:00
Zexi Li
1d58d2bac3 Merge pull request #11092 from zhaoxiangchun/automated-cherry-pick-of-#11025-upstream-release-3.6
Automated cherry pick of #11025: feat(monitor): add storage monitor metric
2021-05-20 09:53:56 +08:00
Zexi Li
3c9b1a7103 Merge pull request #11162 from ioito/automated-cherry-pick-of-#11160-upstream-release-3.6
Automated cherry pick of #11160: fix(region): check sku request error
2021-05-19 23:31:30 +08:00
Qu Xuan
a6d520608d fix(region): check sku request error 2021-05-19 19:27:11 +08:00
Zexi Li
6dbc64e830 Merge pull request #11156 from ioito/automated-cherry-pick-of-#11154-upstream-release-3.6
Automated cherry pick of #11154: fix(region): avoid azure secgroup sync removed
2021-05-19 17:41:25 +08:00
Qu Xuan
66a4905658 fix(region): avoid azure secgroup sync removed 2021-05-19 15:58:16 +08:00
Zexi Li
675ec19689 Merge pull request #11150 from rainzm/ansibleserver/optimization
feat(ansible): add rolePublic and timeout options
2021-05-19 15:23:37 +08:00
Zexi Li
262b934d06 Merge pull request #11145 from ioito/automated-cherry-pick-of-#10586-upstream-release-3.6
Automated cherry pick of #10586: fix: secgroup cache policy
2021-05-19 15:22:57 +08:00
Zexi Li
7c14032fbf Merge pull request #11141 from tb365/automated-cherry-pick-of-#11139-upstream-release-3.6
Automated cherry pick of #11139: fix(region): ctyun delete secgroup fix
2021-05-19 15:22:22 +08:00
rainzm
bad342f780 feat(ansible): add rolePublic and timeout options 2021-05-19 11:32:49 +08:00
Qu Xuan
43ca3f3255 fix: secgroup cache policy 2021-05-18 17:25:33 +08:00
Zexi Li
6969c21688 Merge pull request #11144 from zexi/automated-cherry-pick-of-#11142-upstream-release-3.6
Automated cherry pick of #11142: fix(glance): make image is_standard updatable
2021-05-18 17:18:37 +08:00
Zexi Li
4a7b6f9418 fix(glance): make image is_standard updatable 2021-05-18 16:43:52 +08:00
TangBin
e61bf0ec71 fix(region): ctyun delete secgroup fix 2021-05-18 16:21:40 +08:00
Zexi Li
99186b3851 Merge pull request #11136 from ioito/automated-cherry-pick-of-#11134-upstream-release-3.6
Automated cherry pick of #11134: fix(cloudid): clouduser use default domain
2021-05-18 15:56:47 +08:00
Qu Xuan
7ccdb1a49a fix(cloudid): clouduser use default domain 2021-05-18 15:20:16 +08:00
Zexi Li
3d4fc7a9fa Merge pull request #11128 from rainzm/automated-cherry-pick-of-#11126-upstream-release-3.6
Automated cherry pick of #11126: fix(region): check whether the disks of the instance snapshot is empty when creating vm
2021-05-17 22:36:26 +08:00
rainzm
9a28d0944a fix(region): check whether the disks of the instance snapshot is empty when creating vm 2021-05-17 17:28:16 +08:00
Zexi Li
5ac6f95823 Merge pull request #11103 from ioito/automated-cherry-pick-of-#11101-upstream-release-3.6
Automated cherry pick of #11101: fix(region): optimized server sku sku
2021-05-17 10:08:23 +08:00
Zexi Li
711341fd2a Merge pull request #11120 from rainzm/automated-cherry-pick-of-#11116-upstream-release-3.6
Automated cherry pick of #11116: webhook fix
2021-05-17 10:07:48 +08:00
Zexi Li
665ce115da Merge pull request #11109 from rainzm/automated-cherry-pick-of-#11107-upstream-release-3.6
Automated cherry pick of #11107: fix(esxiagent): make the copied disk type as thin
2021-05-17 10:07:07 +08:00
Zexi Li
6333fdba65 Merge pull request #11125 from rainzm/automated-cherry-pick-of-#11121-upstream-release-3.6
Automated cherry pick of #11121: fix(esxiagent): execute deploy operation by default in AgentDeployGuest
2021-05-17 10:06:15 +08:00
rainzm
5f168c2831 fix(esxiagent): execute deploy operation by default in AgentDeployGuest 2021-05-17 09:55:44 +08:00
Zexi Li
416cfb776c Merge pull request #11114 from tb365/automated-cherry-pick-of-#11112-upstream-release-3.6
Automated cherry pick of #11112: fix(region): aws sync disk missing image id fix
2021-05-14 17:33:14 +08:00
rainzm
784f517c6a fix(region): send webhook when the creation task is completely completed 2021-05-14 17:23:54 +08:00
rainzm
20148fdff8 fix(region): send webhook notification when delete dbinstance 2021-05-14 17:23:54 +08:00
TangBin
86ba641ff6 fix(region): aws sync disk missing image id fix 2021-05-14 15:59:47 +08:00
rainzm
f4ddc61727 fix(esxiagent): make the copied disk type as thin
磁盘首选精简制备,但是copy disk默认是预分配,所以需要特别指定为
精简制备
2021-05-14 15:05:54 +08:00
Qu Xuan
c4dc825990 fix(region): optimized server sku sku 2021-05-13 20:58:41 +08:00
Zexi Li
85d72e029f Merge pull request #11099 from ioito/automated-cherry-pick-of-#11097-upstream-release-3.6
Automated cherry pick of #11097: fix(region): allow update sku status
2021-05-13 20:27:42 +08:00
Qu Xuan
eabcf3f370 fix(region): allow update sku status 2021-05-13 19:45:55 +08:00
Zexi Li
53fc70dfce Merge pull request #11034 from ioito/automated-cherry-pick-of-#11032-upstream-release-3.6
Automated cherry pick of #11032: fix(region): aliyun vpc endpoint
2021-05-13 18:51:50 +08:00
Zexi Li
8d123bfb72 Merge pull request #11055 from ioito/automated-cherry-pick-of-#11053-upstream-release-3.6
Automated cherry pick of #11053: fix(region): optimized sku sched clear
2021-05-13 18:50:42 +08:00
zhaoxiangchun
a729729bd3 feat(monitor): add storage monitor metric
1.增加块存储storage监控信息:
  1)增加对应翻译信息
  2)监控信息和modules.Strorages接口进行交集取值
  3)返回信息处理
2021-05-13 15:24:02 +08:00
Qu Xuan
7725e7947e fix(region): optimized sku sched clear 2021-05-13 11:07:54 +08:00
Qu Xuan
6cd1a33e63 fix(region): aliyun vpc endpoint 2021-05-12 16:28:15 +08:00
Zexi Li
6b48632ad2 Merge pull request #11045 from zexi/fix/bm-register-name
fix(baremetal): register baremetal name invalid
2021-05-12 14:52:33 +08:00
Zexi Li
bd3c6cff5f fix(baremetal): register baremetal name invalid 2021-05-12 12:52:17 +08:00
Zexi Li
a150d048a4 Merge pull request #10998 from rainzm/automated-cherry-pick-of-#10996-upstream-release-3.6
Automated cherry pick of #10996: fix(region): continue to sync the snapshots that are being created when syncing auto created snapshot
2021-05-10 12:05:49 +08:00
Zexi Li
a25267765b Merge pull request #11015 from swordqiu/automated-cherry-pick-of-#11013-upstream-release-3.6
Automated cherry pick of #11013: fix: missing yunionconf log
2021-05-10 12:00:15 +08:00
Qiu Jian
16f8b30a9b fix: missing yunionconf log 2021-05-08 21:53:40 +08:00
Zexi Li
50ccf939dd Merge pull request #11002 from ioito/automated-cherry-pick-of-#11000-upstream-release-3.6
Automated cherry pick of #11000: fix(region): wire sql fix
2021-05-08 16:10:20 +08:00
Qu Xuan
11a2696c87 fix(region): wire sql fix 2021-05-08 15:49:45 +08:00
rainzm
735e749733 fix(region): continue to sync the snapshots that are being created when syncing auto created snapshot 2021-05-08 11:10:08 +08:00
Zexi Li
dd93784606 Merge pull request #10977 from zhasm/automated-cherry-pick-of-#10975-upstream-release-3.6
Automated cherry pick of #10975: feat(arm64,build): arm 编译时,不编译 rbdcli
2021-05-06 15:13:07 +08:00
Zhang Dongliang
aebe35a853 feat(arm64,build): arm 编译时,不编译 rbdcli 2021-05-06 11:47:12 +08:00
Zexi Li
39a944d5d5 Merge pull request #10958 from ioito/automated-cherry-pick-of-#10956-upstream-release-3.6
Automated cherry pick of #10956: fix: avoid host worker is locked when image cache is deleted
2021-04-28 09:56:17 +08:00
yunion-ci-robot
dc2e87a74f Merge pull request #10961 from swordqiu/automated-cherry-pick-of-#10940-upstream-release-3.6
Automated cherry pick of #10940: Hotfix/qj import user require password
2021-04-28 09:55:28 +08:00
Qiu Jian
c3d0b0fe1f fix: require password for imported user 2021-04-28 01:14:19 +08:00
Qu Xuan
adff20026e fix: avoid host worker is locked when image cache is deleted 2021-04-27 20:38:26 +08:00
Zexi Li
d1318d10e3 Merge pull request #10943 from zexi/automated-cherry-pick-of-#10941-upstream-release-3.6
Automated cherry pick of #10941: fix(region): download cached image from source host before migrating
2021-04-27 20:10:10 +08:00
Zexi Li
92ac613717 Merge pull request #10950 from ioito/automated-cherry-pick-of-#10944-upstream-release-3.6
Automated cherry pick of #10944: fix(region): tag list key case insensitive
2021-04-27 17:21:15 +08:00
Zexi Li
243953ba6a fix(region): download cached image from source host before migrating 2021-04-27 17:14:53 +08:00
Qu Xuan
1dc421a6db fix(region): tag list key case insensitive 2021-04-27 11:58:30 +08:00
Zexi Li
64e1116b32 Merge pull request #10939 from swordqiu/automated-cherry-pick-of-#10937-upstream-release-3.6
Automated cherry pick of #10937: fix(baremetal,esxiagent): no cloudroot user initialized
2021-04-27 10:17:24 +08:00
Zexi Li
c8073bdd75 Merge pull request #10936 from swordqiu/automated-cherry-pick-of-#10934-upstream-release-3.6
Automated cherry pick of #10934: fix(region): add all.servers.any_pool/all.hosts.any_pool metrics
2021-04-27 10:16:30 +08:00
Qiu Jian
da585a7b35 fix(baremetal,esxiagent): no cloudroot user initialized 2021-04-27 02:00:32 +08:00
Qiu Jian
da0a7c7b6e fix(region): add all.servers.any_pool/all.hosts.any_pool metrics 2021-04-27 01:49:58 +08:00
Zexi Li
37aa862950 Merge pull request #10924 from ioito/automated-cherry-pick-of-#10922-upstream-release-3.6
Automated cherry pick of #10922: fix(keystone): tag list for keystone service
2021-04-26 19:11:02 +08:00
Zexi Li
e55220cd11 Merge pull request #10930 from ioito/automated-cherry-pick-of-#10928-upstream-release-3.6
Automated cherry pick of #10928: fix(region): account arrears
2021-04-26 19:08:25 +08:00
Qu Xuan
9dfb23c281 fix(region): account arrears 2021-04-26 18:03:15 +08:00
Qu Xuan
8504d364ff fix(keystone): tag list for keystone service 2021-04-26 11:40:49 +08:00
Zexi Li
6aebdcec1f Merge pull request #10908 from rainzm/automated-cherry-pick-of-#10906-upstream-release-3.6
Automated cherry pick of #10906: fix(region): use special localtask to run time-consuming provider synchronization task
2021-04-23 17:39:22 +08:00
rainzm
aa539bff9e fix(region): use special localtask to run time-consuming provider synchronization task
CloudProviderSyncInfoTask will local cloudprovider. Make locaktask run
time-consuming task can avoid holding locks for a long time.
2021-04-23 16:50:04 +08:00
Zexi Li
4a59e25772 Merge pull request #10873 from rainzm/tk/preparenets
Support direct detection and creation of network for vmware
2021-04-22 21:10:25 +08:00
Zexi Li
f68601d1b9 Merge pull request #10895 from rainzm/automated-cherry-pick-of-#10893-upstream-release-3.6
Automated cherry pick of #10893: fix(region): allow owner to operate snapshotpolicy cache
2021-04-22 21:09:42 +08:00
Zexi Li
2eeecf9e68 Merge pull request #10899 from rainzm/automated-cherry-pick-of-#10897-upstream-release-3.6
Automated cherry pick of #10897: fix(region): make SScheduledTaskLabel implement IJointModelManager
2021-04-22 21:08:29 +08:00
rainzm
75a007ea19 fix(region): make SScheduledTaskLabel implement IJointModelManager 2021-04-22 18:21:37 +08:00
rainzm
f3ae127f2c feat(region): support to specify zone for the created wire 2021-04-22 17:58:00 +08:00
rainzm
b95b553b9b fix(region): allow owner to operate snapshotpolicy cache 2021-04-22 17:39:16 +08:00
Zexi Li
7d1f968044 Merge pull request #10890 from ioito/automated-cherry-pick-of-#10888-upstream-release-3.6
Automated cherry pick of #10888: fix(region): avoid panic when sync resources
2021-04-22 16:52:47 +08:00
Zexi Li
7ce8ef8ab0 Merge pull request #10884 from ioito/automated-cherry-pick-of-#10882-upstream-release-3.6
Automated cherry pick of #10882: fix(common): add debug info for lock
2021-04-22 16:51:39 +08:00
Qu Xuan
7c90d219b3 fix(region): avoid panic when sync resources 2021-04-22 16:29:41 +08:00
Qu Xuan
91141d6432 fix(common): add debug info for lock 2021-04-22 16:10:30 +08:00
Zexi Li
0e5459c669 Merge pull request #10869 from ioito/automated-cherry-pick-of-#10867-upstream-release-3.6
Automated cherry pick of #10867: fix(region): avoid network create failed when vpc is ok but wire not sync
2021-04-22 10:24:26 +08:00
Zexi Li
fc61c093e3 Merge pull request #10880 from ioito/automated-cherry-pick-of-#10878-upstream-release-3.6
Automated cherry pick of #10878: fix(region): add egress_mbps params for lb
2021-04-22 10:23:39 +08:00
rainzm
b595f59ef8 fix(region): Refuse to recommend the corresponding network for the ip that crosses the limit 2021-04-22 09:59:36 +08:00
rainzm
07292089fa feat(region): support creating a network with a native vmware network name 2021-04-22 09:59:33 +08:00
Qu Xuan
df79388ded fix(region): add egress_mbps params for lb 2021-04-21 21:46:06 +08:00
Zexi Li
c84dd96fff Merge pull request #10865 from rainzm/automated-cherry-pick-of-#10863-upstream-release-3.6
Automated cherry pick of #10863: fix(region): make cloudprovider sync worker configurable
2021-04-21 15:30:24 +08:00
Qu Xuan
cfef1fe2a3 fix(region): avoid network create failed when vpc is ok but wire not sync 2021-04-21 14:52:52 +08:00
rainzm
46517ebd13 fix(region): make cloudprovider sync worker configurable
这个参数意味着,同时允许多少个 provider 来把自己同步的 region 任务放进后
面的队列。
进一步说,配置数量之外的 provider 必须等待前面的 provider 同步完所有的 region
之后,才有机会开始同步自己的region。
此限制的必要性不高,所以默认值设置比较大,为"10"。
2021-04-21 12:24:01 +08:00
Zexi Li
7093cd6db2 Merge pull request #10836 from zexi/automated-cherry-pick-of-#10833-upstream-release-3.6
Automated cherry pick of #10833: fix(region): fetch cached image from glance by default
2021-04-21 11:19:20 +08:00
Zexi Li
71f0b9e2df Merge pull request #10857 from swordqiu/automated-cherry-pick-of-#10855-upstream-release-3.6
Automated cherry pick of #10855: fix(baremetal): baremetal ipmi probe reset link up state
2021-04-21 10:12:55 +08:00
Zexi Li
aca33fe970 Merge pull request #10853 from rainzm/automated-cherry-pick-of-#10851-upstream-release-3.6
Automated cherry pick of #10851: fix(region): avoid using LocalTaskWorker in time-consuming synchronization of cloudaccount
2021-04-21 10:09:48 +08:00
Qiu Jian
906a591f00 fix(baremetal): baremetal ipmi probe reset link up state 2021-04-20 21:38:02 +08:00
Zexi Li
38f3dceeb1 Merge pull request #10847 from ioito/automated-cherry-pick-of-#10845-upstream-release-3.6
Automated cherry pick of #10845: fix(region): optimized vm account name code
2021-04-20 20:15:23 +08:00
rainzm
c0ba43e5f1 fix(region): avoid using LocalTaskworker in time-consuming synchronization of cloudaccount 2021-04-20 19:58:42 +08:00
Zexi Li
b281cf7137 Merge pull request #10841 from ioito/automated-cherry-pick-of-#10839-upstream-release-3.6
Automated cherry pick of #10839: fix(region): avoid panic when sync aliyun networks
2021-04-20 18:51:27 +08:00
Zexi Li
a11c14dfce Merge pull request #10831 from ioito/automated-cherry-pick-of-#10829-upstream-release-3.6
Automated cherry pick of #10829: fix(region): vm list order by disk size
2021-04-20 18:49:33 +08:00
Zexi Li
0e15b63b78 Merge pull request #10819 from rainzm/automated-cherry-pick-of-#10817-upstream-release-3.6
Automated cherry pick of #10817: fix(esxi): prevent fake template and real template from duplication
2021-04-20 18:45:54 +08:00
Qu Xuan
824fc247a7 fix(region): optimized vm account name code 2021-04-20 18:37:09 +08:00
Qu Xuan
e1c1c0b842 fix(region): avoid panic when sync aliyun networks 2021-04-20 17:55:33 +08:00
Zexi Li
3adae60e23 fix(region): fetch cached image from glance by default 2021-04-20 17:52:50 +08:00
Zexi Li
62b78fd43c Merge pull request #10827 from ioito/automated-cherry-pick-of-#10825-upstream-release-3.6
Automated cherry pick of #10825: fix(region): avoid assign vm ip addr not effect
2021-04-20 17:16:42 +08:00
Qu Xuan
09f44d79a4 fix(region): vm list order by disk size 2021-04-20 16:53:16 +08:00
Qu Xuan
e82392107f fix(region): avoid assign vm ip addr not effect 2021-04-20 16:30:50 +08:00
rainzm
ed676427d2 fix(esxi): prevent fake template and real template from duplication 2021-04-20 10:39:31 +08:00
rainzm
e13885e22b feat(region): increase the log for debugging when syncing cloudimage 2021-04-20 10:39:31 +08:00
Zexi Li
bc159c7c55 Merge pull request #10798 from ioito/automated-cherry-pick-of-#10796-upstream-release-3.6
Automated cherry pick of #10796: fix: add region id params
2021-04-19 21:05:13 +08:00
Zexi Li
bf19d87ed1 Merge pull request #10781 from tb365/automated-cherry-pick-of-#10776-upstream-release-3.6
Automated cherry pick of #10776: fix(region): qcloud redis sync fix
2021-04-19 16:18:26 +08:00
tangbin
9464fbe6b2 fix(region): qcloud redis sync fix 2021-04-19 15:13:41 +08:00
Zexi Li
de811130ca Merge pull request #10779 from ioito/automated-cherry-pick-of-#10777-upstream-release-3.6
Automated cherry pick of #10777: fix: add options for pre allow ip add
2021-04-19 14:55:14 +08:00
Qu Xuan
951e9218ce fix: add region id params 2021-04-19 14:20:52 +08:00
Zexi Li
d79741dc21 Merge pull request #10792 from ioito/automated-cherry-pick-of-#10790-upstream-release-3.6
Automated cherry pick of #10790: fix: avoid panic
2021-04-19 13:16:07 +08:00
Qu Xuan
d43e645ed2 fix: avoid panic 2021-04-19 10:42:03 +08:00
Qu Xuan
170b373740 fix: add options for pre allow ip add 2021-04-16 17:11:17 +08:00
Zexi Li
4eaa4ee9d3 Merge pull request #10773 from ioito/automated-cherry-pick-of-#10771-upstream-release-3.6
Automated cherry pick of #10771: fix: add rbdcli commond for debug
2021-04-16 15:59:46 +08:00
Qu Xuan
2ca8d0f7e4 fix: add rbdcli commond for debug 2021-04-16 15:28:47 +08:00
Zexi Li
2ee3b2c8ab Merge pull request #10767 from yousong/automated-cherry-pick-of-#10765-upstream-release-3.6
Automated cherry pick of #10765: ansibleserver: wait zombie subprocesses
2021-04-16 13:15:34 +08:00
Zexi Li
e1b2e2b508 Merge pull request #10752 from yousong/automated-cherry-pick-of-#10750-upstream-release-3.6
Automated cherry pick of #10750: vpcagent: ovn: fix port match condition formation
2021-04-16 10:07:11 +08:00
Zexi Li
eb4b22eaec Merge pull request #10770 from rainzm/automated-cherry-pick-of-#10763-upstream-release-3.6
Automated cherry pick of #10763: fix(region): purge instancesnapshot when purging guest
2021-04-16 10:02:52 +08:00
Yousong Zhou
42ec59e811 ansibleserver: wait zombie subprocesses 2021-04-16 09:55:58 +08:00
rainzm
a14ab9820d fix(region): purge instancesnapshot when purging guest
fix #10760
2021-04-15 20:27:13 +08:00
Yousong Zhou
94d2bc456d vpcagent: ovn: fix port match condition formation 2021-04-15 16:08:59 +08:00
Zexi Li
5cd48cec5f Merge pull request #10725 from ioito/automated-cherry-pick-of-#10723-upstream-release-3.6
Automated cherry pick of #10723: fix: aliyun lb charge type
2021-04-15 12:42:08 +08:00
Zexi Li
c039a56be1 Merge pull request #10731 from rainzm/automated-cherry-pick-of-#10729-upstream-release-3.6
Automated cherry pick of #10729: fix(esxi): correctly set the imagePath outside the if block
2021-04-15 12:41:14 +08:00
Zexi Li
c24235c137 Merge pull request #10736 from zexi/automated-cherry-pick-of-#10734-upstream-release-3.6
Automated cherry pick of #10734: fix(cloudcommon): unify OS_ARCH constants
2021-04-15 12:21:48 +08:00
Zexi Li
85f85e394d fix(cloudcommon): unify OS_ARCH constants 2021-04-15 11:06:55 +08:00
rainzm
5fdde01bea fix(esxi): correctly set the imagePath outside the if block 2021-04-14 19:04:34 +08:00
Qu Xuan
59e1534222 fix: aliyun lb charge type 2021-04-14 18:05:59 +08:00
yunion-ci-robot
f6da9ad66a Merge pull request #10721 from zexi/automated-cherry-pick-of-#10718-upstream-release-3.6
Automated cherry pick of #10718: fix(baremetal): use command timeout context replace timeout command
2021-04-14 17:56:47 +08:00
Zexi Li
b55c2f7d21 fix(baremetal): use command timeout context replace timeout command 2021-04-14 17:16:05 +08:00
Zexi Li
24e29349bf Merge pull request #10712 from zexi/automated-cherry-pick-of-#10710-upstream-release-3.6
Automated cherry pick of #10710: fix(region): decouple region and etcd service
2021-04-14 16:58:52 +08:00
Zexi Li
aa7c5f1b1a fix(region): decouple region and etcd service 2021-04-13 18:36:47 +08:00
Zexi Li
a3b1b99cc4 Merge pull request #10707 from rainzm/automated-cherry-pick-of-#10705-upstream-release-3.6
Automated cherry pick of #10705: fix(cloudcommon): use rbac authentication dedicated to the list interface in GetModelProperty
2021-04-13 16:56:13 +08:00
Zexi Li
899afd7065 Merge pull request #10704 from zexi/automated-cherry-pick-of-#10702-upstream-release-3.6
Automated cherry pick of #10702: fix(host-deployer): mkfs.ext4 add '-T largefile' option
2021-04-13 15:44:30 +08:00
rainzm
2bf31dbd3a fix(cloudcommon): use rbac authentication dedicated to the list interface in GetModelProperty 2021-04-13 14:46:24 +08:00
Zexi Li
35d8cba97f fix(host-deployer): mkfs.ext4 add '-T largefile' option 2021-04-13 11:50:14 +08:00
Zexi Li
8a1be0852d Merge pull request #10697 from rainzm/automated-cherry-pick-of-#10695-upstream-release-3.6
Automated cherry pick of #10695: feat(region): allow to update account with provider vmware
2021-04-13 10:25:52 +08:00
Zexi Li
ef29136266 Merge pull request #10700 from zexi/automated-cherry-pick-of-#10699-upstream-release-3.6
Automated cherry pick of #10699: feat(fetcherfs): make rpm and deb package
2021-04-13 10:25:07 +08:00
Zexi Li
adaa7fa2ce feat(fetcherfs): make rpm and deb package 2021-04-12 21:31:10 +08:00
rainzm
62a4bce191 feat(region): allow to update account with provider vmware 2021-04-12 15:58:54 +08:00
Zexi Li
1ecbb46e59 Merge pull request #10690 from ioito/automated-cherry-pick-of-#10688-upstream-release-3.6
Automated cherry pick of #10688: fix: actions domain filter by project doamin id
2021-04-12 13:17:11 +08:00
Zexi Li
58ca8180b6 Merge pull request #10685 from swordqiu/automated-cherry-pick-of-#10683-upstream-release-3.6
Automated cherry pick of #10683: fix(baremetal-agent): baremetal will probe status in status unknown
2021-04-12 13:16:08 +08:00
Zexi Li
08819e2201 Merge pull request #10694 from zexi/automated-cherry-pick-of-#10692-upstream-release-3.6
Automated cherry pick of #10692: fix(readme): rename OneCloud to YunionCloud
2021-04-12 13:15:59 +08:00
Zexi Li
b4f5f1a996 fix(readme): rename OneCloud to YunionCloud 2021-04-12 13:14:48 +08:00
Qu Xuan
85f6e95c18 fix: actions domain filter by project doamin id 2021-04-12 11:42:21 +08:00
Qiu Jian
8a71e73afd fix(baremetal-agent): baremetal will probe status in status unknown 2021-04-12 00:23:33 +08:00
Zexi Li
407f155df1 Merge pull request #10680 from zexi/automated-cherry-pick-of-#10678-upstream-release-3.6
Automated cherry pick of #10678: fix(host): detect ovs version
2021-04-09 17:19:54 +08:00
Zexi Li
ab0c6f1284 fix(host): detect ovs version 2021-04-09 17:01:30 +08:00
Zexi Li
99d1137805 Merge pull request #10593 from zhaoxiangchun/automated-cherry-pick-of-#10592-upstream-release-3.6
Automated cherry pick of #10592: fix(host): update host metric tags when server or host  changeowner
2021-04-08 18:13:17 +08:00
zhaoxiangchun
95a03ad58b fix(host): update host metric tags when server or host changeowner 2021-04-08 17:18:22 +08:00
Zexi Li
659022c792 Merge pull request #10621 from swordqiu/automated-cherry-pick-of-#10619-upstream-release-3.6
Automated cherry pick of #10619: fix(region): remove i18n lock and logs
2021-04-08 10:34:22 +08:00
Zexi Li
b55ac81e2a Merge pull request #10660 from swordqiu/automated-cherry-pick-of-#10658-upstream-release-3.6
Automated cherry pick of #10658: fix(region): sync baremetal desc before do ipmi probing
2021-04-08 10:14:28 +08:00
Qiu Jian
bd69dc44d7 fix(region): sync baremetal desc before do ipmi probing 2021-04-08 01:29:55 +08:00
Zexi Li
06c303c648 Merge pull request #10646 from swordqiu/automated-cherry-pick-of-#10644-upstream-release-3.6
Automated cherry pick of #10644: fix(region): allow ipmi probe in status unknown
2021-04-07 17:55:57 +08:00
Zexi Li
15fbc035ab Merge pull request #10649 from rainzm/automated-cherry-pick-of-#10647-upstream-release-3.6
Automated cherry pick of #10647: fix(region): avoid refreshing when checking the image
2021-04-07 17:37:34 +08:00
yunion-ci-robot
a25de48df9 Merge pull request #10642 from tb365/automated-cherry-pick-of-#10637-upstream-release-3.6
Automated cherry pick of #10637: fix(region): guest associate eip checking fix
2021-04-07 16:14:47 +08:00
rainzm
be065e872d fix(region): avoid refreshing when checking the image 2021-04-07 10:59:26 +08:00
Qiu Jian
4c27add0ba fix(region): allow ipmi probe in status unknown 2021-04-07 01:00:53 +08:00
tangbin
d238540dcb fix(region): guest sync eip fix 2021-04-06 18:58:44 +08:00
tangbin
fdd0bf77e6 fix(region): guest associate eip checking fix 2021-04-06 18:58:44 +08:00
Zexi Li
ab5fcdad3d Merge pull request #10635 from ioito/automated-cherry-pick-of-#10633-upstream-release-3.6
Automated cherry pick of #10633: fix: private cloud sku attached disk count
2021-04-06 17:08:42 +08:00
Qu Xuan
38d23b0739 fix: private cloud sku attached disk count 2021-04-06 15:03:26 +08:00
Zexi Li
b45811166b Merge pull request #10624 from swordqiu/automated-cherry-pick-of-#10622-upstream-release-3.6
Automated cherry pick of #10622: fix(keystone): role_assignment effective list ignore groups without user
2021-04-06 10:18:29 +08:00
Qiu Jian
2ee1af186d fix(keystone): role_assignment effective list ignore groups without user 2021-04-05 17:21:40 +08:00
Qiu Jian
14e537fc65 fix(region): remove i18n lock and logs 2021-04-05 16:40:10 +08:00
Zexi Li
f3e503e8a6 Merge pull request #10614 from swordqiu/automated-cherry-pick-of-#10612-upstream-release-3.6
Automated cherry pick of #10612: fix(region): add usage cache, speedup response
2021-04-05 00:55:29 +08:00
yunion-ci-robot
10ad815d6d Merge pull request #10618 from ioito/automated-cherry-pick-of-#10616-upstream-release-3.6
Automated cherry pick of #10616: fix(region): new aws region
2021-04-04 20:14:44 +08:00
yunion-ci-robot
01a17c952d Merge pull request #10610 from ioito/automated-cherry-pick-of-#10608-upstream-release-3.6
Automated cherry pick of #10608: fix: time sync duration
2021-04-04 20:12:46 +08:00
Qiu Jian
dcb8898c06 response scope-specific metrics 2021-04-04 20:08:37 +08:00
Qiu Jian
d7ff1314e6 fix(region): add usage cache, speedup response 2021-04-04 20:08:37 +08:00
Qu Xuan
d6a0764b29 fix: new aws region 2021-04-03 12:31:33 +08:00
Qu Xuan
e841a42143 fix: time sync duration 2021-04-02 20:55:34 +08:00
Zexi Li
c55d5d0cf2 Merge pull request #10605 from zexi/automated-cherry-pick-of-#10603-upstream-release-3.6
Automated cherry pick of #10603: fix(baremetal): sas2iru parse line
2021-04-02 20:04:01 +08:00
Zexi Li
76df031884 Merge pull request #10580 from swordqiu/automated-cherry-pick-of-#10576-upstream-release-3.6
Automated cherry pick of #10576: fix(region): allow ipmi probe when probe fail
2021-04-02 19:44:43 +08:00
Zexi Li
f46dfc6d6a Merge pull request #10583 from swordqiu/automated-cherry-pick-of-#10581-upstream-release-3.6
Automated cherry pick of #10581: fix(hostman): recycle local disk file when rebuilding root
2021-04-02 19:42:51 +08:00
Zexi Li
1fc2503812 Merge pull request #10598 from rainzm/automated-cherry-pick-of-#10595-upstream-release-3.6
Automated cherry pick of #10595: Fixes problem of Esxi Disk with iso creating
2021-04-02 19:40:17 +08:00
Zexi Li
aa9ad9fe00 fix(baremetal): sas2iru parse line 2021-04-02 19:28:54 +08:00
rainzm
4cf674992c fix(esxi): determine whether the disk is a root disk more reasonably
The order of the device is often sorted according to the size of the
key. The disk pointed to by the smallest key is not necessarily the
root disk or the first disk which often has the label of 'Hard disk 1'.
We try to find the label, if not, use the Key again to determine who
is the root disk.
2021-04-02 18:49:13 +08:00
rainzm
5565bb3064 feat(esxi): change parameters for NewDiskDev and avoid unnecessary deploy
1. The fields UnitNumber and Index should be independent
2. Avoid unnecessary deploy, such create vm with iso not image
2021-04-02 18:49:13 +08:00
rainzm
aede49450e fix(esxi): add ListPath for storage and use it to check iso
When remote iso file is used, CheckFile will failed.
2021-04-02 18:41:14 +08:00
Zexi Li
c7efbc3124 Merge pull request #10589 from swordqiu/automated-cherry-pick-of-#7047-upstream-release-3.6
Automated cherry pick of #7047: fix: adjust primary key length when sqlchemy utf8 default to utf8mb4
2021-04-02 15:10:52 +08:00
Qiu Jian
d090d76f92 fix: adjust primary key length when sqlchemy utf8 default to utf8mb4 2021-04-02 15:06:44 +08:00
Qiu Jian
1333d39c60 fix(hostman): recycle local disk file when rebuilding root 2021-04-02 02:17:04 +08:00
Qiu Jian
615cb1e331 fix(region): allow ipmi probe when probe fail 2021-04-01 22:38:54 +08:00
yunion-ci-robot
923e8ea742 Merge pull request #10570 from ioito/automated-cherry-pick-of-#10568-upstream-release-3.6
Automated cherry pick of #10568: fix: avoid listener worker leak
2021-04-01 22:35:54 +08:00
Zexi Li
50b50d57dc Merge pull request #10548 from zexi/automated-cherry-pick-of-#10546-upstream-release-3.6
Automated cherry pick of #10546: fix(host): arm vm virtio-net-pci without addr
2021-04-01 20:52:55 +08:00
Zexi Li
67a4893534 Merge pull request #10551 from swordqiu/automated-cherry-pick-of-#10549-upstream-release-3.6
Automated cherry pick of #10549: fix(image): update min_disk of iso image
2021-04-01 20:52:05 +08:00
Zexi Li
e6d8dbe4a4 Merge pull request #10554 from zhaoxiangchun/automated-cherry-pick-of-#10552-upstream-release-3.6
Automated cherry pick of #10552: fix(monitor):修复监控总览图标钻取后返回数据异常的问题
2021-04-01 20:51:08 +08:00
Zexi Li
6c3c2f76c2 Merge pull request #10559 from ioito/automated-cherry-pick-of-#10557-upstream-release-3.6
Automated cherry pick of #10557: fix: cloudaccount auto sync
2021-04-01 20:50:01 +08:00
Zexi Li
a5cd56f3d7 Merge pull request #10563 from ioito/automated-cherry-pick-of-#10561-upstream-release-3.6
Automated cherry pick of #10561: fix: vendor update
2021-04-01 20:48:57 +08:00
Zexi Li
d691775beb Merge pull request #10567 from rainzm/automated-cherry-pick-of-#10565-upstream-release-3.6
Automated cherry pick of #10565: fix(esxi): be compatible with disconnected host
2021-04-01 20:47:58 +08:00
Qu Xuan
73cda1d909 fix: vendor update 2021-04-01 17:40:48 +08:00
Qu Xuan
0c904591c0 fix: avoid listener worker leak 2021-04-01 17:27:05 +08:00
rainzm
5e8549b30f fix(esxi): be compatible with disconnected host 2021-04-01 17:22:23 +08:00
Qu Xuan
1c1fab0ef6 fix: cloudaccount auto sync 2021-04-01 16:18:56 +08:00
zhaoxiangchun
88d1f93e31 fix(monitor):修复监控总览图标钻取后返回数据异常的问题 2021-04-01 10:05:36 +08:00
Qiu Jian
65748b374c fix(image): update min_disk of iso image 2021-03-31 23:25:58 +08:00
Zexi Li
4c83b1af48 fix(host): arm vm virtio-net-pci without addr 2021-03-31 18:53:39 +08:00
Yousong Zhou
f29d07dbd4 Merge pull request #10545 from zhaoxiangchun/automated-cherry-pick-of-#10543-upstream-release-3.6
Automated cherry pick of #10543: fix(host): modification of netio collection field  of local virtual machine
2021-03-31 15:17:12 +08:00
yunion-ci-robot
420e912c65 Merge pull request #10542 from ioito/automated-cherry-pick-of-#9108-upstream-release-3.6
Automated cherry pick of #9108: Hotfix/qx guest delete
2021-03-31 15:13:40 +08:00
yunion-ci-robot
35d15a23c6 Merge pull request #10540 from swordqiu/automated-cherry-pick-of-#10538-upstream-release-3.6
Automated cherry pick of #10538: fix(region): add more usage metrics, e.g. ports.eip, servers.last_week, pending_delete_servers.last_week
2021-03-31 15:12:42 +08:00
Qu Xuan
44ed684930 feat(region): disks and eip delete with server 2021-03-31 14:45:12 +08:00
zhaoxiangchun
2889279284 fix(host): modification of netio collection field of local virtual machine
1.本地虚拟机指标保存时field存在转换关系
bits_recv
bits_sent
2021-03-31 10:32:26 +08:00
Qu Xuan
1b1cccab94 feat(region): add server delete options 2021-03-31 10:19:05 +08:00
Qiu Jian
5261b52b84 fix(region): add more usage metrics, e.g. ports.eip, servers.last_week, pending_delete_servers.last_week 2021-03-31 03:39:14 +08:00
Zexi Li
6068ea04a2 Merge pull request #10535 from zhaoxiangchun/automated-cherry-pick-of-#10534-upstream-release-3.6
Automated cherry pick of #10534: fix(monitor): alertQuery fix
2021-03-30 19:44:14 +08:00
zhaoxiangchun
d7380f3ecc fix(monitor): alertQuery fix
1.兼容meter相关的监控数据查询
2.根据groupby
  确定resType,从而确定云管中对应的资源,然后进行属性填充,解决资源属性修改的问题
2021-03-30 18:22:24 +08:00
Zexi Li
01eeff06a1 Merge pull request #10533 from swordqiu/automated-cherry-pick-of-#10531-upstream-release-3.6
Automated cherry pick of #10531: fix(region): show storage capacity to project users
2021-03-30 15:53:58 +08:00
Qiu Jian
45d219ac51 fix(region): show storage capacity to project users 2021-03-30 12:29:29 +08:00
Zexi Li
8cc8d101b5 Merge pull request #10518 from zhaoxiangchun/automated-cherry-pick-of-#10516-upstream-release-3.6
Automated cherry pick of #10516: fix(monitor): filter alertquery result according to onecloud resources
2021-03-29 17:15:59 +08:00
zhaoxiangchun
2df45f0a3c fix(monitor): filter alertquery result according to onecloud resources
1.排除已经删除的资源
2.对已经删除的资源不再持续报警
2021-03-29 16:50:16 +08:00
Zexi Li
d397ac8608 Merge pull request #10523 from ioito/automated-cherry-pick-of-#10521-upstream-release-3.6
Automated cherry pick of #10521: fix: account auto sync time
2021-03-29 12:13:37 +08:00
Qu Xuan
71171ed0d9 fix: account auto sync time 2021-03-29 11:22:54 +08:00
yunion-ci-robot
c399153f14 Merge pull request #10512 from ioito/automated-cherry-pick-of-#10510-upstream-release-3.6
Automated cherry pick of #10510: fix: sku zone
2021-03-26 17:27:53 +08:00
Qu Xuan
2f7ee9fc79 fix: sku zone 2021-03-26 16:45:54 +08:00
Zexi Li
630284c2ae Merge pull request #10501 from yousong/automated-cherry-pick-of-#10499-upstream-release-3.6
Automated cherry pick of #10499: vpcagent: ovn: fix qos for eip upload
2021-03-26 15:18:13 +08:00
Zexi Li
b1a4507325 Merge pull request #10507 from swordqiu/automated-cherry-pick-of-#10505-upstream-release-3.6
Automated cherry pick of #10505: fix(baremetal): megactl driver fail to find device by key
2021-03-26 15:16:49 +08:00
Yousong Zhou
5b21958587 vpcagent: ovn: fix qos for eip upload 2021-03-26 10:28:10 +08:00
Qiu Jian
be71185b17 fix(baremetal): megactl driver fail to find device by key 2021-03-26 03:20:29 +08:00
Zexi Li
5981783ea4 Merge pull request #10496 from zhaoxiangchun/automated-cherry-pick-of-#10494-upstream-release-3.6
Automated cherry pick of #10494: fix(monitor): modify onecloud replacement code
2021-03-24 19:34:56 +08:00
zhaoxiangchun
04f4d036cf fix(monitor): modify onecloud replacement code
1.增加copyright api查询逻辑
2021-03-24 18:53:00 +08:00
Zexi Li
c615675ad9 Merge pull request #10485 from tb365/automated-cherry-pick-of-#10483-upstream-release-3.6
Automated cherry pick of #10483: (fix) region: qcloud elb https listener create fix
2021-03-24 18:51:46 +08:00
Zexi Li
4735edff60 Merge pull request #10489 from ioito/automated-cherry-pick-of-#10487-upstream-release-3.6
Automated cherry pick of #10487: fix: remove qcloud region and zone prefix
2021-03-24 12:22:28 +08:00
Zexi Li
4e099b72ad Merge pull request #10492 from zexi/automated-cherry-pick-of-#10491-upstream-release-3.6
Automated cherry pick of #10491: fix(build): build telegraf-raid-plugin
2021-03-24 12:21:41 +08:00
Zexi Li
14bd5def5d fix(build): build telegraf-raid-plugin 2021-03-24 12:20:06 +08:00
Qu Xuan
0ee42cffea fix: remove qcloud region and zone prefix 2021-03-23 17:44:36 +08:00
tangbin
08b74642f8 (fix) region: qcloud elb https listener create fix 2021-03-23 15:48:41 +08:00
Zexi Li
c6433d0a09 Merge pull request #10476 from yousong/automated-cherry-pick-of-#10474-upstream-release-3.6
Automated cherry pick of #10474: Bugfix/yousong guestnic
2021-03-23 10:39:44 +08:00
Zexi Li
db20a5e334 Merge pull request #10479 from zexi/hotfix/resize-disk
fix(host): ignore parted resize disk unknown partition table error
2021-03-23 10:38:20 +08:00
Zexi Li
546f2fcfae fix(host): ignore parted resize disk unknown partition table error 2021-03-23 09:51:02 +08:00
Yousong Zhou
b4a4cd61d9 region: fix setting nic index
When a guest has two nics, changing ip address of the 1st will cause
the new nic after detach then attach to be "1", colliding with the
original nic of index 1
2021-03-22 19:34:22 +08:00
Yousong Zhou
02022c4c29 region: attachnetwork: allow attach by network name
isValidNetworkInfo allows names.  Otherwise the code will panic when
a named was passed and nil was returned by the fetch call
2021-03-22 19:34:22 +08:00
Zexi Li
4377337a4a Merge pull request #10470 from swordqiu/automated-cherry-pick-of-#10468-upstream-release-3.6
Automated cherry pick of #10468: fix(log): add filters to baremetal event logs
2021-03-22 16:09:18 +08:00
Qiu Jian
b9e0c22b2a fix(log): add filters to baremetal event logs 2021-03-22 10:53:45 +08:00
Zexi Li
d8a1e35571 Merge pull request #10464 from ioito/automated-cherry-pick-of-#10462-upstream-release-3.6
Automated cherry pick of #10462: fix: add index for image_type
2021-03-22 10:45:25 +08:00
Zexi Li
13f6a0907f Merge pull request #10454 from ioito/automated-cherry-pick-of-#10452-upstream-release-3.6
Automated cherry pick of #10452: fix: avoid panic when use idc vpc
2021-03-22 10:40:43 +08:00
Zexi Li
99dc612991 Merge pull request #10457 from swordqiu/automated-cherry-pick-of-#10455-upstream-release-3.6
Automated cherry pick of #10455: fix(keystone): allow joint projects across domains by default
2021-03-22 10:39:23 +08:00
Qu Xuan
c5c00f38ba fix: add index for image_type 2021-03-19 14:29:42 +08:00
Zexi Li
b25043be1b Merge pull request #10459 from rainzm/webhook/more1
Notify webhook
2021-03-19 14:27:36 +08:00
Qiu Jian
7de3adac3a fix(keystone): allow joint projects across domains by default 2021-03-19 00:00:42 +08:00
Qu Xuan
be2e979c94 fix: avoid panic when use idc vpc 2021-03-18 21:04:52 +08:00
rainzm
33cb189cb1 feat(region): send webhook message when changing ipaddr 2021-03-18 17:48:01 +08:00
rainzm
10f0e0c8bb fix(region): Compatible with messages that have no recipient and contact information
such as robots
2021-03-18 17:48:01 +08:00
Zexi Li
686d314fa5 Merge pull request #10446 from zexi/feature/host-arm-support
feat(host): adjust qemu args to support aarch64
2021-03-18 15:22:33 +08:00
Zexi Li
ab00f01403 feat(host): adjust qemu args to support aarch64 2021-03-18 14:57:27 +08:00
Zexi Li
fc736bc4ca Merge pull request #10439 from swordqiu/automated-cherry-pick-of-#10437-upstream-release-3.6
Automated cherry pick of #10437: fix(region): scoped policy filter by project id
2021-03-18 10:24:00 +08:00
Zexi Li
a31e8734d0 Merge pull request #10443 from swordqiu/automated-cherry-pick-of-#10441-upstream-release-3.6
Automated cherry pick of #10441: fix(region): including domain info in project-role results
2021-03-18 10:23:30 +08:00
Zexi Li
53494b7764 Merge pull request #10435 from ioito/automated-cherry-pick-of-#10433-upstream-release-3.6
Automated cherry pick of #10433: fix: avoid stop or start vm failed
2021-03-18 10:17:33 +08:00
Qiu Jian
538097ef7c fix(region): including domain info in project-role results 2021-03-18 00:33:36 +08:00
Qiu Jian
6afe83e479 fix(region): scoped policy filter by project id 2021-03-17 23:02:08 +08:00
Qu Xuan
a7b3b1cf46 fix: avoid stop or start vm failed 2021-03-17 20:03:19 +08:00
Zexi Li
3cea602ba4 Merge pull request #10427 from ioito/automated-cherry-pick-of-#10425-upstream-release-3.6
Automated cherry pick of #10425: fix: change rds config skip zone check
2021-03-17 11:43:19 +08:00
Zexi Li
6499250b15 Merge pull request #10419 from zhaoxiangchun/automated-cherry-pick-of-#10418-upstream-release-3.6
Automated cherry pick of #10418: fix(telegraf): megactl raid  add rebuild status
2021-03-15 18:45:57 +08:00
Zexi Li
ace1d353b9 Merge pull request #10423 from ioito/automated-cherry-pick-of-#10421-upstream-release-3.6
Automated cherry pick of #10421: fix: qcloud bucket refer
2021-03-15 17:53:26 +08:00
Qu Xuan
0285e77352 fix: change rds config skip zone check 2021-03-15 17:42:56 +08:00
Qu Xuan
cdd209b59a fix: qcloud bucket refer 2021-03-15 15:47:35 +08:00
zhaoxiangchun
9da39105fb fix(telegraf): megactl raid add rebuild status 2021-03-15 10:04:25 +08:00
yunion-ci-robot
cd4cddc34c Merge pull request #10416 from ioito/automated-cherry-pick-of-#10414-upstream-release-3.6
Automated cherry pick of #10414: fix: sync cloud tags when set tags
2021-03-14 01:25:31 +08:00
Qu Xuan
9d1c0dbd95 fix: sync cloud tags when set tags 2021-03-13 20:48:39 +08:00
yunion-ci-robot
006ce9dc87 Merge pull request #10412 from ioito/automated-cherry-pick-of-#10410-upstream-release-3.6
Automated cherry pick of #10410: fix: skip zone check when rds change config
2021-03-13 19:22:23 +08:00
yunion-ci-robot
6c9c8d25e9 Merge pull request #10407 from ioito/hotfix/qx-bucket-metadata
fix: tag sync
2021-03-13 19:02:25 +08:00
Qu Xuan
32623f7c73 fix: skip zone check when rds change config 2021-03-13 19:00:40 +08:00
Qu Xuan
0b29451319 fix: tag sync 2021-03-13 17:37:11 +08:00
Zexi Li
aae4fae0c1 Merge pull request #10404 from swordqiu/automated-cherry-pick-of-#10402-upstream-release-3.6
Automated cherry pick of #10402: fix(region): cloud provider filter by domain_id ignore private case
2021-03-12 21:17:19 +08:00
Qiu Jian
0f9f2f6ee5 fix(region): cloud provider filter by domain_id ignore private case 2021-03-12 20:15:04 +08:00
Zexi Li
5cfeffcd70 Merge pull request #10389 from swordqiu/automated-cherry-pick-of-#10387-upstream-release-3.6
Automated cherry pick of #10387: fix(region): fail to update network gateway
2021-03-12 17:38:04 +08:00
Zexi Li
6b7355a9ce Merge pull request #10393 from ioito/automated-cherry-pick-of-#10391-upstream-release-3.6
Automated cherry pick of #10391: fix: sync new project for azure resource group
2021-03-12 17:35:28 +08:00
Zexi Li
f531c60e1d Merge pull request #10397 from rainzm/automated-cherry-pick-of-#10395-upstream-release-3.6
Automated cherry pick of #10395: feat(esxi): update guest os info
2021-03-12 17:34:03 +08:00
rainzm
bfb01f5630 feat(esxi): update guest os info 2021-03-11 16:44:25 +08:00
Qu Xuan
d7a7388431 fix: sync new project for azure resource group 2021-03-11 15:02:27 +08:00
Qiu Jian
112e7aac84 fix(region): fail to update network gateway 2021-03-11 14:54:26 +08:00
Zexi Li
f9d1d28d85 Merge pull request #10384 from swordqiu/automated-cherry-pick-of-#10382-upstream-release-3.6
Automated cherry pick of #10382: fix(region): cloud provider filter by domain
2021-03-11 11:39:19 +08:00
Zexi Li
5d7b73f21e Merge pull request #10373 from rainzm/automated-cherry-pick-of-#10365-upstream-release-3.6
Automated cherry pick of #10365: feat(region): filter schedtags from cloudaccount_id
2021-03-11 11:37:49 +08:00
yunion-ci-robot
2b2b502d64 Merge pull request #10376 from tb365/automated-cherry-pick-of-#10357-upstream-release-3.6
Automated cherry pick of #10357: qcloud redis support multi zones
2021-03-11 10:22:24 +08:00
Qiu Jian
22486c31bd fix(region): cloud provider filter by domain 2021-03-11 01:08:23 +08:00
rainzm
9d3c44fe91 feat(region): filter schedtags from cloudprovider_id 2021-03-10 19:45:15 +08:00
tangbin
5145f1250b fix(region) qcloud multi zone instance sync account fix 2021-03-10 19:11:58 +08:00
tangbin
acd7765b33 feat(region) qcloud redis support multi zones 2021-03-10 19:11:58 +08:00
Zexi Li
8636a26418 Merge pull request #10353 from swordqiu/automated-cherry-pick-of-#10351-upstream-release-3.6
Automated cherry pick of #10351: fix(region): network eip stats not correct
2021-03-10 16:30:58 +08:00
Zexi Li
84664f77cf Merge pull request #10369 from zexi/automated-cherry-pick-of-#10367-upstream-release-3.6
Automated cherry pick of #10367: fix(build): DOCKER_CLI_EXPERIMENTAL=enabled
2021-03-10 16:29:05 +08:00
Zexi Li
2d53b542d3 fix(build): DOCKER_CLI_EXPERIMENTAL=enabled 2021-03-10 16:28:02 +08:00
Zexi Li
e63a207c29 Merge pull request #10363 from swordqiu/automated-cherry-pick-of-#10361-upstream-release-3.6
Automated cherry pick of #10361: fix(keystone): update default role associated policy name
2021-03-09 18:06:43 +08:00
Qiu Jian
845d9a1dc0 fix(keystone): update default role associated policy name 2021-03-09 17:50:34 +08:00
Zexi Li
de6ce2cd77 Merge pull request #10360 from zexi/fix/arm64-build
fix(build): build arm64 image
2021-03-09 17:43:22 +08:00
Zexi Li
4032ae669d fix(build): build arm64 image 2021-03-09 17:42:15 +08:00
Zexi Li
0d436306ad Merge pull request #10355 from zexi/automated-cherry-pick-of-#10189-upstream-release-3.6
Automated cherry pick of #10189: host 编译跨平台兼容
2021-03-09 10:24:53 +08:00
Zhang Dongliang
ec3909af50 host 编译跨平台兼容 2021-03-09 10:24:00 +08:00
Qiu Jian
d443279986 fix(region): network eip stats not correct 2021-03-09 02:48:32 +08:00
yunion-ci-robot
9088996b32 Merge pull request #10347 from zexi/automated-cherry-pick-of-#10345-upstream-release-3.6
Automated cherry pick of #10345: feat(build): make multi arch manifest docker image
2021-03-08 20:20:05 +08:00
Zexi Li
9ac72ed678 Merge pull request #10282 from rainzm/vmware/net_boundary
feat(region): increase the network number and host number limit when recommending the network
2021-03-08 15:06:29 +08:00
Zexi Li
72ee6ff899 Merge pull request #10342 from yousong/automated-cherry-pick-of-#10340-upstream-release-3.6
Automated cherry pick of #10340: etcd: fix "fatal error: concurrent map writes"
2021-03-08 14:18:54 +08:00
Zexi Li
49a7ab8670 Merge pull request #10331 from ioito/automated-cherry-pick-of-#10329-upstream-release-3.6
Automated cherry pick of #10329: fix: optimized bucket tag
2021-03-08 14:13:46 +08:00
Zexi Li
55431b87bb feat(build): make multi arch manifest docker image 2021-03-08 12:53:37 +08:00
Yousong Zhou
bc50f09483 etcd: fix "fatal error: concurrent map writes"
Trace

	goroutine 1270434 [running]:
	runtime.throw(0x4b0cc5e, 0x15)
		/home/yousong/.usr/go/goroot-1.15.6/src/runtime/panic.go:1116 +0x72 fp=0xc0011151f8 sp=0xc0011151c8 pc=0x439292
	runtime.mapdelete_faststr(0x40876e0, 0xc0006a54a0, 0xc001e84200, 0x3e)
		/home/yousong/.usr/go/goroot-1.15.6/src/runtime/map_faststr.go:377 +0x34c fp=0xc001115260 sp=0xc0011151f8 pc=0x41664c
	yunion.io/x/onecloud/pkg/cloudcommon/etcd.(*SEtcdClient).Unwatch(0xc0003130e0, 0xc001e84200, 0x3e)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/cloudcommon/etcd/etcd.go:353 +0x134 fp=0xc0011152d0 sp=0xc001115260 pc=0x10031f4
	yunion.io/x/onecloud/pkg/compute/models.(*SHostHealthChecker).WatchHost(0xc000c222a0, 0x5229ca0, 0xc000122000, 0xc001fbc4e0, 0x24)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/host_health.go:149 +0xd5 fp=0xc001115338 sp=0xc0011152d0 pc=0x1816395
	yunion.io/x/onecloud/pkg/compute/models.(*SHost).PerformOnline(0xc001fd8400, 0x5229d20, 0xc001c4d440, 0x52a0c60, 0xc000957c40, 0x5298900, 0xc001629aa0, 0x5298900, 0xc001629ae0, 0xc000957c40, ...)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/hosts.go:3829 +0x227 fp=0xc0011153a0 sp=0xc001115338 pc=0x185a387
	yunion.io/x/onecloud/pkg/compute/models.(*SHost).PerformPing(0xc001fd8400, 0x5229d20, 0xc001c4d440, 0x52a0c60, 0xc000957c40, 0x5298900, 0xc001629aa0, 0x5298900, 0xc001629ae0, 0x0, ...)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/hosts.go:3891 +0xbd fp=0xc001115430 sp=0xc0011153a0 pc=0x185acbd
2021-03-08 09:56:07 +08:00
yunion-ci-robot
30acf67d5c Merge pull request #10338 from rainzm/automated-cherry-pick-of-#10336-upstream-release-3.6
Automated cherry pick of #10336: fix(notify): enable filter of contact type 'email' and 'mobile'
2021-03-06 10:57:27 +08:00
rainzm
a2faac7692 fix(notify): enable filter of contact type 'email' and 'mobile' 2021-03-06 03:02:20 +08:00
Qu Xuan
5910ac16cd fix: optimized bucket tag 2021-03-05 15:36:34 +08:00
rainzm
4f462d614c feat(region): increase the network number and host number limit when recommending the network 2021-03-05 11:14:30 +08:00
Zexi Li
ef0387a023 Merge pull request #10326 from tb365/automated-cherry-pick-of-#10322-upstream-release-3.6
Automated cherry pick of #10322: copyright update brand_cn&brand_en fix
2021-03-05 10:15:50 +08:00
tangbin
31fce9fb78 copyright update brand_cn&brand_en fix 2021-03-05 10:01:23 +08:00
Zexi Li
f774e23248 Merge pull request #10318 from rainzm/automated-cherry-pick-of-#10316-upstream-release-3.6
Automated cherry pick of #10316: fix(region): check whether guest is nil
2021-03-04 19:39:06 +08:00
rainzm
024c14d962 fix(region): check whether guest is nil 2021-03-04 17:55:43 +08:00
Zexi Li
b3ac1d0641 Merge pull request #10308 from tb365/automated-cherry-pick-of-#10305-upstream-release-3.6
Automated cherry pick of #10305: infos copyright add brand_en&brand_cn
2021-03-04 15:25:53 +08:00
tangbin
695139c04e infos copyright add brand_en&brand_cn 2021-03-04 11:20:53 +08:00
Zexi Li
26802d4427 Merge pull request #10294 from zhaoxiangchun/automated-cherry-pick-of-#10292-upstream-release-3.6
Automated cherry pick of #10292: fix(monitor): fix monitor export err
2021-03-02 14:29:51 +08:00
zhaoxiangchun
b46f95ae79 fix(monitor): fix monitor export err
1.修复监控导出报错
2.db_dispatcher.ListItems 方法中对exportKeys的处理新增了一个方法
2021-03-02 11:58:06 +08:00
Zexi Li
7e538b255c Merge pull request #10291 from swordqiu/automated-cherry-pick-of-#10289-upstream-release-3.6
Automated cherry pick of #10289: fix(keystone): adjust default system policy names
2021-03-02 10:17:03 +08:00
yunion-ci-robot
9db72f0722 Merge pull request #10288 from zexi/automated-cherry-pick-of-#10286-upstream-release-3.6
Automated cherry pick of #10286: fix(hostdeployer): windows rootfs umount leak
2021-03-02 10:11:21 +08:00
Zexi Li
cc1b6a2d60 fix(hostdeployer): windows rootfs umount leak 2021-03-02 09:52:49 +08:00
Qiu Jian
1411961035 fix(keystone): adjust default system policy names 2021-03-01 21:30:56 +08:00
Zexi Li
33c979d227 Merge pull request #10280 from swordqiu/automated-cherry-pick-of-#10278-upstream-release-3.6
Automated cherry pick of #10278: fix(baremetal-agent): baremetal fail to stop due to power off soft failed
2021-03-01 10:13:39 +08:00
Qiu Jian
a3621b4707 fix(baremetal-agent): baremetal fail to stop due to power off soft failed 2021-02-27 21:50:50 +08:00
Zexi Li
0bece9d948 Merge pull request #10272 from ioito/automated-cherry-pick-of-#10270-upstream-release-3.6
Automated cherry pick of #10270: fix(cloudevent): optimized cloudevent sql
2021-02-25 11:36:00 +08:00
Qu Xuan
14dcb91758 fix(cloudevent): optimized cloudevent sql 2021-02-25 11:34:07 +08:00
Zexi Li
3d869c69bb Merge pull request #10264 from swordqiu/automated-cherry-pick-of-#10262-upstream-release-3.6
Automated cherry pick of #10262: fix(keystone): ensure comparing id with non-utf8 string
2021-02-25 11:24:22 +08:00
Zexi Li
09ef280e33 Merge pull request #10267 from ioito/automated-cherry-pick-of-#10265-upstream-release-3.6
Automated cherry pick of #10265: fix(region): add azure new region
2021-02-25 11:23:09 +08:00
Qu Xuan
4332008c3f fix(region): add azure new region 2021-02-25 10:23:45 +08:00
Qiu Jian
73c0f0350f fix(keystone): ensure comparing id with non-utf8 string 2021-02-25 02:29:55 +08:00
Zexi Li
48a894efdf Merge pull request #10251 from ioito/automated-cherry-pick-of-#10247-upstream-release-3.6
Automated cherry pick of #10247: Automated cherry pick of #10233: fix(region): support peer secgroup
2021-02-24 18:15:41 +08:00
Zexi Li
fc274d5da6 Merge pull request #10260 from tb365/automated-cherry-pick-of-#10258-upstream-release-3.6
Automated cherry pick of #10258: fix(region): redis change spec bugfix
2021-02-24 16:06:40 +08:00
tangbin
e39015fa45 fix(region): redis change spec bugfix 2021-02-24 11:49:23 +08:00
Zexi Li
1bb9801666 Merge pull request #10249 from zexi/automated-cherry-pick-of-#10223-upstream-release-3.6
Automated cherry pick of #10223: fix(host-deployer): mount may fail to lock /etc/mtab, add retrier
2021-02-23 10:36:22 +08:00
Qiu Jian
c22c4f8ef6 fix(host-deployer): mount may fail to lock /etc/mtab, add retrier 2021-02-23 10:25:14 +08:00
Qu Xuan
5584e9af1a fix(region): support peer secgroup 2021-02-23 10:08:54 +08:00
Zexi Li
44e360dcdd Merge pull request #10229 from ioito/automated-cherry-pick-of-#10227-upstream-release-3.6
Automated cherry pick of #10227: fix(region): qcloud quota sync
2021-02-22 20:52:07 +08:00
Zexi Li
a216ef28dd Merge pull request #10243 from zexi/automated-cherry-pick-of-#6083-upstream-release-3.6
Automated cherry pick of #6083: climc: add k8s monitor component
2021-02-22 19:55:51 +08:00
Zexi Li
3b12892172 Merge pull request #10236 from ioito/automated-cherry-pick-of-#10234-upstream-release-3.6
Automated cherry pick of #10234: fix(region): avoid not sync dns zone
2021-02-22 19:49:40 +08:00
Zexi Li
704cce8392 Merge pull request #10242 from tb365/automated-cherry-pick-of-#10240-upstream-release-3.6
Automated cherry pick of #10240: fix(region): set redis reboot timeout to 30 mins
2021-02-22 19:48:17 +08:00
Zexi Li
2fc04497b2 climc: add k8s monitor component 2021-02-22 19:45:40 +08:00
tangbin
bd64be4d8a fix(region): set redis reboot timeout to 30 mins 2021-02-22 18:52:05 +08:00
Qu Xuan
8dd1a897fc fix(region): avoid not sync dns zone 2021-02-22 16:15:12 +08:00
Qu Xuan
57eef5ede6 fix(region): qcloud quota sync 2021-02-22 14:55:54 +08:00
Zexi Li
ff7fa0a520 Merge pull request #10204 from swordqiu/automated-cherry-pick-of-#10202-upstream-release-3.6
Automated cherry pick of #10202: feature(compute): allow live migration without checking Host CPU modes
2021-02-22 08:59:29 +08:00
Zexi Li
0994e8c1ea Merge pull request #10207 from swordqiu/automated-cherry-pick-of-#10205-upstream-release-3.6
Automated cherry pick of #10205: fix(region): host search by any ip
2021-02-18 11:18:33 +08:00
Jian Qiu
d7dc89ccb3 fix(keystone): policy name duplication (#10201)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-14 19:14:33 +08:00
Qiu Jian
8610731af3 fix(region): host search by any ip 2021-02-13 23:13:43 +08:00
Qiu Jian
3cc72fac65 feature(compute): allow live migration with checking Host CPU modes 2021-02-13 16:33:59 +08:00
Jian Qiu
f7e8c20f43 fix(keystone): hide system scope policies in domain scope view (#10196)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-08 12:17:18 -03:00
Jian Qiu
dbf8fde45b fix(scheduler): storage medium type should not exact match (#10192)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-02-08 12:15:04 -03:00
yunion-ci-robot
a6a3332e64 Merge pull request #10151 from wanyaoqi/automated-cherry-pick-of-#10149-upstream-release-3.6
Automated cherry pick of #10149: chore(utils): add deb build script
2021-02-08 05:51:59 +08:00
yunion-ci-robot
ca55fbd641 Merge pull request #10186 from swordqiu/automated-cherry-pick-of-#10158-upstream-release-3.6
Automated cherry pick of #10158: fix(apigateway): add enable_quota_check and return-domain-list
2021-02-08 05:49:59 +08:00
Qiu Jian
4ee32ef454 fix(apigateway): add enable_quota_check and return-domain-list attributes to fe params 2021-02-07 17:00:17 +08:00
yunion-ci-robot
eeb2fcfbc8 Merge pull request #10185 from zhaoxiangchun/automated-cherry-pick-of-#10183-upstream-release-3.6
Automated cherry pick of #10183: fix(monitor,host): replace space to '+' when write to influxdb and replace '+' to space  when query
2021-02-07 16:07:59 +08:00
zhaoxiangchun
8612095454 fix(monitor,host): replace space to '+' when write to influxdb and replace '+' to space when query
1.写入influxdb时tag 中不允许存在空格
2021-02-07 14:57:51 +08:00
yunion-ci-robot
7612f85c6a Merge pull request #10148 from zexi/automated-cherry-pick-of-#10146-upstream-release-3.6
Automated cherry pick of #10146: Feature/baremetal h3c oem
2021-02-06 13:33:22 +08:00
Zexi Li
c09c5cac79 Merge pull request #10175 from swordqiu/automated-cherry-pick-of-#10173-upstream-release-3.6
Automated cherry pick of #10173: fix(keystone): cas sso may create new project whenever user login
2021-02-06 10:35:56 +08:00
Qiu Jian
50473268f9 fix(keystone): cas sso may create new project whenever user login 2021-02-06 03:21:01 +08:00
Zexi Li
010ed4f9ad Merge pull request #10145 from swordqiu/automated-cherry-pick-of-#10143-upstream-release-3.6
Automated cherry pick of #10143: fix(baremetal): try channel 8 for default profile
2021-02-05 14:54:31 +08:00
Zexi Li
eefe0aa8cb Merge pull request #10165 from ioito/automated-cherry-pick-of-#10163-upstream-release-3.6
Automated cherry pick of #10163: fix(cloudid): sync role policy
2021-02-05 14:36:18 +08:00
Qu Xuan
a11e5d14de fix(cloudid): sync role policy 2021-02-05 14:00:20 +08:00
wanyaoqi
a1eed47e66 chore(utils): add deb build script 2021-02-04 15:13:56 +08:00
Zexi Li
50fe044cfc feat(baremetal): support H3C oem baremetal 2021-02-04 14:11:50 +08:00
Qiu Jian
cdb97511c3 fix(baremetal): try channel 8 for default profile 2021-02-04 13:23:57 +08:00
yunion-ci-robot
6be7e015d3 Merge pull request #10142 from swordqiu/automated-cherry-pick-of-#10140-upstream-release-3.6
Automated cherry pick of #10140: fix(region): bucket size stats should not count invalid sizes of -1
2021-02-04 13:16:51 +08:00
Zexi Li
0eef67fafb Merge pull request #10139 from ioito/automated-cherry-pick-of-#10137-upstream-release-3.6
Automated cherry pick of #10137: fix(region): delete not exist disk failed
2021-02-04 11:37:10 +08:00
Qiu Jian
bbb538b93d fix(region): bucket size stats should not count invalid sizes of -1 2021-02-04 11:24:43 +08:00
Qu Xuan
4acb2757a9 fix(region): delete not exist disk failed 2021-02-04 11:03:56 +08:00
Zexi Li
d85883780d Merge pull request #10132 from ioito/automated-cherry-pick-of-#10130-upstream-release-3.6
Automated cherry pick of #10130: fix(hostman): fix kvm create disk failed error
2021-02-03 20:38:50 +08:00
Qu Xuan
e76abe883b fix(hostman): fix kvm create disk failed error 2021-02-03 20:17:25 +08:00
Zexi Li
a82f00aae7 Merge pull request #10098 from ioito/automated-cherry-pick-of-#10096-upstream-release-3.6
Automated cherry pick of #10096: fix(region): filter resource by classic vpc
2021-02-03 09:48:26 +08:00
Zexi Li
1bfa27bc49 Merge pull request #10101 from ioito/automated-cherry-pick-of-#10099-upstream-release-3.6
Automated cherry pick of #10099: fix(hostman): avoid panic when disk is nil
2021-02-03 09:47:37 +08:00
Zexi Li
ec688fd206 Merge pull request #10111 from ioito/automated-cherry-pick-of-#10109-upstream-release-3.6
Automated cherry pick of #10109: fix(region): avoid sync huawei unusable account
2021-02-02 22:06:29 +08:00
Zexi Li
20f55fe992 Merge pull request #10106 from ioito/automated-cherry-pick-of-#10104-upstream-release-3.6
Automated cherry pick of #10104: fix(region): delete virtual nics with network
2021-02-02 21:04:11 +08:00
Zexi Li
1fe7a54218 Merge pull request #10119 from wanyaoqi/automated-cherry-pick-of-#10117-upstream-release-3.6
Automated cherry pick of #10117: fix(region): add option auto reconcile backup servers
2021-02-02 20:11:12 +08:00
Zexi Li
24bf2a163a Merge pull request #10124 from rainzm/automated-cherry-pick-of-#10122-upstream-release-3.6
Automated cherry pick of #10122: fix(region): check the global network situation when expanding the network
2021-02-02 20:06:19 +08:00
rainzm
ea4505ae55 fix(region): check the global network situation when expanding the network 2021-02-02 19:49:53 +08:00
wanyaoqi
3bcb337a4b fix(region): add option auto reconcile backup servers 2021-02-02 18:32:01 +08:00
Qu Xuan
7ee2026b21 fix(region): avoid sync huawei unusable account 2021-02-02 14:39:28 +08:00
Qu Xuan
ebe79b12d1 fix(region): delete virtual nics with network 2021-02-02 10:53:52 +08:00
Qu Xuan
650ccdd7c7 fix(hostman): avoid panic when disk is nil 2021-02-01 22:02:49 +08:00
Zexi Li
68e006b71c Merge pull request #10095 from ioito/automated-cherry-pick-of-#10093-upstream-release-3.6
Automated cherry pick of #10093: fix(region): avoid update tags task loop
2021-02-01 20:34:48 +08:00
Qu Xuan
57efd8a86b fix(region): filter resource by classic vpc 2021-02-01 20:16:28 +08:00
Qu Xuan
3aa83bb86d fix(region): avoid update tags task loop 2021-02-01 19:59:10 +08:00
Zexi Li
de926037dc Merge pull request #10069 from swordqiu/automated-cherry-pick-of-#10067-upstream-release-3.6
Automated cherry pick of #10067: fix(keystone): SSO created user name may be duplicated
2021-01-30 10:42:03 +08:00
Zexi Li
df4f30ac47 Merge pull request #10075 from wanyaoqi/automated-cherry-pick-of-#10073-upstream-release-3.6
Automated cherry pick of #10073: fix(host-deployer): remove escape character on windows passwd
2021-01-30 10:40:17 +08:00
Zexi Li
96e443f90b Merge pull request #10085 from zhaoxiangchun/automated-cherry-pick-of-#10083-upstream-release-3.6
Automated cherry pick of #10083: fix(monitor): fix alert notify info do not contain resourceName
2021-01-30 10:37:16 +08:00
Zexi Li
dfa4d87702 Merge pull request #10089 from rainzm/automated-cherry-pick-of-#10086-upstream-release-3.6
Automated cherry pick of #10086: fix(notify): be compatible with member's permission changes
2021-01-30 10:36:27 +08:00
rainzm
4e199b84eb fix(notify): be compatible with member's permission changes
every user can create, modify and delete their own receiver info
2021-01-29 20:13:31 +08:00
zhaoxiangchun
c17fe2df22 fix(monitor): fix alert notify info do not contain resourceName 2021-01-29 18:17:47 +08:00
wanyaoqi
754d046d3a fix(host-deployer): remove escape character on windows passwd 2021-01-29 11:57:24 +08:00
Qiu Jian
20380ae9e6 fix(keystone): SSO created user name may be duplicated 2021-01-29 00:01:29 +08:00
Zexi Li
47d38a253a Merge pull request #10046 from rainzm/automated-cherry-pick-of-#10042-upstream-release-3.6
Automated cherry pick of #10042: Optimize the error message when logging in
2021-01-28 20:48:13 +08:00
Zexi Li
d366048e51 Merge pull request #10057 from ioito/automated-cherry-pick-of-#10055-upstream-release-3.6
Automated cherry pick of #10055: fix(region): add aliyun credit amount check
2021-01-28 20:47:00 +08:00
Zexi Li
410fd2936f Merge pull request #10061 from ioito/automated-cherry-pick-of-#10059-upstream-release-3.6
Automated cherry pick of #10059: fix(region): add huawei credit amount check
2021-01-28 20:46:14 +08:00
Zexi Li
90e10db57c Merge pull request #10065 from ioito/automated-cherry-pick-of-#10063-upstream-release-3.6
Automated cherry pick of #10063: fix(region): avoid stuck at http request
2021-01-28 20:04:03 +08:00
Qu Xuan
9975543ddb fix(region): avoid stuck at http request 2021-01-28 18:24:11 +08:00
Qu Xuan
0c658ec53f fix(region): add huawei credit amount check 2021-01-28 16:59:34 +08:00
Qu Xuan
58fb3fc9e2 fix(region): add aliyun credit amount check 2021-01-28 16:01:46 +08:00
Zexi Li
f74635f3da Merge pull request #10050 from ioito/automated-cherry-pick-of-#10048-upstream-release-3.6
Automated cherry pick of #10048: fix(region): secgroup priority fix
2021-01-28 15:12:13 +08:00
Qu Xuan
f4972c22ba fix(region): secgroup priority fix 2021-01-28 14:21:28 +08:00
rainzm
6f2bdfa22f feat(locale): update 2021-01-28 10:26:56 +08:00
rainzm
e3d3c1f029 feat(apigateway): differentiate error messages when logging in 2021-01-28 10:08:35 +08:00
rainzm
2fd40396c4 feat(keystone): more specific error return during authentication
add error class UserNotFound, UserLocked, UserDisabled and WrongPassword
2021-01-28 10:08:35 +08:00
Zexi Li
f416fe126c Merge pull request #10044 from rainzm/automated-cherry-pick-of-#9948-upstream-release-3.6
Automated cherry pick of #9948: feat(keystone,apigateway): return a readable message when the user is locked or disabled
2021-01-28 10:02:01 +08:00
rainzm
cb7956f1f1 feat(keystone,apigateway): return a readable message when the user is locked or disabled 2021-01-28 09:59:35 +08:00
Yousong Zhou
8ca6cfa3d3 Merge pull request #10034 from yousong/automated-cherry-pick-of-#10032-upstream-release-3.6
Automated cherry pick of #10032: Feature/yousong wire bw filter
2021-01-27 18:54:16 +08:00
Yousong Zhou
e467ef6ec7 feat(climc): wires: allow filter by bandwidth 2021-01-27 10:34:49 +08:00
Yousong Zhou
861cd47e62 feat(region): wire: allow filter by bandwidth 2021-01-27 10:34:49 +08:00
Zexi Li
d515e5e32c Merge pull request #9946 from rainzm/automated-cherry-pick-of-#9944-upstream-release-3.6
Automated cherry pick of #9944: fix(notify): add index fro receiver_notification
2021-01-27 09:06:34 +08:00
Zexi Li
71c0cc65ee Merge pull request #10027 from ioito/automated-cherry-pick-of-#10025-upstream-release-3.6
Automated cherry pick of #10025: fix(region): purge snapshot with not status check
2021-01-27 09:03:05 +08:00
Zexi Li
86896da1f6 Merge pull request #10022 from ioito/automated-cherry-pick-of-#10018-upstream-release-3.6
Automated cherry pick of #10018: fix(region): optimized secgroup rule sync
2021-01-26 14:53:34 +08:00
Qu Xuan
67082f32d3 fix(region): purge snapshot with not status check 2021-01-26 14:49:14 +08:00
Qu Xuan
b96b2f0b53 fix(region): optimized secgroup rule sync 2021-01-26 14:11:30 +08:00
Zexi Li
a8a2a248df Merge pull request #10012 from swordqiu/automated-cherry-pick-of-#10010-upstream-release-3.6
Automated cherry pick of #10010: fix(region): exported number of vpcs less than listed
2021-01-25 21:06:33 +08:00
Zexi Li
3997f6fbe6 Merge pull request #10005 from wanyaoqi/automated-cherry-pick-of-#10003-upstream-release-3.6
Automated cherry pick of #10003: fix(host): fix wait time after execute mount fuse fs
2021-01-25 21:05:47 +08:00
Zexi Li
05efb17d35 Merge pull request #10015 from swordqiu/automated-cherry-pick-of-#10013-upstream-release-3.6
Automated cherry pick of #10013: fix(keystone): user create without password can login with any password
2021-01-25 21:03:31 +08:00
Qiu Jian
2af9104d96 fix(keystone): user create without password can login with any password 2021-01-23 23:51:31 +08:00
yunion-ci-robot
a0d99cf879 Merge pull request #9997 from ioito/automated-cherry-pick-of-#9995-upstream-release-3.6
Automated cherry pick of #9995: fix(region): aws not support create server with public ip
2021-01-23 22:47:37 +08:00
Qiu Jian
a8d550d4d8 fix(region): exported number of vpcs less than listed 2021-01-23 20:11:33 +08:00
wanyaoqi
5ccece54ac fix(host): fix wait time after mount fuse fs 2021-01-22 19:19:36 +08:00
Qu Xuan
180b122167 fix(region): aws not support create server with public ip 2021-01-22 10:45:15 +08:00
Zexi Li
78ba5e2fd8 Merge pull request #9968 from ioito/automated-cherry-pick-of-#9966-upstream-release-3.6
Automated cherry pick of #9966: fix(cloudevent): update aliyun lookupevent api
2021-01-22 02:53:38 +08:00
Zexi Li
9f5256c344 Merge pull request #9976 from yousong/automated-cherry-pick-of-#9974-upstream-release-3.6
Automated cherry pick of #9974: fix(region): cloudaccount: allow only one sync func in flight
2021-01-22 02:47:17 +08:00
Zexi Li
cdd032c711 Merge pull request #9986 from ioito/automated-cherry-pick-of-#9973-upstream-release-3.6
Automated cherry pick of #9973: fix(region): avoid clean all rules when sync secgroups
2021-01-22 00:39:04 +08:00
Zexi Li
81133a53a2 Merge pull request #9983 from rainzm/automated-cherry-pick-of-#9981-upstream-release-3.6
Automated cherry pick of #9981: fix(notify): send websocket messages according to language preference
2021-01-21 21:33:49 +08:00
Qu Xuan
c6893892d9 fix(region): avoid clean all rules when sync secgroups 2021-01-21 21:30:47 +08:00
rainzm
8a9f3e09ea fix(notify): send websocket messages according to language preference 2021-01-21 19:51:03 +08:00
Yousong Zhou
606b241b0d fix(region): cloudaccount: allow only one sync func in flight
Ref https://github.com/yunionio/onecloud/pull/6859
2021-01-21 16:23:05 +08:00
Qu Xuan
178a7071f0 fix(cloudevent): update aliyun lookupevent api 2021-01-21 15:18:27 +08:00
Zexi Li
27e5ff8635 Merge pull request #9962 from zhaoxiangchun/automated-cherry-pick-of-#9960-upstream-release-3.6
Automated cherry pick of #9960: fix(monitor): domain view can list scope is domain or project alertrecords; fix nodata alert return info
2021-01-21 12:45:04 +08:00
zhaoxiangchun
5dc1486e7f fix(monitor): domain view can list scope is domain or project alertrecords; fix nodata alert return info 2021-01-20 11:51:46 +08:00
Zexi Li
6a50fce0ab Merge pull request #9936 from rainzm/automated-cherry-pick-of-#9934-upstream-release-3.6
Automated cherry pick of #9934: feat(notify): clean data for receiver_notifications
2021-01-20 03:19:29 +08:00
Zexi Li
132a00d8e0 Merge pull request #9954 from ioito/automated-cherry-pick-of-#9952-upstream-release-3.6
Automated cherry pick of #9952: fix(region): fix zstack delete server with local disks
2021-01-20 02:25:35 +08:00
Qu Xuan
fed6395132 fix(region): fix zstack delete server with local disks 2021-01-19 18:10:38 +08:00
rainzm
7c87d73d95 fix(notify): add index fro receiver_notification 2021-01-19 15:54:04 +08:00
yunion-ci-robot
a73c3c8d0e Merge pull request #9940 from ioito/automated-cherry-pick-of-#9938-upstream-release-3.6
Automated cherry pick of #9938: fix(region): azure default subscription id
2021-01-18 21:41:23 +08:00
Qu Xuan
f3a567f630 fix(region): azure default subscription id 2021-01-18 21:25:20 +08:00
rainzm
5160669550 feat(notify): clean data for receiver_notifications 2021-01-18 19:48:45 +08:00
Zexi Li
e1c5ebc29c Merge pull request #9927 from rainzm/automated-cherry-pick-of-#9925-upstream-release-3.6
Automated cherry pick of #9925: Notify Optimization
2021-01-18 11:47:06 +08:00
rainzm
de1553770c fix(notify): add a time limit for resending notifications 2021-01-18 11:14:45 +08:00
rainzm
928c0602dd feat(notify): delete the notification 1 month ago and remove the data migration 2021-01-18 11:14:45 +08:00
Zexi Li
6cc34c6fb1 Merge pull request #9924 from rainzm/automated-cherry-pick-of-#9922-upstream-release-3.6
Automated cherry pick of #9922: fix(notify): remote 'lang' filter when contact type is 'mobile'
2021-01-18 10:24:23 +08:00
rainzm
4885025618 fix(notify): remote 'lang' filter when contact type is 'mobile' 2021-01-17 20:56:55 +08:00
yunion-ci-robot
68ebbbcbcc Merge pull request #9912 from ioito/automated-cherry-pick-of-#9910-upstream-release-3.6
Automated cherry pick of #9910: fix(region): avoid azure detach disk failed
2021-01-17 11:40:31 +08:00
Jian Qiu
040a45aa46 fix(cloudcommon): missing set_meta opslog (#9916)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-01-17 11:33:28 +08:00
Qu Xuan
299d3bed6e fix(region): avoid azure detach disk failed 2021-01-16 18:38:07 +08:00
yunion-ci-robot
c4c302236f Merge pull request #9909 from zhaoxiangchun/automated-cherry-pick-of-#9907-upstream-release-3.6
Automated cherry pick of #9907: feat(monitor): influxQuery add P95 reduce
2021-01-16 12:42:29 +08:00
zhaoxiangchun
88bcb82197 feat(monitor): query reduce percentile
1.增加reduce.type == percentile ,进行对应数值处理
2021-01-16 12:01:15 +08:00
Zexi Li
80a9ed9a79 Merge pull request #9890 from ioito/automated-cherry-pick-of-#9888-upstream-release-3.6
Automated cherry pick of #9888: fix(cloudid): optimized saml sso
2021-01-15 09:08:31 +08:00
Zexi Li
f4f973429d Merge pull request #9897 from ioito/automated-cherry-pick-of-#9895-upstream-release-3.6
Automated cherry pick of #9895: fix(region): update google latitude and langtitude
2021-01-14 23:50:03 +08:00
Qu Xuan
863a28f294 fix(region): update google latitude and langtitude 2021-01-14 20:53:14 +08:00
Qu Xuan
8858e7913c fix(cloudid): optimized saml sso 2021-01-14 18:14:29 +08:00
Zexi Li
6254b64d5d Merge pull request #9886 from ioito/automated-cherry-pick-of-#9856-upstream-release-3.6
Automated cherry pick of #9856: fix(region): optimized azure reset linux pasword
2021-01-14 17:39:46 +08:00
Zexi Li
43f8ac0027 Merge pull request #9884 from rainzm/automated-cherry-pick-of-#9882-upstream-release-3.6
Automated cherry pick of #9882: Fix Notifition about Panic_Error Send too much
2021-01-14 14:50:07 +08:00
Qu Xuan
36bd1baafe fix(region): optimized azure reset linux pasword 2021-01-14 14:44:20 +08:00
rainzm
98ca80e630 feat(notify): change default verify expire interval 5m => 2m 2021-01-14 14:26:04 +08:00
rainzm
a2613e6bce fix(notify): update receiver's lang when update event occurs 2021-01-14 14:26:04 +08:00
rainzm
a8b14bb739 fix(notify): panic for err 2021-01-14 14:26:04 +08:00
Zexi Li
4850c4f8e2 Merge pull request #9880 from zhaoxiangchun/automated-cherry-pick-of-#9879-upstream-release-3.6
Automated cherry pick of #9879: feat(monitor): influxQuery add P95 reduce
2021-01-14 11:05:29 +08:00
zhaoxiangchun
64dec4254f feat(monitor): influxQuery add P95 reduce 2021-01-14 10:48:34 +08:00
Zexi Li
ada90754f9 Merge pull request #9874 from swordqiu/automated-cherry-pick-of-#9872-upstream-release-3.6
Automated cherry pick of #9872: fix(region): AWS buckets in us-east-1 have null location
2021-01-14 09:36:28 +08:00
Qiu Jian
fb3456c42d fix(region): AWS buckets in us-east-1 have null location 2021-01-14 09:12:35 +08:00
Zexi Li
cefbeb7a14 Merge pull request #9867 from zhaoxiangchun/automated-cherry-pick-of-#9865-upstream-release-3.6
Automated cherry pick of #9865: feat(monitor): support monitor overview influxdb query pass through
2021-01-13 21:12:20 +08:00
zhaoxiangchun
1fc01ebe94 feat(monitor): support monitor overview influxdb query pass through
1.监控总览支持查询穿透
2021-01-13 16:19:55 +08:00
Zexi Li
ff0606f166 Merge pull request #9864 from rainzm/automated-cherry-pick-of-#9862-upstream-release-3.6
Automated cherry pick of #9862: fix(notify): set status after sending
2021-01-13 16:10:46 +08:00
rainzm
83dd534241 fix(notify): set status after sending 2021-01-13 15:49:15 +08:00
Zexi Li
a7771885cf Merge pull request #9859 from rainzm/automated-cherry-pick-of-#9857-upstream-release-3.6
Automated cherry pick of #9857: fix(notify): set ModelManager in Receiver()
2021-01-13 14:41:34 +08:00
rainzm
88fa743e4e fix(notify): set ModelManager in Receiver() 2021-01-13 09:56:28 +08:00
Zexi Li
0e917bb275 Merge pull request #9849 from rainzm/automated-cherry-pick-of-#9847-upstream-release-3.6
Automated cherry pick of #9847: feat(notify): send notifications of different templates according to language
2021-01-12 10:29:51 +08:00
Zexi Li
cd76ce27c3 Merge pull request #9838 from swordqiu/automated-cherry-pick-of-#9836-upstream-release-3.6
Automated cherry pick of #9836: fix(keystone): add suggestion previliges to meter admin
2021-01-12 10:26:35 +08:00
Zexi Li
114de75e7e Merge pull request #9834 from ioito/automated-cherry-pick-of-#9833-upstream-release-3.6
Automated cherry pick of #9833: fix(cloudid): multi cloudaccount with saml user
2021-01-12 10:25:25 +08:00
Zexi Li
047509ebb8 Merge pull request #9843 from tb365/automated-cherry-pick-of-#9841-upstream-release-3.6
Automated cherry pick of #9841: server skus filter by mem size fix
2021-01-11 22:37:36 +08:00
Zexi Li
71e79e5a7b Merge pull request #9846 from yousong/automated-cherry-pick-of-#9844-upstream-release-3.6
Automated cherry pick of #9844: Feature/yousong i18n apigateway
2021-01-11 22:27:49 +08:00
Zexi Li
4c62508b01 Merge pull request #9852 from zhaoxiangchun/automated-cherry-pick-of-#9851-upstream-release-3.6
Automated cherry pick of #9851: fix(monitor): monitor overview throw err
2021-01-11 22:25:39 +08:00
zhaoxiangchun
e5b637906c fix(monitor): monitor overview throw err 2021-01-11 21:26:16 +08:00
rainzm
dd7d34402f feat(notify): send notifications of different templates according to language 2021-01-11 19:46:03 +08:00
Yousong Zhou
157bfb696b apigateway: try return httperrors 2021-01-11 18:35:51 +08:00
Yousong Zhou
464e0450f9 locales: generate 2021-01-11 18:35:51 +08:00
Yousong Zhou
a4b5562bd0 locales: zh-CN: add some translations 2021-01-11 18:35:51 +08:00
Yousong Zhou
f0354d0c9b locales: generate 2021-01-11 18:29:14 +08:00
Yousong Zhou
c3c3c00759 locales: zh-CN: extract current 2021-01-11 18:27:30 +08:00
Yousong Zhou
83adeaae4e apigateway: reword error messages 2021-01-11 17:51:33 +08:00
Yousong Zhou
d7f05e983f keystone: reword error messages 2021-01-11 17:51:33 +08:00
tangbin
5d075bbaaf server skus filter by mem size fix 2021-01-11 14:41:51 +08:00
Qiu Jian
86fda0f7d0 fix(keystone): add suggestion previliges to meter admin 2021-01-11 02:07:44 +08:00
Qu Xuan
53c8c16052 fix(cloudid): multi cloudaccount with saml user 2021-01-10 20:00:25 +08:00
Zexi Li
46ba9cd424 Merge pull request #9831 from tb365/automated-cherry-pick-of-#9830-upstream-release-3.6
Automated cherry pick of #9830: loadbalancer add lb purge validate
2021-01-09 19:58:29 +08:00
Zexi Li
ee59f2a410 Merge pull request #9795 from tb365/automated-cherry-pick-of-#9793-upstream-release-3.6
Automated cherry pick of #9793: feat(region): server sku os_arch & cpu_arch checking
2021-01-09 19:57:17 +08:00
Zexi Li
5cfbb416b3 Merge pull request #9818 from zhaoxiangchun/automated-cherry-pick-of-#9817-upstream-release-3.6
Automated cherry pick of #9817: fix(monitor): fix monitoroverview and meter send alerting info to  notify
2021-01-09 19:56:05 +08:00
Zexi Li
a711f832e6 Merge pull request #9827 from rainzm/automated-cherry-pick-of-#9825-upstream-release-3.6
Automated cherry pick of #9825: fix(notify): avoid duplication of notification names
2021-01-09 19:54:51 +08:00
tangbin
f31216be0e loadbalancer add lb purge validate 2021-01-09 19:20:36 +08:00
rainzm
bc0106902a fix(notify): avoid duplication of notification names 2021-01-09 18:46:52 +08:00
yunion-ci-robot
2dbfc80fac Merge pull request #9810 from tb365/automated-cherry-pick-of-#9808-upstream-release-3.6
Automated cherry pick of #9808: fix(region): aws elb backendgroup sync bugfix
2021-01-09 16:55:09 +08:00
tangbin
4fa95bf608 fix(region): aws elb backendgroup sync bugfix 2021-01-09 16:12:44 +08:00
zhaoxiangchun
af0813cd09 fix(monitor): fix monitoroverview and meter send alerting info to notify
1.调整报警总览中今日报警数量计算逻辑
2.报警模版的web路径支持跳转到不同web页面:监控报警和meter
3.nodata 前端可配制功能fix
2021-01-09 15:34:04 +08:00
Zexi Li
3b5602e1ea Merge pull request #9800 from ioito/automated-cherry-pick-of-#9798-upstream-release-3.6
Automated cherry pick of #9798: fix(region): optimized for qcloud prepaid instance delete
2021-01-09 15:33:14 +08:00
Zexi Li
e4f7d3233c Merge pull request #9815 from rainzm/automated-cherry-pick-of-#9813-upstream-release-3.6
Automated cherry pick of #9813: fix(notify): loose phone number rules in updating receiver
2021-01-09 13:03:52 +08:00
rainzm
287f98ac86 fix(notify): loose phone number rules in updating receiver 2021-01-09 11:32:31 +08:00
Zexi Li
bb44f1cdfb Merge pull request #9804 from rainzm/automated-cherry-pick-of-#9802-upstream-release-3.6
Automated cherry pick of #9802: fix(notify): loose mobile phone number matching rules
2021-01-08 14:19:50 +08:00
rainzm
644ab6f925 fix(notify): loose mobile phone number matching rules 2021-01-08 12:03:00 +08:00
Qu Xuan
e775e798aa fix(region): optimized for qcloud prepaid instance delete 2021-01-08 11:32:58 +08:00
tangbin
331d9d2a67 feat(region): server sku os_arch & cpu_arch checking 2021-01-08 10:35:08 +08:00
Zexi Li
d5ed96a651 Merge pull request #9792 from wanyaoqi/automated-cherry-pick-of-#9790-upstream-release-3.6
Automated cherry pick of #9790: fix(host-deployer): add retry on check is vgactived
2021-01-07 21:18:13 +08:00
Zexi Li
4ce85f310b Merge pull request #9787 from yousong/automated-cherry-pick-of-#9785-upstream-release-3.6
Automated cherry pick of #9785: guest_deploy_task: log other deploy details with i18n
2021-01-07 21:16:39 +08:00
Zexi Li
3f6e669324 Merge pull request #9784 from zhaoxiangchun/automated-cherry-pick-of-#9782-upstream-release-3.6
Automated cherry pick of #9782: fix(monitor,suggestion): order commonalert metric and modify alertresoruce type value and add suggestion models climc
2021-01-07 21:14:46 +08:00
wanyaoqi
3f4b2163f3 fix(host-deployer): add retry on check is vgactived 2021-01-07 19:28:09 +08:00
Yousong Zhou
78b6f85662 guest_deploy_task: log other deploy details with i18n
Fixes 9f350392 ("add service tag for actionlog")
2021-01-07 11:40:27 +08:00
zhaoxiangchun
3124113e2f fix(monitor,suggestion): order commonalert metric and modify alertresoruce type value and add suggestion models climc
1.修改监控metric排序
2.统一报警资源type和监控报警中res_type 进行统一,前端可以统一展示
3.增加suggestion服务相关climc
2021-01-06 21:31:31 +08:00
Zexi Li
38b34239cd Merge pull request #9780 from ioito/automated-cherry-pick-of-#9778-upstream-release-3.6
Automated cherry pick of #9778: fix(region): avoid auzre request timeout
2021-01-06 21:23:27 +08:00
Zexi Li
370b35852c Merge pull request #9777 from ioito/automated-cherry-pick-of-#9775-upstream-release-3.6
Automated cherry pick of #9775: fix(cloudevent): default policy
2021-01-06 21:23:08 +08:00
Zexi Li
f7c8bbc00b Merge pull request #9773 from ioito/automated-cherry-pick-of-#9771-upstream-release-3.6
Automated cherry pick of #9771: fix(region): avoid panic when register service not work
2021-01-06 21:21:47 +08:00
Qu Xuan
f64c6c54da fix(region): avoid auzre request timeout 2021-01-06 15:34:14 +08:00
Qu Xuan
c4db4bc43e fix(cloudevent): default policy 2021-01-06 14:05:35 +08:00
Qu Xuan
1afe6ef41b fix(region): avoid panic when register service not work 2021-01-05 21:20:04 +08:00
751 changed files with 23552 additions and 19807 deletions

View File

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

104
Makefile
View File

@@ -6,6 +6,7 @@ ROOT_DIR := $(CURDIR)
BUILD_DIR := $(ROOT_DIR)/_output
BIN_DIR := $(BUILD_DIR)/bin
BUILD_SCRIPT := $(ROOT_DIR)/build/build.sh
DEB_BUILD_SCRIPT := $(ROOT_DIR)/build/build_deb.sh
ifeq ($(ONECLOUD_CI_BUILD),)
GIT_COMMIT := $(shell git rev-parse --short HEAD)
@@ -64,6 +65,7 @@ endif
cmdTargets:=$(filter-out cmd/host-image,$(wildcard cmd/*))
rpmTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),rpm/$(b)))
debTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),deb/$(b)))
all: build
@@ -87,21 +89,45 @@ vet:
cmd/esxi-agent: prepare_dir
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/fetcherfs: prepare_dir
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/%: prepare_dir
$(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
rpm/%: cmd/%
$(BUILD_SCRIPT) $*
deb/%: cmd/%
$(DEB_BUILD_SCRIPT) $*
pkg/%: prepare_dir
$(GO_INSTALL) $(REPO_PREFIX)/$@
rpm/fetcherfs: cmd/fetcherfs
docker run --rm \
--name docker-centos-build-fetcherfs \
-v $(CURDIR):/data \
registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 \
/bin/bash -c "VERSION=3.6 /data/build/build.sh fetcherfs /opt/yunion/fetchclient/bin"
deb/fetcherfs: rpm/fetcherfs
#VERSION=3.6 $(DEB_BUILD_SCRIPT) fetcherfs /opt/yunion/fetchclient/bin
docker run --rm \
--name docker-debian-build-fetcherfs \
-v $(CURDIR):/data \
registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 \
/data/build/convert_rpm2deb.sh
build:
$(MAKE) $(cmdTargets)
rpm:
$(MAKE) $(rpmTargets)
deb:
$(MAKE) $(debTargets)
rpmclean:
rm -fr $(BUILD_DIR)/rpms
@@ -126,6 +152,11 @@ clean:
fmt:
@git ls-files --exclude '*' '*.go' \
| grep -v '^vendor/' \
| while read f; do \
if ! grep -m1 -q '^// Code generated .* DO NOT EDIT\.$$' "$$f"; then \
echo "$$f"; \
fi ; \
done \
| xargs $(XARGS_FLAGS) gofmt -w
fmt-check: fmt
@@ -194,74 +225,11 @@ 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.0
go mod tidy
go mod vendor -v
DOCKER_CENTOS_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-3
define dockerCentOSBuildCmd
set -o xtrace
set -o errexit
set -o pipefail
cd /root/onecloud
export GOFLAGS=-mod=vendor
make $(1)
chown -R $(shell id -u):$(shell id -g) _output
endef
docker-centos-build: export dockerCentOSBuildCmd:=$(call dockerCentOSBuildCmd,$(F))
docker-centos-build:
docker rm --force onecloud-ci-build &>/dev/null || true
docker run \
--name onecloud-docker-centos-build \
--rm \
--volume $(CURDIR):/root/onecloud \
--volume $(CURDIR)/_output/_cache:/root/.cache \
$(DOCKER_CENTOS_BUILD_IMAGE) \
/bin/bash -c "$$dockerCentOSBuildCmd"
chown -R $$(id -u):$$(id -g) _output
ls -lh _output/bin
# NOTE we need a way to stop and remove the container started by docker-build.
# No --tty, --stop-signal won't work
docker-centos-build-stop:
docker stop --time 0 onecloud-docker-centos-build || true
.PHONY: docker-centos-build
.PHONY: docker-centos-build-stop
DOCKER_ALPINE_BUILD_IMAGE?=registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5
define dockerAlpineBuildCmd
set -o xtrace
set -o errexit
set -o pipefail
cd /root/go/src/yunion.io/x/onecloud
export GOFLAGS=-mod=vendor
make $(1)
chown -R $(shell id -u):$(shell id -g) _output
endef
docker-alpine-build: export dockerAlpineBuildCmd:=$(call dockerAlpineBuildCmd,$(F))
docker-alpine-build:
docker rm --force onecloud-docker-alpine-build &>/dev/null || true
docker run --rm \
--name onecloud-docker-alpine-build \
-v $(CURDIR):/root/go/src/yunion.io/x/onecloud \
-v $(CURDIR)/_output/alpine-build:/root/go/src/yunion.io/x/onecloud/_output \
-v $(CURDIR)/_output/alpine-build/_cache:/root/.cache \
$(DOCKER_ALPINE_BUILD_IMAGE) \
/bin/sh -c "$$dockerAlpineBuildCmd"
ls -lh _output/alpine-build/bin
docker-alpine-build-stop:
docker stop --time 0 onecloud-docker-alpine-build || true
.PHONY: docker-alpine-build
.PHONY: docker-alpine-build-stop
define helpText
Build with docker
@@ -319,5 +287,11 @@ image:
.PHONY: image
image-telegraf-raid-plugin:
VERSION=release-1.6.3 ARCH=all make image telegraf-raid-plugin
%:
@:
ModName:=yunion.io/x/onecloud
include $(CURDIR)/Makefile.common.mk

83
Makefile.common.mk Normal file
View File

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

6
OWNERS
View File

@@ -4,12 +4,6 @@ reviewers:
- ioito
- swordqiu
- tb365
- wanyaoqi
- yousong
- zhaoxiangchun
- zhasm
approvers:
- swordqiu
- yousong
- wanyaoqi
- Zexi

View File

@@ -1,12 +1,12 @@
# Yunion OneCloud (云联融合云)
# Yunion Cloud (云联融合云)
[![CircleCI](https://circleci.com/gh/yunionio/onecloud.svg?style=svg)](https://circleci.com/gh/yunionio/onecloud)
[![Build Status](https://travis-ci.com/yunionio/onecloud.svg?branch=master)](https://travis-ci.org/yunionio/onecloud)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/onecloud)](https://goreportcard.com/report/github.com/yunionio/onecloud)
[![CircleCI](https://circleci.com/gh/yunionio/yunioncloud.svg?style=svg)](https://circleci.com/gh/yunionio/yunioncloud)
[![Build Status](https://travis-ci.com/yunionio/yunioncloud.svg?branch=master)](https://travis-ci.org/yunionio/yunioncloud)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/yunioncloud)](https://goreportcard.com/report/github.com/yunionio/yunioncloud)
## 什么是云联融合云?
云联融合云Yunion OneCloud是一个开源的多云平台。融合云构建在用户分布于多云基础设施之上通过技术手段将分布于多云的异构IT资源统一管理将多底层多云的差异向用户屏蔽并通过网络和调度实现资源的融合与打通在多云之上进行抽象向用户呈现统一的使用界面和API接口让用户就像使用一个云平台一样使用分布于多云的资源实现一个统一的“云上之云”的云平台。
云联融合云Yunion Cloud是一个开源的多云平台。融合云构建在用户分布于多云基础设施之上通过技术手段将分布于多云的异构IT资源统一管理将多底层多云的差异向用户屏蔽并通过网络和调度实现资源的融合与打通在多云之上进行抽象向用户呈现统一的使用界面和API接口让用户就像使用一个云平台一样使用分布于多云的资源实现一个统一的“云上之云”的云平台。
鉴于企业IT基础设施的两个趋势1. 企业使用多云基础设施并且公有云是最主要的基础设施提供者2. 企业应用将逐步云原生化企业IT基础设施需要为Kubernetes优化。融合云为此架构而设计。一方面抽象管理底层的多云基础设施另一方面为多云Kubernetes提供运行环境。融合云为企业未来的的IT基础设施架构而设计。
@@ -18,18 +18,18 @@
- 内置私有云
OneCloud内置完备的私有云实现提供对用户本地IDC的虚拟机、物理机和负载均衡等资源管理。
YunionCloud 内置完备的私有云实现提供对用户本地IDC的虚拟机、物理机和负载均衡等资源管理。
- 为多云Kubernetes提供运行环境
OneCloud自身为运行在Kubernetes的云原生应用并且能在多云环境部署运行Kubernetes集群。
YunionCloud 自身为运行在Kubernetes的云原生应用并且能在多云环境部署运行Kubernetes集群。
欢迎安装部署云联融合云,期待大家的反馈!
## 部署
请参考文档 [安装部署](https://docs.yunion.io/docs/setup/) 搭建 OneCloud 集群。
请参考文档 [安装部署](https://docs.yunion.io/docs/setup/) 搭建 YunionCloud 集群。
## 文档
@@ -51,4 +51,4 @@
## License
OneCloud 使用 Apache license 2.0. 详情请看 [LICENSE](./LICENSE) 。
YunionCloud 使用 Apache license 2.0. 详情请看 [LICENSE](./LICENSE) 。

View File

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

76
build/build_deb.sh Executable file
View File

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

23
build/convert_rpm2deb.sh Executable file
View File

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

View File

@@ -1,9 +1,11 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.2
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.3
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
#ADD ./_output/bin/baremetal-agent /opt/yunion/bin/baremetal-agent
#ADD ./_output/bin/.baremetal-agent.bin /opt/yunion/bin/.baremetal-agent.bin
#ADD ./_output/bin/bundles/baremetal-agent /opt/yunion/bin/bundles/baremetal-agent
RUN apk add librados librbd
ADD ./_output/alpine-build/bin/baremetal-agent /opt/yunion/bin/baremetal-agent

View File

@@ -1,4 +1,8 @@
FROM frolvlad/alpine-glibc:glibc-2.28
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-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.2
MAINTAINER "Yaoqi Wan <wanyaoqi@yunionyun.com>"
@@ -16,17 +20,17 @@ RUN mkdir -p /opt/cloud/yunion/baremetal
RUN wget -O /opt/cloud/yunion/baremetal/pci.ids http://pci-ids.ucw.cz/v2.2/pci.ids
# download baremetal-pxerom-*.x86_64.rpm and unpack rpm in current directory
COPY ./opt/cloud/yunion/baremetal/bootia32.efi /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/bootx64.efi /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/chain.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/initramfs /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/isolinux.bin /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/kernel /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.e32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/ldlinux.e64 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/libcom32.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/libutil.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/lpxelinux.0 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/menu.c32 /opt/cloud/yunion/baremetal
COPY ./opt/cloud/yunion/baremetal/pxelinux.0 /opt/cloud/yunion/baremetal
COPY --from=build /opt/cloud/yunion/baremetal/bootia32.efi /opt/cloud/yunion/baremetal
COPY --from=build /opt/cloud/yunion/baremetal/bootx64.efi /opt/cloud/yunion/baremetal
COPY --from=build /opt/cloud/yunion/baremetal/chain.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/initramfs /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/isolinux.bin /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/kernel /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.e32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/ldlinux.e64 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/libcom32.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/libutil.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/lpxelinux.0 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/menu.c32 /opt/cloud/yunion/baremetal
COPY --from=build ./opt/cloud/yunion/baremetal/pxelinux.0 /opt/cloud/yunion/baremetal

View File

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

View File

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

View File

@@ -6,4 +6,4 @@ ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/host-deployer /opt/yunion/bin/host-deployer
ADD ./_output/centos-build/bin/host-deployer /opt/yunion/bin/host-deployer

View File

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

View File

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

20
build/docker/Makefile Normal file
View File

@@ -0,0 +1,20 @@
REGISTRY ?= "registry.cn-beijing.aliyuncs.com/yunionio"
DOCKER_BUILD = docker build -t $(REGISTRY)
DOCKER_BUILDX = docker buildx build --platform linux/arm64,linux/amd64 --push -t $(REGISTRY)
debian10-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 -f ./Dockerfile.debian-base .
CLIMC_BASE_VERSION = 20210701
climc-base:
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/climc-base:$(CLIMC_BASE_VERSION) -f ./Dockerfile.climc-base .
BAREMETAL_BASE_VERSION = v0.3.3
baremetal-base:
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)

View File

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

View File

@@ -47,7 +47,7 @@
</td>
</tr>
<tr>
<td style="padding-bottom: 10px;">您正在验证邮箱,请在验证码输入框中输入:{{.code}}完成验证。</td>
<td style="padding-bottom: 10px;">您正在验证邮箱,请在验证码输入框中输入:{{.code}}完成验证。</td>
</tr>
</table>
</td>

View File

@@ -0,0 +1 @@
{{.os_type}} image {{.name}} upload completed

View File

@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<table style="width: 650px; margin-bottom: 20px;" border="0" cellpadding="0" cellspacing="0" align="center">
<tr style="height: 50px; background: #333; overflow: hidden;">
<td>
<table style="margin-left: 20px;">
<tr>
<td>
<img src="data:{{.login_logo_format}};base64,{{.login_logo}}" alt="" style="color: #fff; height: 32px; vertical-align: middle;">
</td>
</tr>
</table>
</td>
<td>
<table style="float: right;">
<tr>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">Product</a>
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">Solution</a>
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">Service</a>
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">Help and Documentation</a>
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<a href="" style="text-decoration: none; color: #20A0FF; font-size: 12px; display: none;">About</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 100%;" colspan="2">
<table style="padding: 20px 10px; width: 100%;">
<tr>
<td style="padding-bottom: 13px;">
Dear {{.name}}
</td>
</tr>
<tr>
<td style="padding-bottom: 13px;">You are verifying your email, please enter the following code on the email verification page:</td>
</tr>
<tr>
<td style="padding-bottom: 10px; font-size: large">{{.code}}</td>
</tr>
</table>
</td>
</tr>
<tr style="width: 96%;">
<td colspan="2" style="border-top: 1px dashed #ccc; color: #333; font-size: 12px; padding-bottom: 10px; font-weight: 100;">If you are not operating by yourself, please log in to the platform in time and change your password to ensure the security of your account.</td>
</tr>
<tr>
<td colspan="2" style="background: #333; text-align: right; padding-right: 20px; font-size: 12px; color: #fff; height: 50px;">Copyrights © {{.copyright}}. All rights reserved.</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1 @@
Image {{.name}} upload completed

View File

@@ -0,0 +1 @@
{{.copyright}} Verify

View File

@@ -15,9 +15,14 @@
package main
import (
"context"
"yunion.io/x/onecloud/pkg/ansibleserver/service"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func main() {
go procutils.WaitZombieLoop(context.TODO())
service.StartService()
}

View File

@@ -15,12 +15,17 @@
package main
import (
"context"
"yunion.io/x/onecloud/pkg/baremetal/service"
"yunion.io/x/onecloud/pkg/util/atexit"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func main() {
defer atexit.Handle()
go procutils.WaitZombieLoop(context.TODO())
service.New().StartService()
}

View File

@@ -452,11 +452,15 @@ func init() {
DomainList []string
// 是否允许空referer 访问
AllowEmptyRefer bool `help:"all empty refer access"`
Enabled bool
RerererType string `help:"Referer type" choices:"Black-List|White-List"`
}
R(&BucketSetRefererOption{}, "bucket-set-referer", "Set bucket referer", func(s *mcclient.ClientSession, args *BucketSetRefererOption) error {
conf := api.BucketRefererConf{
WhiteList: args.DomainList,
Enabled: args.Enabled,
AllowEmptyRefer: args.AllowEmptyRefer,
RefererType: args.RerererType,
DomainList: args.DomainList,
}
result, err := modules.Buckets.PerformAction(s, args.ID, "set-referer", jsonutils.Marshal(conf))
if err != nil {

View File

@@ -42,6 +42,7 @@ func init() {
Disabled bool `help:"Show disabled host only" json:"-"`
HostType string `help:"Host type filter" choices:"baremetal|hypervisor|esxi|kubelet|hyperv|aliyun|azure|qcloud|aws|huawei|ucloud|google|ctyun"`
AnyMac string `help:"Mac matches one of the host's interface"`
AnyIp string `help:"IP matches one of the host's interface"`
IsBaremetal *bool `help:"filter host list by is_baremetal=true|false"`

View File

@@ -15,142 +15,17 @@
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 SecGroupRulesListOptions struct {
options.BaseListOptions
Secgroup string `help:"Secgroup ID or Name"`
SecgroupName string `help:"Search rules by fuzzy secgroup name"`
Projects []string `help:"Filter rules by project"`
Direction string `help:"filter Direction of rule" choices:"in|out"`
Protocol string `help:"filter Protocol of rule" choices:"any|tcp|udp|icmp"`
Action string `help:"filter Actin of rule" choices:"allow|deny"`
Ports string `help:"filter Ports of rule"`
Ip string `help:"filter cidr of rule"`
}
R(&SecGroupRulesListOptions{}, "secgroup-rule-list", "List all security group", func(s *mcclient.ClientSession, args *SecGroupRulesListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.SecGroupRules.List(s, params)
if err != nil {
return err
}
printList(result, modules.SecGroupRules.GetColumns(s))
return nil
})
type SecGroupRuleDetailOptions struct {
ID string `help:"ID or Name of security group rule"`
}
R(&SecGroupRuleDetailOptions{}, "secgroup-rule-show", "Show details of rule", func(s *mcclient.ClientSession, args *SecGroupRuleDetailOptions) error {
if rule, e := modules.SecGroupRules.Get(s, args.ID, nil); e != nil {
return e
} else {
printObject(rule)
}
return nil
})
R(&SecGroupRuleDetailOptions{}, "secgroup-rule-delete", "Delete a secgroup rule", func(s *mcclient.ClientSession, args *SecGroupRuleDetailOptions) error {
if rule, e := modules.SecGroupRules.Delete(s, args.ID, nil); e != nil {
return e
} else {
printObject(rule)
}
return nil
})
type SecGroupRulesCreateOptions struct {
SECGROUP string `help:"Secgroup ID or Name" metavar:"Secgroup"`
Direction string `help:"Direction of rule" choices:"in|out"`
Action string `help:"Action of rule" choices:"allow|deny"`
Protocol string `help:"Protocol of rule" choices:"tcp|udp|icmp|any"`
Ports string `help:"Ports of rule"`
Cidr string `help:"Cidr of rule"`
Priority int64 `help:"priority of Rule"`
Desc string `help:"Description"`
}
R(&SecGroupRulesCreateOptions{}, "secgroup-rule-create", "Create all security group rule", func(s *mcclient.ClientSession, args *SecGroupRulesCreateOptions) error {
params := jsonutils.NewDict()
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if args.Priority > 0 {
params.Add(jsonutils.NewInt(args.Priority), "priority")
}
if len(args.Direction) > 0 {
params.Add(jsonutils.NewString(args.Direction), "direction")
}
if len(args.Action) > 0 {
params.Add(jsonutils.NewString(args.Action), "action")
}
if len(args.Protocol) > 0 {
params.Add(jsonutils.NewString(args.Protocol), "protocol")
}
if len(args.Ports) > 0 {
params.Add(jsonutils.NewString(args.Ports), "ports")
}
if len(args.Cidr) > 0 {
params.Add(jsonutils.NewString(args.Cidr), "cidr")
}
params.Add(jsonutils.NewString(args.SECGROUP), "secgroup")
secgrouprules, err := modules.SecGroupRules.Create(s, params)
if err != nil {
return err
}
printObject(secgrouprules)
return nil
})
type SecGroupRulesUpdateOptions struct {
ID string `help:"ID or name of rule"`
Name string `help:"New name of rule"`
Priority int64 `help:"priority of Rule"`
Protocol string `help:"Protocol of rule" choices:"any|tcp|udp|icmp"`
Ports string `help:"Ports of rule"`
Cidr string `help:"Cidr of rule"`
Action string `help:"filter Actin of rule" choices:"allow|deny"`
Desc string `help:"Description" metavar:"Description"`
}
R(&SecGroupRulesUpdateOptions{}, "secgroup-rule-update", "Update property of a security group rule", func(s *mcclient.ClientSession, args *SecGroupRulesUpdateOptions) error {
params := jsonutils.NewDict()
if len(args.Name) > 0 {
params.Add(jsonutils.NewString(args.Name), "name")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if args.Priority > 0 {
params.Add(jsonutils.NewInt(args.Priority), "priority")
}
if len(args.Protocol) > 0 {
params.Add(jsonutils.NewString(args.Protocol), "protocol")
}
if len(args.Ports) > 0 {
params.Add(jsonutils.NewString(args.Ports), "ports")
}
if len(args.Cidr) > 0 {
params.Add(jsonutils.NewString(args.Cidr), "cidr")
}
if len(args.Action) > 0 {
params.Add(jsonutils.NewString(args.Action), "action")
}
if rule, e := modules.SecGroupRules.Update(s, args.ID, params); e != nil {
return e
} else {
printObject(rule)
}
return nil
})
cmd := shell.NewResourceCmd(&modules.SecGroupRules).WithKeyword("secgroup-rule")
cmd.List(&compute.SecGroupRulesListOptions{})
cmd.Show(&options.BaseShowOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Create(&compute.SecGroupRulesCreateOptions{})
cmd.Update(&compute.SecGroupRulesUpdateOptions{})
}

View File

@@ -59,6 +59,7 @@ func init() {
cmd.BatchPerform("reset", new(options.ServerResetOptions))
cmd.BatchPerform("restart", new(options.ServerRestartOptions))
cmd.BatchPerform("purge", new(options.ServerIdsOptions))
cmd.PrintObjectYAML().Perform("migrate-forecast", new(options.ServerMigrateForecastOptions))
cmd.Perform("migrate", new(options.ServerMigrateOptions))
cmd.Perform("live-migrate", new(options.ServerLiveMigrateOptions))
cmd.Perform("modify-src-check", new(options.ServerModifySrcCheckOptions))
@@ -84,6 +85,7 @@ func init() {
cmd.Perform("set-auto-renew", new(options.ServerSetAutoRenew))
cmd.Perform("save-template", new(options.ServerSaveImageOptions))
cmd.Perform("remote-update", new(options.ServerRemoteUpdateOptions))
cmd.Perform("migrate-network", &options.ServerMigrateNetworkOptions{})
cmd.Get("vnc", new(options.ServerIdOptions))
cmd.Get("desc", new(options.ServerIdOptions))
@@ -174,6 +176,19 @@ func init() {
return nil
})
R(&options.ResourceMetadataOptions{}, "server-set-metadata", "Set raw metadata of a server", func(s *mcclient.ClientSession, opts *options.ResourceMetadataOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
result, err := modules.Servers.PerformAction(s, opts.ID, "metadata", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ServerCreateFromInstanceSnapshot{}, "server-create-from-instance-snapshot", "server create from instance snapshot",
func(s *mcclient.ClientSession, opts *options.ServerCreateFromInstanceSnapshot) error {
params := &compute.ServerCreateInput{}

View File

@@ -32,6 +32,8 @@ type GeneralUsageOptions struct {
CloudEnv string `help:"show usage of specified cloudenv" choices:"public|private|onpremise"`
Scope string `help:"show usage of specified privilege scope" choices:"system|domain|project"`
Refresh bool `help:"force refresh usage statistics"`
}
func fetchHostTypeOptions(args *GeneralUsageOptions) *jsonutils.JSONDict {
@@ -48,6 +50,9 @@ func fetchHostTypeOptions(args *GeneralUsageOptions) *jsonutils.JSONDict {
if len(args.CloudEnv) > 0 {
params.Add(jsonutils.NewString(args.CloudEnv), "cloud_env")
}
if args.Refresh {
params.Add(jsonutils.JSONTrue, "refresh")
}
return params
}

View File

@@ -27,6 +27,8 @@ func init() {
type WireListOptions struct {
options.BaseListOptions
Bandwidth *int `help:"List wires by bandwidth"`
Region string `help:"List wires in region"`
Zone string `help:"list wires in zone" json:"-"`
Vpc string `help:"List wires in vpc"`

View File

@@ -24,6 +24,7 @@ import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/util/printutils"
)
type ResourceCmd struct {
@@ -32,12 +33,15 @@ type ResourceCmd struct {
keyword string
prefix string
printObject func(jsonutils.JSONObject)
}
func NewResourceCmd(manager modulebase.IBaseManager) *ResourceCmd {
return &ResourceCmd{
manager: manager,
keyword: manager.GetKeyword(),
manager: manager,
keyword: manager.GetKeyword(),
printObject: printObjectRecursive,
}
}
@@ -62,6 +66,30 @@ func (cmd *ResourceCmd) SetKeyword(keyword string) *ResourceCmd {
return cmd
}
func (cmd *ResourceCmd) PrintObjectYAML() *ResourceCmd {
cmd.printObject = func(obj jsonutils.JSONObject) {
fmt.Print(obj.YAMLString())
}
return cmd
}
func (cmd *ResourceCmd) PrintObjectTable() *ResourceCmd {
cmd.printObject = printutils.PrintJSONObject
return cmd
}
func (cmd *ResourceCmd) PrintObjectKV() *ResourceCmd {
cmd.printObject = printObjectFmtKv
return cmd
}
func (cmd *ResourceCmd) PrintObjectFlattenKV() *ResourceCmd {
cmd.printObject = func(obj jsonutils.JSONObject) {
printObjectRecursiveEx(obj, printObjectFmtKv)
}
return cmd
}
type IOpt interface {
Params() (jsonutils.JSONObject, error)
}
@@ -325,7 +353,7 @@ func (cmd ResourceCmd) PerformWithKeyword(keyword, action string, args IPerformO
if err != nil {
return err
}
printObject(ret)
cmd.printObject(ret)
return nil
}
cmd.Run(keyword, args, callback)
@@ -342,7 +370,7 @@ func (cmd ResourceCmd) PerformClassWithKeyword(keyword, action string, args IOpt
if err != nil {
return err
}
printObject(ret)
cmd.printObject(ret)
return nil
}
cmd.Run(keyword, args, callback)
@@ -363,7 +391,7 @@ func (cmd ResourceCmd) PerformClass(action string, args IOpt) {
if err != nil {
return err
}
printObject(ret)
cmd.printObject(ret)
return nil
}
cmd.Run(action, args, callback)

View File

@@ -32,6 +32,7 @@ import (
func init() {
type IdentityProviderListOptions struct {
options.BaseListOptions
SsoDomain string `help:"Filter SSO IDP by domain" json:"sso_domain"`
}
R(&IdentityProviderListOptions{}, "idp-list", "List all identity provider", func(s *mcclient.ClientSession, args *IdentityProviderListOptions) error {
params, err := options.ListStructToParams(args)

View File

@@ -24,38 +24,22 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/onecloud/cmd/climc/shell"
api "yunion.io/x/onecloud/pkg/apis/identity"
"yunion.io/x/onecloud/pkg/cloudcommon/consts"
"yunion.io/x/onecloud/pkg/cloudcommon/policy"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/auth"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/identity"
"yunion.io/x/onecloud/pkg/util/fileutils2"
"yunion.io/x/onecloud/pkg/util/rbacutils"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func init() {
type PolicyListOptions struct {
options.BaseListOptions
Type string `help:"filter by type"`
IsSystem *bool `help:"filter by is_system" negative:"is_no_system"`
Format string `help:"policy format, default to yaml" default:"yaml" choices:"yaml|json"`
OrderByDomain string `help:"order by domain name" choices:"asc|desc"`
}
R(&PolicyListOptions{}, "policy-list", "List all policies", func(s *mcclient.ClientSession, args *PolicyListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.Policies.List(s, params)
if err != nil {
return err
}
printList(result, modules.Policies.GetColumns(s))
return nil
})
cmd := shell.NewResourceCmd(&modules.Policies)
cmd.List(&identity.PolicyListOptions{})
type PolicyCreateOptions struct {
Domain string `help:"domain of the policy"`
@@ -115,7 +99,9 @@ func init() {
Enabled bool `help:"update policy enabled"`
Disabled bool `help:"update policy disabled"`
Desc string `help:"Description"`
IsSystem *bool `help:"is_system"`
IsSystem bool `help:"is_system"`
IsNotSystem bool `help:"negative is_system"`
}
updateFunc := func(s *mcclient.ClientSession, args *PolicyPatchOptions) error {
policyId, err := modules.Policies.GetId(s, args.ID, nil)
@@ -141,14 +127,13 @@ func init() {
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if args.IsSystem != nil {
if *args.IsSystem {
params.Add(jsonutils.JSONTrue, "is_system")
} else {
params.Add(jsonutils.JSONFalse, "is_system")
}
if args.IsSystem {
params.Add(jsonutils.JSONTrue, "is_system")
}
result, err := modules.Policies.Patch(s, policyId, params)
if args.IsNotSystem {
params.Add(jsonutils.JSONFalse, "is_system")
}
result, err := modules.Policies.Update(s, policyId, params)
if err != nil {
return err
}

View File

@@ -17,100 +17,21 @@ package identity
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"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/mcclient/options/identity"
)
func init() {
type RoleListOptions struct {
options.BaseListOptions
OrderByDomain string `help:"order by domain name" choices:"asc|desc"`
}
R(&RoleListOptions{}, "role-list", "List keystone Roles", func(s *mcclient.ClientSession, args *RoleListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
result, err := modules.RolesV3.List(s, params)
if err != nil {
return err
}
printList(result, modules.RolesV3.GetColumns(s))
return nil
})
type RoleDetailOptions struct {
ID string `help:"ID or name of role"`
Domain string `help:"Domain"`
}
R(&RoleDetailOptions{}, "role-show", "Show details of a role", func(s *mcclient.ClientSession, args *RoleDetailOptions) error {
query := jsonutils.NewDict()
if len(args.Domain) > 0 {
domainId, err := modules.Domains.GetId(s, args.Domain, nil)
if err != nil {
return err
}
query.Add(jsonutils.NewString(domainId), "domain_id")
}
role, err := modules.RolesV3.Get(s, args.ID, query)
if err != nil {
return err
}
printObject(role)
return nil
})
R(&RoleDetailOptions{}, "role-delete", "Delete a role", func(s *mcclient.ClientSession, args *RoleDetailOptions) error {
query := jsonutils.NewDict()
if len(args.Domain) > 0 {
domainId, err := modules.Domains.GetId(s, args.Domain, nil)
if err != nil {
return err
}
query.Add(jsonutils.NewString(domainId), "domain_id")
}
rid, err := modules.RolesV3.GetId(s, args.ID, query)
if err != nil {
return err
}
role, err := modules.RolesV3.Delete(s, rid, nil)
if err != nil {
return err
}
printObject(role)
return nil
})
type RoleCreateOptions struct {
NAME string `help:"Role name"`
Domain string `help:"Domain"`
Desc string `help:"Description"`
PublicScope string `help:"public scope" choices:"none|system"`
}
R(&RoleCreateOptions{}, "role-create", "Create a new role", func(s *mcclient.ClientSession, args *RoleCreateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.NAME), "name")
if len(args.Domain) > 0 {
domainId, err := modules.Domains.GetId(s, args.Domain, nil)
if err != nil {
return err
}
params.Add(jsonutils.NewString(domainId), "domain_id")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if len(args.PublicScope) > 0 {
params.Add(jsonutils.NewString(args.PublicScope), "public_scope")
}
role, err := modules.RolesV3.Create(s, params)
if err != nil {
return err
}
printObject(role)
return nil
})
cmd := shell.NewResourceCmd(&modules.RolesV3)
cmd.List(&identity.RoleListOptions{})
cmd.Show(&identity.RoleDetailOptions{})
cmd.Delete(&identity.RoleDetailOptions{})
cmd.Create(&identity.RoleCreateOptions{})
cmd.Perform("public", &options.BaseIdOptions{})
cmd.Perform("private", &options.BaseIdOptions{})
type RoleUpdateOptions struct {
ID string `help:"Role ID or Name"`
@@ -145,25 +66,4 @@ func init() {
printObject(role)
return nil
})
type RolePerformOptions struct {
ID string `help:"ID of role to update"`
}
R(&RolePerformOptions{}, "role-public", "Mark a role public", func(s *mcclient.ClientSession, args *RolePerformOptions) error {
result, err := modules.RolesV3.PerformAction(s, args.ID, "public", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&RolePerformOptions{}, "role-private", "Mark a role private", func(s *mcclient.ClientSession, args *RolePerformOptions) error {
result, err := modules.RolesV3.PerformAction(s, args.ID, "private", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -167,6 +167,32 @@ func initKubeCluster() {
return nil
})
R(&o.ClusterEnableComponentCephCSIOpt{}, cmdN("component-enable-ceph-csi"), "Enable cluster ceph csi component", func(s *mcclient.ClientSession, args *o.ClusterEnableComponentCephCSIOpt) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "enable-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterEnableComponentMonitorOpt{}, cmdN("component-enable-monitor"), "Enable cluster monitor component", func(s *mcclient.ClientSession, args *o.ClusterEnableComponentMonitorOpt) error {
params, err := args.Params()
if err != nil {
return err
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "enable-component", params)
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterEnableComponentFluentBitOpt{}, cmdN("component-enable-fluentbit"), "Enable cluster fluentbit component", func(s *mcclient.ClientSession, args *o.ClusterEnableComponentFluentBitOpt) error {
params, err := args.Params()
if err != nil {

View File

@@ -36,6 +36,8 @@ func init() {
Email string `help:"The Email"`
Docs *string `help:"the Docs website address"`
License *string `help:"the license generator website address"`
BrandCn *string `help:"the brand name in Chinese"`
BrandEn *string `help:"the brand name in English"`
}
R(&CopyrightUpdateOptions{}, "copyright-update", "update copyright", func(s *mcclient.ClientSession, args *CopyrightUpdateOptions) error {
@@ -52,6 +54,14 @@ func init() {
params.Add(jsonutils.NewString(*args.License), "license")
}
if args.BrandCn != nil {
params.Add(jsonutils.NewString(*args.BrandCn), "brand_cn")
}
if args.BrandEn != nil {
params.Add(jsonutils.NewString(*args.BrandEn), "brand_en")
}
if len(args.Copyright) > 0 {
params.Add(jsonutils.NewString(args.Copyright), "copyright")
}

View File

@@ -17,6 +17,11 @@ package misc
import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/utils"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
@@ -35,6 +40,43 @@ func init() {
return nil
})
type VersionListOptions struct {
}
R(&VersionListOptions{}, "version-list", "query all backend service version", func(s *mcclient.ClientSession, args *VersionListOptions) error {
services := []jsonutils.JSONObject{}
params := map[string]interface{}{}
for {
params["offset"] = len(services)
resp, err := modules.ServicesV3.List(s, jsonutils.Marshal(params))
if err != nil {
return err
}
services = append(services, resp.Data...)
if len(services) >= resp.Total {
break
}
}
vers := map[string]string{}
for _, service := range services {
serviceType, _ := service.GetString("type")
if utils.IsInStringArray(serviceType, []string{"offlinecloudmeta"}) {
continue
}
ver, err := modules.GetVersion(s, serviceType)
if err != nil {
if errors.Cause(err) == cloudprovider.ErrNotFound {
continue
}
vers[serviceType] = err.Error()
} else {
vers[serviceType] = ver
}
}
printObject(jsonutils.Marshal(vers))
return nil
})
R(&options.VersionListOptions{}, "yunionagent-version-list", "show versions of backend services", func(s *mcclient.ClientSession, opts *options.VersionListOptions) error {
if len(opts.Region) == 0 {
opts.Region = s.GetRegion()

View File

@@ -111,7 +111,7 @@ func init() {
}
R(&ConfigGetTypesOptions{}, "notify-config-get-types", "Get all Config types", func(s *mcclient.ClientSession, args *ConfigGetTypesOptions) error {
param := jsonutils.Marshal(args)
result, err := modules.NotifyConfig.PerformClassAction(s, "get-types", param)
result, err := modules.NotifyReceiver.PerformClassAction(s, "get-types", param)
if err != nil {
return err
}

View File

@@ -25,4 +25,6 @@ func init() {
cmd.List(new(options.SuggestSysAlertListOptions))
cmd.Show(new(options.SSuggestAlertShowOptions))
cmd.Perform("ignore", new(options.SuggestAlertIgnoreOptions))
cmd_ := shell.NewResourceCmd(monitor.SuggestSysAlertCostManager)
cmd_.Get("", new(options.SuggestAlertCostOptions))
}

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

@@ -15,12 +15,17 @@
package main
import (
"context"
"yunion.io/x/onecloud/pkg/esxi/service"
"yunion.io/x/onecloud/pkg/util/atexit"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func main() {
defer atexit.Handle()
go procutils.WaitZombieLoop(context.TODO())
service.New().StartService()
}

View File

@@ -15,12 +15,17 @@
package main
import (
"context"
"yunion.io/x/onecloud/pkg/image/service"
"yunion.io/x/onecloud/pkg/util/atexit"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func main() {
defer atexit.Handle()
go procutils.WaitZombieLoop(context.TODO())
service.StartService()
}

View File

@@ -14,9 +14,16 @@
package main
import "yunion.io/x/onecloud/pkg/hostman/hostdeployer/deployserver"
import (
"context"
"yunion.io/x/onecloud/pkg/hostman/hostdeployer/deployserver"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func main() {
go procutils.WaitZombieLoop(context.TODO())
deployer := deployserver.NewDeployService()
deployer.StartService()
}

View File

@@ -15,14 +15,19 @@
package main
import (
"context"
"yunion.io/x/onecloud/pkg/cloudcommon/service"
"yunion.io/x/onecloud/pkg/hostman"
"yunion.io/x/onecloud/pkg/util/atexit"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func main() {
defer atexit.Handle()
go procutils.WaitZombieLoop(context.TODO())
var srv = &hostman.SHostService{}
srv.SServiceBase = &service.SServiceBase{
Service: srv,

130
cmd/rbdcli/main.go Normal file
View File

@@ -0,0 +1,130 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
"fmt"
"os"
"yunion.io/x/pkg/errors"
"yunion.io/x/structarg"
_ "yunion.io/x/onecloud/cmd/rbdcli/shell"
"yunion.io/x/onecloud/pkg/util/rbdutils"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
type BaseOptions struct {
Help bool `help:"Show help"`
Debug bool `help:"debug mode"`
MonHost string `help:"Ceph Mon Host" default:"$MON_HOST"`
Pool string `help:"Ceph pool" default:"$CEPH_POOL" metavar:"CEPH_POOL"`
Key string `help:"Secret" default:"$CEPH_KEY" metavar:"CEPH_KEY"`
SUBCOMMAND string `help:"rbdcli subcommand" subcommand:"true"`
}
func getSubcommandParser() (*structarg.ArgumentParser, error) {
parse, e := structarg.NewArgumentParser(&BaseOptions{},
"rbdcli",
"Command-line interface to rbd API.",
`See "rbdcli help COMMAND" for help on a specific command.`)
if e != nil {
return nil, e
}
subcmd := parse.GetSubcommand()
if subcmd == nil {
return nil, fmt.Errorf("No subcommand argument.")
}
type HelpOptions struct {
SUBCOMMAND string `help:"sub-command name"`
}
shellutils.R(&HelpOptions{}, "help", "Show help of a subcommand", func(args *HelpOptions) error {
helpstr, e := subcmd.SubHelpString(args.SUBCOMMAND)
if e != nil {
return e
} else {
fmt.Print(helpstr)
return nil
}
})
for _, v := range shellutils.CommandTable {
_, e := subcmd.AddSubParser(v.Options, v.Command, v.Desc, v.Callback)
if e != nil {
return nil, e
}
}
return parse, nil
}
func showErrorAndExit(e error) {
fmt.Fprintf(os.Stderr, "%s", e)
fmt.Fprintln(os.Stderr)
os.Exit(1)
}
func newPool(opts *BaseOptions) (*rbdutils.SPool, error) {
cli, err := rbdutils.NewCluster(opts.MonHost, opts.Key)
if err != nil {
return nil, err
}
pool, err := cli.GetPool(opts.Pool)
if err != nil {
return nil, errors.Wrapf(err, "GetPool(%s)", opts.Pool)
}
return pool, nil
}
func main() {
parser, e := getSubcommandParser()
if e != nil {
showErrorAndExit(e)
}
e = parser.ParseArgs(os.Args[1:], false)
options := parser.Options().(*BaseOptions)
if options.Help {
fmt.Print(parser.HelpString())
return
}
subcmd := parser.GetSubcommand()
subparser := subcmd.GetSubParser()
if e != nil {
if subparser != nil {
fmt.Print(subparser.Usage())
} else {
fmt.Print(parser.Usage())
}
showErrorAndExit(e)
return
}
suboptions := subparser.Options()
if options.SUBCOMMAND == "help" {
e = subcmd.Invoke(suboptions)
} else {
var pool *rbdutils.SPool
pool, e = newPool(options)
if e != nil {
showErrorAndExit(e)
}
e = subcmd.Invoke(pool, suboptions)
}
if e != nil {
showErrorAndExit(e)
}
}

View File

@@ -0,0 +1,51 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/pkg/util/rbdutils"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func init() {
type ClusterStatOption struct {
}
shellutils.R(&ClusterStatOption{}, "cluster-stat", "Show Cluster State", func(cli *rbdutils.SPool, args *ClusterStatOption) error {
cluster := cli.GetCluster()
stat, err := cluster.GetClusterStats()
if err != nil {
return errors.Wrapf(err, "GetClusterStats")
}
printObject(stat)
return nil
})
type CmdOptions struct {
CMD string
}
shellutils.R(&CmdOptions{}, "run", "Run Cluster command", func(cli *rbdutils.SPool, args *CmdOptions) error {
ret, err := cli.GetCluster().MonCommand([]byte(args.CMD))
if err != nil {
return errors.Wrapf(err, "MonCommand")
}
printObject(ret)
return nil
})
}

58
cmd/rbdcli/shell/pool.go Normal file
View File

@@ -0,0 +1,58 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/pkg/util/rbdutils"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func init() {
type PoolListOptions struct {
}
shellutils.R(&PoolListOptions{}, "pool-list", "List pools", func(cli *rbdutils.SPool, args *PoolListOptions) error {
cluster := cli.GetCluster()
pools, err := cluster.ListPools()
if err != nil {
return errors.Wrapf(err, "ListPools")
}
printObject(jsonutils.Marshal(map[string][]string{"pools": pools}))
return nil
})
type PoolDeleteOptions struct {
POOL string
}
shellutils.R(&PoolDeleteOptions{}, "pool-delete", "Delete Cluster pool", func(cli *rbdutils.SPool, args *PoolDeleteOptions) error {
return cli.GetCluster().DeletePool(args.POOL)
})
type ImageListOptions struct {
}
shellutils.R(&ImageListOptions{}, "image-list", "List Pool images", func(cli *rbdutils.SPool, args *ImageListOptions) error {
images, err := cli.ListImages()
if err != nil {
return err
}
printObject(jsonutils.Marshal(map[string][]string{"images": images}))
return nil
})
}

View File

@@ -0,0 +1,25 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package shell
import "yunion.io/x/onecloud/pkg/util/printutils"
func printList(data interface{}, total, offset, limit int, columns []string) {
printutils.PrintInterfaceList(data, total, offset, limit, columns)
}
func printObject(obj interface{}) {
printutils.PrintInterfaceObject(obj)
}

View File

@@ -19,6 +19,7 @@ import (
"yunion.io/x/onecloud/pkg/baremetal/utils/raid/drivers"
"yunion.io/x/onecloud/pkg/compute/baremetal"
"yunion.io/x/onecloud/pkg/util/httputils"
"yunion.io/x/onecloud/pkg/util/procutils"
)
const (
@@ -128,6 +129,7 @@ func (c *RaidInfoCollector) CollectReportData() string {
}
func (c *RaidInfoCollector) Start() {
go procutils.WaitZombieLoop(context.TODO())
for {
c.runMain()
time.Sleep(time.Second * 1)

View File

@@ -26,6 +26,7 @@ import (
app_common "yunion.io/x/onecloud/pkg/cloudcommon/app"
common_options "yunion.io/x/onecloud/pkg/cloudcommon/options"
"yunion.io/x/onecloud/pkg/util/atexit"
"yunion.io/x/onecloud/pkg/util/procutils"
"yunion.io/x/onecloud/pkg/vpcagent/options"
_ "yunion.io/x/onecloud/pkg/vpcagent/ovn"
"yunion.io/x/onecloud/pkg/vpcagent/worker"
@@ -52,8 +53,12 @@ func main() {
}
{
ctx := context.Background()
ctx, cancelFunc := context.WithCancel(ctx)
go procutils.WaitZombieLoop(ctx)
wg := &sync.WaitGroup{}
ctx, cancelFunc := context.WithCancel(context.Background())
ctx = context.WithValue(ctx, "wg", wg)
wg.Add(1)
go w.Start(ctx)

View File

@@ -15,12 +15,17 @@
package main
import (
"context"
"yunion.io/x/onecloud/pkg/util/atexit"
"yunion.io/x/onecloud/pkg/util/procutils"
"yunion.io/x/onecloud/pkg/webconsole/service"
)
func main() {
defer atexit.Handle()
go procutils.WaitZombieLoop(context.TODO())
service.StartService()
}

10
go.mod
View File

@@ -109,7 +109,7 @@ require (
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/stretchr/testify v1.5.1
github.com/tencentcloud/tencentcloud-sdk-go v3.0.135+incompatible
github.com/tencentyun/cos-go-sdk-v5 v0.7.10
github.com/tencentyun/cos-go-sdk-v5 v0.7.24
github.com/tinylib/msgp v1.1.0 // indirect
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
github.com/tredoe/osutil v0.0.0-20161130133508-7d3ee1afa71c
@@ -140,13 +140,13 @@ require (
k8s.io/apimachinery v0.19.3
k8s.io/client-go v0.19.3
k8s.io/cluster-bootstrap v0.19.3
yunion.io/x/executor v0.0.0-20201201131200-44fa553abd9e
yunion.io/x/jsonutils v0.0.0-20201110084044-3e4e1cb49769
yunion.io/x/executor v0.0.0-20211018100936-39a2cd966656
yunion.io/x/jsonutils v0.0.0-20211105163012-d846c05a3c9a
yunion.io/x/log v0.0.0-20201210064738-43181789dc74
yunion.io/x/ovsdb v0.0.0-20200526071744-27bf0940cbc7
yunion.io/x/pkg v0.0.0-20201123083159-ca3aea986ff2
yunion.io/x/pkg v0.0.0-20211116020154-6a76ba2f7e97
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e
yunion.io/x/sqlchemy v0.0.0-20201219153152-2d901261898c
yunion.io/x/sqlchemy v1.0.0
yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce
)

53
go.sum
View File

@@ -2,14 +2,12 @@ bazil.org/fuse v0.0.0-20180421153158-65cc252bf669 h1:FNCRpXiquG1aoyqcIWVFmpTSKVc
bazil.org/fuse v0.0.0-20180421153158-65cc252bf669/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8=
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.38.0 h1:ROfEUZz+Gh5pa62DJWXSaonyu3StP6EA6lPEXPI6mCo=
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
cloud.google.com/go v0.50.0 h1:0E3eE8MX426vUOs7aHfI7aN1BrIzzzf4ccKCSfSjGmc=
cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
cloud.google.com/go v0.51.0 h1:PvKAVQWCtlGUSlZkGW3QLelKaWq7KYv/MW1EboG8bfM=
cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw=
@@ -32,16 +30,12 @@ github.com/Azure/azure-sdk-for-go v36.1.0+incompatible h1:smHlbChr/JDmsyUqELZXLs
github.com/Azure/azure-sdk-for-go v36.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.9.0 h1:MRvx8gncNaXJqOoLmhNjUAKh33JJF8LyxPhomEtOsjs=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
github.com/Azure/go-autorest/autorest v0.9.3 h1:OZEIaBbMdUE/Js+BQKlpO81XlISgipr6yDJ+PSwsgi4=
github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0=
github.com/Azure/go-autorest/autorest v0.9.6 h1:5YWtOnckcudzIw8lPPBcWOnmIFWMtHci1ZWAZulMSx0=
github.com/Azure/go-autorest/autorest v0.9.6/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630=
github.com/Azure/go-autorest/autorest/adal v0.5.0 h1:q2gDruN08/guU9vAjuPWff0+QIrpH6ediguzdAzXAUU=
github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc=
github.com/Azure/go-autorest/autorest/adal v0.8.1 h1:pZdL8o72rK+avFWl+p9nE8RWi1JInZrWJYlnpfXJwHk=
github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/adal v0.8.2 h1:O1X4oexUxnZCaEUGsvMnr8ZGj8HI37tNezwY4npRqA0=
github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
@@ -49,12 +43,10 @@ github.com/Azure/go-autorest/autorest/azure/auth v0.4.2 h1:iM6UAvjR97ZIeR93qTcwp
github.com/Azure/go-autorest/autorest/azure/auth v0.4.2/go.mod h1:90gmfKdlmKgfjUpnCEpOJzsUEjrWDSLwHIG73tSXddM=
github.com/Azure/go-autorest/autorest/azure/cli v0.3.1 h1:LXl088ZQlP0SBppGFsRZonW6hSvwgL5gRByMbvUbx8U=
github.com/Azure/go-autorest/autorest/azure/cli v0.3.1/go.mod h1:ZG5p860J94/0kI9mNJVoIoLgXcirM2gF5i2kWloofxw=
github.com/Azure/go-autorest/autorest/date v0.1.0 h1:YGrhWfrgtFs84+h0o46rJrlmsZtyZRg470CqAXTZaGM=
github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA=
github.com/Azure/go-autorest/autorest/date v0.2.0 h1:yW+Zlqf26583pE43KhfnhFcdmSWlm5Ew6bxipnr/tbM=
github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g=
github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/autorest/mocks v0.2.0 h1:Ww5g4zThfD/6cLb4z6xxgeyDa7QDkizMkJKe0ysZXp0=
github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/autorest/mocks v0.3.0 h1:qJumjCaCudz+OcqE9/XtEPfvtOjOmKaui4EOpFI6zZc=
github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM=
@@ -87,9 +79,7 @@ github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMx
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
github.com/a8m/mark v0.1.1-0.20170507133748-44f2db618845/go.mod h1:c8Mh99Cw82nrsAnPgxQSZHkswVOJF7/MqZb1ZdvriLM=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc h1:cAKDfWh5VpdgMhJosfJnn5/FoN2SRZ4p7fJNX58YPaU=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf h1:qet1QNfXsQxTZqLG4oE62mJzwPIB8+Tee4RNCL9ulrY=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/aliyun/alibaba-cloud-sdk-go v1.61.684 h1:MHqPW0la4Op96JGMkpB7Kxrz0Se5nowF6rLhHTZBUn4=
github.com/aliyun/alibaba-cloud-sdk-go v1.61.684/go.mod h1:pUKYbK5JQ+1Dfxk80P0qxGqe5dkxDoabbZS7zOcouyA=
@@ -216,7 +206,6 @@ github.com/fernet/fernet-go v0.0.0-20180830025343-9eac43b88a5e h1:P10tZmVD2XclAa
github.com/fernet/fernet-go v0.0.0-20180830025343-9eac43b88a5e/go.mod h1:2H9hjfbpSMHwY503FclkV/lZTBh2YlOmLLSda12uL8c=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
@@ -282,7 +271,6 @@ github.com/golang/mock v1.3.1 h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s=
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
@@ -301,13 +289,11 @@ github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g=
github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
@@ -366,7 +352,6 @@ github.com/imdario/mergo v0.3.6 h1:xTNEAn+kxVO7dTZGu0CegyqKZmoWFI0rF8UxjlB2d28=
github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
github.com/jmespath/go-jmespath v0.3.0 h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc=
github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik=
@@ -375,7 +360,6 @@ github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22
github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.7 h1:KfgG9LzI+pYjr4xvmz/5H4FXjokeP+rlHLhv3iH62Fo=
github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
@@ -397,7 +381,6 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGi
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs=
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
@@ -508,7 +491,6 @@ github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG
github.com/pierrec/lz4 v2.0.5+incompatible h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
@@ -576,15 +558,14 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/syncthing/syncthing v0.14.48-rc.4/go.mod h1:nw3siZwHPA6M8iSfjDCWQ402eqvEIasMQOE8nFOxy7M=
github.com/tencentcloud/tencentcloud-sdk-go v3.0.135+incompatible h1:QIMoFqKCmNp4HPLiTR+couZbHsIZfoOllncHYvtqse8=
github.com/tencentcloud/tencentcloud-sdk-go v3.0.135+incompatible/go.mod h1:0PfYow01SHPMhKY31xa+EFz2RStxIqj6JFAJS+IkCi4=
github.com/tencentyun/cos-go-sdk-v5 v0.7.10 h1:hJPLdR4RPsnubB3M9qXNBeUbcOJMVANnO/L6Att/PZU=
github.com/tencentyun/cos-go-sdk-v5 v0.7.10/go.mod h1:wQBO5HdAkLjj2q6XQiIfDSP8DXDNrppDRw2Kp/1BODA=
github.com/tencentyun/cos-go-sdk-v5 v0.7.24 h1:ZsZij764lOaPsj7mEAlyxXvslGt6/m312Tzqj/zeRpo=
github.com/tencentyun/cos-go-sdk-v5 v0.7.24/go.mod h1:wQBO5HdAkLjj2q6XQiIfDSP8DXDNrppDRw2Kp/1BODA=
github.com/texttheater/golang-levenshtein v0.0.0-20180516184445-d188e65d659e h1:T5PdfK/M1xyrHwynxMIVMWLS7f/qHwfslZphxtGnw7s=
github.com/texttheater/golang-levenshtein v0.0.0-20180516184445-d188e65d659e/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g=
github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE=
@@ -644,7 +625,6 @@ golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413 h1:ULYEB3JvPRE/IfO+9uO7vKV/xzVTO7XPAwm8xbf4w2g=
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
@@ -696,10 +676,8 @@ golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191003171128-d98b1b443823/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191007182048-72f939374954/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b h1:0mm1VjtFUOIlE1SbDlwjYaDxZVDP2S5ou6y0gSgXHu8=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU=
@@ -744,20 +722,17 @@ golang.org/x/sys v0.0.0-20191003212358-c178f38b412c/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8 h1:JA8d3MPx/IToSyXZG/RhwYEtfrKO1Fxrqe8KrkiLXKM=
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 h1:5/PjkGUjvEU5Gl6BxmvKRPpqo2uNMv4rcHBMwzk/st8=
golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -786,7 +761,6 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4 h1:Toz2IK7k8rbltAXwNAxKcn9OzqyNfMUhUNjz3sL0NMk=
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200417140056-c07e33ef3290/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20200515220128-d3bf790afa53 h1:vmsb6v0zUdmUlXfwKaYrHPPRCV0lHq/IwNIf0ASGjyQ=
@@ -824,7 +798,6 @@ google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBr
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb h1:ADPHZzpzM4tk4V4S5cnCrr5SwzvlrPRmqqCuJDB8UTs=
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY=
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
@@ -833,7 +806,6 @@ google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiq
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.26.0 h1:2dTRdpdFEEhJYQD8EMLB61nnrzSCTbG38PhqdhvOltg=
google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
google.golang.org/grpc v1.27.0 h1:rRYRFMVgRv6E0D70Skyfsr28tDXIuuPZyWGMPdMcnXg=
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
@@ -847,12 +819,10 @@ google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
google.golang.org/protobuf v1.24.0 h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA=
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d h1:TxyelI5cVkbREznMhfzycHdkp5cLA7DpE+GKjSslYhM=
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
@@ -886,7 +856,6 @@ honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM=
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
@@ -908,15 +877,14 @@ k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
sigs.k8s.io/structured-merge-diff/v4 v4.0.1 h1:YXTMot5Qz/X1iBRJhAt+vI+HVttY0WkSqqhKxQ0xVbA=
sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw=
sigs.k8s.io/yaml v1.1.0 h1:4A07+ZFc2wgJwo8YNlQpr1rVlgUDlxXHhPJciaPY5gs=
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
yunion.io/x/executor v0.0.0-20201201131200-44fa553abd9e h1:NRtqiegW4NME0v10rpChORZnJnuAUbpv31R5DsqqczQ=
yunion.io/x/executor v0.0.0-20201201131200-44fa553abd9e/go.mod h1:Uxuou9WQIeJXNpy7t2fPLL0BYLvLiMvGQwY7Qc6aSws=
yunion.io/x/executor v0.0.0-20211018100936-39a2cd966656 h1:0zlZD5uhZoIHgLVAWCz2aHaYk2ZrNsACCYD7R6EIBII=
yunion.io/x/executor v0.0.0-20211018100936-39a2cd966656/go.mod h1:Uxuou9WQIeJXNpy7t2fPLL0BYLvLiMvGQwY7Qc6aSws=
yunion.io/x/jsonutils v0.0.0-20190625054549-a964e1e8a051/go.mod h1:4N0/RVzsYL3kH3WE/H1BjUQdFiWu50JGCFQuuy+Z634=
yunion.io/x/jsonutils v0.0.0-20201110084044-3e4e1cb49769 h1:LIQ4hhLGQuQK+XxlV+8JrKBuL37WUT+5ZTVxBwHOTD4=
yunion.io/x/jsonutils v0.0.0-20201110084044-3e4e1cb49769/go.mod h1:p0nyMqGA/apTxxyLIU/o1k4V7Vujl2O6ey30L594sYE=
yunion.io/x/jsonutils v0.0.0-20211105163012-d846c05a3c9a h1:X/ucfLNcYsCfc4GFEX7R7GNWiDPr3vopLdnE4PuU46U=
yunion.io/x/jsonutils v0.0.0-20211105163012-d846c05a3c9a/go.mod h1:p0nyMqGA/apTxxyLIU/o1k4V7Vujl2O6ey30L594sYE=
yunion.io/x/log v0.0.0-20190514041436-04ce53b17c6b/go.mod h1:+gauLs73omeJAPlsXcevLsJLKixV+sR/E7WSYTSx1fE=
yunion.io/x/log v0.0.0-20190629062853-9f6483a7103d/go.mod h1:LC6f/4FozL0iaAbnFt2eDX9jlsyo3WiOUPm03d7+U4U=
yunion.io/x/log v0.0.0-20201210064738-43181789dc74 h1:7D+sQ/XaUTUEm+NCrKXOhXBKlzEd0RyS2qZ4vBGjx2o=
@@ -925,13 +893,12 @@ yunion.io/x/ovsdb v0.0.0-20200526071744-27bf0940cbc7 h1:gjqNa2uQzIEXyySsbvVz0Ult
yunion.io/x/ovsdb v0.0.0-20200526071744-27bf0940cbc7/go.mod h1:0vLkNEhlmA64HViPBAnSTUMrx5QP1CLsxXmxDKQ80tc=
yunion.io/x/pkg v0.0.0-20190620104149-945c25821dbf/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/pkg v0.0.0-20190628082551-f4033ba2ea30/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/pkg v0.0.0-20200814072949-4f1b541857d6 h1:UarEDTBGkgcgc+nc+PZ75uo9M9+jiOGd5P2B90TxDNw=
yunion.io/x/pkg v0.0.0-20200814072949-4f1b541857d6/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/pkg v0.0.0-20201123083159-ca3aea986ff2 h1:NeCr2J8HjcIuJvEhP0rwWA1UKP8ReOv6HVf5k9YPtyA=
yunion.io/x/pkg v0.0.0-20201123083159-ca3aea986ff2/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/pkg v0.0.0-20211116020154-6a76ba2f7e97 h1:lY+5NlWwO2aIkfNnVOGKHmZvMt6m4ZuGtarIjwNfUsg=
yunion.io/x/pkg v0.0.0-20211116020154-6a76ba2f7e97/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e h1:v+EzIadodSwkdZ/7bremd7J8J50Cise/HCylsOJngmo=
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e/go.mod h1:0iFKpOs1y4lbCxeOmq3Xx/0AcQoewVPwj62eRluioEo=
yunion.io/x/sqlchemy v0.0.0-20201219153152-2d901261898c h1:71nVDQq1oUjvZknEUNfetdiOB1jZMEfmoQlMUaoPIJs=
yunion.io/x/sqlchemy v0.0.0-20201219153152-2d901261898c/go.mod h1:FTdwPdGhMgh4E+UFXc9klI1Ok34fMuybTT+jLhOaIjI=
yunion.io/x/sqlchemy v1.0.0 h1:fRtWxe1xxMR+NDVKYNuI89m2HGSl6aad2DZ+Bn/mZ4Q=
yunion.io/x/sqlchemy v1.0.0/go.mod h1:FTdwPdGhMgh4E+UFXc9klI1Ok34fMuybTT+jLhOaIjI=
yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce h1:kU8xE7O5uZ1GSJVMZHoJ+jrNL7csUQHYGyAPW9QfNpE=
yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce/go.mod h1:EP6NSv2C0zzqBDTKumv8hPWLb3XvgMZDHQRfyuOrQng=

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -201,7 +201,9 @@ func (apb *SAnsiblePlaybookV2) runPlaybook(ctx context.Context, userCred mcclien
Requirements(apb.Requirements).
Files(files).
OutputWriter(&ansiblePlaybookOutputWriter{apb}).
KeepTmpdir(options.Options.KeepTmpdir)
KeepTmpdir(options.Options.KeepTmpdir).
RolePublic(options.Options.RolePublic).
Timeout(options.Options.Timeout)
man.sessions.Add(apb.Id, sess)
// NOTE host state check? run only on online hosts and running guests, skip others

View File

@@ -20,6 +20,8 @@ type AnsibleServerOptions struct {
common_options.CommonOptions
common_options.DBOptions
KeepTmpdir bool `help:"Whether to save the tmp directory" json:"keep_tmpdir"`
RolePublic bool `help:"Download and use the role of the public directory"`
Timeout int `help:"Ansible Override the connection timeout in seconds" default:"10"`
}
var (

View File

@@ -140,7 +140,7 @@ func (h *AuthHandlers) GetRegionsResponse(ctx context.Context, w http.ResponseWr
if options.Options.ReturnFullDomainList {
filters := jsonutils.NewDict()
if len(currentDomain) > 0 {
filters.Add(jsonutils.NewString(currentDomain), "id")
filters.Add(jsonutils.NewString(currentDomain), "name")
}
filters.Add(jsonutils.NewInt(1000), "limit")
result, e := modules.Domains.List(s, filters)
@@ -157,6 +157,9 @@ func (h *AuthHandlers) GetRegionsResponse(ctx context.Context, w http.ResponseWr
}
}
resp.Add(domains, "domains")
resp.Add(jsonutils.JSONTrue, "return_full_domains")
} else {
resp.Add(jsonutils.JSONFalse, "return_full_domains")
}
filters := jsonutils.NewDict()
@@ -309,9 +312,20 @@ func (h *AuthHandlers) doCredentialLogin(ctx context.Context, req *http.Request,
if err != nil {
switch httperr := err.(type) {
case *httputils.JSONClientError:
if httperr.Code >= 500 {
return nil, err
}
if httperr.Code == 409 || httperr.Code == 429 {
return nil, err
}
switch httperr.Class {
case "UserNotFound", "WrongPassword":
return nil, httperrors.NewJsonClientError(httperrors.ErrIncorrectUsernameOrPassword, "incorrect username or password")
case "UserLocked":
return nil, httperrors.NewJsonClientError(httperrors.ErrUserLocked, "The user has been locked, please contact the administrator")
case "UserDisabled":
return nil, httperrors.NewJsonClientError(httperrors.ErrUserDisabled, "The user has been disabled, please contact the administrator")
}
}
return nil, httperrors.NewInvalidCredentialError("invalid credential")
}
@@ -501,34 +515,34 @@ func (h *AuthHandlers) doLogin(ctx context.Context, w http.ResponseWriter, req *
if body.Contains("tenantId") { // switch project
token, authToken, err = doTenantLogin(ctx, req, body)
if err != nil {
return errors.Wrap(err, "doTenantLogin")
return err
}
userInfo, err = fetchUserInfoFromToken(ctx, req, token)
if err != nil {
return errors.Wrap(err, "fetchUserInfoFromToken")
return err
}
} else {
// user/password authenticate
// SSO authentication
token, err = h.doCredentialLogin(ctx, req, body)
if err != nil {
return errors.Wrap(err, "doCredentialLogin")
return err
}
userInfo, err = fetchUserInfoFromToken(ctx, req, token)
if err != nil {
return errors.Wrap(err, "fetchUserInfoFromToken")
return err
}
s := auth.GetAdminSession(ctx, FetchRegion(req), "")
isTotpInit, err := isUserTotpCredInitialed(s, token.GetUserId())
if err != nil {
return errors.Wrap(err, "isUserTotpCredInitialed")
return err
}
isIdpLogin := body.Contains("idp_driver")
authToken = clientman.NewAuthToken(token.GetTokenString(), isUserEnableTotp(userInfo), isTotpInit, isIdpLogin)
}
if !isUserAllowWebconsole(userInfo) {
return errors.Wrap(httperrors.ErrForbidden, "user forbidden login from web")
return httperrors.NewForbiddenError("user forbidden login from web")
}
saveAuthCookie(w, authToken, token)
@@ -986,6 +1000,12 @@ func getUserInfo2(s *mcclient.ClientSession, uid string, pid string, loginIp str
data.Add(jsonutils.JSONFalse, "non_default_domain_projects")
}
if options.Options.EnableQuotaCheck {
data.Add(jsonutils.JSONTrue, "enable_quota_check")
} else {
data.Add(jsonutils.JSONFalse, "enable_quota_check")
}
data.Add(jsonutils.NewString(getSsoCallbackUrl()), "sso_callback_url")
return data, nil
@@ -996,7 +1016,7 @@ func (h *AuthHandlers) getPermissionDetails(ctx context.Context, w http.Response
_, query, body := appsrv.FetchEnv(ctx, w, req)
if body == nil {
httperrors.InvalidInputError(ctx, w, "body is empty")
httperrors.InvalidInputError(ctx, w, "request body is empty")
return
}
var name string
@@ -1030,7 +1050,7 @@ func (h *AuthHandlers) doCreatePolicies(ctx context.Context, w http.ResponseWrit
// }
_, _, body := appsrv.FetchEnv(ctx, w, req)
if body == nil {
httperrors.InvalidInputError(ctx, w, "body is empty")
httperrors.InvalidInputError(ctx, w, "request body is empty")
return
}
s := auth.GetSession(ctx, t, FetchRegion(req), "")
@@ -1114,7 +1134,7 @@ func (h *AuthHandlers) resetUserPassword(ctx context.Context, w http.ResponseWri
_, _, body := appsrv.FetchEnv(ctx, w, req)
if body == nil {
httperrors.InvalidInputError(ctx, w, "body is empty")
httperrors.InvalidInputError(ctx, w, "request body is empty")
return
}
@@ -1150,7 +1170,7 @@ func (h *AuthHandlers) resetUserPassword(ctx context.Context, w http.ResponseWri
return
}
}
httperrors.InputParameterError(ctx, w, "密码错误")
httperrors.InputParameterError(ctx, w, "wrong password")
return
}

View File

@@ -205,7 +205,7 @@ func validateTotpRecoverySecrets(s *mcclient.ClientSession, uid string, question
func initTotpSecrets(ctx context.Context, w http.ResponseWriter, req *http.Request) {
t, authToken, err := fetchAuthInfo(ctx, req)
if err != nil {
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail %s", err)
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail: %s", err)
return
}
if authToken.IsTotpInitialized() {
@@ -232,14 +232,14 @@ func initTotpSecrets(ctx context.Context, w http.ResponseWriter, req *http.Reque
func validatePasscodeHandler(ctx context.Context, w http.ResponseWriter, req *http.Request) {
t, authToken, err := fetchAuthInfo(ctx, req)
if err != nil {
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail %s", err)
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail: %s", err)
return
}
s := auth.GetAdminSession(ctx, FetchRegion(req), "")
_, _, body := appsrv.FetchEnv(ctx, w, req)
if body == nil {
httperrors.InvalidInputError(ctx, w, "body is empty")
httperrors.InvalidInputError(ctx, w, "request body is empty")
return
}
@@ -271,14 +271,14 @@ func validatePasscodeHandler(ctx context.Context, w http.ResponseWriter, req *ht
func resetTotpSecrets(ctx context.Context, w http.ResponseWriter, req *http.Request) {
t, _, err := fetchAuthInfo(ctx, req)
if err != nil {
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail %s", err)
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail: %s", err)
return
}
s := auth.GetAdminSession(ctx, FetchRegion(req), "")
_, _, body := appsrv.FetchEnv(ctx, w, req)
if body == nil {
httperrors.InvalidInputError(ctx, w, "body is empty")
httperrors.InvalidInputError(ctx, w, "request body is empty")
return
}
@@ -309,7 +309,7 @@ func resetTotpSecrets(ctx context.Context, w http.ResponseWriter, req *http.Requ
func listTotpRecoveryQuestions(ctx context.Context, w http.ResponseWriter, req *http.Request) {
t, _, err := fetchAuthInfo(ctx, req)
if err != nil {
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail %s", err)
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail: %s", err)
return
}
@@ -335,14 +335,14 @@ func listTotpRecoveryQuestions(ctx context.Context, w http.ResponseWriter, req *
func resetTotpRecoveryQuestions(ctx context.Context, w http.ResponseWriter, req *http.Request) {
t, _, err := fetchAuthInfo(ctx, req)
if err != nil {
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail %s", err)
httperrors.InvalidCredentialError(ctx, w, "fetchAuthInfo fail: %s", err)
return
}
s := auth.GetAdminSession(ctx, FetchRegion(req), "")
_, _, body := appsrv.FetchEnv(ctx, w, req)
if body == nil {
httperrors.InvalidInputError(ctx, w, "body is empty")
httperrors.InvalidInputError(ctx, w, "request body is empty")
return
}

View File

@@ -116,7 +116,7 @@ func (h *AuthHandlers) getIdpSsoRedirectUri(ctx context.Context, w http.Response
}
func findExtUserId(input string) string {
pattern := regexp.MustCompile(`idp.SyncOrCreateDomainAndUser: ([^:]+): UserNotFoundError`)
pattern := regexp.MustCompile(`idp.SyncOrCreateDomainAndUser: ([^:]+): UserNotFound`)
matches := pattern.FindAllStringSubmatch(input, -1)
log.Debugf("%#v", matches)
if len(matches) > 0 && len(matches[0]) > 1 {
@@ -170,7 +170,7 @@ func (h *AuthHandlers) handleSsoLogin(ctx context.Context, w http.ResponseWriter
case "POST":
formData, err := appsrv.Fetch(req)
if err != nil {
httperrors.InputParameterError(ctx, w, "fetch formdata error: %s", err)
httperrors.InputParameterError(ctx, w, "fetch form data error: %s", err)
}
body, err = jsonutils.ParseQueryString(string(formData))
if err != nil {

View File

@@ -22,7 +22,7 @@ func TestFindExtUserId(t *testing.T) {
want string
}{
{
in: "authUserByCASV3: Authenticate: idp.SyncOrCreateDomainAndUser: qiujian: UserNotFoundError",
in: "authUserByCASV3: Authenticate: idp.SyncOrCreateDomainAndUser: qiujian: UserNotFound",
want: "qiujian",
},
}

View File

@@ -42,6 +42,8 @@ import (
"yunion.io/x/onecloud/pkg/util/httputils"
)
const contentTypeSpreadsheet = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
const (
HOST_MAC = "*MAC地址"
HOST_NAME = "*名称"
@@ -154,8 +156,8 @@ func (mh *MiscHandler) DoBatchHostRegister(ctx context.Context, w http.ResponseW
fileHeader := hostfiles[0].Header
contentType := fileHeader.Get("Content-Type")
if contentType != "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" {
e := httperrors.NewInputParameterError("Wrong content type %s, required application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", contentType)
if contentType != contentTypeSpreadsheet {
e := httperrors.NewInputParameterError("Wrong content type %s, want %s", contentType, contentTypeSpreadsheet)
httperrors.JsonClientError(ctx, w, e)
return
}
@@ -199,7 +201,7 @@ func (mh *MiscHandler) DoBatchHostRegister(ctx context.Context, w http.ResponseW
}
if !titlesOk {
httperrors.InputParameterError(ctx, w, "template file is invalid.please check.")
httperrors.InputParameterError(ctx, w, "template file is invalid. please check.")
return
}
@@ -302,8 +304,8 @@ func (mh *MiscHandler) DoBatchUserRegister(ctx context.Context, w http.ResponseW
fileHeader := userfiles[0].Header
contentType := fileHeader.Get("Content-Type")
if contentType != "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" {
e := httperrors.NewInputParameterError("Wrong content type %s, required application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", contentType)
if contentType != contentTypeSpreadsheet {
e := httperrors.NewInputParameterError("Wrong content type %s, want %s", contentType, contentTypeSpreadsheet)
httperrors.JsonClientError(ctx, w, e)
return
}
@@ -328,7 +330,7 @@ func (mh *MiscHandler) DoBatchUserRegister(ctx context.Context, w http.ResponseW
// skipped header row
rows := xlsx.GetRows("users")
if len(rows) <= 1 {
e := httperrors.NewInputParameterError("empty file")
e := httperrors.NewInputParameterError("empty file content")
httperrors.JsonClientError(ctx, w, e)
return
} else if len(rows) > BATCH_USER_REGISTER_QUANTITY_LIMITATION {
@@ -359,6 +361,12 @@ func (mh *MiscHandler) DoBatchUserRegister(ctx context.Context, w http.ResponseW
return
}
if len(password) == 0 {
e := httperrors.NewClientError("row %d password is empty", rowIdx)
httperrors.JsonClientError(ctx, w, e)
return
}
domainId, ok := domains[domain]
if !ok {
if len(domain) == 0 {
@@ -431,7 +439,7 @@ func (mh *MiscHandler) getDownloadsHandler(ctx context.Context, w http.ResponseW
params := appctx.AppContextParams(ctx)
template, ok := params["<template_id>"]
if !ok || len(template) == 0 {
httperrors.InvalidInputError(ctx, w, "not found")
httperrors.InvalidInputError(ctx, w, "template_id")
return
}
@@ -460,7 +468,7 @@ func (mh *MiscHandler) getDownloadsHandler(ctx context.Context, w http.ResponseW
return
}
case "BatchUserRegister":
records := [][]string{{"*用户名user", "用户密码password", "*部门/域domain", "*是否登录控制台allow_web_consoletrue、false"}}
records := [][]string{{"*用户名user", "*用户密码password", "*部门/域domain", "*是否登录控制台allow_web_consoletrue、false"}}
content, err = writeXlsx("users", records)
if err != nil {
httperrors.InternalServerError(ctx, w, "internal server error")

View File

@@ -22,6 +22,7 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/utils"
"yunion.io/x/onecloud/pkg/appsrv"
"yunion.io/x/onecloud/pkg/httperrors"
@@ -142,11 +143,11 @@ func fetchIdList(ctx context.Context, query jsonutils.JSONObject, w http.Respons
if e == nil && len(idlist) > 0 {
queryDict := query.(*jsonutils.JSONDict)
queryDict.Remove("id")
log.Debugf("Get idlist: %s", idlist)
log.Debugf("Get id list: %s", idlist)
return jsonutils.JSONArray2StringArray(idlist)
} else {
log.Debugf("Cannot find idlist in query: %s", query)
httperrors.InvalidInputError(ctx, w, "No idlist found")
log.Debugf("Cannot find id list in query: %s", query)
httperrors.InvalidInputError(ctx, w, "No id list found")
return nil
}
}
@@ -190,45 +191,62 @@ func (f *ResourceHandlers) listHandler(ctx context.Context, w http.ResponseWrite
func (f *ResourceHandlers) doList(ctx context.Context, session *mcclient.ClientSession, module modulebase.IBaseManager, query jsonutils.JSONObject, w http.ResponseWriter, r *http.Request) {
var exportKeys []string
var exportTexts []string
exportFormat, _ := query.GetString("export")
if len(exportFormat) > 0 {
exportKeyStr, _ := query.GetString("export_keys")
exportTextStr, _ := query.GetString("export_texts")
if len(exportKeyStr) > 0 {
exportKeys = strings.Split(exportKeyStr, ",")
export := struct {
ExportFormat string `json:"export"`
ExportKeys string `json:"export_keys"`
ExportTexts string `json:"export_texts"`
}{}
query.Unmarshal(&export)
if len(export.ExportFormat) > 0 {
if len(export.ExportKeys) > 0 {
exportKeys = strings.Split(export.ExportKeys, ",")
}
if len(exportTextStr) > 0 {
exportTexts = strings.Split(exportTextStr, ",")
if len(export.ExportTexts) > 0 {
exportTexts = strings.Split(export.ExportTexts, ",")
}
if len(exportKeys) == 0 {
httperrors.InvalidInputError(ctx, w, "missing export keys")
return
} else if len(exportKeys) != len(exportTexts) {
if len(exportTexts) == 0 {
exportTexts = exportKeys
} else {
httperrors.InvalidInputError(ctx, w, "inconsistent export keys and texts")
return
}
}
if len(exportTexts) == 0 {
exportTexts = exportKeys
}
if len(exportKeys) != len(exportTexts) {
httperrors.InvalidInputError(ctx, w, "inconsistent export keys and texts")
return
}
queryDict := query.(*jsonutils.JSONDict)
queryDict.Remove("export")
queryDict.Remove("export_texts")
keys := []string{}
for _, key := range exportKeys {
if !strings.Contains(key, ".") {
keys = append(keys, key)
continue
}
key = strings.Split(key, ".")[0]
if !utils.IsInStringArray(key, keys) {
keys = append(keys, key)
}
}
queryDict.Set("export_keys", jsonutils.NewString(strings.Join(keys, ",")))
query = queryDict
}
ret, e := module.List(session, query)
if e != nil {
httperrors.GeneralServerError(ctx, w, e)
} else if len(exportFormat) > 0 {
return
}
if len(export.ExportFormat) > 0 {
w.Header().Set("Content-Description", "File Transfer")
w.Header().Set("Content-Transfer-Encoding", "binary")
w.Header().Set("Content-Type", "application/octet-stream")
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"export-%s.xlsx\"", module.KeyString()))
excelutils.Export(ret.Data, exportKeys, exportTexts, w)
} else {
appsrv.SendJSON(w, modulebase.ListResult2JSON(ret))
return
}
appsrv.SendJSON(w, modulebase.ListResult2JSON(ret))
}
// get single
@@ -787,7 +805,7 @@ func (f *ResourceHandlers) detachHandle(ctx context.Context, w http.ResponseWrit
jmod, e := modulebase.GetJointModule2(session, module, module2)
var obj jsonutils.JSONObject
if e == nil { // joint detach
obj, e = jmod.Detach(session, req.ResID(), req.ResID2(), nil)
obj, e = jmod.Detach(session, req.ResID(), req.ResID2(), req.Query())
} else {
obj, e = module2.DeleteInContextWithParam(session, req.ResID2(), req.Query(), req.Body(), module, req.ResID())
}

View File

@@ -27,6 +27,7 @@ type CloudroleListInput struct {
apis.StatusInfrasResourceBaseListInput
CloudaccountResourceListInput
CloudgroupResourceListInput
}
type CloudroleDetails struct {

View File

@@ -29,12 +29,13 @@ const (
DEFAULT_DISK_TYPE = DISK_TYPE_ROTATE
DISK_DRIVER_MEGARAID = "MegaRaid"
DISK_DRIVER_LINUX = "Linux"
DISK_DRIVER_HPSARAID = "HPSARaid"
DISK_DRIVER_MPT2SAS = "Mpt2SAS"
DISK_DRIVER_MARVELRAID = "MarvelRaid"
DISK_DRIVER_PCIE = "PCIE"
DISK_DRIVER_MEGARAID = "MegaRaid"
DISK_DRIVER_LINUX = "Linux"
DISK_DRIVER_HPSARAID = "HPSARaid"
DISK_DRIVER_MPT2SAS = "Mpt2SAS"
DISK_DRIVER_MARVELRAID = "MarvelRaid"
DISK_DRIVER_ADAPTECRAID = "AdaptecRaid"
DISK_DRIVER_PCIE = "PCIE"
HDD_DISK_SPEC_TYPE = "HDD"
SSD_DISK_SPEC_TYPE = "SSD"
@@ -60,6 +61,7 @@ var (
DISK_DRIVER_HPSARAID,
DISK_DRIVER_MPT2SAS,
DISK_DRIVER_MARVELRAID,
DISK_DRIVER_ADAPTECRAID,
)
DISK_DRIVERS = sets.NewString(

View File

@@ -320,12 +320,16 @@ func (input *BucketCORSRules) Validate() error {
}
type BucketRefererConf struct {
// 白名单域名列表
WhiteList []string
// 黑名单域名列表
BlackList []string
// Referer Type
// enmu: Black-List, White-List
RefererType string
// 域名列表
DomainList []string
// 是否允许空referer 访问
AllowEmptyRefer bool
// 是否开启
Enabled bool `json:"enabled"`
}
func (input *BucketRefererConf) Validate() error {

View File

@@ -335,8 +335,25 @@ type CloudaccountPerformPublicInput struct {
type CloudaccountPerformPrepareNetsInput struct {
CloudaccountCreateInput
// description: Recommended network subnet mask
// example: 24
NetworkBits *int8 `json:"network_bits"`
// description: The upper limit of host number
// example: 254
HostNumberUpperLimit *int `json:"host_number_upper_limit"`
// description: The lower limit of host number
// example: 2
HostNumberLowerLimit *int `json:"host_number_lower_limit"`
// enum: vcenter,datacenter,cluster
WireLevelForVmware string `json:"wire_level_for_vmware"`
// description: Whether to directly create the recommended network
Create *bool `json:"create"`
// description: It is recommended that the name of the network be the same as the native name of vmware
OriginNetworkName *bool `json:"origin_network_name"`
// description: Created network ip distribution strategy
NetworkIpAllocationPolicy string `json:"network_ip_allocation_policy"`
// description: zone of wire created
WireZone string `json:"wire_zone"`
}
type CloudaccountPerformPrepareNetsOutput struct {
@@ -427,3 +444,9 @@ type GetCloudaccountSamlOutput struct {
// initial SAML SSO login URL for this cloudaccount
InitLoginUrl string `json:"init_login_url,allowempty"`
}
type CloudaccountEnableAutoSyncInput struct {
// 云账号状态必须是connected
// 最小值为region服务的minimal_sync_interval_seconds
SyncIntervalSeconds int `json:"sync_interval_seconds"`
}

View File

@@ -101,6 +101,50 @@ var (
CLOUD_PROVIDER_GOOGLE,
CLOUD_PROVIDER_CTYUN,
}
CLOUD_PROVIDER_HOST_TYPE_MAP = map[string][]string{
CLOUD_PROVIDER_ONECLOUD: []string{
HOST_TYPE_KVM,
HOST_TYPE_BAREMETAL,
HOST_TYPE_HYPERVISOR,
},
CLOUD_PROVIDER_VMWARE: []string{
HOST_TYPE_ESXI,
},
CLOUD_PROVIDER_ALIYUN: []string{
HOST_TYPE_ALIYUN,
},
CLOUD_PROVIDER_APSARA: []string{
HOST_TYPE_APSARA,
},
CLOUD_PROVIDER_QCLOUD: []string{
HOST_TYPE_QCLOUD,
},
CLOUD_PROVIDER_AZURE: []string{
HOST_TYPE_AZURE,
},
CLOUD_PROVIDER_AWS: []string{
HOST_TYPE_AWS,
},
CLOUD_PROVIDER_HUAWEI: []string{
HOST_TYPE_HUAWEI,
},
CLOUD_PROVIDER_OPENSTACK: []string{
HOST_TYPE_OPENSTACK,
},
CLOUD_PROVIDER_UCLOUD: []string{
HOST_TYPE_UCLOUD,
},
CLOUD_PROVIDER_ZSTACK: []string{
HOST_TYPE_ZSTACK,
},
CLOUD_PROVIDER_GOOGLE: []string{
HOST_TYPE_GOOGLE,
},
CLOUD_PROVIDER_CTYUN: []string{
HOST_TYPE_CTYUN,
},
}
)
const (

View File

@@ -114,6 +114,7 @@ const (
CITY_SOUTH_CAROLINA = "South Carolina" //南卡罗来纳州
CITY_SALT_LAKE_CITY = "Salt Lake City" //盐湖城
CITY_LAS_VEGAS = "Las Vegas" //拉斯维加斯
CITY_PHOENIX = "Phoenix" //菲尼克斯
// 英国
CITY_LONDON = "London" //伦敦
@@ -150,7 +151,8 @@ const (
CITY_STOCKHOLM = "Stockholm" //斯德哥尔摩
// 巴西
CITY_SAO_PAULO = "Sao Paulo" //圣保罗
CITY_SAO_PAULO = "Sao Paulo" //圣保罗
CITY_RIO_DE_JANEIRO = "Rio de Janeiro" // 里约热内卢
// 智利
CITY_SANTIAGO = "Santiago" // 圣地亚哥
@@ -175,6 +177,9 @@ const (
// 尼日利亚
CITY_LAGOS = "Lagos" //拉哥斯
// 巴林王国 (中东国家)
CITY_BAHRAIN = "Bahrain" // 巴林
// 越南
CITY_HO_CHI_MINH = "Ho Chi Minh" //???
@@ -205,4 +210,5 @@ const (
COUNTRY_CODE_NO = "NO" //挪威
COUNTRY_CODE_MX = "MX" //墨西哥
COUNTRY_CODE_CL = "CL" //智利
COUNTRY_CODE_BH = "BH" //巴林
)

View File

@@ -166,11 +166,7 @@ type SDBInstanceChangeConfigInput struct {
apis.Meta
InstanceType string
VCpuCount int
VmemSizeMb int
StorageType string
DiskSizeGB int
Category string
}
type SDBInstanceRecoveryConfigInput struct {

View File

@@ -17,8 +17,11 @@ package compute
import (
"time"
"yunion.io/x/pkg/util/fileutils"
"yunion.io/x/onecloud/pkg/apis"
"yunion.io/x/onecloud/pkg/apis/billing"
"yunion.io/x/onecloud/pkg/httperrors"
)
type DiskCreateInput struct {
@@ -106,6 +109,7 @@ type DiskListInput struct {
apis.VirtualResourceListInput
apis.ExternalizedResourceBaseListInput
apis.MultiArchResourceBaseListInput
apis.AutoDeleteResourceBaseListInput
billing.BillingResourceListInput
StorageFilterListInput
@@ -134,8 +138,6 @@ type DiskListInput struct {
DiskSize int `json:"disk_size"`
AutoDelete *bool `json:"auto_delete"`
FsFormat string `json:"fs_format"`
// 镜像
@@ -242,3 +244,16 @@ type DiskUpdateInput struct {
// 磁盘类型
DiskType string `json:"disk_type"`
}
type DiskResizeInput struct {
// default unit: Mb
// example: 1024; 40G; 1024M
Size string `json:"size"`
}
func (self DiskResizeInput) SizeMb() (int, error) {
if len(self.Size) == 0 {
return 0, httperrors.NewMissingParameterError("size")
}
return fileutils.GetSizeMb(self.Size, 'M', 1024)
}

View File

@@ -159,6 +159,12 @@ type ElasticcacheCreateInput struct {
// 主可用区名称或Id
Zone string `json:"zone"`
// 备可用区名称或Id列表
// 默认副本与主可用区一致
// 支持此参数的云厂商: 腾讯云
// required: false
SlaveZones []string `json:"slave_zones"`
// Ip子网名称或Id,建议使用Id
// required: true
Network string `json:"network"`

View File

@@ -171,11 +171,6 @@ const (
CPU_MODE_HOST = "host"
)
const (
OS_ARCH_X86 = "x86"
OS_ARCH_ARM = "arm"
)
var VM_RUNNING_STATUS = []string{VM_START_START, VM_STARTING, VM_RUNNING, VM_BLOCK_STREAM, VM_BLOCK_STREAM_FAIL}
var VM_CREATING_STATUS = []string{VM_CREATE_NETWORK, VM_CREATE_DISK, VM_START_DEPLOY, VM_DEPLOYING}

View File

@@ -62,9 +62,9 @@ type ServerListInput struct {
// enum: linux,windows,vmware
OsType []string `json:"os_type"`
// 对列表结果按照磁盘进行排序
// 对列表结果按照磁盘大小进行排序
// enum: asc,desc
// OrderByDisk string `json:"order_by_disk"`
OrderByDisk string `json:"order_by_disk"`
// 根据ip查找机器
IpAddr string `json:"ip_addr"`
@@ -372,7 +372,10 @@ type GuestMigrateInput struct {
}
type GuestLiveMigrateInput struct {
// 指定期望的迁移目标宿主机
PreferHost string `json:"prefer_host"`
// 是否跳过CPU检查默认要做CPU检查
SkipCpuCheck *bool `json:"skip_cpu_check"`
}
type GuestSetSecgroupInput struct {
@@ -457,3 +460,60 @@ type ServerStopInput struct {
// 目前仅阿里云,腾讯云此参数生效
StopCharging bool `json:"stop_charging"`
}
type ServerDeleteInput struct {
// 是否越过回收站直接删除
// default: false
OverridePendingDelete bool
// 是否仅删除本地资源
// default: false
Purge bool
// 是否删除快照
// default: false
DeleteSnapshots bool
// 是否删除关联的EIP
// default: false
DeleteEip bool
// 是否删除关联的数据盘
// default: false
DeleteDisks bool
}
type ServerDetachnetworkInput struct {
// 是否保留IP地址(ip地址会进入到预留ip)
Reserve bool `json:"reserve"`
// 通过IP子网地址, 优先级最高
NetId string `json:"net_id"`
// 通过IP解绑网卡, 优先级高于mac
IpAddr string `json:"ip_addr"`
// 通过Mac解绑网卡, 优先级低于ip_addr
Mac string `json:"mac"`
}
type ServerMigrateForecastInput struct {
PreferHostId string `json:"prefer_host_id"`
// Deprecated
PreferHost string `json:"prefer_host" yunion-deprecated-by:"prefer_host_id"`
LiveMigrate bool `json:"live_migrate"`
SkipCpuCheck bool `josn:"skip_cpu_check"`
}
type ServerResizeDiskInput struct {
// swagger: ignore
Disk string `json:"disk" yunion-deprecated-by:"disk_id"`
// 磁盘Id
DiskId string `json:"disk_id"`
DiskResizeInput
}
type ServerMigrateNetworkInput struct {
// Source network Id
Src string `json:"src"`
// Destination network Id
Dest string `json:"dest"`
}

View File

@@ -72,6 +72,8 @@ type HostListInput struct {
ResourceType string `json:"resource_type"`
// filter by mac of any network interface
AnyMac string `json:"any_mac"`
// filter by ip of any network interface
AnyIp string `json:"any_ip"`
// filter storages not attached to this host
StorageNotAttached *bool `json:"storage_not_attached"`
// filter by Hypervisor

View File

@@ -131,7 +131,3 @@ const (
HOST_HEALTH_STATUS_RUNNING = "running"
HOST_HEALTH_LOCK_PREFIX = "host-health"
)
const (
CPU_ARCH_AARCH64 = "aarch64"
)

View File

@@ -245,6 +245,9 @@ type LoadbalancerCreateInput struct {
// 计费类型
ChargeType string `json:"charge_type"`
// 出口带宽
EgressMbps int `json:"egress_mbps"`
// 套餐名称
LoadbalancerSpec string `json:"loadbalancer_spec"`

View File

@@ -59,6 +59,7 @@ type SchedtagFilterListInput struct {
type SchedtagListInput struct {
apis.StandaloneResourceListInput
apis.ScopedResourceBaseListInput
CloudproviderResourceInput
// fitler by resource_type
ResourceType []string `json:"resource_type"`

View File

@@ -24,14 +24,12 @@ import (
"yunion.io/x/onecloud/pkg/apis"
)
type SSecgroupRuleCreateInput struct {
apis.ResourceBaseCreateInput
type SSecgroupRuleResource struct {
// 优先级, 数字越大优先级越高
// minimum: 1
// maximum: 100
// required: true
Priority int `json:"priority"`
Priority *int `json:"priority"`
// 协议
// required: true
@@ -68,7 +66,7 @@ type SSecgroupRuleCreateInput struct {
// required: true
Direction string `json:"direction"`
// ip或cidr地址
// ip或cidr地址, 若指定peer_secgroup_id此参数不生效
// example: 192.168.222.121
CIDR string `json:"cidr"`
@@ -84,17 +82,36 @@ type SSecgroupRuleCreateInput struct {
// example: test to create rule
Description string `json:"description"`
// 仅单独创建安全组规则时需要指定安全组
// required: true
Secgroup string `json:"secgroup"`
// swagger:ignore
SecgroupId string
// 对端安全组Id, 此参数和cidr参数互斥并且优先级高于cidr, 同事peer_secgroup_id不能和它所在的安全组ID相同
// required: false
PeerSecgroupId string `json:"peer_secgroup_id"`
}
func (input *SSecgroupRuleCreateInput) Check() error {
type SSecgroupRuleCreateInput struct {
apis.ResourceBaseCreateInput
SSecgroupRuleResource
// swagger:ignore
Secgroup string `json:"secgroup" yunion-deprecated-by:"secgroup_id"`
// 安全组ID
// required: true
SecgroupId string `json:"secgroup_id"`
}
type SSecgroupRuleUpdateInput struct {
apis.ResourceBaseUpdateInput
SSecgroupRuleResource
}
func (input *SSecgroupRuleResource) Check() error {
priority := 1
if input.Priority != nil {
priority = *input.Priority
}
rule := secrules.SecurityRule{
Priority: input.Priority,
Priority: priority,
Direction: secrules.TSecurityRuleDirection(input.Direction),
Action: secrules.TSecurityRuleAction(input.Action),
Protocol: input.Protocol,

View File

@@ -22,5 +22,6 @@ type SecgroupRuleDetails struct {
SSecurityGroupRule
SecurityGroupResourceInfo
ProjectId string `json:"tenant_id"`
ProjectId string `json:"tenant_id"`
PeerSecgroup string `json:"peer_secgroup"`
}

View File

@@ -140,6 +140,13 @@ type ServerSkuDetails struct {
type ServerSkuUpdateInput struct {
apis.EnabledStatusStandaloneResourceBaseUpdateInput
// 预付费状态
// default: available
PrepaidStatus string `json:"prepaid_status"`
// 后付费状态
// default: available
PostpaidStatus string `json:"postpaid_status"`
InstanceTypeFamily string `json:"instance_type_family"`
InstanceTypeCategory string `json:"instance_type_category"`

View File

@@ -19,13 +19,13 @@ import "yunion.io/x/onecloud/pkg/apis"
type SnapshotCreateInput struct {
apis.VirtualResourceCreateInput
// 磁盘名称或Id,建议使用Id
// 磁盘Id
// 目前仅VMware平台不支持创建快照,其余平台磁盘均支持创建快照
// required: true
Disk string `json:"disk"`
// swagger:ignore
DiskId string `json:"disk_id"`
// swagger:ignore
Disk string `json:"disk" yunion-deprecated-by:"disk_id"`
// swagger:ignore
StorageId string `json:"storage_id"`
// swagger:ignore
CreatedBy string `json:"created_by"`

View File

@@ -19,12 +19,13 @@ const (
SNAPSHOT_MANUAL = "manual"
SNAPSHOT_AUTO = "auto"
SNAPSHOT_CREATING = "creating"
SNAPSHOT_ROLLBACKING = "rollbacking"
SNAPSHOT_FAILED = "create_failed"
SNAPSHOT_READY = "ready"
SNAPSHOT_DELETING = "deleting"
SNAPSHOT_UNKNOWN = "unknown"
SNAPSHOT_CREATING = "creating"
SNAPSHOT_ROLLBACKING = "rollbacking"
SNAPSHOT_FAILED = "create_failed"
SNAPSHOT_READY = "ready"
SNAPSHOT_DELETE_FAILED = "delete_failed"
SNAPSHOT_DELETING = "deleting"
SNAPSHOT_UNKNOWN = "unknown"
SNAPSHOT_POLICY_CREATING = "creating"

View File

@@ -146,6 +146,25 @@ var (
SHARED_STORAGE = []string{STORAGE_NFS, STORAGE_GPFS, STORAGE_RBD}
)
func IsDiskTypeMatch(t1, t2 string) bool {
switch t1 {
case DISK_TYPE_ROTATE:
if t2 == DISK_TYPE_SSD {
return false
} else {
return true
}
case DISK_TYPE_SSD:
if t2 == DISK_TYPE_ROTATE {
return false
} else {
return true
}
default:
return true
}
}
type StorageResourceInput struct {
// 存储ID或Name
StorageId string `json:"storage_id"`

View File

@@ -33,6 +33,8 @@ const (
DEFAULT_VPC_ID = "default"
NORMAL_VPC_ID = "normal" // 没有关联VPC的安全组统一使用normal
CLASSIC_VPC_NAME = "-"
)
type UsableResourceListInput struct {

View File

@@ -87,4 +87,6 @@ type WireListInput struct {
ZonalFilterListBase
HostResourceInput
Bandwidth *int `json:"bandwidth"`
}

View File

@@ -14,6 +14,8 @@
package apis
import "yunion.io/x/pkg/utils"
const (
SERVICE_TYPE_IMAGE = "image"
SERVICE_TYPE_OFFLINE_CLOUDMETA = "offlinecloudmeta"
@@ -60,3 +62,22 @@ var (
SERVICE_TYPE_INFLUXDB,
}
)
const (
OS_ARCH_X86 = "x86"
OS_ARCH_ARM = "arm"
OS_ARCH_I386 = "i386"
OS_ARCH_X86_32 = "x86_32"
OS_ARCH_X86_64 = "x86_64"
OS_ARCH_AARCH32 = "aarch32"
OS_ARCH_AARCH64 = "aarch64"
)
func IsARM(osArch string) bool {
return utils.IsInStringArray(osArch, []string{
OS_ARCH_ARM,
OS_ARCH_AARCH32,
OS_ARCH_AARCH64,
})
}

View File

@@ -346,6 +346,12 @@ type PolicyListInput struct {
// 是否显示系统权限
IsSystem *bool `json:"is_system"`
// filter policies by role id
RoleId string `json:"role_id"`
// swagger: ignore
// Deprecated
Role string `json:"role" yunion-deprecated-by:"role_id"`
}
type RegionFilterListInput struct {

View File

@@ -31,11 +31,12 @@ type SUserExtended struct {
Email string
Mobile string
LocalId int
LocalName string
DomainName string
DomainEnabled bool
IsLocal bool
LocalId int
LocalName string
LocalFailedAuthCount int
DomainName string
DomainEnabled bool
IsLocal bool
// IdpId string
// IdpName string
}

View File

@@ -319,3 +319,7 @@ type EnabledStatusInfrasResourceBaseListInput struct {
type MultiArchResourceBaseListInput struct {
OsArch string `json:"os_arch"`
}
type AutoDeleteResourceBaseListInput struct {
AutoDelete *bool
}

View File

@@ -27,4 +27,14 @@ type BaremetalEventListInput struct {
Since time.Time `json:"since"`
// until
Until time.Time `json:"until"`
// host_id
HostId []string `json:"host_id"`
// id
Id []int64 `json:"id"`
// EventId
EventId []string `json:"event_id"`
// Type
Type []string `json:"type"`
// ipmi_ip
IpmiIp []string `json:"ipmi_ip"`
}

View File

@@ -0,0 +1,163 @@
package monitor
var (
ServerTags = map[string]string{
"host": "host",
"host_id": "host_id",
"vm_id": "id",
"vm_ip": "ips",
"vm_name": "name",
"zone": "zone",
"zone_id": "zone_id",
"zone_ext_id": "zone_ext_id",
"os_type": "os_type",
"status": "status",
"cloudregion": "cloudregion",
"cloudregion_id": "cloudregion_id",
"region_ext_id": "region_ext_id",
"tenant": "tenant",
"tenant_id": "tenant_id",
"brand": "brand",
"scaling_group_id": "vm_scaling_group_id",
"domain_id": "domain_id",
"project_domain": "project_domain",
}
HostTags = map[string]string{
"host_id": "id",
"host_ip": "ips",
"host": "name",
"zone": "zone",
"zone_id": "zone_id",
"zone_ext_id": "zone_ext_id",
"os_type": "os_type",
"status": "status",
"cloudregion": "cloudregion",
"cloudregion_id": "cloudregion_id",
"region_ext_id": "region_ext_id",
"tenant": "tenant",
"tenant_id": "tenant_id",
"brand": "brand",
"domain_id": "domain_id",
"project_domain": "project_domain",
"access_ip": "access_ip",
}
RdsTags = map[string]string{
"host": "host",
"host_id": "host_id",
"rds_id": "id",
"rds_ip": "ips",
"rds_name": "name",
"zone": "zone",
"zone_id": "zone_id",
"zone_ext_id": "zone_ext_id",
"os_type": "os_type",
"status": "status",
"cloudregion": "cloudregion",
"cloudregion_id": "cloudregion_id",
"region_ext_id": "region_ext_id",
"tenant": "tenant",
"tenant_id": "tenant_id",
"brand": "brand",
"domain_id": "domain_id",
"project_domain": "project_domain",
}
RedisTags = map[string]string{
"host": "host",
"host_id": "host_id",
"redis_id": "id",
"redis_ip": "ips",
"redis_name": "name",
"zone": "zone",
"zone_id": "zone_id",
"zone_ext_id": "zone_ext_id",
"os_type": "os_type",
"status": "status",
"cloudregion": "cloudregion",
"cloudregion_id": "cloudregion_id",
"region_ext_id": "region_ext_id",
"tenant": "tenant",
"tenant_id": "tenant_id",
"brand": "brand",
"domain_id": "domain_id",
"project_domain": "project_domain",
}
OssTags = map[string]string{
"host": "host",
"host_id": "host_id",
"oss_id": "id",
"oss_ip": "ips",
"oss_name": "name",
"zone": "zone",
"zone_id": "zone_id",
"zone_ext_id": "zone_ext_id",
"os_type": "os_type",
"status": "status",
"cloudregion": "cloudregion",
"cloudregion_id": "cloudregion_id",
"region_ext_id": "region_ext_id",
"tenant": "tenant",
"tenant_id": "tenant_id",
"brand": "brand",
"domain_id": "domain_id",
"project_domain": "project_domain",
}
ElbTags = map[string]string{
"host": "host",
"host_id": "host_id",
"elb_id": "id",
"elb_ip": "ips",
"elb_name": "name",
"zone": "zone",
"zone_id": "zone_id",
"zone_ext_id": "zone_ext_id",
"os_type": "os_type",
"status": "status",
"region": "region",
"cloudregion": "cloudregion",
"cloudregion_id": "cloudregion_id",
"tenant": "tenant",
"tenant_id": "tenant_id",
"brand": "brand",
"domain_id": "domain_id",
"project_domain": "project_domain",
}
CloudAccountTags = map[string]string{
"cloudaccount_id": "id",
"cloudaccount_name": "name",
"brand": "brand",
"domain_id": "domain_id",
"project_domain": "project_domain",
}
TenantTags = map[string]string{
"tenant_id": "id",
"tenant": "name",
"domain_id": "domain_id",
"project_domain": "project_domain",
}
DomainTags = map[string]string{
"domain_id": "id",
"project_domain": "name",
}
StorageTags = map[string]string{
"storage_id": "id",
"storage_name": "name",
"zone": "zone",
"zone_id": "zone_id",
"zone_ext_id": "zone_ext_id",
"status": "status",
"cloudregion": "cloudregion",
"cloudregion_id": "cloudregion_id",
"region_ext_id": "region_ext_id",
"brand": "brand",
"domain_id": "domain_id",
"project_domain": "project_domain",
}
)

View File

@@ -22,7 +22,7 @@ type AlertResourceType string
const (
// AlertResourceTypeNode means onecloud system infrastructure controller or host node
AlertResourceTypeNode AlertResourceType = "node"
AlertResourceTypeNode AlertResourceType = "host"
// AlertResourceTypeCloudaccount means cloudaccount resource
AlertResourceTypeCloudaccount AlertResourceType = "cloudaccount"
// AlertResourceTypeVM means virtual machine guest resource

View File

@@ -120,10 +120,11 @@ type CommonAlertDetails struct {
}
type CommonAlertMetricDetails struct {
Comparator string `json:"comparator"`
Threshold float64 `json:"threshold"`
ConditionType string `json:"condition_type"`
ThresholdStr string `json:"threshold_str"`
Comparator string `json:"comparator"`
Threshold float64 `json:"threshold"`
WithinRange []float64 `json:"within_range"`
ConditionType string `json:"condition_type"`
ThresholdStr string `json:"threshold_str"`
// metric points'value的运算方式
Reduce string `json:"reduce"`
DB string `json:"db"`

View File

@@ -9,6 +9,9 @@ const (
METRIC_RES_TYPE_OSS = "oss"
METRIC_RES_TYPE_RDS = "rds"
METRIC_RES_TYPE_CLOUDACCOUNT = "cloudaccount"
METRIC_RES_TYPE_TENANT = "tenant"
METRIC_RES_TYPE_DOMAIN = "domain"
METRIC_RES_TYPE_STORAGE = "storage"
METRIC_UNIT_PERCENT = "%"
METRIC_UNIT_BPS = "bps"
@@ -19,6 +22,7 @@ const (
METRIC_UNIT_MS = "ms"
METRIC_UNIT_BYTE = "byte"
METRIC_UNIT_RMB = "RMB"
METRIC_UNIT_MB = "Mb"
METRIC_DATABASE_TELE = "telegraf"
METRIC_DATABASE_METER = "meter_db"
@@ -30,12 +34,13 @@ var (
MetricUnit = []string{METRIC_UNIT_PERCENT, METRIC_UNIT_BPS, METRIC_UNIT_MBPS, METRIC_UNIT_BYTEPS, "count/s",
METRIC_UNIT_COUNT, METRIC_UNIT_MS, METRIC_UNIT_BYTE, METRIC_UNIT_RMB}
ResTypeScoreMap = map[string]int{
METRIC_RES_TYPE_HOST: 1,
METRIC_RES_TYPE_GUEST: 2,
METRIC_RES_TYPE_GUEST: 1,
METRIC_RES_TYPE_HOST: 2,
METRIC_RES_TYPE_OSS: 3,
METRIC_RES_TYPE_RDS: 4,
METRIC_RES_TYPE_REDIS: 5,
METRIC_RES_TYPE_CLOUDACCOUNT: 6,
METRIC_RES_TYPE_STORAGE: 7,
}
)

View File

@@ -13,20 +13,24 @@ var (
}
MEASUREMENT_TAG_KEYWORD = map[string]string{
"host": "host",
"guest": "vm_name",
"redis": "redis_name",
"rds": "rds_name",
"oss": "oss_name",
"cloudaccount": "cloudaccount_name",
METRIC_RES_TYPE_HOST: "host",
METRIC_RES_TYPE_GUEST: "vm_name",
METRIC_RES_TYPE_REDIS: "redis_name",
METRIC_RES_TYPE_RDS: "rds_name",
METRIC_RES_TYPE_OSS: "oss_name",
METRIC_RES_TYPE_CLOUDACCOUNT: "cloudaccount_name",
METRIC_RES_TYPE_STORAGE: "storage_name",
}
MEASUREMENT_TAG_ID = map[string]string{
"host": "host_id",
"guest": "vm_id",
"redis": "redis_id",
"rds": "rds_id",
"oss": "oss_id",
"cloudaccount": "cloudaccount_id",
METRIC_RES_TYPE_HOST: "host_id",
METRIC_RES_TYPE_GUEST: "vm_id",
METRIC_RES_TYPE_REDIS: "redis_id",
METRIC_RES_TYPE_RDS: "rds_id",
METRIC_RES_TYPE_OSS: "oss_id",
METRIC_RES_TYPE_CLOUDACCOUNT: "cloudaccount_id",
METRIC_RES_TYPE_TENANT: "tenant_id",
METRIC_RES_TYPE_DOMAIN: "domain_id",
METRIC_RES_TYPE_STORAGE: "storage_id",
}
AlertReduceFunc = map[string]string{
"avg": "average value",

View File

@@ -62,6 +62,9 @@ const (
TEMPLATE_TYPE_CONTENT = "content"
TEMPLATE_TYPE_REMOTE = "remote"
TEMPLATE_LANG_EN = "en"
TEMPLATE_LANG_CN = "cn"
CTYPE_ROBOT_YES = "yes"
CTYPE_ROBOT_ONLY = "only"
)

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