Commit Graph
66 Commits
Author SHA1 Message Date
wanyaoqi a4e9f86c2a feat(region,host): deploy telegraf (#14915)
Support deploy telegraf on server deploy.
Add start telegraf on guest reboot crontab in guest os.
2022-09-06 00:13:20 +08:00
wanyaoqi 1570b17eb3 fix: gen copyright
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-08-28 13:52:25 +08:00
wanyaoqi 48ce4b31cd feat(host): describe pci controller and devices in guest desc (#14826)
- describe pci controller and devices in guest desc.
- extend pcie bus and pcie-to-pci bridge and root ports, disks and
nics default attach to pci-bridge for support hotplug.
- generate pci address on guest starts
- live guest desc for running guest, and save source desc

Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>

Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2022-08-24 16:33:42 +08:00
wanyaoqi d4248017ae featue(host): structure guest description
Structure guest description and fix typo with json method.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-07-28 17:46:07 +08:00
Jian QiuandQiu Jian 84cdeff92b fix: update vendor for clickhouse v2 (#14520)
* fix: update vendor for clickhouse v2

* fix: fix go vet

* fix: unreachable codes

* fix: composite literal uses unkeyed fields

* fix: ignore bad syntax for struct tag value

* fix: use make test to do test ci job

* fix: specify circleci resource_class

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-25 15:52:15 +08:00
屈轩 974ced404e fix(host-deployer): ignore root fs mount error (#14285) 2022-05-22 17:18:52 +08:00
Jian QiuandQiu Jian 69b4901bb6 fix: ignore no partition error for initial deployment (#14220)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-08 23:42:29 +08:00
Jian QiuandQiu Jian 1831f63ef1 fix: backup recover failure (#14199)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-04 23:28:26 +08:00
Jian QiuandQiu Jian 3f9be08fa3 Feature/qj encryption support snapshot backup (#14191)
* feature: encryption support snapshot and backup

* fix: encrypted snapshot create

* fix issues with backup encryption

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-03 11:39:55 +08:00
Jian QiuandQiu Jian a393b65903 fix: save guest image with empty partition fail (#14189)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-02 16:29:27 +08:00
Jian QiuandQiu Jian 4375bad382 fix: deploy encrypted disk (#14187)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-02 09:07:03 +08:00
Jian QiuandQiu Jian 2dd1aeb8aa fix: mount disk readonly (#13152)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-28 09:26:45 +08:00
ioito 96b98e9746 fix(host): mount disk error 2022-04-24 11:22:23 +08:00
ioito dbaab28274 feat(region): aws nat gateway read 2021-12-13 16:37:35 +08:00
ioito 476684de9d fix(hostdeployer): deployer hostname 2021-12-09 16:08:21 +08:00
Jian QiuandQiu Jian 1b5ec22599 fix: cleanup compile warnings (#12620)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-11-06 12:29:35 +08:00
rainzm a545ad10e1 fix(host-deployer): ensure the success of vgrenam 2021-09-16 17:43:19 +08:00
zhaoxiangchun 8fa4e577dd feat(cloudmon): add cloudmon component 2021-07-16 12:20:52 +08:00
Zexi Li b72f60f340 fix(hostdeployer): windows rootfs umount leak 2021-03-02 09:51:41 +08:00
wanyaoqi 37b036ed37 fix(host-deployer): probe image info umount rootfs first 2020-12-17 19:19:30 +08:00
wanyaoqi 948f926bf6 feat(host-deployer): add deploy driver libguestfs
Add drvier libguestfs to support deploy more operator system,
you can use it by edit host config file add 'image_deploy_driver: libguestfs'.
By the default host-deploy support run three guestfish at the same time.
And host deployer will recycle free guestfish every ten minitues.

cherrypick: release/3.6
2020-12-08 17:49:44 +08:00
wanyaoqi c302bae2bf fix(host-deployer): cancel rename centos vgname 2020-12-08 16:15:56 +08:00
Qu Xuan b195f95bdf feature: add apsara support 2020-11-19 15:41:30 +08:00
Zexi Li 6ff5653fa4 Merge pull request #8832 from wanyaoqi/feature/wyq/custom-cloudroot-home-dir
host-deployer: customize user cloudroot home dir
2020-11-18 23:50:22 +08:00
rainzm 27378f2c85 fix(hostdeployer): umount rootfs before resize partition 2020-11-18 18:26:26 +08:00
rainzm 22cec0964e feat(hostdeployer): support resizefs for esxi disk 2020-11-17 14:48:26 +08:00
wanyaoqi 6e66a129d6 host-deployer: customize user cloudroot home dir 2020-11-16 21:12:35 +08:00
yunion-ci-robot 128173d320 Merge pull request #7620 from wanyaoqi/feature/wyq/arm-v2
feature: arm support
2020-10-26 15:50:40 +08:00
wanyaoqi 7dcb240940 vmware disk support deploy lvm partition 2020-09-01 20:43:55 +08:00
Rain Zheng e393f3ee21 Fix problem of esxi (#7661)
* fix(esxi): Fetch full templates of datastoreImageCache

Datastore 和 DatastoreImageCache 是一对一的关系。
每一个 Datastore 可能有多个对应的 Host,所以 GetIIMages 里面获取
Templates 的逻辑应该尝试去获取所有 Host 的 Templates。

* fix(host-deployer): Exit correctly after mounting

MountRootfs的返回值为nil时,还是需要Umount的操作来正确退出(比如VDDK)。
VDDK的Mount分为两步,第一步会挂在remote
disk到fuse下,然后挂载fuse/xxx/flat
到块设备上。第一步成功,第二部失败也应该正确退出。

* fix(host-deployer): Kill process

* opt(host-deployer): Increase timeout of waiting mount

* opt(host-deployer): Add debug log print command to mount

* fix(esxi): Support multi agent in different zone
2020-09-01 10:47:39 +08:00
wanyaoqi 7d94c4e46f support create arm virtual machine 2020-08-27 11:05:21 +08:00
wanyaoqi 3994889910 rename vgname centos 2020-07-23 21:31:39 +08:00
yunion-ci-robot adbaf6b6af Merge pull request #6461 from tb365/feature/tb-condition-release
redis&dbinstance add clean expired postpaids resources
2020-05-20 11:01:42 +08:00
tangbin 0029b25f9a redis&dbinstance add clean expired postpaids resources 2020-05-19 19:42:14 +08:00
wanyaoqi a5d2651fbf fix esxi disk disconnect 2020-05-14 12:27:41 +08:00
wanyaoqi 8144d2d2fb guest set login account 2020-05-11 10:48:39 +08:00
wanyaoqi 9c4d3c62b3 fix exsi convert disk path 2020-04-27 15:54:17 +08:00
zhaoxiangchun a42e9c9462 优化建议功能-未使用的eip
1.通过cronman 调用eipUnused相关的driver,查询未使用的eip
2.依据对步骤1中的中的数据,对资源列表就行create、update、delete进行三种类型的操作

deal with comments

gencopyright

climc for SuggestSysRule and SuggestSysAlert

monitor: fix sysrule related models not generated

eip未使用的监控参数结构调整
2020-04-14 15:37:01 +08:00
wanyaoqi 92940dae11 os.exit replace return on sigtrap 2020-04-08 23:01:54 +08:00
wanyaoqi a20daa1c11 fix deployer sigtrap funciton 2020-04-08 22:05:57 +08:00
tangbin 0c0980d3f9 huawei&qcloud&huawei elb bugfix 2020-04-08 19:32:51 +08:00
wanyaoqi 92e88f2a97 - copy esxi guest to kvm 2020-04-02 17:56:50 +08:00
Zexi Li 25c2165b81 Merge pull request #4914 from wanyaoqi/bugfix/wyq/fix-deploy-iso-failed
bugfix: fix deploy iso failed
2020-01-16 15:32:44 +08:00
wanyaoqi 52ad575184 fix deploy iso failed 2020-01-15 20:56:07 +08:00
wanyaoqi fec7ecbee7 use executor probe kernel mods 2020-01-15 16:59:25 +08:00
Rain babc05b772 feature(esxi-agent): Esxi Agent Golang
1. 修改了host-deployer 使其支持 vmware vddk 的 deploy guest fs 操作。
2. esxi agent python ==> Go

fix(esxi-agent): Fix some bugs and irregular contents

fix(esxi-agent): Partial parameter structure

fix(esxi-agent): Add ovf template and remove some binary file

fix(esxi-agent): Format Code

fix(esxi-agent): fix based on reviewers' comments

fix(esxi-agent): fix host-deployer because of occasional unknown panic

fix: DelayTask should have a new Context

fix(esxi-agent): call hostutils.DelayTask

change '_interface' package to 'iagent' package

fix(esxi-agent): Fix some irregular code
2020-01-04 20:57:13 +08:00
wanyaoqi 6b2058dcee fix endpoint type, chntpw path 2019-12-26 16:50:09 +08:00
Zexi Li b70decaf24 Merge pull request #3997 from wanyaoqi/feature/wyq/host-use-command-executor
feature: host container deployment
2019-12-09 10:49:49 +08:00
wanyaoqi c8fff1d44f add rpm file, add socket used check 2019-12-05 20:58:57 +08:00
wanyaoqi 7bf48c992e - add command executor
- host prepare for deploy on container
- procutils adpat to executor
2019-12-04 20:49:39 +08:00