Commit Graph
7871 Commits
Author SHA1 Message Date
rainzm d80f15af58 fix(esxi): use system disk of template only when cloning vm
1. Create a driver if necessary.
2. After cloning the virtual machine, remove all data disks.
3. Create new data disks.
2020-10-12 17:50:30 +08:00
rainzm 1fe71b8392 fix(esxi): search template from whole vCenter 2020-10-12 17:50:30 +08:00
yunion-ci-robot d456364746 Merge pull request #8197 from rainzm/automated-cherry-pick-of-#8194-upstream-release-3.2
Automated cherry pick of #8194: fix(esxi): check nil value when NewVirtualMachine
2020-10-10 19:06:18 +08:00
yunion-ci-robot 1d82b2fe90 Merge pull request #8215 from tb365/automated-cherry-pick-of-#8214-upstream-release-3.2
Automated cherry pick of #8214: remove aws lbbg cache metedata
2020-10-10 18:55:20 +08:00
Yousong Zhou 88b752b35c webconsole: ssh: add keyboard-interactive as an option
For ESXi 6.0

  Authentications that can continue: publickey,keyboard-interactive
2020-10-10 14:44:26 +08:00
Yousong Zhou 225067eb88 webconsole: ssh: each argument on its own line 2020-10-10 14:44:26 +08:00
TangBin d55429d4cd remove aws lbbg cache metedata 2020-10-10 14:27:25 +08:00
rainzm af03b18155 fix(esxi): check nil value when NewVirtualMachine 2020-10-10 11:36:44 +08:00
Yousong Zhou d40d6a6a74 vpcagent: ovn: increase dhcp lease, renew, rebind time 2020-10-09 10:26:59 +08:00
TangBin 6d2f1d25c1 aliyun public elb region fix 2020-09-29 22:04:50 +08:00
TangBin 1e7776ba71 aliyun public elb brand fix 2020-09-29 16:47:25 +08:00
yunion-ci-robot d4900cc6ac Merge pull request #8062 from ioito/automated-cherry-pick-of-#8059-upstream-release-3.2
Automated cherry pick of #8059: fix: avoid serial vm creation
2020-09-29 10:33:34 +08:00
TangBin 70d22e6428 aliyun create public lb fix 2020-09-28 14:19:48 +08:00
wanyaoqi 788e1bb225 increase rbd check timeout 2020-09-27 20:22:10 +08:00
wanyaoqi 02f7c5ac35 umount nfs on detach storage 2020-09-27 20:22:10 +08:00
TangBin 38be1b0908 huawei util missing import fix 2020-09-27 15:14:37 +08:00
TangBin e3242abf15 huawei client request add throttling control 2020-09-27 15:13:16 +08:00
TangBin 0171bf71d3 huawei elb get params log 2020-09-27 15:13:16 +08:00
TangBin 70170836fb qcloud elb create listener fix 2020-09-27 15:13:16 +08:00
TangBin ec7707d397 huawei snapshot delete fix 2020-09-27 15:13:16 +08:00
Zexi Li 6e61174307 Merge pull request #8091 from wanyaoqi/automated-cherry-pick-of-#8088-upstream-release-3.2
Automated cherry pick of #8088: set stagefail on clean fail
2020-09-27 14:46:10 +08:00
wanyaoqi 0d96419b64 set stagefail on clean fail 2020-09-27 11:47:07 +08:00
Qu Xuan 96b6b3cf6f fix: avoid purge storages 2020-09-25 19:18:04 +08:00
ioito c433050318 fix: sql err 2020-09-24 20:23:33 +08:00
ioito 1505dc6e04 fix: avoid serial vm creation 2020-09-24 16:41:50 +08:00
TangBin 396a99c4cb regional network filter bugfix 2020-09-22 20:02:33 +08:00
TangBin fc480ffa1a ctyun sync secgroup fix & cloudaccount delete fix 2020-09-22 13:53:20 +08:00
TangBin 614ad609bf ctyun add region cn-bj1 2020-09-18 14:22:51 +08:00
Zexi Li 3ad40222c2 region: fix network schedtag not cleanup when network deleted 2020-09-18 10:39:43 +08:00
Zexi Li 63e0f2ee76 Merge pull request #7958 from wanyaoqi/automated-cherry-pick-of-#7953-upstream-release-3.2
Automated cherry pick of #7953: fix set host image cache properties
2020-09-16 21:38:29 +08:00
wanyaoqi 85c61ab14c fix set host image cache properties 2020-09-16 20:53:03 +08:00
wanyaoqi f393424ca8 fix update image status after save failed 2020-09-16 19:15:05 +08:00
Qu Xuan 0d99dc1981 fix: bucket object cnt fix 2020-09-15 19:15:32 +08:00
wanyaoqi 285c696e6d webconsole: fix defer order to release zombie process 2020-09-14 18:22:13 +08:00
wanyaoqi 5ec462bc8e disk: check disk is need renew on guest set renew 2020-09-14 12:08:52 +08:00
Zexi Li 4868674fee Merge pull request #7882 from ioito/automated-cherry-pick-of-#7879-upstream-release-3.2
Automated cherry pick of #7879: fix: avoid sync natgateway eip panic
2020-09-11 21:03:57 +08:00
Zexi Li 2e560c1f04 Merge pull request #7873 from rainzm/automated-cherry-pick-of-#7870-upstream-release-3.2
Automated cherry pick of #7870: fix(esxiagent): add HostDelayTaskWorkerCount
2020-09-11 20:55:47 +08:00
Qu Xuan 545f9eebf1 fix: avoid sync natgateway eip panic 2020-09-11 19:18:15 +08:00
rainzm e6ce176233 fix(esxiagent): add HostDelayTaskWorkerCount
之前,HostDelayWorker 是通过 hostutils.InitWorkerManager 来初始化,
worker的数量依赖于options.HostOptions.DefaultRequestWorkerCount, 因为
这个options没有经过初始化,所以就是0,导致worker count的数量变为1。

