Commit Graph

925 Commits

Author SHA1 Message Date
Jian Qiu
d7da3c6e9c fix: always update hostname for rhel-like os (#23022)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-08-06 01:03:11 +08:00
屈轩
15db041961 fix: host ping piggyback storage info (#22962)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-07-28 14:11:41 +08:00
Jian Qiu
179a1f580a fix: support cloudcloudos at release/3.8 (#20246)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-14 15:40:32 +08:00
Jian Qiu
43b2ad2972 fix: host add a local config file (#18936)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-12-08 21:26:28 +08:00
Jian Qiu
fa83705414 fix: make host dhcp lease options global (#18686)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-15 08:55:59 +08:00
Qiu Jian
a4a24c13c9 fix: some kernel params tune by default 2023-09-08 00:01:17 +08:00
Zexi Li
a066f59eac fix(host): filter usb hub devices 2022-11-21 17:22:37 +08:00
Jian Qiu
f5feb853b2 fix: generate ssh host keys for linux guest (#15305)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-07 02:16:50 +08:00
Qiu Jian
9da31b155e fix: ssd(rotation_rate=1) option only applicable to scsi-hd device 2022-10-12 16:09:19 +08:00
Zexi Li
789273b44a fix(host): out of range when list GPU devices (#15079) 2022-09-28 07:52:45 +08:00
Zexi Li
fc677ebf9f fix(host): no vm_scaling_group_id in hostmetrics (#14978) 2022-09-15 01:28:49 +08:00
Qiu Jian
3ec3ded4c6 fix: set vfs_cache_pressure to 350 2022-09-13 17:02:27 +08:00
wanyaoqi
1b74a6991f feat(region,host): custom usb controller type
support usb controller type: qemu-xhci, usb-ehci.
qemu-xhci is much more virtualization-friendly when compared to EHCI and UHCI.
but guest supports XHCI which should be the case for any operating system
released around 2010 or later.
So sometimes wo need use usb controller type EHCI.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-08-26 12:36:41 +08:00
Zexi Li
238e1bc33d Merge pull request #14758 from wanyaoqi/btxl/3.8-uefi-boot
cherrypick of #14756
2022-08-08 19:55:03 +08:00
Jian Qiu
39ca020010 fix: make check pass on release 3.8 (#14761)
* fix: make check pass on release 3.8

* circleci GOPROXY=direct

* update vendor

* remove make test

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-08-07 11:42:13 +08:00
wanyaoqi
9160bf1409 fix(host): uefi boot firmwaire use pflash options
option '-bios OVMF.fd' accidental hang on uefi boot.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-08-05 18:49:48 +08:00
wanyaoqi
eab54544e5 fix(region,host): host health reconnect etcd add timeout (#14617)
- host: host health reconnect etcd add timeout
- region: request health status use 'GET' method
- region: only migrate running guests on host down
- etcd: keepalive use background context

Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2022-07-12 11:41:04 +08:00
wanyaoqi
026e469bc6 fix(region, host): misc fix host health checker (#14583)
- 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:35:39 +08:00
wanyaoqi
db90c90dda host_health: auto migrate on host shutdown (#14525)
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:39 +08:00
wanyaoqi
340cf2fab9 Automated cherry pick of #14497: fix(region,host): auto migrate on host down (#14511)
* 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:50 +08:00
Jian Qiu
a208f0afb7 feat(region,host): support multiqueues on vhost network (#14459)
Guest network add attribute num_queues, one is default.
And we can assign queues on guest create, eg:
server-create --net num-queues=4

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

Co-authored-by: wanyaoqi <wanyaoqi@baidu.com>
2022-06-14 02:39:52 +08:00
Jian Qiu
828643166d fix: manage_ntp_configuration not effective (#14428)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-11 19:17:07 +08:00
Zexi Li
d061c10c3b fix(host): Telegraf 1.19.2 conf 2022-06-09 12:54:15 +08:00
Jian Qiu
0dbbd1c4fc feature: fetch options of an application via api (#14395)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-04 10:33:09 +08:00
Zexi Li
e6e6e2c52e fix(host): openvswitch service name on UOS (#14392) 2022-06-03 01:50:03 +08:00
Qiu Jian
3d9a825243 fix: remove virtio-blk num-queues param 2022-06-01 11:37:49 +08:00
Qiu Jian
9492e3aa20 fix: disable disk multi-queue 2022-05-31 21:31:04 +08:00
Jian Qiu
d2415d0033 fix: hide server rtc_change event log (#14336)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-28 09:07:46 +08:00
ioito
67cde45a12 fix(host): optimized disk resize 2022-05-23 11:59:06 +08:00
屈轩
c24f5b0569 fix(host-deployer): ignore root fs mount error (#14287) 2022-05-22 17:19:36 +08:00
Jian Qiu
e361a1be28 fix: ignore no partition error for initial deployment (#14222)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-08 23:42:39 +08:00
Jian Qiu
d9b514ef71 fix: clean temp server when migrate prepare dest fail (#14176)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-29 08:11:14 +08:00
Jian Qiu
eb1c333b2d fix(host): fix get disk pci addr (#14173)
Fix hot-plug virtio disk failed.
after add usb and rng deivce, available pci address should update.

Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>

Co-authored-by: wanyaoqi <wanyaoqi1995@163.com>
2022-04-29 02:45:57 +08:00
Zexi Li
a17016ae7c fix(baremetal): bond network not config and chage not found (#14149) 2022-04-26 02:49:44 +08:00
ioito
be5047af40 fix(host): mount disk error 2022-04-24 11:48:43 +08:00
Jian Qiu
acb76d06c5 fix: always recycle disk files (#14068)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-20 16:43:25 +08:00
Jian Qiu
3ab0ca40f8 host: fix isImportFromLibvirt (#13935)
should check __origin_id not getOriginId

Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>

Co-authored-by: wanyaoqi <wanyaoqi1995@163.com>
2022-04-08 01:30:27 +08:00
Jian Qiu
f1349e6b1c fix: chage parameter not compatible with fangde OS (#13909)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 16:14:35 +08:00
Jian Qiu
5cfc8792bb fix: make test format errors (#13900)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-05 11:13:49 +08:00
Qiu Jian
ebb16ad63a fix: remote file not move 2022-03-30 07:39:05 +08:00
Jian Qiu
772f444621 region/host: fix reset ceph root disk after rebuild root (#13798)
Ceph storage disk rebuild root will rename origin disk to backing
disk, so we need use backing disk reset snapshot.

Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>

Co-authored-by: wanyaoqi <wanyaoqi1995@163.com>
2022-03-27 11:34:55 +08:00
Zexi Li
f88d237d58 fix(host-deployer): chage for exists cloudroot user (#13784) 2022-03-25 20:10:37 +08:00
zhaoxiangchun
1fff52b7b9 fix(host): fix guest nicStat Metric in host 2022-03-18 15:54:33 +08:00
Qiu Jian
5fe64d34af fix: host deploy mkdir permission 2022-03-17 16:53:33 +08:00
Jian Qiu
c3b850d639 fix(host/region): fix import servers from libvirt (#13690)
make servers_import_from_libvirt workable in container environment.
bindmount libvirt monitor dir to host container and use procutils read
guest xml configure.

Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>

Co-authored-by: wanyaoqi <wanyaoqi1995@163.com>
2022-03-15 00:51:36 +08:00
rainzm
f01df4b5cc fix(host): avoid deadlock when fetch image fails 2022-03-10 18:39:05 +08:00
Jian Qiu
1033ccc777 fix: qemu no nic addr at release/3.8 (#13666)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-03-10 16:49:06 +08:00
ioito
7f3f376b24 fix(host): rbd disk path 2022-03-02 11:45:06 +08:00
ioito
6d2564e84a fix(notify): add panic notify 2022-03-01 17:21:24 +08:00
ioito
b9edc20064 fix(host): host register 2022-02-22 15:30:36 +08:00