Commit Graph
294 Commits
Author SHA1 Message Date
Zexi Li d0e8ec1d7e fix(host): setup routes from start to end (#18675) 2023-11-14 17:56:20 +08:00
Zexi Li 71b8f5b93e Merge pull request #18657 from zexi/automated-cherry-pick-of-#18655-upstream-master
Automated cherry pick of #18655: fix(host): catch init error
2023-11-13 21:12:51 +08:00
Zexi Li 22b2eabdc1 fix(host): catch init error 2023-11-13 20:40:39 +08:00
guoguangwu e4b396e870 chore: unnecessary use of fmt.Sprintf d
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-11-12 21:08:23 +08:00
Zexi Li 9a9414452b feat(monitor,region,host,cloudmon): support VictoriaMetrics as TSDB backend 2023-11-10 15:36:02 +08:00
Zexi Li 478e1844c9 fix(host): ignore error when add bridge ip address route (#18600) 2023-11-08 17:39:54 +08:00
Qiu Jian fde1982505 fix: host fail to migrate interface routes 2023-11-03 23:58:01 +08:00
Qiu Jian dec9b9cb2f fix: dhcp hostname not compatible with some os 2023-10-31 11:59:29 +08:00
wanyaoqi 1431accd84 fix(host): skip isolated device probe on kvm not support 2023-10-25 23:56:06 +08:00
wanyaoqi 9718572053 fix(host): host sysinfo metadata double quota (#18239) 2023-10-09 18:36:32 +08:00
wanyaoqi 40e2f60a26 fix(host): avoid panic on host record not init 2023-09-21 11:03:38 +08:00
Qiu Jian 5f65cc49bc fix: some kernel params tune by default 2023-09-07 23:58:31 +08:00
wanyaoqi 4484a96c8d feat(region,host): vgpu support, refector host registor (#17879)
* feat(region,host): refactor host register

* feat(region,host): vgpu support

add nvidia/amd vgpu support.
nvidia vgpu need manaul configure vgpu instance before add in host.conf

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

---------

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-09-01 15:42:22 +08:00
Jian QiuandQiu Jian c5dd7939fc fix: vmware host wire recode (#17818)
* fix: vmware host wire recode

* update vendor

* update vendor

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-24 16:36:55 +08:00
wanyaoqi dd51418e45 fix(host): gpu probe miss 3d type gpu (#17805) 2023-08-21 12:32:17 +08:00
Jian QiuandQiu Jian b7b2a630f5 fix: remove hostwire to cleanup host-wire codes (#17670)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-04 23:40:54 +08:00
ioito 849900f3ce fix(host): log storage offline reason 2023-06-29 17:46:02 +08:00
Zexi Li 8206e651ce fix(host): add some logs for dhcp relay (#17387) 2023-06-27 23:50:52 +08:00
wanyaoqi 52d1cf26ab feat(region,host): support lvm disk as guest sys disk 2023-06-05 16:06:58 +08:00
wanyaoqi 9d12a39598 feat(region,host): custom pci device type 2023-05-17 17:23:34 +08:00
wanyaoqi d394d9bb55 feat(region,host): nvme device passthrough 2023-04-24 17:55:39 +08:00
wanyaoqi 7ec7b22fcc fix(host): recover page size on hugepage disabled 2023-04-08 13:01:59 +08:00
wanyaoqi a6705c4452 fix(region,host): host health misc fix
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-13 09:41:27 +08:00
Qiu Jian 9433fc14a8 fix: add disable_local_vpc option and auto config ovn for lbagent and
host
2023-02-22 14:35:43 +08:00
Jian QiuandQiu Jian a1350b1e60 fix: hostman setup tuned-adm profile virtual-host (#15918)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-18 08:53:44 +08:00
wanyaoqi 693257697e feat(region,host): support ovs offload. (#15915)
Cloudpods Ovs offload implemention base on SR-IOV support.
IsolatedDevices add field `OvsOffloadInterface`.

Host config add `ovs_offload_nics` to specify which nic enable ovs
offload, and removed flag `disable_sriov_nics` add flag `sriov_nics` to
configure sriov nics.

Tested Hardware: Mellanox ConnectX-5 NICs
2023-02-18 08:48:07 +08:00
Qiu Jian d34a04f896 fix: lbagent containerize issues 2023-02-08 10:49:05 +08:00
wanyaoqi e34afc1abb feat(host): kvm vcpus bind cpuset on numa nodes and cpu dies (#15732)
- alloc cpuset on guest startup, try to alloc on one numa or cpu die
- fix guest startup task not clean
- fix cgrup tasks not clean
2023-01-08 09:29:12 +08:00
wanyaoqi e42c91e5ea fix(host): detect qemu caps
ingnore pmemclean output on qemu version 2.12.1

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-12-30 11:50:09 +08:00
wanyaoqi d6721519ce fix(host): don't set ovs interface external id on migrating (#15497)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-12-08 14:42:46 +08:00
wanyaoqi 32a9f1840a fix(host): update host wire with mac addr (#15500) 2022-12-07 02:15:05 +08:00
Qiu Jian e5adbfc19a fix: host disable gso for specific nics 2022-12-04 00:56:17 +08:00
Qiu Jian 1d0f715843 fix: automatically set disk is_ssd according to storage medium_type 2022-11-15 00:14:33 +08:00
wanyaoqi 70755a9a1b feat(region,host): sriov nic support (#15342)
Support sriov nic passthrough to kvm guest.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-11-13 18:17:30 +08:00
Jian QiuandQiu Jian 5d9d253328 fix: mcclient code cleanup 20221106 (#15310)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-07 02:19:24 +08:00
wanyaoqi 47fcc088bb feat(host): add hyperv cpu features for kernel 5.4 (#15221)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-10-24 05:44:35 +08:00
Zexi Li 9952c9ad8d Merge pull request #15168 from wanyaoqi/fix/hugepages
feat(region,host): hugepage optimize
2022-10-13 09:47:18 +08:00
wanyaoqi 3d0c09195e feat(region,host): hugepage optimize
- host agent will not allocate hugepage on init
- except hugepage, the remaining memory update to reserved memory
- default hugepage size 1024M
- host model add page size field

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-10-12 14:57:13 +08:00
wanyaoqi e83b167e43 feat(host): qemu kvm cpu caps 2022-10-11 18:34:38 +08:00
ioito 7ff1c4c3fd fix(hostman): host and vm metric id 2022-09-20 18:03:01 +08:00
Qiu Jian 6db8d62834 fix: set vfs_cache_pressure to 350 2022-09-13 16:18:24 +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
Qiu Jian 774ae6c906 fix: allow dmidecode not working for hostman 2022-08-05 01:30:35 +08:00
wanyaoqi 597adce302 fix(host): dhcp server panic on unmarshal route (#14741)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-07-31 11:21:18 +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 9fbbe05c6a fix: misc fixes 20220712 (#14614)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-07-12 08:00:57 +08:00
wanyaoqi 02a9d84d6e fix(region, host): misc fix host health checker (#14575)
- hostagent remove option enable host health, default enabled,
  its rely on etcd endpoint register.
- add option auto migrate on host shutdown.
- fix hostman check network is available.
- use hostname instead hostId as etcd key
- init health checker before host instace init.
- refector host_health checker.

Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2022-07-07 10:28:27 +08:00
Zexi Li 6a590f123e fix(host): aarch64 cpu info (#14581) 2022-07-05 16:33:00 +08:00
wanyaoqi d51d7599d2 feat(region,host): refector guests cgroups (#14558)
* feat(region,host): refector guests cgroups

hostagent will create a root group cloudpods.hostagent at init.
guests group under cloudpods.hostagent. Qemu start params add '-S'
option freeze guest at first, after guest set cgroup or other initialize
hostagent will resume guest.

host support reserve cpus. if has reserved cpus, hostagent will create a
group cloudpods.hostagent.reserved, one thing to note is set host
reserved cpus must ensure host no guests running.

climc usage:
  climc host-reserve-cpus --cpus '2-3,32-33' --mems '0-1' \
    --disable-sched-load-balance <IDS>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

* hostman: disable cpuset balancer

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-07-02 18:00:48 +08:00
wanyaoqi c7f5feca7e host_health: auto migrate on host shutdown (#14523)
Before this patch, host guests will not migrate on host manual shutdown.
This patch from k8s node status check host still on line, if node status
not ready, region will migrate guests on host.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-06-25 00:05:29 +08:00