Commit Graph
303 Commits
Author SHA1 Message Date
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
wanyaoqi dc92f09d95 fix(region,host): auto migrate on host down (#14497)
* fix(region,host): auto migrate on host down

This patch fix source servers not shutdown on network unreachable.
Restart etcd session add timeout, and shutdown servers add force
option incase host stuck on scriptStop.

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

* host_health: add check network available

On host etcd keep alive failed, add check networks is available.
If networks available, may be is the etcd not work, in this case
we will net shutdowns servers and wait for etcd ready.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-06-23 16:26:18 +08:00
Jian QiuandQiu Jian dc3c08e8fe Hotfix/qj tap service mirrorfixes2 (#14476)
* fix: no details for net_tap_flows

* fix: tap support bugfixes

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-16 02:56:18 +08:00
Jian QiuandQiu Jian 14e7e9603c feature: support tap service phase 2 (#14466)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-15 05:21:43 +08:00
Jian QiuandQiu Jian f1e616a671 feature: tap service support (#14433)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-14 17:23:52 +08:00
Jian QiuandQiu Jian 58a53d9df5 fix: manage_ntp_configuration not effective (#14426)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-11 19:16:45 +08:00
Zexi Li 6f5c0a6962 fix(host): openvswitch service name on UOS (#14394) 2022-06-03 01:50:28 +08:00
Jian QiuandQiu Jian 618e88c51a fix: backup pack missing encrypt_key_id (#14333)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-29 10:12:47 +08:00
Jian QiuandQiu Jian 1c2a4ed9d4 fix: host ping piggyback storage info (#14257)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-16 00:34:50 +08:00
Qiu Jian 2cd805ead6 fix: migrate set down time 2022-04-12 20:17:08 +08:00
Jian QiuandQiu Jian 87a7d4efe0 fix: host inherit class metadata from wire (#13896)
* fix: host inherit class metadata from wire

* deal with host delete exit

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 11:14:28 +08:00
屈轩 6a0ecc2940 fix(host): upload storage info with zone id (#13559) 2022-03-15 00:50:39 +08:00
Zexi Li 54c5bb8bb2 Merge pull request #13577 from zexi/qemu-mem-snapshot
feat(host): server instance snapshot with memory
2022-03-04 10:17:11 +08:00
Zexi Li c0a0121d2b feat(host): server instance snapshot with memory 2022-03-03 13:53:11 +08:00
ioito 6f32a0281a fix(notify): add panic notify 2022-03-01 17:17:29 +08:00
Zexi Li b5d8522f37 feat(region,host): server cpuset supported (#13527)
* feat(region,host): server cpuset supported

* feat(region,host): cpuset remove
2022-02-23 16:07:01 +08:00
ioito 2ba4cac402 fix(host): host register 2022-02-22 15:29:06 +08:00
ioito 7b4702ec97 fix(host): add host online offline log 2022-02-18 18:30:05 +08:00
Qiu Jian 97866bfee0 feature: cleanup native hugepage codes 2022-02-06 17:58:16 +08:00
屈轩 25c75187ce fix(host,region): add action log (#13302) 2022-01-28 11:17:40 +08:00
Zexi Li b932984ba6 feat(host): qemu 4.0.1 supported 2022-01-21 11:15:25 +08:00
Qiu Jian 14f0abb0c3 feature: support dhcp relay information option 82 2022-01-17 01:05:54 +08:00
Zexi Li 7492da80c3 fix(region,scheduler): live migrate target host kernel version check 2022-01-04 18:42:20 +08:00
Qiu Jian c0ddbbac83 fix: host tune system set default arp gc threshold 2022-01-04 11:00:05 +08:00
Qiu Jian 2a5e04abed fix: automatic set ovsbridge MTU, consistent MTU settings 2022-01-04 00:19:02 +08:00
Zexi Li 8423aa9e63 feat(region,host): usb passthrough 2021-12-28 19:05:42 +08:00
Qiu Jian 34aeb755d1 fix: hostinfo onfail should return immediately 2021-12-25 14:47:54 +08:00
Qiu Jian e4bf8dc3ab fix: hide systemd detection logs 2021-12-23 20:30:21 +08:00
Zexi Li aeb5b4655d fix(host): more readable error info of GetWireOfIp (#12935) 2021-12-16 21:13:33 +08:00
ioito 476684de9d fix(hostdeployer): deployer hostname 2021-12-09 16:08:21 +08:00
Zexi Li 8d829db0a6 Merge pull request #12686 from ioito/hotfix/qx-hostname
fix(region): hostname for vm and host
2021-11-25 09:59:31 +08:00
Qu Xuan 5b383afd57 fix(region): hostname for vm and host 2021-11-19 10:16:30 +08:00
Qiu Jian 718dbd3cb8 fix: add host option for ethtool_enable_gso 2021-11-19 03:14:25 +08:00
Qiu Jian ed686cf2e3 fix: fixed on merge Input json 2021-11-10 10:26:58 +08:00
Qiu Jian 307a381482 feature: pass ntp server by DHCP option 2021-11-10 10:26:58 +08:00
Qu Xuan 06dc1c1b87 fix(common): split mcclient modules by service 2021-11-05 19:24:50 +08:00
Qiu Jian a970249cc1 fix: delayed probing GPU on host init and add disable_gpu option 2021-10-30 11:46:16 +08:00
屈轩andQu Xuan e0b5e1efa4 fix(host): show disk details error (#12373)
Co-authored-by: Qu Xuan <quxuan@yunionyun.com>
2021-10-10 12:03:05 +08:00
Qiu Jian 0529327e13 fix: compatible with new io scheduler(bfq/mq-deadline) of new Linux kernel
1. support bfq/mq-deadline multiqueue io scheduler
2. add delay for link setup
2021-07-14 02:18:05 +08:00
Zexi Li e770f4f653 feat(host): aware of kubelet eviction config 2021-07-07 21:27:39 +08:00
Yousong Zhou db89640dfe hostman: ovn: do not set external_ids:iface-id for backup 2021-04-23 17:17:30 +08:00
Zexi Li e82a3deb7e fix(cloudcommon): unify OS_ARCH constants 2021-04-15 10:52:34 +08:00