Compare commits

..

421 Commits

Author SHA1 Message Date
wanyaoqi
d78801de92 feat(region,host): hostpinger add cpu usage percent report (#22006) 2025-01-25 15:55:32 +08:00
Jian Qiu
ee67be37ba fix: is_classic is missing from network details (#21994)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-01-21 16:25:33 +08:00
Jian Qiu
54246ddbff fix: add summary statistics switch (#21991)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-01-18 20:14:40 +08:00
wanyaoqi
bed9513cc4 fix(region): snapshot policy with multi disk on same guest fix(region): delete overdued snapshots on cleanup snapshot task only (#21967) 2025-01-16 10:43:12 +08:00
Zexi Li
8b02911971 fix(host): wrap qemu machine info error (#21973) 2025-01-14 20:50:06 +08:00
Jian Qiu
e216b8a6e2 fix: image update input struct param (#21964)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-01-14 02:17:47 +08:00
wanyaoqi
61f72a4050 fix(region): host list add hide cpu topo info option (#21945) 2025-01-14 01:59:25 +08:00
wanyaoqi
5674742f1e fix(region): record snapshot last attched host on delete disk (#21926) 2025-01-07 20:00:07 +08:00
Jian Qiu
d5b26cb86a fix: backup storage support sign version (#21913)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-01-01 10:11:26 +08:00
wanyaoqi
efddf8e684 Automated cherry pick of #21894: Fix/host load servers (#21896)
* fix(host): load disks init scsi bus

* fix(region,host): delete instance snapshot progress incorrect
2024-12-30 10:31:43 +08:00
Jian Qiu
faddb1a8db fix: add more filters to isolated_device (#21908)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-12-30 10:30:05 +08:00
wanyaoqi
c46a33213f Automated cherry pick of #21875: Automated cherry pick of #21804: [WIP] fix: add more action log (#21876)
* fix: add more action log

* fix(region): add set cmt bound action
2024-12-29 23:08:57 +08:00
wanyaoqi
f89f201fca fix(host): delete snapshot from storagehandler misc fix (#21884) 2024-12-23 20:43:43 +08:00
Zexi Li
59f0b1d055 fix(monitor): unknown column returned when group by name tag (#21869) 2024-12-20 18:00:30 +08:00
Zexi Li
1fd00a55c3 fix(baremetal): panic when save desc (#21866) 2024-12-20 16:18:47 +08:00
wanyaoqi
d2bef87f7a fix(region): disk show io throttles (#21831) 2024-12-20 11:41:10 +08:00
wanyaoqi
8cb0af6b9e fix(host): optimize storage register failed wiht dup name (#21834) 2024-12-20 11:40:04 +08:00
wanyaoqi
9b36b35b9f fix(climc): host-show hide long content sys_info nic_info metadata (#21850) 2024-12-20 11:11:36 +08:00
Zexi Li
5496190609 fix(host): make telegraf configuration log to debug (#21843) 2024-12-19 15:56:24 +08:00
Jian Qiu
11a30253a2 fix: enfore mfa (#21801)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-12-17 19:39:40 +08:00
Zexi Li
cfbff4c6e8 fix(host): fix the rtl8139 NIC information is missing (#21816)
Co-authored-by: 云原生驿站 <33771248+CloudCourierStation@users.noreply.github.com>
2024-12-17 10:36:35 +08:00
Zexi Li
b6fcbf69ec fix(baremetal-agent): adjust redfish http client timeout to 60s (#21792) 2024-12-13 10:39:35 +08:00
Zexi Li
f7f7684058 feat(webconsole): keep_websocket_session option (#21782) 2024-12-11 14:26:29 +08:00
屈轩
85c50c66db fix(apigateway): add service settings info (#21780) 2024-12-11 11:08:00 +08:00
Zexi Li
51449715d7 feat(monitor): add min and max aggregator (#21767) 2024-12-07 20:58:12 +08:00
Zexi Li
8e369cdaf9 fix(monitor): clone alert dashboard (#21726) 2024-12-03 10:05:56 +08:00
wanyaoqi
8a5f92e483 fix(host,host-deployer): start deployer guest with all of disk (#21711) 2024-12-02 14:59:01 +08:00
wanyaoqi
759ece9157 fix(scheduler,region): fill resource info check guest is in pending usage (#21706) 2024-11-27 10:58:29 +08:00
屈轩
23a50965bf fix(region): zettakit eip create (#21702) 2024-11-26 15:44:29 +08:00
Zexi Li
242067dade Automated cherry pick of #21692: fix: complete monitor metrics (#21697)
* fix: complete monitor metrics

* fix(monitor): remove container related metrics

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-11-26 14:45:47 +08:00
wanyaoqi
1deac016de fix(host): generate ceph conf dup monHosts (#21690) 2024-11-26 14:07:42 +08:00
屈轩
0e5be2411a fix(region): support uis (#21688) 2024-11-26 12:04:20 +08:00
屈轩
3e391b8c87 fix(region): validate zettakit disk size (#21685) 2024-11-26 10:30:36 +08:00
屈轩
8367883903 fix(region): optimized zettakit (#21674) 2024-11-24 13:23:54 +08:00
Zexi Li
967ef380de fix(monitor): set default query select and group by for alerting and panel (#21670) 2024-11-22 19:20:12 +08:00
屈轩
ce44e5eac9 fix(region): support zettakit (#21665) 2024-11-22 17:03:43 +08:00
Zexi Li
69eb5f23a8 feat(monitor): list alertrecords by res_id (#21666) 2024-11-22 16:54:29 +08:00
Zexi Li
74771980c3 fix(monitor): raw_name of influxdb query (#21660) 2024-11-22 15:52:46 +08:00
屈轩
6dd0e1f5f6 fix(region): avoid panic (#21656) 2024-11-22 14:52:56 +08:00
wanyaoqi
1aa8a006ee fix(host): import from libvirt parse live xml (#21649) 2024-11-22 14:52:17 +08:00
屈轩
d004daed62 fix(region): support baidu cloud (#21653) 2024-11-21 16:56:49 +08:00
屈轩
addf0135fc fix(cloudid): vendor update for azure iam (#21645) 2024-11-20 20:15:58 +08:00
屈轩
94b6f9578d fix(region): vendor update for azure vm create (#21640) 2024-11-20 15:12:38 +08:00
Zexi Li
f700d196d9 feat(monitor): support sorting reduced result (#21637) 2024-11-20 11:19:23 +08:00
Zexi Li
c04c2c9370 fix(monitor): set default aggregator and group by for alert model (#21631) 2024-11-19 14:56:40 +08:00
Zexi Li
dc8dbe2cd8 fix(monitor): inject ResType (#21627) 2024-11-19 14:00:23 +08:00
Zexi Li
bf7cb394dd Automated cherry pick of #21619: support telegraf linux_sysctl_fs (#21622)
* support telegraf-sysctl

* feat(monitor): add linux_sysctl_fs measurement
2024-11-18 20:04:41 +08:00
屈轩
2f220f81e6 fix(region): add lb backend group count and listener count for lb details (#21608) 2024-11-17 22:47:03 +08:00
Zexi Li
ba3784e06d fix(region): not sync status when attaching and detaching disk (#21604) 2024-11-14 21:28:16 +08:00
屈轩
9f3bb73ba5 fix(region): shareable virtual resource query (#21597) 2024-11-14 20:35:05 +08:00
屈轩
c41e19f89c fix(region): remove dstack (#21600) 2024-11-14 20:29:52 +08:00
Zexi Li
e51bc1a0d9 fix(monitor): raw_name of group_by (#21595) 2024-11-14 18:01:20 +08:00
屈轩
f7603a5d1c fix(region): allow disable default policy (#21586) 2024-11-14 14:42:28 +08:00
屈轩
608b165684 fix(region): add actual capacity used usage (#21573) 2024-11-12 11:34:55 +08:00
Zexi Li
86bde0d072 fix(monitor): alert notification details (#21579) 2024-11-12 11:28:35 +08:00
屈轩
895f4869fb fix(region): filter unused snapshot (#21562) 2024-11-12 11:16:08 +08:00
Zexi Li
896e0889ec fix(monitor): add metric content for email template (#21568) 2024-11-11 16:09:35 +08:00
Jian Qiu
1a24f1c6f6 fix: disable default dns domain cloud.onecloud.io (#21559)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-11-08 10:09:10 +08:00
屈轩
34076f6a68 fix(region): vendor update for gcp disk name length (#21555) 2024-11-07 15:00:11 +08:00
Jian Qiu
7c0b1b78fa fix: telegraf kakfa ordered configuration (#21549)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-11-07 09:49:36 +08:00
屈轩
7a40f3b21a fix(glance): image stream worker count (#21537) 2024-11-07 09:48:18 +08:00
Zexi Li
ac78690de6 feat(region,climc): server-set-root-disk-matcher (#21546) 2024-11-06 18:53:27 +08:00
Zexi Li
ce4c5f8111 fix(monitor): 修复报警恢复时包含其他资源的问题 (#21541) 2024-11-06 18:52:14 +08:00
屈轩
120f74104f fix(notify): show pretty notify error (#21532) 2024-11-06 10:04:57 +08:00
wanyaoqi
e32a86771f fix(region,host): storage add master host (#21471) 2024-11-06 10:03:50 +08:00
屈轩
8895e6c87b fix(monitor): add order index for monitor panel (#21528) 2024-11-05 17:31:45 +08:00
Zexi Li
9402c6c605 feat(monitor): add system and processes host metrics (#21523) 2024-11-04 19:17:12 +08:00
屈轩
44b9c9dc7a fix(region): vendor update for disable esxi swap (#21515) 2024-11-04 15:09:16 +08:00
Zexi Li
418d4c94d4 fix(region): not set PrimaryZone when no dns_domain configured (#21513) 2024-11-04 12:40:10 +08:00
Jian Qiu
ce7a80a766 fix: disk filter by storage host (#21499)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-10-31 01:49:48 +08:00
Jian Qiu
df4b128c43 feature: kafka telegraf output options (#21494)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-10-30 12:32:41 +08:00
屈轩
668647a829 fix(region): vendor update (#21491) 2024-10-29 18:26:19 +08:00
屈轩
222864f956 fix(region): 避免翻页查询导致公有云实例被误清除 (#21480) 2024-10-28 16:40:56 +08:00
屈轩
4a0c07344e fix(region): purge manager quota (#21477) 2024-10-28 15:50:38 +08:00
Zexi Li
33afd8ae1b feat(webconsole): disable command recording defaultly (#21469) 2024-10-25 21:55:28 +08:00
屈轩
d8b227cb56 fix(cloudmon): cloudpods metric sync (#21462) 2024-10-25 17:54:19 +08:00
wanyaoqi
1671f59220 fix(region,host): ceph add enable messenger v2 options (#21444) 2024-10-25 10:16:08 +08:00
屈轩
dfd0f4a79c fix(region): vendor update (#21440) 2024-10-22 19:57:48 +08:00
Jian Qiu
3877b8a1ef fix: host bond slave nic should use permaddr as mac (#21433)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-10-20 14:42:10 +08:00
屈轩
acf3378ea4 fix(region): support cloudpods secrule ops (#21428) 2024-10-18 16:48:01 +08:00
屈轩
ced0db5887 Revert "fix(region): account probe lock" (#21425)
This reverts commit 7f90d38e5f.
2024-10-18 16:08:02 +08:00
屈轩
ac1f2a035d fix(region): add interface field length (#21421) 2024-10-18 09:52:25 +08:00
Zexi Li
319fbec787 fix(scheduler): avoid_same_host 策略分数过高导致调度分配不均 (#21414) 2024-10-16 10:23:14 +08:00
Zexi Li
9ba4deea95 fix(webconsole): ssh randomly exited error (#21408) 2024-10-14 14:50:56 +08:00
wanyaoqi
3f9510ec41 fix(region): fix default network on get desc (#21397) 2024-10-14 12:35:59 +08:00
wanyaoqi
54c36d25b0 fix(host-deployer): update host-deployer-base to 1.4.9 (#21403) 2024-10-12 14:14:26 +08:00
wanyaoqi
438b72889d fix(host-deployer): do not clean spool dir on save image (#21400) 2024-10-12 10:09:04 +08:00
wanyaoqi
84488d6216 fix(host): set ssd disk default scheduler none (#21363) 2024-10-12 10:03:31 +08:00
wanyaoqi
07793043cd fix(host,glance): qemuimg convert optimize, allow write out of order and increase coroutines (#21374) 2024-10-12 10:01:34 +08:00
屈轩
67ef087f31 fix(region): storage conf update (#21391) 2024-10-11 18:04:57 +08:00
屈轩
faed260f4f fix(region): gcp security group check (#21387) 2024-10-11 17:53:52 +08:00
屈轩
cd8b10e1e9 fix(common): compatible metadata mod find (#21383) 2024-10-11 16:40:19 +08:00
Zexi Li
9ee4b45813 feat(apigateway): add rpc methods of scheduler for apigateway (#21379) 2024-10-10 19:07:42 +08:00
wanyaoqi
e910bf9dec fix(region): check disk is deleted on delete snapshot (#21368) 2024-10-09 21:49:36 +08:00
wanyaoqi
2bf3f78895 fix(host): reconnect qga on failed exec qga commands (#21356) 2024-10-08 10:14:02 +08:00
wanyaoqi
87f3e23ab1 fix: fix slice init length (#21350)
Co-authored-by: cui fliter <imcusg@gmail.com>
2024-10-07 20:09:18 +08:00
wanyaoqi
f5859655f4 fix(region,scheduler): allow req cpu count zero on allocate cpunumapin (#21344) 2024-10-03 20:03:34 +08:00
Jian Qiu
3e670ad61e fix: cloud account filter revisit (#21340)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-10-01 08:49:24 +08:00
wanyaoqi
50647afd2c fix(host): refact qga connection ops (#21337) 2024-09-29 22:53:26 +08:00
Jian Qiu
fadf3944a6 fix: host report ovs kmod version and ksm status (#21328)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-28 20:26:19 +08:00
Zexi Li
c34178acfa fix(region): make parseDeviceInfo error clear (#21325) 2024-09-28 18:35:03 +08:00
Jian Qiu
614e750fd7 fix: upgrade sqlite3 to 1.14.19 (#21319)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-27 07:18:46 +08:00
wanyaoqi
e16cf8438c Automated cherry pick of #21313: Automated cherry pick of #21312: Automated cherry pick of #20996: fix(region,host): lvm snapshot delete and create from backup (#21315)
* fix(region,host): lvm snapshot delete and create from backup

* fix(host): slvm delete snapshot and save images

* fix(host): add option boot vga pci addr

* fix(host): slvm active exclusive mode on convert snapshot
2024-09-27 00:37:44 +08:00
wanyaoqi
884a9ffcee fix(host): check qga is init on check qga runing (#21309) 2024-09-27 00:35:10 +08:00
Zexi Li
eb70e65693 fix(webconsole): close session when ssh session closed (#21296) 2024-09-25 17:15:43 +08:00
屈轩
1d29435908 fix(region): vendor update for cephfs http (#21293) 2024-09-25 17:11:19 +08:00
屈轩
3e8782574a fix(region): filter cloudproviders by regional network zone (#21289) 2024-09-24 18:10:26 +08:00
Jian Qiu
1a233d1bfa fix: remove metadata server from host (#21279)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-21 22:52:16 +08:00
屈轩
ff0743ff5d fix(region): kvm user-data (#21239) 2024-09-20 20:41:39 +08:00
屈轩
26da5181cb fix(region): disk metadata with server (#21253) 2024-09-19 09:54:46 +08:00
Jian Qiu
c42517a099 fix: host build image use go 1.21 (#21264)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-19 03:20:38 +08:00
Jian Qiu
cad7cfa55b fix: update vendor 20240919 3.11 (#21262)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-18 23:07:34 +08:00
Jian Qiu
c28c09364c fix: update vendor 3.11 20240917, upgrade go to 1.21 (#21255)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-18 20:48:18 +08:00
Jian Qiu
1e1e9c3007 fix: update vendor 20240916 (#21247)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-16 19:09:03 +08:00
Jian Qiu
138907b0ec fix: prevent access from anonymous user (#21243)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-14 19:36:51 +08:00
wanyaoqi
77a9ffe2a4 fix(region): guest without cpunumapin don't set params on save schedule result (#21234) 2024-09-14 10:11:35 +08:00
Zexi Li
4900c09d6c Automated cherry pick of #21079: 1、裸金属删除时,GuestUndeployTask会出现无法调用任务完成方法OnGuestUndeployComplete,导致任务卡住的情况 (#21232)
* 1、裸金属删除时,GuestUndeployTask会出现无法调用任务完成方法OnGuestUndeployComplete,导致任务卡住的情况 2、裸金属删除时,回调用baremetal-agent的sync-config接口不止一次,调用时出现请求参数没有传递server_id情况,导致在OnPXEBoot调用getServer时删除了baremetal的server信息,致使后面的DoEraseDisk方法报错

* 1、裸金属删除时,GuestUndeployTask onInit去掉host不为空时的SetStageComplete函数

---------

Co-authored-by: gj <gj@qq.com>
2024-09-13 14:37:05 +08:00
Zexi Li
68671531d3 feat(climc): add public/private command for k8s-container-registry (#21229) 2024-09-13 14:34:43 +08:00
屈轩
09798624a5 fix(cloudmon): vendor update for aws gcp cpu metric (#21226) 2024-09-13 11:58:47 +08:00
Zexi Li
66e5aa0b7e feat(monitor): filter monitor_resource_alert by ip (#21220) 2024-09-12 11:01:14 +08:00
Zexi Li
90e5e3a474 fix(moniotr): filter dirty resource alerts (#21216) 2024-09-12 10:05:14 +08:00
Zexi Li
be43244385 fix(climc): monitor-alert-test-run prints result error (#21211) 2024-09-11 20:04:32 +08:00
Zexi Li
474a90dc31 optimized(monitor): keep 2 precision of reduced value (#21207) 2024-09-11 16:36:52 +08:00
屈轩
a2b21c55b8 fix(region): sync remove guest whith network address (#21200) 2024-09-10 14:25:32 +08:00
屈轩
e7afdcd6dc fix(log): add offline export i18n (#21194) 2024-09-10 14:24:44 +08:00
Zexi Li
5f148c9a03 feat(apigateway): report k3s environment (#21197) 2024-09-10 14:24:07 +08:00
Jian Qiu
2a3cb2107d fix: climc server-detach-network --force (#21191)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-10 09:58:25 +08:00
Zexi Li
03bde9182f optimized(apigateway): use ssh for climc pod cloud shell (#21185) 2024-09-09 16:03:07 +08:00
屈轩
3af492417f fix(cloudid): cloud policy sync (#21173) 2024-09-06 11:48:57 +08:00
wanyaoqi
e4fc059588 fix(host-deployer): update host-deployer-docker base (#21177) 2024-09-06 11:25:46 +08:00
Zexi Li
4080665f58 fix(monitor): support or filter of query (#21171) 2024-09-05 20:10:32 +08:00
屈轩
63e2a97dfd fix(region): disk update disk type (#21160) 2024-09-04 10:44:26 +08:00
wanyaoqi
f0927f0aba fix(host): rbd save image use /opt/cloud temp dir (#21154) 2024-09-04 10:43:32 +08:00
Jian Qiu
5d69bdfbdf fix: telegraf config file format error (#21145)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-03 11:02:58 +08:00
屈轩
dc2cd4f111 fix(region): sync worker hashring (#21127) 2024-09-02 20:08:00 +08:00
Zexi Li
29054379a9 optimize(host): wrap updateOrCreateHost error (#21141) 2024-09-02 13:28:28 +08:00
wanyaoqi
07df2aac53 fix(region): allow guest create on cannot detect image props (#21138) 2024-09-02 10:18:35 +08:00
Jian Qiu
10ca788e09 fix: update vendor for dameng TEXT_EQUAL (#21135)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-01 20:19:11 +08:00
Jian Qiu
071c6e0cfe fix: migrate ipv6 routes from physical interface to bridge (#21132)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-01 20:16:48 +08:00
Zexi Li
930605f7a0 fix(monitor): delete default group by and mean aggregator (#21116) 2024-08-29 10:03:45 +08:00
Zexi Li
3e7f4c9983 fix(climc): host-ssh is not working (#21112) 2024-08-27 16:25:16 +08:00
Zexi Li
05330f18fc fix(monitor): skipCheckSeries when aggregator is sum (#21106) 2024-08-27 10:41:05 +08:00
屈轩
7ae0543dae fix(region): sync aliyun gtm and aws traffic policy address (#21103) 2024-08-26 20:55:18 +08:00
Zexi Li
c703061b7f fix(monitor): only show MEAN and SUM aggregators (#21099) 2024-08-26 17:39:57 +08:00
wanyaoqi
cb5cbc4075 fix(host): nbd worker count add options (#21095) 2024-08-26 17:28:57 +08:00
屈轩
ba1bbdb572 fix(region): set security group domain id (#21092) 2024-08-26 17:26:57 +08:00
Jian Qiu
a46c865826 fix: extend query with metadata field (#21084)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-08-23 11:30:31 +08:00
Zexi Li
2138f65f3a feat(monitor): result reducer for query result (#21076) 2024-08-22 15:43:52 +08:00
Zexi Li
b9cda0a032 optimze(baremetal): dhcp prefix hints (#21075) 2024-08-22 15:27:43 +08:00
屈轩
cb5b0651b9 fix(region): filter eips by associated (#21066) 2024-08-21 10:50:57 +08:00
Zexi Li
aee9c6db46 optimize(region,host): add details error message when adding net interface (#21062) 2024-08-20 18:38:58 +08:00
Jian Qiu
5b9ef62f5b fix(host): migrate slave addresses and routes from physical nic to bridge (#21043)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-08-19 10:19:25 +08:00
Jian Qiu
afac4573bb fix: climc command to public/private dns-zone (#21054)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-08-19 10:17:57 +08:00
屈轩
3c2013cd82 fix(cloudmon): 避免cloudmon任务堆积导致大量请求 (#21047) 2024-08-19 10:13:16 +08:00
wanyaoqi
6966494f41 fix(region): try recover image cache on guest migrate (#21027) 2024-08-16 10:29:49 +08:00
wanyaoqi
1dfd41697b Automated cherry pick of #21039: fix(region,host,host-deployer): deploy guest ssh port add lock (#21040)
* fix(host): check nodes count on alloc cpuset

* fix(host-deployer): get ssh port add lock

* feat(region): guest clone add prefer host
2024-08-16 09:56:37 +08:00
Jian Qiu
71f559cf9d fix: filter islated devices capability info by zone (#21034)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-08-15 09:37:36 +08:00
Jian Qiu
25f7839d56 fix: support keylike search (#21030)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-08-15 09:36:05 +08:00
屈轩
f483d04ce8 fix(region): sync kvm secgroup status (#21017) 2024-08-14 11:37:36 +08:00
Zexi Li
15ec011e36 fix(baremetal): ignore 0.0.0.0 ipmi address when probing (#21008) 2024-08-13 17:43:48 +08:00
屈轩
cda4ddc7c5 fix(region): vendor update (#20993) 2024-08-12 09:52:22 +08:00
屈轩
c7dfaea1aa fix(region): auto clean invalid cached images (#20815) 2024-08-09 09:42:04 +08:00
wanyaoqi
7fbf8b46b5 fix(region): validate guestdisk cache/io mode on upadte (#20984)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-08-09 09:41:01 +08:00
wanyaoqi
2da0872af3 fix(host): clean image cache check local reference (#20953) 2024-08-09 09:40:38 +08:00
屈轩
8c8ceb1dce fix(region): vendor update for lb backend sync (#20974) 2024-08-07 18:50:26 +08:00
屈轩
328f652ee8 fix(region): send notify when vpc or network created (#20928) 2024-08-07 11:54:58 +08:00
屈轩
8684590041 fix(region): show status info with list api (#20942) 2024-08-07 11:53:48 +08:00
wanyaoqi
9ffadeb978 fix(host-deployer): add cpu mem hotplug udev rules (#20962) 2024-08-06 09:07:14 +08:00
wanyaoqi
cf3cfda698 fix(host): too much qga ping logs (#20956) 2024-08-05 14:47:25 +08:00
wanyaoqi
0d1dc01cbd fix(region,scheduler): sub pending usage on select cpu numa pin (#20947)
- reset guest cpu numa pin before start guest
- sub pending usage on select cpu numa pin
- hypervisor pod record pending usage
- add core:threads pair allocate, use same core threads first

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-08-02 10:22:46 +08:00
wanyaoqi
fe31a4b35e fix(region): cpu numa pin guest sched start (#20938) 2024-07-31 21:36:15 +08:00
Zexi Li
684aa1a2c8 fix(monitor): no alert_details in nodata monitor_resource_alert (#20935) 2024-07-31 13:47:18 +08:00
wanyaoqi
0839c6964e feat(region,host,scheduler): scheduler support allocate cpu numa pin (#20931) 2024-07-30 19:10:32 +08:00
Zexi Li
7b30dcab08 feat(monitor): multiple alerts of resource (#20924) 2024-07-30 16:15:55 +08:00
屈轩
df76ac5217 fix(cloudmon): 避免产生大量操作日志 (#20919) 2024-07-30 14:41:54 +08:00
屈轩
6bb4e468c0 fix(region): vendor update (#20910) 2024-07-30 09:32:32 +08:00
Zexi Li
4f7c1a7082 fix(monitor): add pps_sent/recv metric for query (#20915) 2024-07-29 20:58:57 +08:00
Jian Qiu
13b451b465 fix: opsadmin deny host perform login-info (#20904)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-29 13:21:13 +08:00
屈轩
a96a57e920 fix(keystone): change user mobile field character set to utf8 (#20900) 2024-07-27 13:50:10 +08:00
Zexi Li
9cdbf61062 fix(mointor): multiple duplicated message (#20891) 2024-07-25 15:26:57 +08:00
wanyaoqi
401cc40655 feat(regin,host,host-deployer): qga deploy and fsdriver (#20863)
- host-deployer add deploy qga support
- host add qga partition fsdriver
- qga set network use fsdriver
- hostpinger sync qga status
2024-07-25 11:49:32 +08:00
屈轩
fda7529b3f fix(cloudid): cloudid resource sync worker (#20878) 2024-07-25 11:19:20 +08:00
Zexi Li
ebd7f5d5df feat(webconsole): add secret_level property inside query data (#20882) 2024-07-24 17:41:20 +08:00
屈轩
248a2ba7df fix(region): keypair id typo (#20873) 2024-07-24 14:35:32 +08:00
wanyaoqi
055c9ab3db Automated cherry pick of #20852: fix(region,host): slvm disk create use guest host lvm disk create from backup (#20854)
* fix(region): slvm disk create use guest host

* fix(host): lvm disk create from backup
2024-07-22 15:13:19 +08:00
Zexi Li
d624c2d763 feat(apigateway): report docker-compose-baremetal running environment (#20867) 2024-07-22 15:11:58 +08:00
Zexi Li
72e665fb0b feat(monitor): add inodes_used_percent metric (#20849) 2024-07-20 11:58:14 +08:00
屈轩
b4cfdd8246 fix(region): host nic info (#20860) 2024-07-20 11:55:59 +08:00
Zexi Li
46b7428b1d feat(monitor): update influxql-to-metricsql@v0.0.7 to support percentile aggregator (#20835) 2024-07-17 22:59:44 +08:00
屈轩
47a7979868 fix(region): add storage name for snapshot (#20828) 2024-07-17 22:55:35 +08:00
屈轩
28dede02cb fix(region): support baremetal server as lb backend (#20838) 2024-07-17 22:54:02 +08:00
屈轩
8632769265 fix(region): vendor update for qcloud lb backend sync (#20823) 2024-07-17 14:17:20 +08:00
屈轩
8ca9d0c289 fix(cloudid): distinct field for cloudid resources (#20819) 2024-07-17 10:12:51 +08:00
Jian Qiu
dd89bf8558 fix: always add static routes for metadata server (#20807)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-17 10:06:55 +08:00
屈轩
d23148559f fix(region): check user credential length when exec task (#20792) 2024-07-16 11:20:02 +08:00
Zexi Li
601f3e5062 feat(host): add interface meta tags of netio metrics (#20781) 2024-07-12 10:19:13 +08:00
Zexi Li
283122bcb1 feat(region,baremetal): validate ipmi info (#20788) 2024-07-12 10:17:46 +08:00
屈轩
c7dc8917d8 fix(notify): avoid empty email addr (#20798) 2024-07-12 10:10:30 +08:00
屈轩
801bf239c1 fix(region): vendor update (#20801) 2024-07-12 10:09:59 +08:00
Zexi Li
416141992e fix(baremetal): some tasks don't implement IServerBaseDeployTask interface (#20785) 2024-07-10 16:15:36 +08:00
屈轩
efea50cf0b fix(region): optimized host-list speed (#20778) 2024-07-10 16:14:16 +08:00
屈轩
695f6c0e31 fix(region): optimized guest list speed (#20759) 2024-07-10 16:12:26 +08:00
wanyaoqi
65044937e0 fix(host): disk reset with encryption (#20765) 2024-07-10 16:11:10 +08:00
屈轩
f6a1ebd244 fix(region): show pretty cdrom info for server (#20776) 2024-07-10 16:09:50 +08:00
Zexi Li
986b7d2360 fix(scheduler,baremetal): match RAID and PCIE storages in range (#20769)
The index of PCIE storages is not reindex when range is provided.
2024-07-09 11:12:14 +08:00
屈轩
b5461d344e fix(region): 避免非OneCloud区域capability依然返回OneCloud相关字段 (#20733) 2024-07-09 11:11:07 +08:00
屈轩
da2e6faa4f fix(region): enable create cloudpods vm with iso image (#20746) 2024-07-08 21:31:53 +08:00
屈轩
6e95e21e98 fix(notify): avoid panic when mobile not set (#20744) 2024-07-08 21:31:11 +08:00
Jian Qiu
70eea30d9e fix: turn on ethtool gso by default (#20753)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-08 21:30:01 +08:00
Jian Qiu
6c4f4cb53f fix: server update nic sub ips (#20757)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-08 17:25:23 +08:00
屈轩
0a3f6a10ad fix(scheduler): 修复cloudpods宿主机网络调度问题 (#20751) 2024-07-08 10:52:02 +08:00
屈轩
35ef9f44df fix(climc): auto enable storage when switch s3 on (#20727) 2024-07-07 09:46:43 +08:00
Jian Qiu
414b4e5c32 fix: fail to perform host remove netif (#20739)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-07 09:02:52 +08:00
屈轩
d2510bcacd fix(region): 补充部分翻译 (#20748) 2024-07-07 09:01:32 +08:00
屈轩
906c86cecf fix(region): vendor update for support gcp global lb sync (#20712) 2024-07-05 16:23:33 +08:00
wanyaoqi
7a0b878cac fix(region,host): lvm snapshot reset and backup (#20720)
- fix lvm disk reset request hosts wrong, should reset on guest hosts
- add lvm disk snapshot failed handle
- support lvm disk backup
- lvm disk snapshot add encrypt support
2024-07-05 13:50:29 +08:00
屈轩
2791eb0fd0 fix(region): gcp global eip and lb (#20736) 2024-07-05 13:44:58 +08:00
屈轩
997204711f fix(region): avoid delete lb failed (#20709) 2024-07-05 12:38:05 +08:00
屈轩
a3ebd7ca97 fix(region): 简化清理未使用的安全组 (#20723) 2024-07-05 11:03:12 +08:00
Jian Qiu
b0e979ada6 fix: normalize sftp errors (#20705)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-03 21:11:24 +08:00
wanyaoqi
a6f7647cdd fix(scheduler): optimize get guests by hosts ids (#20701) 2024-07-02 00:17:02 +08:00
wanyaoqi
d10428aaf3 fix(region,host): migrate converted servers (#20698) 2024-07-02 00:15:45 +08:00
wanyaoqi
0bf8d46a7b feat(host): support run guest with qemu 9.0.1 (#20692)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-07-02 00:15:07 +08:00
屈轩
a6834fe8ae fix(region): security group rule create (#20695) 2024-07-01 11:31:38 +08:00
Jian Qiu
e4fff38c43 feature: support baremetal profile (#20688)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-30 22:23:01 +08:00
屈轩
00b5de7592 fix(region): support use cached iso image for create cloudpods vm (#20686) 2024-06-30 22:22:16 +08:00
屈轩
12c6181721 fix(region): support eip search (#20683) 2024-06-28 15:58:44 +08:00
屈轩
b4d1a1beeb fix(region): cloudpods instance capability (#20681) 2024-06-28 15:05:19 +08:00
屈轩
efe7032213 fix(log): add rate log type (#20678) 2024-06-28 14:49:28 +08:00
屈轩
77370b4db6 fix(keystone): remove useless log (#20676) 2024-06-28 14:39:12 +08:00
wanyaoqi
40139b4ab8 fix(region): login account allow startwith capital letter (#20670) 2024-06-27 20:50:20 +08:00
wanyaoqi
c5f0dcedb5 fix(region): convert to kvm overwirte networks (#20667) 2024-06-27 20:39:11 +08:00
屈轩
836a8d66e2 fix(region): vendor update for qcloud tencentos server (#20663) 2024-06-27 15:39:06 +08:00
wanyaoqi
e784f3fdd9 feat(region): add batch convert precheck (#20659)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-06-26 21:20:16 +08:00
wanyaoqi
0bac7ce2ed fix(host): delete snapshot on guest deleted (#20640) 2024-06-26 21:18:21 +08:00
Zexi Li
10b92a21ec fix(climc,webconsole): use OS_AUTH_TOKEN for cloud shell running inside compose environment (#20649) 2024-06-26 12:12:13 +08:00
屈轩
9992dc8c45 fix(region): waf regexset fetch error (#20646) 2024-06-26 11:18:34 +08:00
Jian Qiu
e57717fd65 fix: vmware probe host networks (#20626)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-26 10:59:53 +08:00
屈轩
3e66dd7935 fix(region): vendor update for qcloud nat sync (#20638) 2024-06-25 15:56:42 +08:00
屈轩
a02ae55bd8 fix(region): esxi onecloud driver (#20636) 2024-06-25 15:31:58 +08:00
Zexi Li
1283f5a21a optimize(glance): wrap error of saving image (#20633) 2024-06-25 14:21:28 +08:00
wanyaoqi
825a6c688c fix(region): scheduler forecast before convert to kvm (#20609) 2024-06-25 11:02:42 +08:00
wanyaoqi
e1ac3dab00 fix(glance): sync service options after vmware detected (#20606) 2024-06-25 10:58:52 +08:00
wanyaoqi
66df0b471c Automated cherry pick of #20595: Automated cherry pick of #20594: Fix/deploy reset password support loginaccount (#20596)
* fix(host): lvm resize add encrypt support

* fix(region): deploy reset password add loginaccount
2024-06-25 10:57:09 +08:00
屈轩
06091448ee fix(region): vendor update for qcloud nat capability (#20630) 2024-06-25 10:53:40 +08:00
屈轩
7511a61b8f fix(region): natgateway api upgrade (#20623) 2024-06-24 14:59:45 +08:00
Zexi Li
5eed2dfa8b fix(monitor): add difference tags for each series (#20619) 2024-06-22 22:06:01 +08:00
Zexi Li
c225ba2842 fix(apigateway): compose environment without k8s service (#20616) 2024-06-21 16:38:18 +08:00
Zexi Li
5151221d67 fix(logger): add rejected action i18n translation (#20602) 2024-06-20 15:01:23 +08:00
屈轩
b8cbee8ad1 fix(region): auto rename when change resource owner with same name (#20592) 2024-06-20 14:04:49 +08:00
Jian Qiu
4adf426392 fix: clone dashboard parameters (#20588)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-20 07:54:10 +08:00
wanyaoqi
ca0a61986b fix(region): allow kvm vmware reuse network address (#20585)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-06-20 06:28:06 +08:00
Zexi Li
e9d997d4c9 feat(monitor): add reducer of AlertRecordRule (#20582) 2024-06-19 19:20:11 +08:00
Zexi Li
50db770fd1 feat(log): add i18n consts for itsm service (#20575) 2024-06-19 15:35:07 +08:00
Jian Qiu
9d33639255 fix: add predefined log policy (#20570)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-19 09:32:44 +08:00
Zexi Li
3a567dd4de fix(host-deployer): ignore fatal exit when host.conf not exists (#20560) 2024-06-18 20:27:19 +08:00
屈轩
d74a15a982 fix(region): account region id optional (#20567) 2024-06-18 20:20:12 +08:00
屈轩
418961eb5b fix(region): pve driver (#20569) 2024-06-18 19:58:31 +08:00
屈轩
69d8111d16 fix(region): cloudpods hypervisor (#20564) 2024-06-18 15:38:39 +08:00
屈轩
9f7e71502b fix(climc): add service choices for worker-list (#20557) 2024-06-17 20:44:41 +08:00
屈轩
915ebe03f9 fix(webconsole): sangfor vnc (#20563) 2024-06-17 20:44:04 +08:00
屈轩
a2de0be8f2 fix(region): qcloud permission (#20554) 2024-06-17 14:25:01 +08:00
屈轩
2cde41c446 fix(region): sangfor vm status (#20551) 2024-06-17 11:18:53 +08:00
Jian Qiu
04d4e084b1 fix: cleanup compute options 20240615 (#20548)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-17 00:42:30 +08:00
wanyaoqi
bae7791792 fix(region): convert to esxi fill network params (#20493)
Deploy converted guest after guest created
2024-06-17 00:41:34 +08:00
wanyaoqi
aa9c91d6e5 fix(region,host): isolated device batch sync (#20538) 2024-06-16 23:05:58 +08:00
wanyaoqi
13a100fefe fix(region): insert iso sync guest status (#20540) 2024-06-16 23:01:35 +08:00
Jian Qiu
0b7c9359e3 fix: enable image cache cleanup by default (#20531)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-14 18:13:42 +08:00
屈轩
11a5be8cd5 fix(region): support sangfor (#20525) 2024-06-13 20:43:58 +08:00
gouqi11
b13d6624f5 fix(notify): add mobile verify (#20520)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-06-13 18:59:41 +08:00
gouqi11
f74bff88bb fix(notify): fix mobile validate (#20510)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-06-11 14:17:58 +08:00
屈轩
0359bb2ac2 fix(region): reset password for cloudpods baremetal (#20486) 2024-06-07 15:06:31 +08:00
wanyaoqi
a307cc9196 fix(host): parse qga command and args (#20506) 2024-06-07 15:03:40 +08:00
wanyaoqi
2a7bfec231 fix(host-deployer): extend volume before extend filesystem (#20501) 2024-06-06 13:37:29 +08:00
Jian Qiu
c62dee61f7 fix: disk backup details missing components (#20496)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-06 13:33:58 +08:00
Zexi Li
01e3ad9c8c fix(region): container is not started when pod's flavor changed (#20489) 2024-06-06 10:03:51 +08:00
屈轩
99c8eadf63 fix(region): cloudpods baremetal rebuild root (#20484) 2024-06-05 11:10:05 +08:00
Zexi Li
05d3d72ec1 feat(region,baremetal,climc): support baremetal root disk matcher (#20479) 2024-06-05 00:17:16 +08:00
屈轩
d0bfc648ca fix(region): update cachedimage limit (#20472) 2024-06-04 20:41:46 +08:00
屈轩
58d6f00780 fix(baremetal-agent): avoid dead lock (#20476) 2024-06-04 18:04:43 +08:00
屈轩
f69f776622 fix(keystone): show user group info for user (#20468) 2024-06-04 14:58:46 +08:00
屈轩
2b95099cc2 fix(region): sync cloudpods host storage driver (#20466) 2024-06-04 14:46:34 +08:00
Jian Qiu
9d51fa258b fix: disable webconsole watermark by default (#20461)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-04 00:48:41 +08:00
屈轩
c7fa14e218 fix(keystone): avoid sync remove disabled ldap user (#20437) 2024-06-04 00:47:58 +08:00
wanyaoqi
f82507c1f6 fix(host-deployer): deploy telegraf systemd service type simple (#20457) 2024-06-03 19:51:09 +08:00
wanyaoqi
5a403a3b13 fix(host-deployer): split guest dns by comma (#20449) 2024-06-03 19:14:42 +08:00
屈轩
0b24305ccc fix(keystone): enable user (#20454) 2024-06-03 18:07:01 +08:00
屈轩
dc421032d6 fix(region): sync waf ssl and cc list (#20446) 2024-06-03 16:01:27 +08:00
Jian Qiu
3fdb3307ab fix: missing goarch env (#20442)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-03 11:33:44 +08:00
Zexi Li
d1c28f0783 feat(monitor): remove precision of float when using max or min function (#20430) 2024-06-01 20:40:53 +08:00
屈轩
8aec56d79f fix(keystone): avoid panic (#20434) 2024-06-01 17:47:42 +08:00
wanyaoqi
ab1ec19889 Automated cherry pick of #20423: misc: disable cgo by default (#20424)
* misc: disable cgo by default

* fix(host): container isolated device skip get numa node
2024-05-31 19:00:46 +08:00
wanyaoqi
f65c73e867 fix(region): storagecacheresource panic on FetchCustomizeColumns (#20426) 2024-05-31 17:53:42 +08:00
gouqi11
e5d872c736 fix(notify): message add medium tag (#20420)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-05-31 10:39:16 +08:00
Jian Qiu
90af685f30 fix: haproxy check parammeters with default value (#20416)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-31 10:20:04 +08:00
屈轩
316d602e73 fix(region): oracle storage should be emulated (#20413) 2024-05-30 20:40:17 +08:00
Jian Qiu
ed4450fe74 fix: glance import xz compressed images (#20408)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-30 19:17:40 +08:00
Zexi Li
d0bf468c7f feat(climc): feature config (#20395) 2024-05-30 15:43:02 +08:00
Jian Qiu
e853102e86 fix: mv filterclause from pkg to onecloud (#20402)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-30 15:42:20 +08:00
wanyaoqi
dc0c8d8dbd fix(region,host): slvm default deactivate on hosts (#20382) 2024-05-30 15:03:59 +08:00
gouqi11
616f31bda6 fix(notify): change receiver owner (#20398)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-05-30 11:47:04 +08:00
屈轩
ffadbecc1b fix(region): vendor update for web app ip addr sync (#20392) 2024-05-29 18:36:50 +08:00
屈轩
63e764a150 fix(region): vendor update (#20389) 2024-05-29 17:56:06 +08:00
Zexi Li
0900818b36 fix(host): wrap disk probed error (#20385) 2024-05-29 17:44:02 +08:00
Zexi Li
eb102ad7e4 fix(monitor): detach alert (#20375) 2024-05-28 10:00:03 +08:00
Zexi Li
903e5f5203 fix(monitor): multiple monitor resource alert (#20366) 2024-05-27 15:44:41 +08:00
屈轩
489cb9eb51 fix(region): vendor update for sqlchemy click decimal field (#20362) 2024-05-27 10:04:06 +08:00
Jian Qiu
9662fafc22 fix: allow update network server_type (#20354)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-24 20:21:31 +08:00
屈轩
cfd676fb2a fix(region): distinct fields (#20357) 2024-05-24 20:18:53 +08:00
Jian Qiu
5994a41aaf fix: secgroup init rule CIDR should be empty for both ipv4 and ipv6 (#20347)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-24 10:48:26 +08:00
屈轩
fdc6d25b11 fix(region): account read only (#20344) 2024-05-24 10:00:45 +08:00
屈轩
ffcdd48943 fix(region): vendor update for waf info sync (#20339) 2024-05-22 20:37:45 +08:00
屈轩
88db3152d1 fix(region): support organization (#20337) 2024-05-22 19:12:20 +08:00
屈轩
b4cd3d758c fix(region): currency rate exchange (#20334) 2024-05-21 19:22:00 +08:00
屈轩
f36286f01f fix(region): sync public ip convert eip (#20326) 2024-05-21 15:36:36 +08:00
屈轩
3feac61a8c fix(region): vendor update for aliyun waf (#20330) 2024-05-21 15:19:20 +08:00
gouqi11
7c9db8b74a fix(region): parent task id is not primary key (#20261) (#20324)
Co-authored-by: 屈轩 <qu_xuan@icloud.com>
2024-05-21 15:14:26 +08:00
屈轩
c342e2ed0e fix(region): add currency rate exchange (#20320) 2024-05-20 14:51:27 +08:00
屈轩
a7284ae91e fix(scheduler): cloudprovider predicate (#20313) 2024-05-20 11:52:51 +08:00
屈轩
a1e0f31b2c fix(region): vendor update for qcloud waf (#20309) 2024-05-17 15:36:58 +08:00
屈轩
cb286278ee fix(region): webapp custom domains (#20303) 2024-05-16 16:16:15 +08:00
屈轩
fb10c1d110 fix(region): query distinct fields (#20299) 2024-05-16 15:24:29 +08:00
屈轩
19c74d3f67 fix(region): set cloud provider disconnect when sync region error (#20290) 2024-05-16 10:01:55 +08:00
Jian Qiu
ceb676f772 fix: hostbackupstorage climc subcmds (#20285)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-15 18:03:57 +08:00
屈轩
1b54853483 fix(region): remove waf cache (#20282) 2024-05-15 17:35:10 +08:00
wanyaoqi
cc1033fa86 fix(region,host): slvm misc fix (#20271) 2024-05-15 10:45:52 +08:00
屈轩
ac393698fa fix(region): vendor update for web app (#20268) 2024-05-14 20:56:58 +08:00
屈轩
449e8f20d8 fix(region): azure web app (#20265) 2024-05-14 19:17:05 +08:00
屈轩
7421f51264 fix(region): data storage type (#20260) 2024-05-14 14:50:07 +08:00
wanyaoqi
9a6efbabd8 fix(region): return origin error on fetch joint item failed (#20254) 2024-05-13 17:51:29 +08:00
Jian Qiu
fcc042ebc7 fix: ceph stats backward compatible with ceph 12.x (#20220)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-10 14:55:00 +08:00
Jian Qiu
d98a9bf271 fix: storagecachedimages details speedup (#20233)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-10 14:54:18 +08:00
Jian Qiu
c6189143b0 fix: cachedimage sync tenant_id (#20236)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-10 14:52:34 +08:00
屈轩
6be9007bb6 fix(region): vm create with default provider (#20229) 2024-05-09 14:47:12 +08:00
屈轩
cea38096d8 fix(region): zstack shared block storage (#20225) 2024-05-09 14:25:47 +08:00
Jian Qiu
209019e3f4 feature: automatically clean obsolete images from host iamge cache (#20217)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-09 12:11:26 +08:00
gouqi11
44eb35e30e fix(region): add modelarts capability (#20215)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-05-08 19:59:03 +08:00
屈轩
d9dfd1b132 fix(region): vendor update for azure lb sync (#20212) 2024-05-08 19:17:55 +08:00
Zexi Li
7e5e95c507 feat(host): skip calculating checksum for cached image when format is TGZ (#20199) 2024-05-08 12:21:29 +08:00
屈轩
ba1291be82 fix(region): cloudpods baremetal (#20205) 2024-05-07 18:18:47 +08:00
屈轩
2039692352 fix(climc): oraclecloud feature (#20202) 2024-05-06 19:17:51 +08:00
Jian Qiu
bf5bf13f1e fix: set disk status when requesting disk reset (#20193)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-04 09:08:30 +08:00
屈轩
141d7a5d8b fix(region): add enable auto sync resource field (#20188) 2024-04-30 19:28:07 +08:00
屈轩
d88a256396 fix(region): remove storagecachedimage (#20185) 2024-04-30 15:24:21 +08:00
Jian Qiu
d3e88ca93e fix(hostman): change userdata.sh mode (#20182)
Co-authored-by: liaoxiaomeng <liaoxiaomeng@hotmail.com>
2024-04-30 12:43:56 +08:00
wanyaoqi
b9442fc9c3 fix(host): ignore disk not found on disk delete handler (#20177) 2024-04-30 07:14:31 +08:00
Zexi Li
e3096bf5fc fix(monitor): multiple metrics query of alert (#20168) 2024-04-28 19:05:40 +08:00
屈轩
705efd5986 fix(region): update public cloud provider (#20165) 2024-04-28 18:28:06 +08:00
屈轩
357ef9b91a fix(region): esxi upload iso image (#20163) 2024-04-28 17:20:00 +08:00
Zexi Li
7aca6fb14e feat(monitor): support multiple metrics alert (#20158) 2024-04-28 11:35:56 +08:00
wanyaoqi
1883fb9fc6 Automated cherry pick of #20152: Fix/host misc fix 0425 (#20154)
* fix(host): dirty guest dir move to recycle dir

* fix(host-deployer): fix deployer guest ssh port range, use localhost

* fix(host): try bind vfio dirver use addr
2024-04-28 11:18:55 +08:00
Zexi Li
7643f7f056 fix(monitor): alert panic (#20148) 2024-04-26 12:19:07 +08:00
Zexi Li
57a060fa30 fix(monitor): query monitor_resource_alert by monitor_resource_id is not working (#20143) 2024-04-25 19:36:38 +08:00
Zexi Li
cccc4aea88 fix(monitor): filter alerts by monitor_resource_id (#20142) 2024-04-25 19:36:26 +08:00
屈轩
bf5885c2d8 fix(region): allow update hostname (#20126) 2024-04-24 18:40:48 +08:00
屈轩
6c670bed68 fix(region): sync hostname (#20123) 2024-04-24 17:33:34 +08:00
屈轩
f37c58ed24 fix(climc): enable build windows climc (#20121) 2024-04-24 15:24:26 +08:00
屈轩
fadf610d9b fix(mcclient): read me (#20116) 2024-04-24 12:21:59 +08:00
屈轩
e5ab58e510 fix: revert default policy (#20112) 2024-04-23 19:17:22 +08:00
屈轩
1b1546b34b fix(region): sync external project by manager (#20110) 2024-04-23 17:10:50 +08:00
屈轩
4001e57e39 fix(region):auto create project (#20103) 2024-04-22 19:26:53 +08:00
Jian Qiu
42137e0c98 fix: wrong private static route format (#20091)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-22 14:52:42 +08:00
Jian Qiu
e4f2b5b884 fix: guest stop revisit (#20092)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-22 14:51:26 +08:00
屈轩
e80b3fccc9 fix(region): show more error info when sync nic error (#20098) 2024-04-22 14:37:29 +08:00
屈轩
a3372a8acb fix(region): show ip out of range details error (#20082) 2024-04-19 18:30:20 +08:00
wanyaoqi
b4a2bef741 fix(regin,host): delete snapshots after stream complete (#20087) 2024-04-19 18:28:01 +08:00
Jian Qiu
202b0182fa fix: backup storage access containd by hosts (#20051)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-19 07:20:49 +08:00
wanyaoqi
efe9705c9d fix(host): resize lvm disk (#20047) 2024-04-19 07:19:51 +08:00
屈轩
4fabb7f1f8 fix(region): account disconnect (#20077) 2024-04-18 20:23:51 +08:00
屈轩
067684986c fix(cloudid): add volcengine sp metadata (#20074) 2024-04-18 18:02:46 +08:00
屈轩
71e9e0ef36 fix(region): sync bucket status (#20070) 2024-04-18 15:49:55 +08:00
屈轩
5fa772f6d0 fix(region): avoid skip zone purge (#20065) 2024-04-18 15:39:21 +08:00
屈轩
b91a7e7027 fix(region): vendor update for code generate (#20058) 2024-04-18 12:43:17 +08:00
屈轩
084c4fdef9 fix(cloudmon): oracle metric collect (#20055) 2024-04-18 11:32:58 +08:00
屈轩
fea5c0d4a7 fix(region): vendor update for oracle monitor (#20043) 2024-04-17 18:30:45 +08:00
屈轩
26e2372212 fix(cloudmon): vendor update for support oracle metric (#20038) 2024-04-17 15:25:53 +08:00
Zexi Li
9c24611d46 Merge pull request #20014 from wanyaoqi/automated-cherry-pick-of-#20013-upstream-release-3.12
Automated cherry pick of #20013: fix(region,host): custom device model add auto detect option
2024-04-17 10:27:45 +08:00
Zexi Li
a0a91ac21d Merge pull request #20004 from wanyaoqi/automated-cherry-pick-of-#19994-upstream-release-3.12
Automated cherry pick of #19994: Automated cherry pick of #19993: fix(host): sriov bond
2024-04-17 10:26:41 +08:00
屈轩
aad55012f7 fix(region): remove dirty code (#20033) 2024-04-17 10:11:24 +08:00
Zexi Li
d0bf44c0a0 Merge pull request #20002 from wanyaoqi/automated-cherry-pick-of-#19999-upstream-release-3.12
Automated cherry pick of #19999: feat(host): NewPciDevice add executor
2024-04-16 18:25:14 +08:00
Zexi Li
306d66d074 Merge pull request #20005 from wanyaoqi/automated-cherry-pick-of-#19991-upstream-release-3.12
Automated cherry pick of #19991: feat(region,host): add disk migrate support
2024-04-16 18:22:17 +08:00
Zexi Li
e8810a90d8 Merge pull request #19997 from swordqiu/automated-cherry-pick-of-#19996-upstream-release-3.12
Automated cherry pick of #19996: fix: disk post create not inherit upper class
2024-04-16 18:20:27 +08:00
Zexi Li
4d0f161fc4 Merge pull request #20026 from wanyaoqi/automated-cherry-pick-of-#20025-upstream-release-3.12
Automated cherry pick of #20025: fix(host): fix gpu device vendor check strategy
2024-04-16 18:18:08 +08:00
屈轩
b61dbae008 fix(region): support delete huawei prepaid resource (#20030) 2024-04-16 18:08:11 +08:00
屈轩
6db39b85e1 fix(region): avoid skip region purge (#20021) 2024-04-16 16:44:05 +08:00
屈轩
1faccb0262 fix(region): skip not implement error (#20018) 2024-04-16 16:43:24 +08:00
Zexi Li
e2e8fc02b6 Merge pull request #20007 from swordqiu/automated-cherry-pick-of-#20006-upstream-release-3.12
Automated cherry pick of #20006: fix: fail to create encrypted nfs disk
2024-04-16 16:00:21 +08:00
Zexi Li
a9c93dcc15 Merge pull request #19988 from swordqiu/automated-cherry-pick-of-#19987-upstream-release-3.12
Automated cherry pick of #19987: fix: userdata not executable due to umask
2024-04-16 15:57:15 +08:00
wanyaoqi
c44f33ec6c fix(host): fix gpu device vendor check strategy
Check gpu device vendor id on class code is DISPLAY.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-04-16 15:56:41 +08:00
wanyaoqi
62ddb14873 fix(region,host): custom device model add auto detect option
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-04-16 12:32:45 +08:00
Qiu Jian
62ea988107 fix: fail to create encrypted nfs disk 2024-04-16 00:18:14 +08:00
wanyaoqi
787576c9d0 feat(region,host): add disk migrate support 2024-04-15 21:56:09 +08:00
wanyaoqi
18ae38cb23 fix(host): init from existing guest load cpuset 2024-04-15 21:51:37 +08:00
wanyaoqi
14da90405a fix(host): detect sriov bond nics 2024-04-15 21:51:37 +08:00
wanyaoqi
bec94ba87e feat(host): NewPciDevice add executor 2024-04-15 21:48:56 +08:00
Qiu Jian
aec2030e73 fix: disk post create not inherit upper class 2024-04-15 21:46:46 +08:00
Qiu Jian
060140a64d fix: userdata not executable due to umask 2024-04-15 17:19:16 +08:00
屈轩
24d57b02f8 fix(region): simplfy cached-image-list filter (#19985) 2024-04-15 15:50:13 +08:00
屈轩
9b17294fc0 fix(region): allow not idle account sync (#19981) 2024-04-15 14:10:35 +08:00
Jian Qiu
2de8d92c28 fix: bond interface missing default gateway (#19953)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-15 10:47:23 +08:00
屈轩
5d32cc8d28 fix(image): set image upload download timeout 4 hour (#19977) 2024-04-15 10:13:54 +08:00
屈轩
5fb4a3bc5e fix(region): sync ksyun tag (#19973) 2024-04-14 13:02:07 +08:00
屈轩
d51c264694 fix(region): vendor update for vpc not found error (#19969) 2024-04-12 20:52:30 +08:00
屈轩
61dae38bfb fix(region): vendor update 0412 (#19962) 2024-04-12 18:26:13 +08:00
gouqi11
0bbf9a9374 feat(notify): support cloudphone (#19960)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-04-12 15:16:27 +08:00
屈轩
ee44f7ea92 fix(region): support ksyun tag sync (#19956) 2024-04-12 12:05:26 +08:00
Jian Qiu
396aa79087 fix: netplan empty bond address (#19941)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-11 18:11:09 +08:00
屈轩
72a32e059e fix(region): vendor update (#19947) 2024-04-11 15:06:50 +08:00
屈轩
25bde052dc fix(region): avoid purge zone (#19937) 2024-04-11 13:57:56 +08:00
Zexi Li
2f32a749f2 Merge pull request #19933 from zexi/automated-cherry-pick-of-#19932-upstream-release-3.12
Automated cherry pick of #19932: feat(region,climc): support disk-rebuild
2024-04-11 12:08:54 +08:00
Zexi Li
b182b1dd08 Merge pull request #19920 from swordqiu/automated-cherry-pick-of-#19898-upstream-release-3.12
Automated cherry pick of #19898: fix: host nic index should be unique
2024-04-11 11:37:57 +08:00
Zexi Li
e6589cea31 Merge pull request #19930 from swordqiu/automated-cherry-pick-of-#19928-upstream-release-3.12
Automated cherry pick of #19928: fix: disable disk serial for esxi vm on release/3.10
2024-04-11 11:35:17 +08:00
Zexi Li
236ab429f6 feat(region,climc): support disk-rebuild 2024-04-11 11:16:44 +08:00
Qiu Jian
fded8ab79f fix: disable disk serial for esxi vm on release/3.10 2024-04-11 01:18:59 +08:00
屈轩
1ba4b69fdc fix(region): avoid purge regions (#19923) 2024-04-10 17:06:11 +08:00
Qiu Jian
a6881c2047 fix: host nic index should be unique 2024-04-10 01:33:57 +08:00
gouqi11
07a8a98e6f update vendor (#19916)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-04-09 19:47:30 +08:00
屈轩
01886ae732 fix(region): clean external cachedimage (#19911) 2024-04-09 17:26:12 +08:00
gouqi11
7e864dcb56 update vendor:ksyun ecs (#19904)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-04-09 11:51:48 +08:00
屈轩
6b201dcc26 fix(region): show local task stack info (#19901) 2024-04-09 11:50:59 +08:00
屈轩
4b9b468f0e fix(monitor): remove useless code (#19896) 2024-04-08 11:54:05 +08:00
13724 changed files with 589561 additions and 5812632 deletions

View File

@@ -7,7 +7,7 @@ jobs:
requires:
- check
docker:
- image: yunion/alpine-build:3.22.0-go-1.24.6-1
- image: yunion/centos-build:go-1.21.10-0
environment:
ONECLOUD_CI_BUILD: "1"

View File

@@ -13,7 +13,8 @@ If no, just write "NONE".
If don't know, write "UNKNOWN", and let the reviewer decide.
If yes, write the release branches name in the below format and submit the related cherry-pick PR:
- release/3.11
- release/3.7
- release/3.6
Take a look at "https://www.cloudpods.org/en/docs/contribute/contrib/" to learn how to submit a cherry-pick PR.
-->

View File

@@ -13,13 +13,13 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Install check tools
shell: bash
run: |
set -o xtrace
git clone --branch master --depth 4 https://github.com/yunionio/tools && cd tools
git clone --branch yun --depth 4 https://github.com/yousong/tools && cd tools
go build ./cmd/goimports && sudo cp goimports /usr/bin/ && cd .. && rm -rf tools
git clone --depth 4 https://github.com/yousong/y18n && cd y18n
go build . && sudo cp y18n /usr/bin && cd .. && rm -rf y18n

View File

@@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -24,7 +24,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.26.3'
go-version: '1.21'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -4,42 +4,14 @@ on:
schedule:
- cron: "0 0 * * *"
permissions:
issues: write
jobs:
issue-check-inactive:
runs-on: ubuntu-latest
steps:
- name: Label inactive issues as stale
env:
GH_TOKEN: ${{ github.token }}
INACTIVE_DAY: "30"
INACTIVE_LABEL: "stale"
EXCLUDE_LABEL: "announcement"
run: |
set -euo pipefail
cutoff="$(date -u -d "${INACTIVE_DAY} days ago" +%Y-%m-%dT%H:%M:%SZ)"
gh issue list \
--repo "${{ github.repository }}" \
--state open \
--limit 1000 \
--json number,labels,updatedAt \
| jq -c \
--arg cutoff "$cutoff" \
--arg inactive "$INACTIVE_LABEL" \
--arg exclude "$EXCLUDE_LABEL" \
'
.[]
| select(.updatedAt < $cutoff)
| select([.labels[].name] | index($exclude) | not)
| select([.labels[].name] | index($inactive) | not)
' \
| while IFS= read -r issue; do
number="$(echo "$issue" | jq -r .number)"
echo "Marking issue #${number} as ${INACTIVE_LABEL}"
gh issue edit "$number" \
--repo "${{ github.repository }}" \
--add-label "$INACTIVE_LABEL"
done
- name: check-inactive
uses: actions-cool/issues-helper@v2
with:
actions: 'check-inactive'
inactive-label: 'stale'
inactive-day: 30
exclude-labels: 'announcement'

View File

@@ -4,41 +4,17 @@ on:
schedule:
- cron: "0 1 * * *"
permissions:
issues: write
jobs:
issue-close-require:
runs-on: ubuntu-latest
steps:
- name: Close inactive issues awaiting user feedback
env:
GH_TOKEN: ${{ github.token }}
INACTIVE_DAY: "7"
run: |
set -euo pipefail
cutoff="$(date -u -d "${INACTIVE_DAY} days ago" +%Y-%m-%dT%H:%M:%SZ)"
body="$(cat <<'EOF'
If you do not provide feedback for more than 37 days, we will close the issue and you can either reopen it or submit a new issue.
- name: need reproduce
uses: actions-cool/issues-helper@v2
with:
actions: 'close-issues'
labels: 'stale,state/awaiting user feedback'
inactive-day: 7
body: |
If you do not provide feedback for more than 37 days, we will close the issue and you can either reopen it or submit a new issue.
您超过 37 天未反馈信息,我们将关闭该 issue如有需求您可以重新打开或者提交新的 issue。
EOF
)"
# Trim leading indentation from heredoc lines for a cleaner comment.
body="$(printf '%s\n' "$body" | sed 's/^[[:space:]]*//')"
gh issue list \
--repo "${{ github.repository }}" \
--state open \
--label "stale" \
--label "state/awaiting user feedback" \
--limit 1000 \
--json number,updatedAt \
| jq -c --arg cutoff "$cutoff" '.[] | select(.updatedAt < $cutoff)' \
| while IFS= read -r issue; do
number="$(echo "$issue" | jq -r .number)"
echo "Closing issue #${number}"
gh issue close "$number" \
--repo "${{ github.repository }}" \
--comment "$body"
done
您超过 37 天未反馈信息,我们将关闭该 issue如有需求您可以重新打开或者提交新的 issue。

View File

@@ -4,19 +4,13 @@ on:
issues:
types: [closed]
permissions:
issues: write
jobs:
issue-closed-remove-labels:
runs-on: ubuntu-latest
if: "!contains(github.event.issue.labels.*.name, 'stale')"
steps:
- name: Remove state labels when issue that hasn't stale label is closed
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--remove-label "state/awaiting processing" \
--remove-label "state/awaiting user feedback" || true
- name: Remove statle labels when issue that hasn't stale label is closed
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'state/awaiting processing,state/awaiting user feedback'

View File

@@ -4,48 +4,35 @@ on:
name: Add issues workflow labels
permissions:
issues: write
jobs:
add-label-if-is-author:
runs-on: ubuntu-latest
if: (github.event.issue.user.id == github.event.comment.user.id) && !github.event.issue.pull_request && (github.event.issue.state == 'open')
steps:
- name: Add require handle label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--add-label "state/awaiting processing"
uses: actions-cool/issues-helper@v2
with:
actions: 'add-labels'
labels: 'state/awaiting processing'
- name: Remove require reply label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--remove-label "state/awaiting user feedback" \
--remove-label "stale" || true
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'state/awaiting user feedback,stale'
add-label-if-not-author:
runs-on: ubuntu-latest
if: (github.event.issue.user.id != github.event.comment.user.id) && !github.event.issue.pull_request && (github.event.issue.state == 'open') && (!contains(github.event.comment.body, '/keep-state'))
steps:
- name: Add require reply label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--add-label "state/awaiting user feedback"
- name: Add require replay label
uses: actions-cool/issues-helper@v2
with:
actions: 'add-labels'
labels: 'state/awaiting user feedback'
- name: Remove require handle label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--remove-label "state/awaiting processing" \
--remove-label "stale" || true
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'state/awaiting processing,stale'

View File

@@ -4,30 +4,22 @@ on:
issues:
types: [opened, reopened]
permissions:
issues: write
jobs:
issue-open-add-labels:
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request }}
steps:
- name: Add labels
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--add-label "state/awaiting processing"
uses: actions-cool/issues-helper@v2
if: ${{ !github.event.comment.pull_request.pull_request }}
with:
actions: 'add-labels'
labels: 'state/awaiting processing'
- name: Remove require reply label
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue edit "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--remove-label "state/awaiting user feedback" \
--remove-label "stale" || true
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'state/awaiting user feedback,stale'
notify-author-comment:
runs-on: ubuntu-latest

View File

@@ -47,6 +47,11 @@ PKGS := go list ./...
CGO_CFLAGS_ENV = $(shell go env CGO_CFLAGS)
CGO_LDFLAGS_ENV = $(shell go env CGO_LDFLAGS)
ifdef LIBQEMUIO_PATH
X_CGO_CFLAGS := ${CGO_CFLAGS_ENV} -I${LIBQEMUIO_PATH}/src -I${LIBQEMUIO_PATH}/src/include
X_CGO_LDFLAGS := ${CGO_LDFLAGS_ENV} -laio -lqemuio -lpthread -lgnutls -lnettle -L ${LIBQEMUIO_PATH}/src
endif
export GOOS ?= linux
export GO111MODULE:=on
export CGO_CFLAGS = ${X_CGO_CFLAGS}
@@ -58,7 +63,7 @@ ifeq ($(UNAME), Linux)
XARGS_FLAGS = --no-run-if-empty
endif
cmdTargets:=$(wildcard cmd/*)
cmdTargets:=$(filter-out cmd/host-image,$(wildcard cmd/*))
rpmTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),rpm/$(b)))
debTargets:=$(foreach b,$(patsubst cmd/%,%,$(cmdTargets)),$(if $(shell [ -f "$(CURDIR)/build/$(b)/vars" ] && echo 1),deb/$(b)))
@@ -84,6 +89,12 @@ vet:
# cmd/esxi-agent: prepare_dir
# CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/host: prepare_dir
CGO_ENABLED=1 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/host-image: prepare_dir
CGO_ENABLED=1 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/%: prepare_dir
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
@@ -96,6 +107,21 @@ deb/%: cmd/%
pkg/%: prepare_dir
$(GO_INSTALL) $(REPO_PREFIX)/$@
rpm/fetcherfs: cmd/fetcherfs
docker run --rm \
--name docker-centos-build-fetcherfs \
-v $(CURDIR):/data \
registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 \
/bin/bash -c "VERSION=3.6 /data/build/build.sh fetcherfs /opt/yunion/fetchclient/bin"
deb/fetcherfs: rpm/fetcherfs
#VERSION=3.6 $(DEB_BUILD_SCRIPT) fetcherfs /opt/yunion/fetchclient/bin
docker run --rm \
--name docker-debian-build-fetcherfs \
-v $(CURDIR):/data \
registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0 \
/data/build/convert_rpm2deb.sh
build:
$(MAKE) $(cmdTargets)
@@ -166,8 +192,7 @@ goimports-check:
echo "$@: working tree modified (possibly by goimports)" >&2 ; \
echo "$@: " >&2 ; \
echo "$@: import spec should be grouped in order: std, 3rd-party, yunion.io/x, yunion.io/x/onecloud" >&2 ; \
echo "$@: goimports should be installed by: \
echo "$@: git clone --depth 4 https://github.com/yunionio/tools && cd tools && go install ./cmd/goimports ; \
echo "$@: see \"yun\" branch at https://github.com/yousong/tools" >&2 ; \
false ; \
fi
.PHONY: goimports-check
@@ -185,7 +210,6 @@ y18n-lang := en-US,zh-CN
y18n-packages := \
yunion.io/x/onecloud/cmd/apigateway \
yunion.io/x/onecloud/cmd/keystone \
yunion.io/x/onecloud/cmd/llm \
yunion.io/x/onecloud/cmd/monitor \
yunion.io/x/onecloud/cmd/region \
yunion.io/x/onecloud/cmd/yunionconf \
@@ -237,7 +261,7 @@ hostdeployer-grpc-gen:
check: fmt-check
check: gendocgo-check
#check: goimports-check
check: goimports-check
#check: vet-check
#check: y18n-check
.PHONY: check
@@ -261,18 +285,22 @@ dep:
@echo "$$depDeprecated"
@$(MAKE) mod
RELEASE_BRANCH:=master
RELEASE_BRANCH:=release/3.12
GOPROXY ?= direct
mod:
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get yunion.io/x/cloudmux@$(RELEASE_BRANCH)
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p' | grep -v '/cloudmux$$'))
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d yunion.io/x/cloudmux@$(RELEASE_BRANCH)
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p' | grep -v '/cloudmux$$'))
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go mod tidy
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go mod vendor -v
define helpText
Build with docker
make docker-centos-build F='-j4'
make docker-centos-build F='-j4 cmd/region cmd/climc'
make docker-centos-build-stop
make docker-alpine-build F='-j4'
make docker-alpine-build F='-j4 cmd/host cmd/host-deployer'
make docker-alpine-build-stop
@@ -324,7 +352,7 @@ image:
.PHONY: image
image-telegraf-raid-plugin:
VERSION=v4.0-20260115.0 GOOS=linux ARCH=all make image telegraf-raid-plugin
VERSION=release-1.6.5 ARCH=all make image telegraf-raid-plugin
%:
@:

View File

@@ -8,7 +8,8 @@ endif
ModBaseName:=$(notdir $(ModName))
DockerImageRegistry?=registry.cn-beijing.aliyuncs.com
DockerImageAlpineBuild?=$(DockerImageRegistry)/yunionio/alpine-build:3.23-go-1.26.3-0
DockerImageAlpineBuild?=$(DockerImageRegistry)/yunionio/alpine-build:3.19.0-go-1.21.10-0
DockerImageCentOSBuild?=$(DockerImageRegistry)/yunionio/centos-build:go-1.21.10-0
EnvIf=$(if $($(1)),$(1)=$($(1)))
@@ -28,6 +29,27 @@ endef
tmpName=$(ModBaseName)-$(shell date +"%Y%m%d.%H%M%S%3N")
docker-centos-build: export dockerCentOSBuildCmd:=$(call dockerCentOSBuildCmd,$(F))
docker-centos-build:
docker rm --force docker-centos-build-$(tmpName) &>/dev/null || true
docker run \
--rm \
--name docker-centos-build-$(tmpName) \
-v $(CURDIR):/root/go/src/yunion.io/x/$(ModBaseName) \
-v $(CURDIR)/_output/centos-build:/root/go/src/yunion.io/x/$(ModBaseName)/_output \
-v $(CURDIR)/_output/centos-build/_cache:/root/.cache \
$(DockerImageCentOSBuild) \
/bin/bash -c "$$dockerCentOSBuildCmd"
ls -lh _output/centos-build/bin
# NOTE we need a way to stop and remove the container started by docker-build.
# No --tty, --stop-signal won't work
docker-centos-build-stop:
docker stop --time 0 docker-centos-build-$(tmpName) || true
.PHONY: docker-centos-build
.PHONY: docker-centos-build-stop
define dockerAlpineBuildCmd
set -o xtrace

View File

@@ -1,17 +1,14 @@
# Cloudpods
[![CircleCI](https://circleci.com/gh/yunionio/cloudpods.svg?style=svg)](https://circleci.com/gh/yunionio/cloudpods)
[![Build Status](https://travis-ci.com/yunionio/cloudpods.svg?branch=master)](https://travis-ci.org/yunionio/cloudpods)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/cloudpods)](https://goreportcard.com/report/github.com/yunionio/cloudpods)
[简体中文](./README-CN.md) | [English](./README.md)
## Cloudpods是什么?
<img src="https://v1.cloudpods.org/images/cloudpods_logo_green.png" alt="Cloudpods" height="100">
Cloudpods是一个开源的Golang实现的云原生的融合多云/混合云的云平台,也就是一个云上之云”。Cloudpods不仅可以管理本地的虚拟机和物理机资源还可以管理多个云平台和云账号。Cloudpods隐藏了这些异构基础设施资源的数据模型和API的差异对外暴露了一套统一的API允许用户就像用一个云一样地访问多云。从而大大降低了访问多云的复杂度提升了管理多云的效率。
Cloudpods还提供了 **AI 云**一个面向大语言模型LLM推理与 AI 容器应用的统一管理平台,帮助企业在同一平台完成 AI 工作负载的部署、调度与运维,与 Cloudpods 私有云/多云资源体系无缝集成。
Cloudpods是一个开源的Golang实现的云原生的融合多云/混合云的云平台,也就是一个云上之云”。Cloudpods不仅可以管理本地的虚拟机和物理机资源还可以管理多个云平台和云账号。Cloudpods隐藏了这些异构基础设施资源的数据模型和API的差异对外暴露了一套统一的API允许用户就像用一个云一样地访问多云。从而大大降低了访问多云的复杂度提升了管理多云的效率。
## 谁需要Cloudpods?
@@ -20,25 +17,12 @@ Cloudpods还提供了 **AI 云**一个面向大语言模型LLM推理与
* 将VMware vSphere虚拟化集群转换为一个可以自服务的私有云平台
* 在混合云的场景,能够在一个界面访问私有云和公有云
* 通过一个集中的入口访问分布在多个公有云平台上的多个账号
* 当前只使用一个公有云账号但希望将来使用多云的用户
* 需要部署和管理 LLM 推理服务及 AI 容器应用,并需要 GPU 调度支持的用户
* 当前只使用一个公有云账号但希望将来使用多云的用户
## 功能
请访问[产品介绍](https://www.cloudpods.org/docs/introduction/)页面了解详细信息。
### AI 云
* **AI 推理服务**:部署和管理 LLM 推理实例(支持 Ollama、vLLM、SGLang 等),支持 GPU 调度、模型挂载与推理服务地址分配。
* **AI 应用管理**:一站式部署 LLM 应用编排、智能体助手、图像生成等 AI 容器应用。
* **模型库**:统一管理模型来源、版本与缓存,支持多实例复用、离线分发,避免重复下载。
* **模板与镜像**:通过模板定义 CPU/内存/GPU 等资源规格,通过镜像管理容器运行环境,实现标准化交付。
* **GPU 运维**GPU 设备自动探测与注册,支持 NVIDIA/CUDA 环境的统一配置与管理。
支持的 AI 工作负载:
* AI 推理Ollama、vLLM、SGLang
* AI 应用OpenClaw、Dify、ComfyUI、Hermes Agent
### 支持的云平台
* 公有云:
@@ -52,42 +36,36 @@ Cloudpods还提供了 **AI 云**一个面向大语言模型LLM推理与
* 天翼云
* 移动云
* 京东云
* 火山引擎
* 百度云
* 金山云
* 青云
* Oracle Cloud
* 联通云
* 私有云:
* OpenStack
* ZStack
* Alibaba Cloud Apsara (阿里飞天)
* Alibaba Cloud Aspara (阿里飞天)
* Huawei HCSO (华为HCSO)
* Nutanix
* BingoCloud
* OceanBase
* 本地基础设施资源:
* 基于 KVM 实现的轻量级私有云
* VMware vSphere vCenter/ESXi
* Proxmox VE
* 裸金属 (IPMI, Redfish API)
* 对象存储 (Minio, Ceph, XSky)
* VMWare vSphere vCenter/ESXi
* Baremetals (IPMI, Redfish API)
* Object storages (Minio, Ceph, XSky)
* NAS (Ceph)
### 支持的云资源
* 服务器实例、磁盘、网卡、网络、VPC、存储、宿主机、二层网络、快照、快照策略、安全组、弹性 IP、SSH 密钥对、镜像
* 负载均衡实例、监听、后端服务器组、后端服务器、TLS 证书、访问控制
* 对象存储:存储桶、对象
* NAS:文件系统、权限组、挂载点
* RDS:实例、账号、备份、数据库、参数、权限
* 弹性缓存:实例、账号、备份、参数
* DNSDNS 区域、DNS 记录
* VPCVPCVPC 对等连接、跨 VPC 网络、NAT 网关、DNAT/SNAT 规则、路由表、路由条目
* Servers: instances, disks, network interfaces, networks, vpcs, storages, hosts, wires, snapshots, snapshot policies, security groups, elastic IPs, SSH keypairs, images
* Load Balancers: instances, listeners, backend groups, backends, TSL certificates, ACLs
* Object Storage: buckets, objects
* NAS: file_systems, access_groups, mount_targets
* RDS: instances, accounts, backups, databases, parameters, privileges
* Elastic Cache: instances, accounts, backups, parameters
* DNS: DNS zones, DNS records
* VPC: VPCs, VPC peering, inter-VPC network, NAT gateway, DNAT/SNAT rules, route tables, route entries
## 安装部署
请参考文档[安装部署](https://www.cloudpods.org/docs/getting-started/)选择合适的场景部署
- [All in One 安装](https://www.cloudpods.org/zh/docs/quickstart/allinone-converge/):在 CentOS 7 或 Debian 10 等发行版里搭建全功能 Cloudpods 服务,可以快速体验**内置私有云**和**多云管理**的功能
- [Kubernetes Helm 安装](https://www.cloudpods.org/zh/docs/quickstart/k8s/):在已有 Kubernetes 集群上通过 Helm 部署一套 Cloudpods CMP 服务,可以体验**多云管理**的功能。
- [Docker Compose 安装](https://www.cloudpods.org/zh/docs/quickstart/docker-compose/):通过 Docker Compose 部署 Cloudpods CMP 服务,可以迅速体验**多云管理**的功能。
- [高可用安装](https://www.cloudpods.org/zh/docs/setup/ha-ce/):在生产环境中使用高可用的方式部署 Cloudpods 服务,包括**内置私有云**和**多云管理**的功能。
## 文档
@@ -101,9 +79,7 @@ Cloudpods还提供了 **AI 云**一个面向大语言模型LLM推理与
## 联系我们
* 请查看[联系我们](https://www.cloudpods.org/docs/contact/)。
* TG群: [cloudpods](https://t.me/cloudpods_org)
请查看[联系我们](https://www.cloudpods.org/docs/contact/)。
## 版本历史
@@ -116,7 +92,3 @@ Cloudpods还提供了 **AI 云**一个面向大语言模型LLM推理与
## License
Apache license 2.0,详情请看 [LICENSE](./LICENSE)。
## AI生成文档
[DeepWiki](https://deepwiki.com/yunionio/cloudpods) 提供了对本项目代码详细和全面的AI解读可以参考。

View File

@@ -1,6 +1,7 @@
# Cloudpods
[![CircleCI](https://circleci.com/gh/yunionio/cloudpods.svg?style=svg)](https://circleci.com/gh/yunionio/cloudpods)
[![Build Status](https://travis-ci.com/yunionio/cloudpods.svg?branch=master)](https://travis-ci.com/yunionio/cloudpods/branches)
[![Go Report Card](https://goreportcard.com/badge/github.com/yunionio/cloudpods)](https://goreportcard.com/report/github.com/yunionio/cloudpods)
[English](./README.md) | [简体中文](./README-CN.md)
@@ -11,34 +12,19 @@
Cloudpods is a cloud-native open source unified multi/hybrid-cloud platform developed with Golang, i.e. Cloudpods is *a cloud on clouds*. Cloudpods is able to manage not only on-premise KVM/baremetals, but also resources from many cloud accounts across many cloud providers. It hides the differences of underlying cloud providers and exposes one set of APIs that allow programatically interacting with these many clouds.
Cloudpods also provides **AI Cloud**, a unified management platform for large language model (LLM) inference and AI container applications, helping enterprises deploy, schedule, and operate AI workloads on a single platform, seamlessly integrated with the Cloudpods private cloud / multi-cloud resource ecosystem.
## Who needs Cloudpods?
* Those who need a simple solution to virtualize a few physical servers into a private cloud
* Those who need a compact and fully automatic baremetal lift-cycle management solution
* Those who want to turn a VMware vSphere virtualization cluster into a private cloud
* Those who need a cohesive view of both public and private cloud in a hybrid cloud setup
* Those who need a centric portal to access multiple accounts from multiple public clouds
* Those who need a centric portal to access multiple acccounts from multiple public clouds
* Those who is currently using a single cloud account, but will not lose the possibility to adopt multicloud strategy
* Those who need to deploy and manage LLM inference services and AI container applications with GPU support
## Features
See [Introduction](https://www.cloudpods.org/docs/introduction/) for details.
### AI Cloud
* **AI Inference Services**: Deploy and manage LLM inference instances (Ollama, vLLM, SGLang, and more) with GPU scheduling, model mounting, and inference service address allocation.
* **AI Application Management**: One-stop deployment of LLM application orchestration, agent assistants, image generation, and other AI container applications.
* **Model Library**: Unified management of model sources, versions, and caches, supporting multi-instance reuse and offline distribution.
* **Templates and Images**: Define resource specifications (CPU/memory/GPU) through templates, manage container runtime environments through images.
* **GPU Operations**: Automatic GPU device detection and registration, unified NVIDIA/CUDA environment configuration and management.
Supported AI workloads:
* AI Inference: Ollama, vLLM, SGLang
* AI Applications: OpenClaw, Dify, ComfyUI, Hermes Agent
### Supported cloud providers
* Public Clouds:
@@ -52,24 +38,15 @@ Supported AI workloads:
* Ctyun (China Telecom)
* ECloud (China Mobile)
* JDCloud
* Volcengine
* Baidu Cloud
* Kingsoft Cloud
* QingCloud
* Oracle Cloud
* China Unicom Cloud
* Private Clouds:
* OpenStack
* ZStack
* Alibaba Cloud Apsara
* Alibaba Cloud Aspara
* Huawei HCSO
* Nutanix
* BingoCloud
* OceanBase
* On-premise resources:
* Lightweight private cloud built on KVM
* VMware vSphere vCenter/ESXi
* Proxmox VE
* VMWare vSphere vCenter/ESXi
* Baremetals (IPMI, Redfish API)
* Object storages (Minio, Ceph, XSky)
* NAS (Ceph)
@@ -77,7 +54,7 @@ Supported AI workloads:
### Supported resources
* Servers: instances, disks, network interfaces, networks, vpcs, storages, hosts, wires, snapshots, snapshot policies, security groups, elastic IPs, SSH keypairs, images
* Load Balancers: instances, listeners, backend groups, backends, TLS certificates, ACLs
* Load Balancers: instances, listeners, backend groups, backends, TSL certificates, ACLs
* Object Storage: buckets, objects
* NAS: file_systems, access_groups, mount_targets
* RDS: instances, accounts, backups, databases, parameters, privileges
@@ -87,7 +64,10 @@ Supported AI workloads:
## Getting started
Please refer to the document [Getting Started](https://www.cloudpods.org/en/docs/getting-started/) to select the appropriate scenario for installation.
- [All in One Installation](https://www.cloudpods.org/zh/docs/quickstart/allinone-converge/)Building a full-featured Cloudpods service on linux distributions such as CentOS 7 or Debian 10 allows for a quick experience of the **built-in private cloud** and **multi-cloud management** features.
- [Kubernetes Helm Installation](https://www.cloudpods.org/zh/docs/quickstart/k8s/)Deploying the Cloudpods CMP service on an existing Kubernetes cluster using Helm and experience the **multi-cloud management** feature.
- [Docker Compose Installation](https://www.cloudpods.org/zh/docs/quickstart/docker-compose/)Deploying the Cloudpods CMP service using Docker Compose and quickly experience the **multi-cloud management** feature.
- [High availability installation](https://www.cloudpods.org/zh/docs/setup/ha-ce/)Deploying Cloudpods services in a highly available manner for production environments, including **built-in private cloud** and **multi-cloud management** features.
## Documentations
@@ -102,13 +82,11 @@ Please check this [issue](https://github.com/yunionio/cloudpods/issues/11427) fo
## Contact
* See [Contact Us](https://www.cloudpods.org/en/docs/contact/) for details.
* Telegram: [cloudpods](https://t.me/cloudpods_org)
See [Contact Us](https://www.cloudpods.org/en/docs/contact/) for details.
## Changelog
See [Release Notes](https://www.cloudpods.org/en/docs/release-notes/) and [Changelog](https://www.cloudpods.org/en/docs/development/changelog/) for details.
See [Relase Notes](https://www.cloudpods.org/en/docs/release-notes/) and [Changelog](https://www.cloudpods.org/en/docs/development/changelog/) for details.
## Contribution
@@ -117,7 +95,3 @@ You are welcome to do any kind of contribution to the project. Please refer to [
## License
Apache License 2.0. See [LICENSE](./LICENSE).
## AI-generated doc
[DeepWiki](https://deepwiki.com/yunionio/cloudpods) provides an amazing AI-generated doc of this project, you may refer to it for more detailed and comprehensive understanding of codes.

View File

@@ -1 +0,0 @@
DESCRIPTION="Yunion Cloud AI Proxy Service"

View File

@@ -36,12 +36,6 @@ fi
. $ROOT/vars
BUILDROOT=$(mktemp -d 2>/dev/null || mktemp -d -t 'yunion')
function cleanup {
rm -rf "$BUILDROOT"
echo "Deleted temp working directory $BUILDROOT"
}
# register the cleanup function to be called on the EXIT signal
trap cleanup EXIT
echo "Build root ${BUILDROOT}"
@@ -79,8 +73,6 @@ echo "# Yunion RPM spec
%global pkgname yunion-$PKG
%global homedir /var/run/%{owner}
%global use_systemd $SERVICE
%global debug_package %{nil}
%global __strip /usr/bin/eu-strip
Name: %{pkgname}
Version: $VERSION
@@ -112,87 +104,41 @@ if [ -d $ROOT/root ]; then
rsync -a $ROOT/root/ \$RPM_BUILD_ROOT
fi
%pre" > $SPEC_FILE
if [ -f $ROOT/preinst ]; then
cat $ROOT/preinst >> $SPEC_FILE
else
echo "
%pre
%if %{use_systemd}
getent group %{owner} >/dev/null || /usr/sbin/groupadd -r %{owner}
getent passwd %{owner} >/dev/null || /usr/sbin/useradd -r -s /sbin/nologin -d %{homedir} -M -g %{owner} %{owner}
%endif
" >> $SPEC_FILE
fi
echo "
%post" >> $SPEC_FILE
if [ -f $ROOT/postinst ]; then
cat $ROOT/postinst >> $SPEC_FILE
else
echo "
%post
%if %{use_systemd}
mkdir -p /var/run/%{owner}
chown -R %{owner}:%{owner} /var/run/%{owner}
/usr/bin/systemctl preset %{pkgname}.service >/dev/null 2>&1 ||:
%endif
" >> $SPEC_FILE
fi
echo "
%preun" >> $SPEC_FILE
if [ -f $ROOT/prerm ]; then
cat $ROOT/prerm >> $SPEC_FILE
else
echo "
%preun
%if %{use_systemd}
/usr/bin/systemctl --no-reload disable %{pkgname}.service >/dev/null 2>&1 || :
/usr/bin/systemctl stop %{pkgname}.service >/dev/null 2>&1 ||:
%endif
" >> $SPEC_FILE
fi
echo "
%postun" >> $SPEC_FILE
if [ -f $ROOT/postrm ]; then
cat $ROOT/postrm >> $SPEC_FILE
else
echo "
%postun
%if %{use_systemd}
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 ||:
%endif
" >> $SPEC_FILE
fi
echo -n "
%files
%doc
$BIN_PATH/$PKG
" >> $SPEC_FILE
for b in $EXTRA_BINS; do
echo $BIN_PATH/$b >> $SPEC_FILE
done
$(for b in $EXTRA_BINS; do echo $BIN_PATH/$b; done)
" > $SPEC_FILE
if [ -d $ROOT/root/ ]; then
find $ROOT/root/ -type f | sed -e "s:$ROOT/root::g" >> $SPEC_FILE
fi
TARGET=
case "$GOARCH" in
"arm64" | "aarch64" | "arm")
TARGET="--target aarch64-redhat-linux"
;;
"amd64" | "x86" | "i686" | "i386" | "x86_64")
TARGET="--target x86_64-redhat-linux"
;;
"riscv64")
TARGET="--target riscv64-linux"
;;
esac
rpmbuild --define "_topdir $BUILDROOT" -bb $SPEC_FILE $TARGET
rpmbuild --define "_topdir $BUILDROOT" -bb $SPEC_FILE
find $RPM_DIR -type f | while read f; do
d="$(dirname "$f")"
@@ -200,3 +146,5 @@ find $RPM_DIR -type f | while read f; do
mkdir -p "$d"
cp $f $d
done
rm -fr $BUILDROOT

View File

@@ -35,48 +35,14 @@ fi
. $ROOT/vars
case $(uname -m) in
x86_64)
CURRENT_ARCH=amd64
;;
aarch64)
CURRENT_ARCH=arm64
;;
riscv64)
CURRENT_ARCH=riscv64
;;
esac
if [[ -n "$GOARCH" ]]; then
case "$GOARCH" in
"arm64" | "arm" | "aarch64")
CURRENT_ARCH="arm64"
;;
"x86" | "x86_64" | "i686" | "i386" | "amd64")
CURRENT_ARCH="amd64"
;;
"riscv64")
CURRENT_ARCH="riscv64"
;;
esac
fi
if [ -z "$VERSION" ]; then
TAG=$(git describe --abbrev=0 --tags || echo 000000)
VERSION=${TAG/\//-}
VERSION=${VERSION/v/}
VERSION=${VERSION/master-/}
fi
RELEASE=`date +"%y%m%d%H"`
FULL_VERSION=$VERSION-$RELEASE
BUILDROOT=$OUTPUT_DIR/yunion-${PKG}-${FULL_VERSION}_${CURRENT_ARCH}
function cleanup {
rm -rf "$BUILDROOT"
echo "Deleted temp working directory $BUILDROOT"
}
# register the cleanup function to be called on the EXIT signal
trap cleanup EXIT
BUILDROOT=$OUTPUT_DIR/yunion-$1-$FULL_VERSION
rm -rf $BUILDROOT
mkdir -p $BUILDROOT/DEBIAN
mkdir -p $BUILDROOT/$BIN_PATH
@@ -86,90 +52,27 @@ if [ -d $ROOT/root ]; then
cp -rf $ROOT/root/* $BUILDROOT/
fi
echo "Build root ${BUILDROOT}"
echo "Package: yunion-$PKG
case $(uname -m) in
x86_64)
CURRENT_ARCH=amd64
;;
aarch64)
CURRENT_ARCH=arm64
;;
esac
echo "Package: yunion-$1
Version: $FULL_VERSION
Section: base
Priority: optional
Architecture: $CURRENT_ARCH
Maintainer: wanyaoqi@yunionyun.com
Description: $DESCRIPTION" > $BUILDROOT/DEBIAN/control
if [ ${#REQUIRES[@]} -gt 0 ]; then
DEPS=$(IFS=, ; echo "${REQUIRES[*]}")
echo "Depends: $DEPS" >> $BUILDROOT/DEBIAN/control
fi
Description: Yunion $1
" > $BUILDROOT/DEBIAN/control
chmod 0755 $BUILDROOT/DEBIAN/control
cat $BUILDROOT/DEBIAN/control
echo "#!/bin/bash
" > $BUILDROOT/DEBIAN/preinst
if [ -f $ROOT/preinst ]; then
cat $ROOT/preinst >> $BUILDROOT/DEBIAN/preinst
else
if [ "$SERVICE" == "yes" ] && [ -n "$OWNER" ]; then
echo "
getent group ${OWNER} >/dev/null || /usr/sbin/groupadd -r ${OWNER}
getent passwd ${OWNER} >/dev/null || /usr/sbin/useradd -r -s /sbin/nologin -d /home/${OWNER} -M -g ${OWNER} ${OWNER}
" >> $BUILDROOT/DEBIAN/preinst
fi
fi
chmod 0755 $BUILDROOT/DEBIAN/preinst
echo "#!/bin/bash
" > $BUILDROOT/DEBIAN/postinst
if [ -f $ROOT/postinst ]; then
cat $ROOT/postinst >> $BUILDROOT/DEBIAN/postinst
else
if [ "$SERVICE" == "yes" ]; then
echo "
/usr/bin/systemctl preset yunion-${PKG}.service >/dev/null 2>&1 ||:
" >> $BUILDROOT/DEBIAN/postinst
fi
fi
chmod 0755 $BUILDROOT/DEBIAN/postinst
echo "#!/bin/bash
" > $BUILDROOT/DEBIAN/prerm
if [ -f $ROOT/prerm ]; then
cat $ROOT/prerm >> $BUILDROOT/DEBIAN/prerm
else
if [ "$SERVICE" == "yes" ]; then
echo "
/usr/bin/systemctl --no-reload disable yunion-${PKG}.service >/dev/null 2>&1 || :
/usr/bin/systemctl stop yunion-${PKG}.service >/dev/null 2>&1 ||:
" >> $BUILDROOT/DEBIAN/prerm
fi
fi
chmod 0755 $BUILDROOT/DEBIAN/prerm
echo "#!/bin/bash
" > $BUILDROOT/DEBIAN/postrm
if [ -f $ROOT/postrm ]; then
cat $ROOT/postrm >> $BUILDROOT/DEBIAN/postrm
else
if [ "$SERVICE" == "yes" ]; then
echo "
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 ||:
" >> $BUILDROOT/DEBIAN/postrm
fi
fi
chmod 0755 $BUILDROOT/DEBIAN/postrm
dpkg-deb --build $BUILDROOT
case "$CURRENT_ARCH" in
"amd64")
DSTARCH="x86_64"
;;
"arm64")
DSTARCH="aarch64"
;;
"riscv64")
DSTARCH="riscv64"
;;
esac
mkdir -p ${OUTPUT_DIR}/${DSTARCH}
mv ${BUILDROOT}.deb ${OUTPUT_DIR}/${DSTARCH}/
dpkg-deb --build $BUILDROOT

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ADD ./_output/alpine-build/bin/aiproxy /opt/yunion/bin/aiproxy

View File

@@ -1,8 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.1.1
# https://github.com/yunionio/telegraf/blob/yn-release-1.36/Makefile.yn#L28
# install playbook and telegraf install pkg
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.5.5 /opt/yunion/playbook /opt/yunion/playbook
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.5.5 /opt/yunion/ansible-install-pkg /opt/yunion/ansible-install-pkg
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.5.2 /opt/yunion/playbook /opt/yunion/playbook
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.5.2 /opt/yunion/ansible-install-pkg /opt/yunion/ansible-install-pkg
ADD ./_output/alpine-build/bin/ansibleserver /opt/yunion/bin/ansibleserver

View File

@@ -1,8 +1,8 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
LABEL maintainer="Yousong Zhou <zhouyousong@yunionyun.com>"
MAINTAINER "Yousong Zhou <zhouyousong@yunionyun.com>"
ENV TZ="UTC"
ENV TZ UTC
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
@@ -13,7 +13,6 @@ RUN set -x \
&& apk add openssh-client \
&& apk add sshpass \
&& apk add py3-pip \
&& apk add py3-paramiko \
&& apk add tzdata git ca-certificates
RUN apk add --no-cache openssh openssl curl rsync pv mariadb-client
@@ -22,10 +21,8 @@ RUN apk add --no-cache --virtual .build-dependencies \
# ansible should be installed
# after setuptools and wheel
RUN rm /usr/lib/python3.*/EXTERNALLY-MANAGED
RUN pip3 install -U pip setuptools wheel \
&& pip3 install mysqlclient pywinrm \
&& pip3 install paramiko mysqlclient pywinrm \
&& pip3 install 'ansible<=9.0.0' \
&& apk del --no-network .build-dependencies \
&& rm -rf /root/.cache /root/.cargo /var/cache/apk/*

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/apigateway /opt/yunion/bin/apigateway

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/apimap /opt/yunion/bin/apimap

View File

@@ -1,8 +1,8 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.9-20260724.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.9-20231219.0
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN mkdir -p /opt/yunion/bin
ENV TZ="UTC"
ENV TZ UTC
ADD ./_output/alpine-build/bin/baremetal-agent /opt/yunion/bin/baremetal-agent

View File

@@ -1,8 +1,9 @@
#FROM --platform=linux/amd64 registry.cn-beijing.aliyuncs.com/yunionio/centos-build:1.1-4 as build
#RUN yum install -y https://iso.yunion.cn/vm-images/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
#RUN yum install -y http://192.168.23.50:8083/baremetal-pxerom-1.1.0-21092209.x86_64.rpm
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunionos:v4.0.0-20251203.0 as yunionos
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunionos:v3.10.8-20231215.0 as yunionos
FROM registry.cn-beijing.aliyuncs.com/cloudpods/centos:8 as grub-stage
FROM centos:8 as grub-stage
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
@@ -27,9 +28,9 @@ RUN cp /root/grub_arm64.efi /tftp
RUN cp -rf /usr/lib/grub/arm64-efi /tftp/grub
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3-3.13.5
LABEL maintainer="Zexi Li <zexi.li@icloud.com>"
MAINTAINER "Zexi Li <zexi.li@icloud.com>"
RUN mkdir -p /opt/yunion/bin
@@ -69,8 +70,6 @@ COPY --from=yunionos /yunionos/x86_64/kernel /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/x86_64/initramfs /opt/cloud/yunion/baremetal
COPY --from=yunionos /yunionos/aarch64/kernel /opt/cloud/yunion/baremetal/kernel_aarch64
COPY --from=yunionos /yunionos/aarch64/initramfs /opt/cloud/yunion/baremetal/initramfs_aarch64
COPY --from=yunionos /yunionos/riscv64/kernel /opt/cloud/yunion/baremetal/kernel_riscv64
COPY --from=yunionos /yunionos/riscv64/initramfs /opt/cloud/yunion/baremetal/initramfs_riscv64
# TODO: syslinux firmwares should removed in future
COPY --from=yunionos /yunionos/x86_64/isolinux.bin /opt/cloud/yunion/baremetal

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:3.22.2-2
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20230731.5
ADD ./build/climc/root/opt /opt

View File

@@ -4,9 +4,9 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETARCH
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ="Asia/Shanghai"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin

View File

@@ -1,24 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETARCH
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
ENV TZ="Asia/Shanghai"
RUN mkdir -p /opt/yunion/bin
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositories
RUN apk add --no-cache bash bash-completion tzdata ca-certificates vim ipmitool ceph-common dropbear shadow && \
rm -rf /var/cache/apk/*
RUN usermod --shell /bin/bash root
RUN curl -L https://iso.yunion.cn/binaries/kubernetes-release/release/v1.22.9/bin/linux/${TARGETARCH}/kubectl -o /usr/bin/kubectl && chmod a+x /usr/bin/kubectl
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /opt/yunion/bin

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/cloudevent /opt/yunion/bin/cloudevent

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
COPY ./build/cloudid/root/opt/ /opt/
ADD ./_output/alpine-build/bin/cloudid /opt/yunion/bin/cloudid

View File

@@ -1,6 +1,6 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN mkdir -p /etc/yunion/data/

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/cloudnet /opt/yunion/bin/cloudnet

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/cloudproxy /opt/yunion/bin/cloudproxy

View File

@@ -1,6 +1,6 @@
# registry.cn-beijing.aliyuncs.com/yunionio/debian10-base:1.0
FROM debian:trixie
FROM debian:10
RUN apt update && apt install -y alien

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/devtool /opt/yunion/bin/devtool

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/dhcprelay /opt/yunion/bin/dhcprelay

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/esxi-agent /opt/yunion/bin/esxi-agent

View File

@@ -0,0 +1,26 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.4.0 as file-repo
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
MAINTAINER "Rain Zheng <zhengyu@yunion.com>"
# openssh-client, for ansible ssh connection
# git, ca-certificates, for fetching ansible roles
RUN set -x \
&& apk update \
&& apk add git \
&& rm -rf /var/cache/apk/*
# install default playbook and install pkg
Run mkdir -p /opt/yunion/ansible-install-pkg
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf-1.19.2-yn~be742cbf-0.x86_64.rpm /opt/yunion/ansible-install-pkg
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf-1.19.2-yn~be742cbf-0.aarch64.rpm /opt/yunion/ansible-install-pkg
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf_1.19.2-yn~be742cbf-0_arm64.deb /opt/yunion/ansible-install-pkg
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf_1.19.2-yn~be742cbf-0_amd64.deb /opt/yunion/ansible-install-pkg
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf-1.19.2-yn~be742cbf_windows_amd64.zip /opt/yunion/ansible-install-pkg
COPY --from=file-repo /opt/yunion/ansible-install-pkg/telegraf-1.19.2-yn~be742cbf_windows_i386.zip /opt/yunion/ansible-install-pkg
Run mkdir -p /opt/yunion/playbook
Run mkdir /opt/yunion/playbook/monitor-agent
Run git clone https://github.com/yunionio/monitor-agent.git /opt/yunion/playbook/monitor-agent --recurse-submodules

View File

@@ -1,5 +1,5 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/glance-base:3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/glance-base:v0.0.1
ENV TZ="UTC"
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/glance /opt/yunion/bin/glance

View File

@@ -1,7 +1,5 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/torrent:20210815.0
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN apk add --no-cache s3fs-fuse
RUN apk add --no-cache s3fs-fuse --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing

View File

@@ -22,25 +22,44 @@
#
# The Alpine Linux image that should be used as the basis for the guacd image
ARG ALPINE_BASE_IMAGE=3.22.2
ARG ALPINE_BASE_IMAGE=latest
FROM alpine:${ALPINE_BASE_IMAGE} AS builder
# The target architecture of the build. Valid values are "ARM" and "X86". By
# default, this is detected automatically.
ARG BUILD_ARCHITECTURE
ARG TARGETPLATFORM
# The number of processes that may run simultaneously during the build. By
# default, this is detected automatically.
ARG BUILD_JOBS
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
# The directory that will house the guacamole-server source during the build
# Install build dependencies
RUN apk add --no-cache \
autoconf \
automake \
build-base \
cairo-dev \
cmake \
cunit-dev \
git \
grep \
libjpeg-turbo-dev \
libpng-dev \
libtool \
libwebp-dev \
make \
openssl1.1-compat-dev \
pango-dev \
pulseaudio-dev \
util-linux-dev
# Copy source to container for sake of build
ARG BUILD_DIR=/tmp/guacamole-server
ARG GUAC_VER=1.5.3
RUN git clone --branch=${GUAC_VER} https://github.com/apache/guacamole-server.git /tmp/guacamole-server
# FreeRDP version (default to version 2)
ARG FREERDP_VERSION=2
# The final install location for guacamole-server and all dependencies. NOTE:
# This value is hard-coded in the entrypoint. Any change to this value must be
# propagated there.
#
# Base directory for installed build artifacts.
#
# NOTE: Due to limitations of the Docker image build process, this value is
# duplicated in an ARG in the second stage of the build.
#
ARG PREFIX_DIR=/opt/guacamole
#
@@ -48,12 +67,11 @@ ARG PREFIX_DIR=/opt/guacamole
# library (these can be overridden at build time if a specific version is
# needed)
#
ARG WITH_FREERDP="${FREERDP_VERSION}(\.\d+)+"
ARG WITH_FREERDP='2(\.\d+)+'
ARG WITH_LIBSSH2='libssh2-\d+(\.\d+)+'
ARG WITH_LIBTELNET='\d+(\.\d+)+'
ARG WITH_LIBVNCCLIENT='LibVNCServer-\d+(\.\d+)+'
ARG WITH_LIBWEBSOCKETS='v\d+(\.\d+)+'
ARG WITH_GUACAMOLE_SERVER='\d+(\.\d+)+'
#
# Default build options for each core protocol support library, as well as
@@ -61,8 +79,6 @@ ARG WITH_GUACAMOLE_SERVER='\d+(\.\d+)+'
# options are needed)
#
ARG FREERDP_ARM_OPTS=""
ARG FREERDP_OPTS="\
-DBUILTIN_CHANNELS=OFF \
-DCHANNEL_URBDRC=OFF \
@@ -73,25 +89,22 @@ ARG FREERDP_OPTS="\
-DWITH_CUPS=OFF \
-DWITH_DIRECTFB=OFF \
-DWITH_FFMPEG=OFF \
-DWITH_FUSE=OFF \
-DWITH_GSM=OFF \
-DWITH_GSSAPI=OFF \
-DWITH_IPP=OFF \
-DWITH_JPEG=ON \
-DWITH_KRB5=ON \
-DWITH_LIBSYSTEMD=OFF \
-DWITH_MANPAGES=OFF \
-DWITH_OPENH264=OFF \
-DWITH_OPENSSL=ON \
-DWITH_OSS=OFF \
-DWITH_PCSC=OFF \
-DWITH_PKCS11=OFF \
-DWITH_PULSE=OFF \
-DWITH_SERVER=OFF \
-DWITH_SERVER_INTERFACE=OFF \
-DWITH_SHADOW_MAC=OFF \
-DWITH_SHADOW_X11=OFF \
-DWITH_SWSCALE=OFF \
-DWITH_SSE2=ON \
-DWITH_WAYLAND=OFF \
-DWITH_X11=OFF \
-DWITH_X264=OFF \
@@ -103,47 +116,21 @@ ARG FREERDP_OPTS="\
-DWITH_XRENDER=OFF \
-DWITH_XTEST=OFF \
-DWITH_XV=OFF \
-DCMAKE_CXX_FLAGS=-Wno-incompatible-pointer-types \
-DCMAKE_C_FLAGS=-Wno-incompatible-pointer-types \
-DWITH_ZLIB=ON"
ARG FREERDP_X86_OPTS=""
ARG GUACAMOLE_SERVER_ARM_OPTS=""
-DWITH_ZLIB=ON"
ARG GUACAMOLE_SERVER_OPTS="\
--disable-guaclog \
CPPFLAGS=-Wno-error=deprecated-declarations"
ARG GUACAMOLE_SERVER_X86_OPTS=""
ARG GUACAMOLE_SERVER_UNKNOWN_OPTS=""
ARG LIBSSH2_ARM_OPTS=""
--disable-guaclog"
ARG LIBSSH2_OPTS="\
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=ON"
ARG LIBSSH2_X86_OPTS=""
ARG LIBTELNET_ARM_OPTS=""
ARG LIBTELNET_OPTS="\
--disable-static \
--disable-util"
ARG LIBTELNET_X86_OPTS=""
ARG LIBVNCCLIENT_ARM_OPTS=""
ARG LIBVNCCLIENT_OPTS=""
ARG LIBVNCCLIENT_X86_OPTS=""
ARG LIBWEBSOCKETS_ARM_OPTS=""
ARG LIBWEBSOCKETS_OPTS="\
-DDISABLE_WERROR=ON \
-DLWS_WITHOUT_SERVER=ON \
@@ -154,179 +141,45 @@ ARG LIBWEBSOCKETS_OPTS="\
-DLWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
-DLWS_WITH_STATIC=OFF"
ARG LIBWEBSOCKETS_X86_OPTS=""
# Build guacamole-server and its core protocol library dependencies
RUN echo "$TARGETPLATFORM"
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; \
then FREERDP_OPTS="${FREERDP_OPTS} -DWITH_SSE2=ON" && echo "SSE2 active"; \
else FREERDP_OPTS="${FREERDP_OPTS} -DWITH_SSE2=OFF" && echo "SSE2 disabled"; \
fi && ${BUILD_DIR}/src/guacd-docker/bin/build-all.sh
#
# Base builder image that will be used by subsequent build stages, including
# for building dependencies of guacamole-server.
#
FROM alpine:${ALPINE_BASE_IMAGE} AS builder
ARG BUILD_DIR
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
# Install build dependencies
RUN apk add \
autoconf \
automake \
build-base \
cairo-dev \
cjson-dev \
cmake \
cunit-dev \
git \
grep \
krb5-dev \
libjpeg-turbo-dev \
libpng-dev \
libtool \
libwebp-dev \
make \
openssl-dev \
pango-dev \
pulseaudio-dev \
sdl2-dev \
sdl2_ttf-dev \
util-linux-dev
ARG GUAC_VER=1.6.0
RUN git clone --branch=${GUAC_VER} https://github.com/apache/guacamole-server.git ${BUILD_DIR}
#
# Build dependency: libssh2
#
FROM builder AS libssh2
ARG BUILD_DIR
ARG LIBSSH2_ARM_OPTS
ARG LIBSSH2_OPTS
ARG LIBSSH2_X86_OPTS
ARG PREFIX_DIR
ARG WITH_LIBSSH2
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "LIBSSH2" \
"https://github.com/libssh2/libssh2"
#
# Build dependency: libtelnet
#
FROM builder AS libtelnet
ARG BUILD_DIR
ARG LIBTELNET_ARM_OPTS
ARG LIBTELNET_OPTS
ARG LIBTELNET_X86_OPTS
ARG PREFIX_DIR
ARG WITH_LIBTELNET
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "LIBTELNET" \
"https://github.com/seanmiddleditch/libtelnet"
#
# Build dependency: libvncclient
#
FROM builder AS libvncclient
ARG BUILD_DIR
ARG LIBVNCCLIENT_ARM_OPTS
ARG LIBVNCCLIENT_OPTS
ARG LIBVNCCLIENT_X86_OPTS
ARG PREFIX_DIR
ARG WITH_LIBVNCCLIENT
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "LIBVNCCLIENT" \
"https://github.com/LibVNC/libvncserver"
#
# Build dependency: libwebsockets
#
FROM builder AS libwebsockets
ARG BUILD_DIR
ARG LIBWEBSOCKETS_ARM_OPTS
ARG LIBWEBSOCKETS_OPTS
ARG LIBWEBSOCKETS_X86_OPTS
ARG PREFIX_DIR
ARG WITH_LIBWEBSOCKETS
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "LIBWEBSOCKETS" \
"https://github.com/warmcat/libwebsockets"
#
# Build dependency: FreeRDP
#
FROM builder AS freerdp
ARG BUILD_DIR
ARG FREERDP_ARM_OPTS
ARG FREERDP_OPTS
ARG FREERDP_X86_OPTS
ARG PREFIX_DIR
ARG WITH_FREERDP
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "FREERDP" \
"https://github.com/FreeRDP/FreeRDP"
#
# STAGE 7: Collect dependencies built by previous stages and build
# guacamole-server.
#
FROM builder AS guacamole-server
ARG BUILD_DIR
ARG FREERDP_VERSION
ARG GUACAMOLE_SERVER_ARM_OPTS
ARG GUACAMOLE_SERVER_UNKNOWN_OPTS
ARG GUACAMOLE_SERVER_OPTS
ARG GUACAMOLE_SERVER_X86_OPTS
ARG PREFIX_DIR
ARG WITH_GUACAMOLE_SERVER
# Copy dependencies built in previous stages
COPY --from=freerdp ${PREFIX_DIR} ${PREFIX_DIR}
COPY --from=libssh2 ${PREFIX_DIR} ${PREFIX_DIR}
COPY --from=libtelnet ${PREFIX_DIR} ${PREFIX_DIR}
COPY --from=libvncclient ${PREFIX_DIR} ${PREFIX_DIR}
COPY --from=libwebsockets ${PREFIX_DIR} ${PREFIX_DIR}
# Use guacamole-server source from build context
COPY --from=builder ${BUILD_DIR} ${BUILD_DIR}
RUN ${BUILD_DIR}/src/guacd-docker/bin/autobuild.sh "GUACAMOLE_SERVER" "${BUILD_DIR}"
# Determine location of the FREERDP library based on the version.
ARG FREERDP_LIB_PATH=${PREFIX_DIR}/lib/freerdp${FREERDP_VERSION}
# Record the packages of all runtime library dependencies
RUN ${BUILD_DIR}/src/guacd-docker/bin/list-dependencies.sh \
${PREFIX_DIR}/sbin/guacd \
${PREFIX_DIR}/lib/libguac-client-*.so \
${FREERDP_LIB_PATH}/*guac*.so \
${PREFIX_DIR}/lib/freerdp2/*guac*.so \
> ${PREFIX_DIR}/DEPENDENCIES
#
# STAGE 8: Final, runtime image.
#
# Use same Alpine version as the base for the runtime image
FROM alpine:${ALPINE_BASE_IMAGE} AS runtime
ARG PREFIX_DIR
ARG BUILD_DIR
# Copy build artifacts into this stage
COPY --from=guacamole-server ${PREFIX_DIR} ${PREFIX_DIR}
FROM alpine:${ALPINE_BASE_IMAGE}
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
#
# Base directory for installed build artifacts. See also the
# CMD directive at the end of this build stage.
#
# NOTE: Due to limitations of the Docker image build process, this value is
# duplicated in an ARG in the first stage of the build.
#
ARG PREFIX_DIR=/opt/guacamole
RUN cat ${PREFIX_DIR}/DEPENDENCIES
# Runtime environment
ENV LC_ALL=C.UTF-8
ENV LD_LIBRARY_PATH=${PREFIX_DIR}/lib
ENV GUACD_LOG_LEVEL=info
# Copy build artifacts into this stage
COPY --from=builder ${PREFIX_DIR} ${PREFIX_DIR}
# Bring runtime environment up to date and install runtime dependencies
RUN apk add --no-cache \
ca-certificates \
font-noto-cjk \
ghostscript \
netcat-openbsd \
shadow \
@@ -336,10 +189,6 @@ RUN apk add --no-cache \
util-linux-login && \
xargs apk add --no-cache < ${PREFIX_DIR}/DEPENDENCIES
# Runtime environment
ENV LC_ALL=C.UTF-8
ENV LD_LIBRARY_PATH=${PREFIX_DIR}/lib
# Checks the operating status every 5 minutes with a timeout of 5 seconds
HEALTHCHECK --interval=5m --timeout=5s CMD nc -z 127.0.0.1 4822 || exit 1
@@ -348,6 +197,8 @@ ARG UID=1000
ARG GID=1000
RUN groupadd --gid $GID guacd
RUN useradd --system --create-home --shell /sbin/nologin --uid $UID --gid $GID guacd
RUN mkdir -p /opt/cloudpods
RUN chown -R guacd:guacd /opt/cloudpods
# Run with user guacd
USER guacd
@@ -355,6 +206,9 @@ USER guacd
# Expose the default listener port
EXPOSE 4822
COPY --from=guacamole-server ${BUILD_DIR}/src/guacd-docker/bin/entrypoint.sh /opt/guacamole/
#COPY
ENTRYPOINT [ "/opt/guacamole/entrypoint.sh" ]
# Start guacd, listening on port 0.0.0.0:4822
#
# Note the path here MUST correspond to the value specified in the
# PREFIX_DIR build argument.
#
CMD /opt/guacamole/sbin/guacd -b 0.0.0.0 -L $GUACD_LOG_LEVEL -f

View File

@@ -1,8 +1,8 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.9.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.5.0
LABEL maintainer="Yaoqi Wan wanyaoqi@yunionyun.com"
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ="UTC"
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/host /opt/yunion/bin/host

View File

@@ -1,9 +1,9 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:1.5.11
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:1.4.9
LABEL maintainer="Yaoqi Wan wanyaoqi@yunionyun.com"
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ="UTC"
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/host-deployer /opt/yunion/bin/host-deployer
ADD ./_output/centos-build/bin/host-deployer /opt/yunion/bin/host-deployer

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/host-health /opt/yunion/bin/host-health

View File

@@ -1,6 +1,9 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ENV TZ="UTC"
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/host-image /opt/yunion/bin/host-image
ENV TZ UTC
ADD ./_output/bin/host-image /opt/yunion/bin/host-image
ADD ./_output/bin/.host-image.bin /opt/yunion/bin/.host-image.bin
ADD ./_output/bin/bundles/host-image /opt/yunion/bin/bundles/host-image

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/keystone /opt/yunion/bin/keystone

View File

@@ -1,9 +1,4 @@
FROM alpine:3.22.2
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETARCH
FROM alpine:3.11
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositories
RUN apk update && apk add curl android-tools && rm -rf /var/cache/apk/*
RUN curl -L https://iso.yunion.cn/binaries/kubernetes-release/release/v1.22.9/bin/linux/${TARGETARCH}/kubectl -o /usr/bin/kubectl && chmod a+x /usr/bin/kubectl
RUN apk update && apk add kubectl && rm -rf /var/cache/apk/*

View File

@@ -1,8 +1,8 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/lbagent-base:v0.0.5
FROM registry.cn-beijing.aliyuncs.com/yunionio/lbagent-base:v0.0.4
LABEL maintainer="Yousong Zhou <zhouyousong@yunion.cn>"
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"
ENV TZ="UTC"
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/lbagent /opt/yunion/bin/lbagent

View File

@@ -1,12 +1,12 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.12.4-5
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.12.4-2
LABEL maintainer="Jian QIU <qiujian@yunion.cn>"
MAINTAINER "Jian QIU <qiujian@yunion.cn>"
ENV TZ="UTC"
ENV TZ UTC
ENV GOPATH=/root/go
RUN sed -i 's!v3.20/!v3.22/!g' /etc/apk/repositories
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN set -x \
&& apk update \

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ADD ./_output/alpine-build/bin/llm /opt/yunion/bin/llm

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/logger /opt/yunion/bin/logger

View File

@@ -1,3 +0,0 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
ADD ./_output/alpine-build/bin/mcp-server /opt/yunion/bin/mcp-server

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
COPY ./build/monitor/root/opt/ /opt/
ADD ./_output/alpine-build/bin/monitor /opt/yunion/bin/monitor

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
COPY ./build/notify/root/opt/ /opt/
ADD ./_output/alpine-build/bin/notify /opt/yunion/bin/notify

View File

@@ -1,9 +1,9 @@
# TODO: use 3.14 will lead 'apk add qemu-img fail on arm64'
FROM alpine:3.22.1
FROM alpine:3.13.5
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ="UTC"
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin

View File

@@ -1,8 +1,8 @@
FROM alpine:3.15.4
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ="UTC"
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin

View File

@@ -1,13 +0,0 @@
FROM alpine:3.22.2
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
ENV TZ="UTC"
RUN mkdir -p /opt/yunion/bin
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN apk update && \
apk add --no-cache tzdata curl busybox-extras tcpdump strace ca-certificates && \
rm -rf /var/cache/apk/*

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
COPY ./build/region/root/opt/ /opt/
ADD ./_output/alpine-build/bin/region /opt/yunion/bin/region

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/region-dns /opt/yunion/bin/region-dns

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/s3gateway /opt/yunion/bin/s3gateway

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/scheduledtask /opt/yunion/bin/scheduledtask

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/scheduler /opt/yunion/bin/scheduler

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunion-rootfs:v4.0.0-20251112.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunion-rootfs:v1.1
ADD ./_output/alpine-build/bin/telegraf-raid-plugin /opt/yunion/bin/telegraf-raid-plugin
ADD ./_output/centos-build/bin/telegraf-raid-plugin /opt/yunion/bin/telegraf-raid-plugin

View File

@@ -1,6 +1,10 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
LABEL maintainer="Zexi Li <zexi.li@icloud.com>"
MAINTAINER "Zexi Li <zexi.li@icloud.com>"
# HACK: use v3.14 alpine mirror to upgrade qemu-img
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.14/main > /etc/apk/repositories
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.14/community >> /etc/apk/repositories
RUN apk update && \
apk add --no-cache qemu-img && \

View File

@@ -1,7 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.12.4-5
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.10.5-1
LABEL maintainer="Yousong Zhou <zhouyousong@yunion.cn>"
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"
ENV TZ="UTC"
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin
ADD ./_output/alpine-build/bin/vpcagent /opt/yunion/bin/vpcagent

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/webconsole-base:3.22.2-1
FROM registry.cn-beijing.aliyuncs.com/yunionio/webconsole-base:20230731.2
ADD ./_output/alpine-build/bin/webconsole /opt/yunion/bin/webconsole

View File

@@ -1,10 +1,10 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/kubectl:3.22.2-1
FROM registry.cn-beijing.aliyuncs.com/yunionio/kubectl:1.18.6
LABEL maintainer="Zexi Li <lizexi@yunionyun.com>"
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ="UTC"
ENV TZ UTC
RUN mkdir -p /opt/yunion/bin
RUN apk add --no-cache sshpass ipmitool openssh-client tzdata ca-certificates bash && \
RUN apk add --no-cache sshpass ipmitool openssh-client tzdata ca-certificates && \
rm -rf /var/cache/apk/*

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5-1
ADD ./_output/alpine-build/bin/yunionconf /opt/yunion/bin/yunionconf

View File

@@ -1,7 +1,6 @@
REGISTRY ?= "registry.cn-beijing.aliyuncs.com/yunionio"
DOCKER_BUILD = docker build -t $(REGISTRY)
DOCKER_BUILDX = docker buildx build --platform linux/arm64,linux/amd64,linux/riscv64 --push -t $(REGISTRY)
DOCKER_BUILDX_BM = docker buildx build --platform linux/arm64,linux/amd64 --push -t $(REGISTRY)
DOCKER_BUILDX = docker buildx build --platform linux/arm64,linux/amd64 --push -t $(REGISTRY)
debian10-base:
@@ -10,74 +9,68 @@ debian10-base:
ONECLOUD_BASE_VERSION = v0.3-3.13.5
ONECLOUD_BASE_VERSION_3-15-4 = v3.15.4-0
ONECLOUD_BASE_VERSION_3-22-2 = 3.22.2-0
onecloud-base:
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION) -f ./Dockerfile.onecloud-base .
onecloud-base-3-15-4:
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION_3-15-4) -f ./Dockerfile.onecloud-base-3-15-4 .
onecloud-base-3-22-2:
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION_3-22-2) -f ./Dockerfile.onecloud-base-3-22-2 .
ANSIBLESERVER_BASE = 3.22.2-0
ANSIBLESERVER_BASE = v1.1.2
ansibleserver-base:
$(DOCKER_BUILDX)/ansibleserver-base:$(ANSIBLESERVER_BASE) -f ./Dockerfile.ansibleserver-base .
CLIMC_BASE_VERSION = 20230731.5
CLIMC_BASE_VERSION_3-22-2 = 3.22.2-2
climc-base:
$(DOCKER_BUILDX)/climc-base:$(CLIMC_BASE_VERSION) -f ./Dockerfile.climc-base .
docker buildx build --platform linux/arm64,linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/climc-base:$(CLIMC_BASE_VERSION) -f ./Dockerfile.climc-base .
climc-base-3-22-2:
$(DOCKER_BUILDX)/climc-base:$(CLIMC_BASE_VERSION_3-22-2) -f ./Dockerfile.climc-base-3-22-2 .
KUBECTL_VERSION_3-22-2 = 3.22.2-1
kubectl:
$(DOCKER_BUILDX)/kubectl:$(KUBECTL_VERSION_3-22-2) -f ./Dockerfile.kubectl .
WEBCONSOLE_BASE_VERSION_3-22-2 = 3.22.2-1
WEBCONSOLE_BASE_VERSION = 20230731.2
webconsole-base:
$(DOCKER_BUILDX)/webconsole-base:$(WEBCONSOLE_BASE_VERSION_3-22-2) -f ./Dockerfile.webconsole-base .
$(DOCKER_BUILDX)/webconsole-base:$(WEBCONSOLE_BASE_VERSION) -f ./Dockerfile.webconsole-base .
BAREMETAL_BASE_VERSION = v0.3.9-20260724.0
BAREMETAL_BASE_VERSION = v0.3.9-20231219.1
FEDORA_RISCV64_VERSION = 42
fedora-riscv64-base:
wget -q https://dl.fedoraproject.org/pub/alt/risc-v/release/$(FEDORA_RISCV64_VERSION)/Container/riscv64/images/Fedora-Container-Base-Generic-$(FEDORA_RISCV64_VERSION).20250414-8635a3a5bfcd.riscv64.oci.tar.xz && \
xz -d Fedora-Container-Base-Generic-$(FEDORA_RISCV64_VERSION).20250414-8635a3a5bfcd.riscv64.oci.tar.xz && \
skopeo copy oci-archive:Fedora-Container-Base-Generic-$(FEDORA_RISCV64_VERSION).20250414-8635a3a5bfcd.riscv64.oci.tar docker-daemon:fedora-riscv64:$(FEDORA_RISCV64_VERSION) && \
rm -f Fedora-Container-Base-Generic-$(FEDORA_RISCV64_VERSION).20250414-8635a3a5bfcd.riscv64.oci.tar
baremetal-base-riscv: fedora-riscv64-base
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base-riscv .
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)
# TODO: support riscv64 for baremetal-base
baremetal-base:
$(DOCKER_BUILDX_BM)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
#docker push $(REGISTRY)/baremetal-base:$(BAREMETAL_BASE_VERSION)
TORRENT_VERSION = 20210815.0
TORRENT_VERSION_3-22-2 = 3.22.2-0
torrent:
$(DOCKER_BUILDX)/torrent:$(TORRENT_VERSION) -f ./Dockerfile.torrent .
GLANCE_BASE_VERSION = v0.0.1
GLANCE_BASE_VERSION_3-22-2 = 3.22.2-0
glance-base:
$(DOCKER_BUILDX)/glance-base:$(GLANCE_BASE_VERSION) -f ./Dockerfile.glance-base .
glance-base-3-22-2:
$(DOCKER_BUILDX)/glance-base:$(GLANCE_BASE_VERSION_3-22-2) -f ./Dockerfile.glance-base .
FILE_REPO_VERSION = v0.5.2
file-repo:
$(DOCKER_BUILDX)/file-repo:$(FILE_REPO_VERSION) -f ./Dockerfile.file-repo .
LBAGENT_BASE_VERSION = v0.0.5
HOST_IMAGE_VERSION ?= v1.0.2
HOST_IMAGE_NAME = $(REGISTRY)/host-image:$(HOST_IMAGE_VERSION)
host-image:
docker pull $(HOST_IMAGE_NAME)-amd64 --platform amd64
docker pull $(HOST_IMAGE_NAME)-arm64 --platform arm64
docker manifest create $(HOST_IMAGE_NAME) \
$(HOST_IMAGE_NAME)-amd64 \
$(HOST_IMAGE_NAME)-arm64
docker manifest annotate $(HOST_IMAGE_NAME) $(HOST_IMAGE_NAME)-amd64 --arch amd64
docker manifest annotate $(HOST_IMAGE_NAME) $(HOST_IMAGE_NAME)-arm64 --arch arm64
docker manifest push $(HOST_IMAGE_NAME)
LBAGENT_BASE_VERSION = v0.0.3
lbagent-base:
$(DOCKER_BUILDX)/lbagent-base:$(LBAGENT_BASE_VERSION) -f ./Dockerfile.lbagent-base .
GUACD_VERSION=1.6.0
GUACD_VERSION=1.5.3
guacd:
$(DOCKER_BUILDX)/guacd:$(GUACD_VERSION) -f ./Dockerfile.guacd .
docker buildx build --platform linux/arm64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/guacd:$(GUACD_VERSION)-arm64 -f ./Dockerfile.guacd .
docker buildx build --platform linux/amd64 --push \
-t registry.cn-beijing.aliyuncs.com/yunionio/guacd:$(GUACD_VERSION)-amd64 -f ./Dockerfile.guacd .
docker buildx imagetools create -t registry.cn-beijing.aliyuncs.com/yunionio/guacd:$(GUACD_VERSION) \
registry.cn-beijing.aliyuncs.com/yunionio/guacd:$(GUACD_VERSION)-amd64 \
registry.cn-beijing.aliyuncs.com/yunionio/guacd:$(GUACD_VERSION)-arm64

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:3.22.2-go-1.24.9-0 AS build
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:3.19.0-go-1.21.10-0 as build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN mkdir -p /root/go/src/yunion.io/x/onecloud
@@ -7,11 +7,11 @@ COPY . /root/go/src/yunion.io/x/onecloud
WORKDIR /root/go/src/yunion.io/x/onecloud
RUN make cmd/host
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.9.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.4.0
LABEL maintainer="Yaoqi Wan wanyaoqi@yunionyun.com"
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
ENV TZ="UTC"
ENV TZ Asia/Shanghai
RUN mkdir -p /opt/yunion/bin
COPY --from=build /root/go/src/yunion.io/x/onecloud/_output/bin/host /opt/yunion/bin/host

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:3.22.2-go-1.24.9-0 AS build
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5 as build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
@@ -6,11 +6,13 @@ RUN mkdir -p /root/go/src/yunion.io/x/onecloud
COPY . /root/go/src/yunion.io/x/onecloud
RUN cd /root/go/src/yunion.io/x/onecloud && make cmd/torrent
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
LABEL maintainer="Zexi Li <zexi.li@icloud.com>"
MAINTAINER "Zexi Li <zexi.li@icloud.com>"
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
# HACK: use v3.14 alpine mirror to upgrade qemu-img
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.14/main > /etc/apk/repositories
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.14/community >> /etc/apk/repositories
RUN apk update && \
apk add --no-cache qemu-img && \

View File

@@ -1,5 +1,5 @@
DESCRIPTION="Yunion Cloud Image Service"
REQUIRES=(
yunion-qemu-4.2.0
yunion-qemu-2.12.1
)

View File

@@ -1,9 +1,9 @@
{{.title}}
策略名称: {{.name}}
触发时间: {{.start_time}}
报警级别: {{.level}}
触发条件: {{.description | unescaped}}
{{if .reason}}报警原因: {{.reason}}
{{end}}报警数量:{{len .matches}}
报警数量:{{len .matches}}
资源名称:{{.resource_name}}
详情地址: {{.web_url}}

View File

@@ -68,7 +68,6 @@
border-bottom: 1px solid #d7d7d7;
}
</style>
{{$match_tags_str := .match_tags_str}}
<body>
<h3 class="title">报警提醒</h3>
<table border="0" cellspacing="0" cellpadding="0" class="table">
@@ -88,19 +87,8 @@
</tr>
<tr>
<td class="td">策略详情:</td>
<td>
{{- range $i, $m := .matches -}}
{{- if $i}}<br/>{{end -}}
{{- $m.condition | unescaped -}}
{{- end -}}
</td>
<td>{{.description}}</td>
</tr>
{{if .reason}}
<tr>
<td class="td">报警原因:</td>
<td>{{.reason}}</td>
</tr>
{{end}}
</table>
<table class="table" style="padding-top: 6px; padding-bottom: 10px;">
<tr>
@@ -122,9 +110,6 @@
<td>平台</td>
<td>指标</td>
<td>触发值</td>
{{if gt (len $match_tags_str) 1}}
<td>标签</td>
{{end}}
</tr>
</thead>
<tbody>
@@ -142,9 +127,6 @@
</td>
<td>{{ $Matche.metric }}</td>
<td>{{ $Matche.value_str }}</td>
{{if gt (len $match_tags_str) 1}}
<td>{{ index $match_tags_str $i }}</td>
{{end}}
</tr>
{{end}}
</tbody>

View File

@@ -1,9 +1,9 @@
{{.title}}
AlertName: {{.name}}
Time: {{.start_time}}
Level: {{.level}}
TriggerCondition: {{.description | unescaped}}
{{if .reason}}Reason: {{.reason}}
{{end}}AlertCount: {{len .matches}}
AlertCount: {{len .matches}}
ResourceName: {{.resource_name}}
WebUrl: {{.web_url}}

View File

@@ -68,7 +68,6 @@
border-bottom: 1px solid #d7d7d7;
}
</style>
{{$match_tags_str := .match_tags_str}}
<body>
<h3 class="title">Alert</h3>
<table border="0" cellspacing="0" cellpadding="0" class="table">
@@ -88,19 +87,8 @@
</tr>
<tr>
<td class="td">Strategy details</td>
<td>
{{- range $i, $m := .matches -}}
{{- if $i}}<br/>{{end -}}
{{- $m.condition | unescaped -}}
{{- end -}}
</td>
<td>{{.description}}</td>
</tr>
{{if .reason}}
<tr>
<td class="td">Reason</td>
<td>{{.reason}}</td>
</tr>
{{end}}
</table>
<table class="table" style="padding-top: 6px; padding-bottom: 10px;">
<tr>
@@ -122,9 +110,6 @@
<td>Brand</td>
<td>Metric</td>
<td>Trigger value</td>
{{if gt (len $match_tags_str) 1}}
<td>Tags</td>
{{end}}
</tr>
</thead>
<tbody>
@@ -142,9 +127,6 @@
</td>
<td>{{ $Matche.metric }}</td>
<td>{{ $Matche.value_str }}</td>
{{if gt (len $match_tags_str) 1}}
<td>{{ index $match_tags_str $i }}</td>
{{end}}
</tr>
{{end}}
</tbody>

View File

@@ -1 +1 @@
{{monitorTitle .}}
{{.title}}

View File

@@ -1 +1 @@
{{monitorTitle .}}
{{.title}}

View File

@@ -1 +1 @@
{{monitorTitle .}}
{{.title}}

View File

@@ -1 +1 @@
{{monitorTitle .}}
{{.title}}

View File

@@ -1,18 +0,0 @@
[Unit]
Description=Yunion MPS Daemon
Documentation=https://docs.yunion.cn
[Service]
Type=simple
User=root
Group=root
ExecStart=/opt/yunion/bin/mps-daemon
WorkingDirectory=/opt/yunion/bin
KillMode=process
Restart=always
RestartSec=30
LimitNOFILE=500000
LimitNPROC=500000
[Install]
WantedBy=multi-user.target

View File

@@ -1,2 +0,0 @@
DESCRIPTION="Yunion MPS Daemon Utility"
SERVICE="yes"

View File

@@ -1 +0,0 @@
备份导出文件{{ .pack_file_name }}创建成功

View File

@@ -1 +0,0 @@
Backup export file {{ .pack_file_name }} was created.

View File

@@ -1 +0,0 @@
备份导出文件{{ .pack_file_name }}创建成功

View File

@@ -1 +0,0 @@
Backup export file {{ .pack_file_name }} was created.

View File

@@ -1,26 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
"yunion.io/x/onecloud/pkg/aiproxy/service"
"yunion.io/x/onecloud/pkg/util/atexit"
)
func main() {
defer atexit.Handle()
service.StartService()
}

View File

@@ -70,7 +70,7 @@ type BaseOptions struct {
OsRegionName string `default:"$OS_REGION_NAME" help:"Defaults to env[OS_REGION_NAME]"`
OsZoneName string `default:"$OS_ZONE_NAME" help:"Defaults to env[OS_ZONE_NAME]"`
OsEndpointType string `default:"$OS_ENDPOINT_TYPE|internalURL" help:"Defaults to env[OS_ENDPOINT_TYPE] or internalURL" choices:"publicURL|internalURL|adminURL|apigateway"`
OsEndpointType string `default:"$OS_ENDPOINT_TYPE|internalURL" help:"Defaults to env[OS_ENDPOINT_TYPE] or internalURL" choices:"publicURL|internalURL|adminURL"`
// ApiVersion string `default:"$API_VERSION" help:"override default modules service api version"`
OutputFormat string `default:"$CLIMC_OUTPUT_FORMAT|table" choices:"table|kv|json|yaml|flatten-table|flatten-kv" help:"output format"`
@@ -335,6 +335,7 @@ func ClimcMain() {
}
if parser.IsHelpSet() {
fmt.Print(parser.HelpString())
return
}

View File

@@ -17,7 +17,6 @@ package main
import (
"yunion.io/x/onecloud/cmd/climc/entry"
_ "yunion.io/x/onecloud/cmd/climc/shell"
_ "yunion.io/x/onecloud/cmd/climc/shell/aiproxy"
_ "yunion.io/x/onecloud/cmd/climc/shell/ansible"
_ "yunion.io/x/onecloud/cmd/climc/shell/apimap"
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudevent"
@@ -31,7 +30,6 @@ import (
_ "yunion.io/x/onecloud/cmd/climc/shell/identity"
_ "yunion.io/x/onecloud/cmd/climc/shell/image"
_ "yunion.io/x/onecloud/cmd/climc/shell/k8s"
_ "yunion.io/x/onecloud/cmd/climc/shell/llm"
_ "yunion.io/x/onecloud/cmd/climc/shell/logger"
_ "yunion.io/x/onecloud/cmd/climc/shell/misc"
_ "yunion.io/x/onecloud/cmd/climc/shell/monitor"

View File

@@ -1,31 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package aiproxy
import (
"yunion.io/x/onecloud/cmd/climc/shell"
apmodules "yunion.io/x/onecloud/pkg/mcclient/modules/aiproxy"
apoptions "yunion.io/x/onecloud/pkg/mcclient/options/aiproxy"
)
func init() {
cmd := shell.NewResourceCmd(&apmodules.AiKeys)
cmd.Create(new(apoptions.AiKeyCreateOptions))
cmd.List(new(apoptions.AiKeyListOptions))
cmd.Show(new(apoptions.AiKeyShowOptions))
cmd.Update(new(apoptions.AiKeyUpdateOptions))
cmd.Delete(new(apoptions.AiKeyDeleteOptions))
registerEnableDisable(cmd)
}

View File

@@ -1,31 +0,0 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package aiproxy
import (
"yunion.io/x/onecloud/cmd/climc/shell"
apmodules "yunion.io/x/onecloud/pkg/mcclient/modules/aiproxy"
apoptions "yunion.io/x/onecloud/pkg/mcclient/options/aiproxy"
)
func init() {
cmd := shell.NewResourceCmd(&apmodules.AiModels)
cmd.Create(new(apoptions.AiModelCreateOptions))
cmd.List(new(apoptions.AiModelListOptions))
cmd.Show(new(apoptions.AiModelShowOptions))
cmd.Update(new(apoptions.AiModelUpdateOptions))
cmd.Delete(new(apoptions.AiModelDeleteOptions))
registerEnableDisable(cmd)
}

Some files were not shown because too many files have changed in this diff Show More