Commit Graph

20753 Commits

Author SHA1 Message Date
Zexi Li
1fc6fc9b98 fix(monitor): update silent_period when channel is empty (#24603)
silent_period is stored as Frequency on the notification, not on the
alert itself. PostUpdate only called UpdateNotification (which recreates
notifications with the new silent_period) when Channel was non-empty.
When channel was an empty array, the silent_period update was silently
skipped. Add an else-if branch to directly update the existing
notifications' Frequency when silent_period changes but channel is empty.
v4.0.2-20260331.1
2026-03-31 20:00:54 +08:00
Jian Qiu
621d180e98 fix(host): use findmnt instead of df to detect local mount point (#24600)
Co-authored-by: Haibersut <117586514+Haibersut@users.noreply.github.com>
v4.0.2-20260331.0
2026-03-31 18:08:17 +08:00
Zexi Li
69a83aee24 feat(monitor): add batch resource metrics query API (#24597)
Add unifiedmonitor class action `resource-metrics` with client options/CLI command.
Implement host/guest metric drivers to query cpu/mem/disk/net rates and attach alert state.
2026-03-31 17:44:58 +08:00
Jian Qiu
121b2d4ee4 fix: support build specific multi-arch buildx (#24587)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-31 17:42:20 +08:00
Jian Qiu
230f1683a2 fix: add customer usable filters that filter noaddr networks (#24584)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-31 17:27:21 +08:00
Zexi Li
04593a9149 fix(host): use proper shell quoting in pod tar/find commands (#24593)
Add shellQuote helper that safely escapes single quotes and apply it
consistently across tarGzDir and tarHostDir to prevent shell injection
via crafted paths, directory names, or exclude patterns.
2026-03-31 12:04:21 +08:00
Zexi Li
27ff5bca59 fix(host): get pod status by primary container status (#24582) 2026-03-30 16:21:31 +08:00
wanyaoqi
4a7befa0c6 fix(host): add ovmf 4m code (#24576) v4.0.2-20260330.1 v4.0.2-20260330.0 2026-03-30 07:54:18 +08:00
Zexi Li
8838aaf84b fix(llm): 修复 llm 镜像没有根据 sku 更新的问题 (#24573) v4.0.2-20260328.0 v4.0.2-20260327.0 2026-03-26 21:45:06 +08:00
Jian Qiu
199a669d19 fix: compat fixes for container host in vm (#24571)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-26 18:23:06 +08:00
屈轩
789c571703 fix(logger): add syslog init log (#24556) 2026-03-26 18:11:05 +08:00
wanyaoqi
af4f1d522a fix(region): validate kickstart enabled (#24559) 2026-03-26 18:09:57 +08:00
Zexi Li
a52c9b8a3b fix(region): order containers by created_at time (#24569) 2026-03-26 12:25:46 +08:00
Zexi Li
0e369eef9f fix(keystone): allow blob update for image credentials (#24566)
Also fix type check to allow secret/image only.
2026-03-26 11:50:51 +08:00
屈轩
86d531bf4e fix(region): add domain container usage (#24563) 2026-03-25 18:26:44 +08:00
Zexi Li
a53f8d0095 fix(vllm): user customize args & health check in hostlocal net (#24552)
Co-authored-by: cwz <cwz_eikoh@163.com>
v4.0.2-20260325.1
2026-03-25 10:36:34 +08:00
wanyaoqi
8d5310f9e9 Automated cherry pick of #24544: fix(host): metadata handler proxy telegraf data fix tenant_id (#24546)
* fix(host): metadata handler proxy telegraf data

* fix(host): append unknown dmesg to last entry
2026-03-25 10:34:34 +08:00
Jian Qiu
1e5bab79f8 fix: lbagent genHaproxyConfig possible nil pointer panic (#24538)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-25 10:32:56 +08:00
Jian Qiu
6310c1e4a6 fix(hostmetrics): add checks for incomplete pod and container stats (#24550)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-25 10:31:20 +08:00
屈轩
51e3e7feb9 fix(region): add container usage (#24541) 2026-03-25 10:23:21 +08:00
屈轩
2c32ed9b85 fix(host-image): update script for riscv64 host-image (#24534) v4.0.2-20260325.0 2026-03-24 11:37:31 +08:00
Zexi Li
75c546050f fix(host): probing multiple container status (#24530) 2026-03-24 10:27:16 +08:00
wanyaoqi
4f91a82f12 fix(host): dd zero to lv wife partitions on lvremove (#24526) 2026-03-23 19:02:04 +08:00
wanyaoqi
c14170ff8f fix(host-deployer): resizefs add fstype LVM2_member (#24518) v4.0.2-20260323.0 2026-03-23 00:01:13 +08:00
wanyaoqi
6f23751754 fix(region): check instance snapshot joint is nil on snapshot purge (#24514) 2026-03-22 23:59:26 +08:00
屈轩
ece4993df6 fix(apigateway): stream download content-type (#24509) v4.0.2-20260320.0 2026-03-20 13:41:45 +08:00
Jian Qiu
fec1f2495b feature: support host-local wire (#24498)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-20 01:36:59 +08:00
wanyaoqi
e42d360bb5 Automated cherry pick of #24452: Cherry pick of #23094 upstream release 4.0 1770106850 (#24464)
* feat(region, climc): Add kickstart parameters and metadata

- Add kickstart parameters and metadata support
- Add kickstart CLI options and management commands
- Set kickstart metadata in PostCreate
- Add related kickstart metadata fields

* feat(host): Implement automated VM installation

- Mounts the installation ISO to a unique temp path, reusing existing mounts.
- Extracts kernel (`vmlinuz`, `initrd`) to configure QEMU boot.
- Injects kernel parameters to trigger the autoinstall.
- Add kickstart configuration validation.

Modified `guestLauncher` script to handle kernel parameters with spaces
that were previously truncated by the Python script.

* feat(host): Implement Kickstart monitoring

- Automatically updates the VM status upon
receiving `KICKSTART_SUCCESS` or `KICKSTART_FAILED` signals.
- On success, cleans up temporary mount points
and restarts the server via the Region API.

* feat(region): add kickstart type metadata

Adds the `VM_METADATA_KICKSTART_TYPE` to distinguish between
kickstart configurations passed by URL or by direct content.

* feat(host): Handle kickstart installing and timeout

- Set status to 'installing' upon successful kickstart boot
- Handle KICKSTART_INSTALLING serial message for status updates
- Add timeout handling for kickstart status monitoring

* feat(host): provide Kickstart config via content

Embed the provided config content as a file in a
labeled ISO (mkisofs), then mount the ISO during
the Kickstart installation to supply the config.

* refactor(host): Enhance the kickstart installation

- Integrates kickstart status directly into the VM status, replacing metadata.
- Unifies locations for kickstart logs and temporary files.
- Uses regex for more robust status matching.
- Moves helper functions to `kickstart_helper.go`.
- Fixes an incorrect kickstart configuration filename.
- Adjusts kickstart logging.

* feat(region, host): add kickstart support for openEuler

* refactor(host): extract kickstart cleanup function

* feat(region, climc): add kickstart-complete cli

Add this command to manually update the kickstart status and
reboot VM if needed. This is mainly used by users to manually
update the kickstart status when kickstart status detection is abnormal.

* refactor(region): reduce code duplication in Kickstart validation

- unify two validateKickstartConfig functions
- extract determineKickstartType function for type determination

* fix(region, host): fix kickstart auto-reboot

- Adjusted the timing of setting the status to
`kickstart_pending` to avoid incorrect reboot checks
- Skip setting kickstart if the status is already
`kickstart_completed` to prevent unnecessary reboots
- Added cleanup of kickstart files upon VM deletion

* feat(host): download kickstart config from URL

- download content when passing config via URL
- unified boot parameters

* feat(host): copy kickstart kernel files

* feat(host): ensure kickstart completion signal in config

---------

Co-authored-by: happygame <happygame1024@gmail.com>
2026-03-20 01:35:42 +08:00
wanyaoqi
6ea800897e Automated cherry pick of #24456: Fix/host deployer nbd driver40 (#24465)
* fix(host-deployer): nbd add concurrency control

* fix(host-deployer,glance): windows image add current version
2026-03-20 01:32:19 +08:00
Zexi Li
f1740579f1 feat(llm): unify container access url info and login response (#24506) 2026-03-19 23:07:01 +08:00
wanyaoqi
da37f6836a fix(host-deployer): get resize dev by serial panic (#24447) 2026-03-19 23:04:13 +08:00
cwz_eikoh
e701abe273 Automated cherry pick of #24471: Feature(mcp): support x-api-key authentication for mcp-server (#24501)
* feat(mcp-server): support base64 ak/sk

* fix(mcp-agent): try to fix route of default-mcp-tools
2026-03-19 15:04:57 +08:00
cwz_eikoh
e51be81c7e feat(llm): support model import for vllm (#24502) 2026-03-19 15:03:41 +08:00
wanyaoqi
5649836123 Automated cherry pick of #24473: fix(glance): cache images to ceph add brand filter (#24477)
* fix(glance): cache images to ceph add brand filter

* fix(region): iso image support default uefi boot mod
2026-03-19 11:45:18 +08:00
Jian Qiu
590a775cd8 fix: logger add app-options-show api (#24494)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-19 11:44:05 +08:00
屈轩
184de997c5 fix(region): allow set disk auto-delete attribute (#24487) 2026-03-19 10:27:52 +08:00
Zexi Li
c7b7911401 fix(llm): derive openclaw auth password from llm id (#24483) 2026-03-18 19:01:10 +08:00
屈轩
5250d2b647 fix(region): vendor update (#24484) 2026-03-18 18:52:10 +08:00
wanyaoqi
da094dbb5e fix(baremetal-agent): bm register reuse baseprepare updateBmInfo (#24476) 2026-03-18 10:11:00 +08:00
Zexi Li
3b031ebdca fix(monitor): align multi-metric alert conditions in notifications (#24469) 2026-03-17 15:57:27 +08:00
屈轩
93ea44d336 fix: add more log info (#24462) 2026-03-17 14:39:04 +08:00
Zexi Li
bdbe0642a0 feat(llm): add llm_types filters and cleanup dify cli (#24459) 2026-03-16 18:05:20 +08:00
Zexi Li
e6e4b70b6f feat(llm): 调整 openclaw 容器与 LLM 基础模型/sku 逻辑 (#24454) 2026-03-16 16:19:46 +08:00
Zexi Li
4b91e6235c fix(llm): mount openclaw home dir (#24450) v4.0.2-20260313.0 2026-03-13 20:38:37 +08:00
屈轩
c8a6867c10 fix(region): avoid delete ksyun vm error (#24442) 2026-03-13 15:23:17 +08:00
Jian Qiu
1673cf3fca fix: compat fixes for container host in vm (#24444)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-13 13:26:50 +08:00
cwz_eikoh
140054c927 Automated cherry pick of #24338: feat(llm): init vllm as llm_container (#24436)
* feat(llm): init vllm as llm_container

* feat(vllm): fix save-instant-model for vllm

* feat(llm): support quick-model for vllm

* feat(vllm): support preferred-model in llm

* fix(llm): add ValidateSpec in llm_container_driver

* feat(vllm): auto-set vllm params
2026-03-13 11:07:09 +08:00
Zexi Li
fc33607c0e feat(host): rotate container logs (#24434) 2026-03-12 15:15:24 +08:00
Zexi Li
1b276b02cb feat(llm): add login-info api (#24430) 2026-03-12 07:21:01 +08:00
wanyaoqi
8543f3735d fix(region): guestnetworksecgroup list add network info (#24393) 2026-03-11 19:31:52 +08:00