现在增加了 HostDelayTaskWorkerCount 来管理这个count,默认值为8。
2020-09-11 17:23:13 +08:00
wanyaoqi f59d56e796 host: fix rbd storage cache iso image 2020-09-10 23:20:29 +08:00
rainzm 05abebeea5 fix(region): add RequestSyncstatusOnHost for SESXiGuestDriver
esxi 平台 Guest 进行 syncstatus 和其他平台有所区别,Vcenter 可能会更改
 VM 所在的 Host,所以在 Host 上寻找 VM 可能会出现 ErrNotFound。此时,应该
主动去整个 datacenter 中寻找 VM,然后更改 Host,进行同步。
2020-09-09 21:58:48 +08:00
rainzm 747d70a747 fix(esxi): fetch templatevm from datacenter before clone vm
这里应该和image_cache那里保持一直,对template的获取应该从datacenter
中获取,而不是host。
2020-09-09 21:58:17 +08:00
rainzm ebf3692ba0 refactor(esxi): replace GetTemplateVMById with FetchTemplateVMById
FetchTemplateVMById 更好,因为它更轻量,更快。
2020-09-09 21:58:16 +08:00
rainzm 7dfe68322a feat(esxicli): better vm operator
现在,可以通过Datacenter来获取vm,不一定要指定HostIp,
Datacenter和HostIp必须指定一个。
2020-09-09 21:58:16 +08:00
rainzm 59861adabc feat(esxi): support fetchVM form datacenter 2020-09-09 21:58:16 +08:00
rainzm 40b3e8e382 refactor(esxi): fetchVms and fetchHardwareInfo
1. fetchHardwareInfo 只有一种error,原因是moVM的某些字段为nil,这种情况下,完全可以打印日志直接返回。
2. fetchVms 现在只返回[]*SVirtualMachine, 进一步的过滤(是不是template)交给调用者。
2020-09-09 21:58:16 +08:00
rainzm a18b34c365 fix(esxiagent): return image extid not id
调用 disk/image_cache 接口的Task StorageCacheImageTask 会根据回调
回来数据中的 image_id,来设置 storagecachedimage 中的 externalid,
所以这里的 image_id 应该是 externalid。
2020-09-08 15:34:35 +08:00
yunion-ci-robot f64267897e Merge pull request #7801 from wanyaoqi/automated-cherry-pick-of-#7798-upstream-release-3.2
Automated cherry pick of #7798: guest short desc add backup host id
2020-09-07 21:01:51 +08:00
wanyaoqi c266722c31 guest short desc add backup host id 2020-09-07 17:06:36 +08:00
wanyaoqi 4d0cb2b150 fix get ubuntu version 2020-09-07 16:01:59 +08:00