Commit Graph
20497 Commits
Author SHA1 Message Date
屈轩 41c5c66fe2 fix(region): vendor update (#23652) 2025-11-01 13:03:50 +08:00
JinyuZhao 07d1cecf99 feat: Cloudpods basic service image RISC-V support (#23446)
This patch enables cloudpos basic service image to be built on RISC-V
platforms and support build script to work on RISC-V platforms.

Signed-off-by: Jinyu Zhao <1813479822@qq.com>
2025-10-31 19:04:15 +08:00
cwz_eikoh f1f502cac4 feat(llm): add network id and network type for llm-model (#23620)
* feat(llm): add network id and network type for llm-model

* fix(llm):portmapping of model network only works when network mode is hostlocal
2025-10-31 10:21:41 +08:00
Zexi Li a931d2cc4c Automated cherry pick of #23642: fix(scheduler): enable profiling (#23646)
* fix(scheduler): enable profiling

* feat(scheduler): cache NetworkAdditionalWire
2025-10-31 10:19:37 +08:00
屈轩 d1510f2f5e fix(region): sku cpu mem sync (#23648) 2025-10-30 22:33:15 +08:00
屈轩 1fe87cb8e6 fix(region): filter disks by server list (#23643) 2025-10-30 17:24:35 +08:00
屈轩 c6b4daee37 fix(region): vendor update (#23638) 2025-10-30 10:06:17 +08:00
happy-gameandwanyaoqi 0bed60eae7 [OSPP]feature:Automated installation using kickstart (#23094)
* 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

* fix: kickstart misc fix

* 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: wanyaoqi <d3lx.yq@gmail.com>
2025-10-29 14:54:00 +08:00
Zexi Li 9ac1a3f992 fix(host): move the hostInstance.Init() step after InitAuth (#23623) 2025-10-29 14:00:24 +08:00
Jian QiuandQiu Jian aed979e14e fix: task remote notify (#23630)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-29 12:17:41 +08:00
屈轩 899c105bd0 fix(cmd): show mcp server update cmd (#23628) 2025-10-28 18:24:35 +08:00
屈轩 ff404302cb fix(mcp): add dockerfile for mcp server (#23618) 2025-10-28 15:23:11 +08:00
屈轩 282e1499e1 fix(region): set ksyun tag (#23610) 2025-10-24 22:54:04 +08:00
Zexi Li c7b8129ed6 chore(ci): turn off goimports-check rule (#23605) 2025-10-24 15:48:36 +08:00
cwz_eikoh 897a6fc61f [OSPP]feature: Auto deploy llm and dify (#23282)
* feat(llm): add llm-create

* fix(llm): fix llm-create, add llm-list & llm-show

* fix(llm): format file names

* fear(llm): add exec stream

* fear(llm): init llm model cache

* fix(llm): move llm model cache to LocalImageCache

* feat(llm): auto clean model cache

* fix(llm): auto clean tmp model cache

* feat(dify): init dify-create

* fix(dify): change dify default registry

* feat: support create model with gguf file

* feat(llm): support more modelfile option for gguf file

* feat(dify): init user customize dify parameters

* feat: update llm as a service in climc

* fix: delete llm from region service

* feat: init llm service (with error)

* fix: resolve errors (task cant callback yet)

* feat: add PerformRequestHostActionByOtherService for container

* fix: make llm service usable

* feat: delete llm and dify after guest deleted

* feat(llm): add llm-image

* feat(llm): add llm-model

* feat: mv old llm to ollama

* feat(llm): init llm-batch-create(can not run)

* fix(llm): make llm-create usable

* fix(llm): add pull-model step

* feat(llm): add list and delete

* fix(llm): ollama pull official model don't rely on host & region's code any more

* feat(llm): add dify-model

* fix: remove llm's code in host & compute

* fix: remove remain code in compute

* feat(llm): Abstract out and reuse the llm_model logic

* feat(llm): abstract llm_base from llm

* fix(llm): make dify usable

* feat(llm): add sync_dify_images.sh

* fix(llm): format import

* feat(llm): support start & stop for llm and dify

* feat(llm): add model-update

* fix(llm): gendocgo
2025-10-24 13:29:31 +08:00
Jian QiuandQiu Jian fa67fdef77 fix: rpm/deb support postinst/preinst/prerm/postrm hooks (#23594)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-23 01:03:42 +08:00
Jian QiuandQiu Jian 9e2beac625 fix: suport bulding multi-arch rpm deb (#23569)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-22 23:52:58 +08:00
屈轩 1d361bb4d3 fix(keystone): fetch domain user count (#23590) 2025-10-22 16:25:40 +08:00
wanyaoqi 8abcde01e8 fix(region,host,scheduler): add check kvm cpu max on cpu predicate (#23537) 2025-10-22 15:07:00 +08:00
Zexi Li 4d0c18d224 feat(region,host): support nvidia GPU CDI configuration (#23568) 2025-10-22 15:04:35 +08:00
cwz_eikoh 22ad881b3d feat(container): container-restart (#23584) 2025-10-22 14:59:43 +08:00
屈轩 9b1b60c65f fix(region): support ocean base (#23586) 2025-10-22 14:40:55 +08:00
屈轩 9951c7bcb5 fix(region): disable cloudprovider when sync lost (#23581) 2025-10-22 11:30:17 +08:00
屈轩 db64e36716 fix(region): vendor update (#23578) 2025-10-22 11:12:01 +08:00
Zexi Li 098e8d49fc feat(region): allow containers to be created with auto_start param (#23573) 2025-10-21 17:20:59 +08:00
屈轩 96687005e8 fix(region): adjust the ip_addr character length (#23562) 2025-10-21 10:45:01 +08:00
Jian QiuandQiu Jian f4975415d6 fix: container memory.high ratio support (#23559)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-21 09:33:07 +08:00
屈轩 4f9650fc9b fix(glance): add notify for image create (#23552) 2025-10-16 14:30:41 +08:00
wanyaoqi 5b24d3bb15 fix(webconsole): baremteasl ipmi sol instance_name hide password (#23535) 2025-10-16 00:02:33 +08:00
wanyaoqi 981b2c0c07 fix(host): host probe isoalted device return jsonarray (#23550) 2025-10-16 00:01:46 +08:00
屈轩 9bf9cfa940 fix(region): valid essd pl0 disk resize (#23545) 2025-10-15 17:24:17 +08:00
屈轩 28e1aea2cc fix(region): vendor update (#23539) 2025-10-15 10:57:47 +08:00
屈轩 9e0c524263 fix(region): support change storage type (#23529) 2025-10-14 16:59:13 +08:00
屈轩 ad753e0df2 fix(region): healt status (#23524) 2025-10-13 18:50:57 +08:00
屈轩 f4816d3b80 fix(keystone): distribute permissions when the organization changes (#23501) 2025-10-13 18:49:37 +08:00
屈轩 778d03a6e4 fix(region): private zone create status (#23520) 2025-10-13 18:05:21 +08:00
wanyaoqi a455b8c8ef fix(host): ensure host wire marshal nil value (#23505) 2025-10-12 11:03:57 +08:00
屈轩 3684642617 fix(region): server sku create with region id (#23508) 2025-10-11 16:54:34 +08:00
wanyaoqi e21eb05fd4 fix(region,glance,host-deployer): guest image support bios boot mode detect (#23376) 2025-10-11 10:21:03 +08:00
Zexi Li 30ca0f530f fix(baremetal): ensure the execution of the BaremetalServerDestroyTask (#23498) 2025-10-09 17:07:59 +08:00
Jian QiuandQiu Jian 73880eef77 fix: ignore e2fsck errors if retcode < 4 (#23490)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-09 16:31:53 +08:00
wanyaoqi 948f67577f fix(host): disk resize error input params (#23494) 2025-10-09 13:28:52 +08:00
Jian QiuandQiu Jian 4094097b50 fix: network manager keyfile static routes (#23479)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-08 13:18:50 +08:00
Jian QiuandQiu Jian 77aa8a7f96 fix: support network manager connection profiles (#23469)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-03 09:25:34 +08:00
Jian QiuandQiu Jian 30b8491ef5 fix: default cloud region init error (#23478)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-03 06:33:35 +08:00
屈轩 736d1fda24 fix(cloudmon): metric sync (#23462) 2025-09-30 16:52:58 +08:00
屈轩 060518e717 fix(region): vendor update (#23452) 2025-09-30 15:09:37 +08:00
屈轩 403176ba4a fix(region): host order by virt cpu (#23458) 2025-09-30 13:19:21 +08:00
Jian QiuandQiu Jian 20d28dc23f fix: hostman master nic may be nil (#23453)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-09-30 11:53:06 +08:00
Jian QiuandQiu Jian 2f3359c83f fix: s3 common options (#23445)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-09-29 19:22:35 +08:00