Compare commits

...

1133 Commits

Author SHA1 Message Date
wanyaoqi
334fee5006 fix(region): reset guest quorum child index on guest shutdown (#25136) 2026-07-14 00:10:20 +08:00
wanyaoqi
960528ae22 fix(region): snapshot validate add check guest is quorum master guest (#25054) 2026-06-24 10:30:46 +08:00
wanyaoqi
c9494e0aaf fix(host): check cluster is valid before do qemuimg convert (#24925) 2026-06-02 20:00:54 +08:00
Jian Qiu
0e78b8a53d fix: undo pr 24532 (#24637)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-04-08 16:25:09 +08:00
Jian Qiu
7de2696457 fix: lbagent genHaproxyConfig possible nil pointer panic (#24532)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2026-03-25 10:32:13 +08:00
wanyaoqi
86d4079205 fix(host): dd zero to lv wife partitions on lvremove (#24523) 2026-03-23 19:01:33 +08:00
wanyaoqi
e65439b5a0 fix(scheduler): correct mem_free = (mem_total - mem_reserved) * mem_cmtbound (#23979) 2025-12-29 11:18:05 +08:00
Jian Qiu
2ea865df3d fix: splitable not function due to empty datefield (#23912)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-12-09 13:34:05 +08:00
wanyaoqi
cd3d699c46 fix(region): disk take snapshot check backing snapshot is merged (#23834) 2025-11-26 00:59:32 +08:00
Jian Qiu
5ff875cfa5 fix: validate policy role delete condition (#23811)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-11-21 12:03:33 +08:00
Jian Qiu
ffd35fb870 fix: default cloud region init error (#23473)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-03 06:35:08 +08:00
wanyaoqi
c934445ac8 fix(host): check min_free_kbytes size is enough (#23285) 2025-09-12 22:55:32 +08:00
wanyaoqi
ecaedce272 fix(region): try recover image cache on guest migrate (#23189) 2025-08-28 10:04:35 +08:00
wanyaoqi
c4ac131176 fix(scheduler): add session usage timeout options (#23146) 2025-08-21 18:11:20 +08:00
wanyaoqi
5ecdd7e404 fix(host): lvm guest reload disk before delete snapshot (#23056) 2025-08-08 20:56:57 +08:00
wanyaoqi
b0ad2ddd19 fix(host): generate ceph conf dup monHosts (#23023) 2025-08-06 18:31:19 +08:00
Jian Qiu
636e287145 fix: always update hostname for rhel-like os (#23020)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-08-06 01:07:06 +08:00
wanyaoqi
c7e032e96f fix(host,glance): only target qcow2 set cluster size on image convert (#22977) 2025-07-30 00:42:48 +08:00
wanyaoqi
3db68b9c5c fix(host): set qemuimg convert cluster_size 64k on compat image (#22968) 2025-07-29 00:04:38 +08:00
Zexi Li
cb7ee805c8 fix(scheduler): netinterface cache is not informed (#22904) 2025-07-15 20:00:14 +08:00
wanyaoqi
56ecdaf1d2 fix(region): do not set guest to resuce status on guest running (#22866) 2025-07-10 22:10:57 +08:00
wanyaoqi
3955a6ca98 fix(host): add check mem dev is null on guest setup (#22850) 2025-07-09 14:15:46 +08:00
wanyaoqi
9fc987e7ac fix(host): qemuimg convert add cluster_size (#22794) 2025-07-03 05:28:00 +08:00
屈轩
454d18be9b fix(region): vendor update (#22752) 2025-06-20 18:12:52 +08:00
屈轩
af6f84c887 fix(region): lb listener rule associate backend group (#22747) 2025-06-20 17:27:29 +08:00
wanyaoqi
3299b8d758 fix(region,host): add auto merge snapshots options, preallocation options (#22711) 2025-06-13 15:19:29 +08:00
wanyaoqi
7f72f23fab fix(host): qemu extra params format (#22611) 2025-05-27 13:34:26 +08:00
wanyaoqi
5d342b8a9c fix(region): guestdisk list add auto reset column (#22348) 2025-03-26 15:07:38 +08:00
wanyaoqi
4b7bd6a6aa fix(host): virtio nic add fdb record on has sriov nic (#22286) 2025-03-18 15:10:52 +08:00
Zexi Li
2b7f5fcb77 Merge pull request #22262 from zexi/automated-cherry-pick-of-#22259-upstream-release-3.10
Automated cherry pick of #22259: fix(webconsole,monitor): pprof handlers of gorilla mux
2025-03-11 12:27:52 +08:00
Zexi Li
9ed8ac48b9 fix(webconsole,monitor): pprof handlers of gorilla mux 2025-03-11 12:00:55 +08:00
wanyaoqi
929fbdd897 feat(glance,region,host): auto cache glance images to ceph storages (#22247) 2025-03-08 11:04:01 +08:00
wanyaoqi
09bb2ba976 fix(host): change storage clone disk add encrypt info (#22228) 2025-03-08 08:59:05 +08:00
Jian Qiu
a9df7ce31f Automated cherry pick of #22209: fix: disk copy to storage inherit classmeta (#22216)
* fix: disk copy to storage inherit classmeta

* fix: inheritFromTo parameter not match

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-03-03 10:04:02 +08:00
wanyaoqi
c3183c4401 fix(host): shared lvm activte with auto activation option (#22192) 2025-02-27 16:05:49 +08:00
wanyaoqi
711786736f feat(region,host): add guest disk auto reset on shutdown support (#22197) 2025-02-27 16:03:07 +08:00
Jian Qiu
3e5e510605 fix: remove default values from cmtbound columns (#22158)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-02-24 17:32:21 +08:00
Jian Qiu
d1a50169b7 fix: disable server TLS 1.0, 1.x and 1.2 SHA1 (#22169)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-02-24 17:30:24 +08:00
Zexi Li
c151761076 fix(scheduler): 尽早发现子网ip不足引起的调度失败 (#22133) 2025-02-19 17:03:28 +08:00
Zexi Li
a7c05d1a14 optimized(scheduler): reduce scheduling time (#22032) 2025-02-05 10:25:40 +08:00
屈轩
11e479757d fix(region): avoid panic (#22050) 2025-02-05 09:56:17 +08:00
wanyaoqi
485d636c1d fix(region,host): slvm snapshot delete and instance snapshot purge (#22020) 2025-01-26 19:37:44 +08:00
wanyaoqi
4dba5726b6 fix(region): remove delete expired snapshot after auto snapshots (#22002) 2025-01-26 19:36:52 +08:00
Zexi Li
9d58922492 fix(glance): query vmware account brand (#22019) 2025-01-24 11:51:39 +08:00
Zexi Li
5067703dd3 fix(host): skip detect device that is not GPU class (#21986) 2025-01-18 06:14:58 +08:00
屈轩
94fbb84cd6 fix(region): loadbalancer listener create input (#21939) 2025-01-08 18:31:32 +08:00
wanyaoqi
f5f857e1f4 fix(region): record snapshot last attched host on delete disk (#21924) 2025-01-07 20:42:50 +08:00
屈轩
3bf0765018 fix(region): fetch lb backend owner (#21932) 2025-01-07 09:40:17 +08:00
wanyaoqi
32c8b2b03e Automated cherry pick of #21875: Automated cherry pick of #21804: [WIP] fix: add more action log (#21879)
* fix: add more action log

* fix(region): add set cmt bound action
2024-12-29 23:10:03 +08:00
屈轩
87c66d2a68 fix(region): skip record conflict error (#21898) 2024-12-26 09:46:41 +08:00
屈轩
75e57a903a fix(region): qcloud rds cpu option (#21893) 2024-12-25 10:55:34 +08:00
wanyaoqi
99a0bcff31 fix(host): delete snapshot from storagehandler misc fix (#21882) 2024-12-23 20:43:21 +08:00
屈轩
b0d387e685 fix(cloudmon): sync cloudproviders (#21734) 2024-12-04 09:42:49 +08:00
屈轩
5ac581e750 fix(apigateway): add service settings info (#21722) 2024-12-04 09:41:32 +08:00
Zexi Li
cde63b6b0d fix(monitor): clone alert dashboard (#21729) 2024-12-03 10:06:20 +08:00
屈轩
47ad66df21 fix(region): vendor update for qcloud net sync (#21716) 2024-11-29 16:13:46 +08:00
Zexi Li
e1779242b5 fix(monitor): add METRIC_UNIT_PPS (#21715) 2024-11-29 14:20:21 +08:00
Zexi Li
f9d304a639 Automated cherry pick of #21692: fix: complete monitor metrics (#21698)
* fix: complete monitor metrics

* fix(monitor): remove container related metrics

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-11-26 14:45:56 +08:00
Zexi Li
d61e94e5f0 fix(monitor): inject ResType (#21624) 2024-11-19 13:59:51 +08:00
屈轩
e6fdd807c9 fix(region): add actual capacity used usage (#21575) 2024-11-12 11:35:17 +08:00
Zexi Li
426c4882b0 fix(monitor): alert notification details (#21577) 2024-11-12 11:28:04 +08:00
Zexi Li
718e036aba fix(monitor): add metric content for email template (#21570) 2024-11-11 16:09:54 +08:00
Jian Qiu
941bec7c39 fix: telegraf kakfa ordered configuration (#21551)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-11-07 09:49:59 +08:00
Zexi Li
b658742969 feat(region,climc): server-set-root-disk-matcher (#21544) 2024-11-06 18:53:02 +08:00
Zexi Li
1d248b054c fix(monitor): 修复报警恢复时包含其他资源的问题 (#21543) 2024-11-06 18:52:38 +08:00
屈轩
458ce7e4e0 fix(region): vendor update (#21501) 2024-11-04 14:54:46 +08:00
Zexi Li
790caabb8b fix(region): not set PrimaryZone when no dns_domain configured (#21511) 2024-11-04 12:39:52 +08:00
Jian Qiu
b7b874a747 feature: kafka telegraf output options (#21496)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-10-30 12:33:01 +08:00
wanyaoqi
957d69b1e2 fix(region,host): ceph add enable messenger v2 options (#21446) 2024-10-25 10:16:30 +08:00
Zexi Li
be5a09a67b fix(scheduler): avoid_same_host 策略分数过高导致调度分配不均 (#21412) 2024-10-16 10:22:57 +08:00
wanyaoqi
05645aaadc fix(region): check disk is deleted on delete snapshot (#21371) 2024-10-09 21:49:27 +08:00
wanyaoqi
4a9a768360 fix: fix slice init length (#21351)
Co-authored-by: cui fliter <imcusg@gmail.com>
2024-10-07 20:09:07 +08:00
wanyaoqi
8319a8f402 Automated cherry pick of #20996: fix(region,host): lvm snapshot delete and create from backup (#21312)
* 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:09 +08:00
Jian Qiu
d839581c8d fix: prevent access from anonymous user (#21244)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-14 19:37:01 +08:00
Zexi Li
35d11d2f8b feat(monitor): filter monitor_resource_alert by ip (#21218) 2024-09-12 11:00:59 +08:00
Zexi Li
f6ccb188e7 fix(moniotr): filter dirty resource alerts (#21215) 2024-09-12 10:04:59 +08:00
Zexi Li
383c1c71fc fix(climc): monitor-alert-test-run prints result error (#21213) 2024-09-11 20:04:49 +08:00
Zexi Li
c7b709ce82 optimized(monitor): keep 2 precision of reduced value (#21209) 2024-09-11 16:37:38 +08:00
wanyaoqi
d28ec77c04 fix(host): rbd save image use /opt/cloud temp dir (#21153) 2024-09-04 10:43:23 +08:00
Jian Qiu
7860619585 fix: telegraf config file format error (#21147)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-03 11:03:20 +08:00
Zexi Li
a89a474bed fix(climc): host-ssh is not working (#21114) 2024-08-27 16:25:41 +08:00
Zexi Li
0e0f31d55a fix(monitor): only show MEAN and SUM aggregators (#21101) 2024-08-26 17:40:15 +08:00
wanyaoqi
bfe7b47317 fix(host): nbd worker count add options (#21097) 2024-08-26 17:30:14 +08:00
屈轩
5dda4971be fix(region): dns record update with enabled params (#21083) 2024-08-23 10:20:48 +08:00
Jian Qiu
c586ce431b fix: filter islated devices capability info by zone (#21036)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-08-15 09:37:58 +08:00
Zexi Li
6c9a728e6b fix(baremetal): ignore 0.0.0.0 ipmi address when probing (#21006) 2024-08-13 17:43:26 +08:00
屈轩
b1298e1175 fix(region): custom total count (#21001) 2024-08-12 15:48:15 +08:00
屈轩
074cd00323 fix(region): show status info with list api (#20989) 2024-08-12 09:17:14 +08:00
wanyaoqi
e91c7d3b74 fix(host-deployer): add cpu mem hotplug udev rules (#20976) 2024-08-07 19:00:56 +08:00
wanyaoqi
a733ef75ca fix(host): too much qga ping logs (#20958) 2024-08-05 14:47:44 +08:00
Zexi Li
acd4e95ff1 feat(monitor): add inodes_used_percent metric (#20940) 2024-08-01 16:18:45 +08:00
Zexi Li
a046a3b12d fix(monitor): no alert_details in nodata monitor_resource_alert (#20933) 2024-07-31 13:47:05 +08:00
Zexi Li
a00e268b6b feat(monitor): multiple alerts of resource (#20926) 2024-07-30 16:16:12 +08:00
Zexi Li
59502b785c fix(mointor): multiple duplicated message (#20917) 2024-07-29 21:03:26 +08:00
Jian Qiu
0f16659b23 fix: opsadmin deny host perform login-info (#20906)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-29 13:21:06 +08:00
Zexi Li
83e8bb7344 feat(webconsole): add secret_level property inside query data (#20887) 2024-07-24 17:41:41 +08:00
Zexi Li
726251391e fix: webconsole display information control (#20884)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-24 17:38:49 +08:00
wanyaoqi
098a26160b Automated cherry pick of #20857: Manual cherrypick of #20852 to release/3.9 (#20858)
* fix(host): lvm disk create from backup

* fix(host): resolve confilct lvm create from backup
2024-07-22 15:12:37 +08:00
Zexi Li
b73b93c2b4 feat(host): add interface meta tags of netio metrics (#20782) 2024-07-12 10:18:42 +08:00
Zexi Li
9e05db4846 fix(baremetal): some tasks don't implement IServerBaseDeployTask interface (#20772) 2024-07-10 16:15:11 +08:00
屈轩
73111caf58 fix(region): optimized guest list speed (#20761) 2024-07-10 16:12:51 +08:00
wanyaoqi
329390f07a fix(host): disk reset with encryption (#20763) 2024-07-10 16:11:30 +08:00
Zexi Li
cf21ef26e0 fix(scheduler,baremetal): match RAID and PCIE storages in range (#20768)
The index of PCIE storages is not reindex when range is provided.
2024-07-09 11:12:01 +08:00
wanyaoqi
a0b56c038a fix(region,host): lvm snapshot reset and backup (#20717)
- 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:49:45 +08:00
Jian Qiu
7a34293068 feature: support baremetal profile (#20690)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-30 22:23:30 +08:00
wanyaoqi
0d2e7c3157 fix(region): login account allow startwith capital letter (#20672) 2024-06-27 20:50:43 +08:00
wanyaoqi
0c632a36fd fix(host): delete snapshot on guest deleted (#20643) 2024-06-26 21:19:17 +08:00
屈轩
0acb44d73b fix(region): snapshot policy update (#20655) 2024-06-26 18:09:31 +08:00
gouqi11
b61df821fa fix(region): fix snapshotpolicy create action (#20652)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-06-26 16:03:38 +08:00
wanyaoqi
a8e18cec36 Automated cherry pick of #20594: Fix/deploy reset password support loginaccount (#20597)
* fix(host): lvm resize add encrypt support

* fix(region): deploy reset password add loginaccount
2024-06-25 10:57:30 +08:00
Zexi Li
8e2ea908c5 fix(monitor): add difference tags for each series (#20621) 2024-06-22 22:06:23 +08:00
Zexi Li
fbaa21c67c fix(logger): add rejected action i18n translation (#20601) 2024-06-20 15:01:06 +08:00
Zexi Li
6b4a524704 feat(monitor): add reducer of AlertRecordRule (#20590) 2024-06-20 09:49:12 +08:00
Zexi Li
98e3d7fde9 feat(log): add i18n consts for itsm service (#20577) 2024-06-19 15:35:24 +08:00
Jian Qiu
469736380c fix: add predefined log policy (#20572)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-19 09:34:09 +08:00
wanyaoqi
78123575cc fix(region): insert iso sync guest status (#20543) 2024-06-16 22:59:54 +08:00
Jian Qiu
7da17468e1 fix: enable image cache cleanup by default (#20533)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-14 18:14:09 +08:00
gouqi11
7d55ca585a fix(notify): add mobile verify (#20522)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-06-13 18:59:50 +08:00
gouqi11
7a1b98b6f1 fix(notify): fix mobile validate (#20512)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-06-11 14:18:15 +08:00
wanyaoqi
911317dd01 fix(host): parse qga command and args (#20508) 2024-06-07 15:04:23 +08:00
wanyaoqi
d0a800208a fix(host-deployer): extend volume before extend filesystem (#20503) 2024-06-06 13:34:46 +08:00
Jian Qiu
7e4b352fb8 fix: disk backup details missing components (#20498)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-06 13:33:07 +08:00
Zexi Li
6b9ef0c926 feat(region,baremetal,climc): support baremetal root disk matcher (#20470) 2024-06-05 00:16:47 +08:00
屈轩
8646181751 fix(baremetal-agent): avoid dead lock (#20478) 2024-06-04 18:05:01 +08:00
wanyaoqi
b195999e17 fix(host-deployer): split guest dns by comma (#20451) 2024-06-03 19:15:52 +08:00
Zexi Li
69efb3a7b2 feat(monitor): remove precision of float when using max or min function (#20432) 2024-06-01 20:41:14 +08:00
wanyaoqi
ca7149dd7f fix(region): storagecacheresource panic on FetchCustomizeColumns (#20428) 2024-05-31 17:54:00 +08:00
gouqi11
e9871f4e9d fix(notify): message add medium tag (#20422)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-05-31 10:39:25 +08:00
Jian Qiu
4f55172d6a fix: haproxy check parammeters with default value (#20418)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-31 10:20:35 +08:00
wanyaoqi
065138b504 fix(region,host): slvm default deactivate on hosts (#20380) 2024-05-30 15:03:36 +08:00
gouqi11
a84da849a6 fix(notify): change receiver owner (#20400)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-05-30 11:47:12 +08:00
Zexi Li
ed67fcc159 feat(climc): feature config (#20397) 2024-05-30 10:48:39 +08:00
Zexi Li
c8c5bf9e84 fix(host): wrap disk probed error (#20387) 2024-05-29 17:44:20 +08:00
Zexi Li
2dfc84fbdf fix(monitor): detach alert (#20376) 2024-05-28 10:00:39 +08:00
Zexi Li
97ecac0230 fix(monitor): multiple monitor resource alert (#20368) 2024-05-27 15:45:14 +08:00
wanyaoqi
baef6e919c fix(host): resize lvm disk (#20316) 2024-05-20 10:49:35 +08:00
Jian Qiu
65e12adada fix: vpc network no resulve.conf (#20305)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-16 17:08:25 +08:00
Jian Qiu
a5e4e5aa65 fix: hostbackupstorage climc subcmds (#20287)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-15 18:03:30 +08:00
wanyaoqi
5c3d901547 fix(region,host): slvm misc fix (#20272) 2024-05-15 10:45:42 +08:00
wanyaoqi
73f86fc44a fix(region): return origin error on fetch joint item failed (#20249) 2024-05-13 17:51:14 +08:00
Jian Qiu
e18ee04afb fix: ceph stats backward compatible with ceph 12.x (#20222)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-10 14:55:20 +08:00
Jian Qiu
8c61d0090b fix: storagecachedimages details speedup (#20231)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-10 14:53:43 +08:00
Jian Qiu
27943ed5e5 fix: cachedimage sync tenant_id (#20238)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-10 14:52:51 +08:00
屈轩
6259f71228 fix(region): zstack shared block storage (#20227) 2024-05-09 14:25:59 +08:00
Jian Qiu
3188808dec Automated cherry pick of #20209: feature: automatically clean obsolete images from host iamge cache (#20223)
* feature: automatically clean obsolete images from host iamge cache

* minor fixes

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-09 12:11:09 +08:00
wanyaoqi
9f74455d88 fix(host): ignore disk not found on disk delete handler (#20176) 2024-04-30 07:14:45 +08:00
Zexi Li
3a05432746 fix(monitor): multiple metrics query of alert (#20170) 2024-04-28 19:06:00 +08:00
Zexi Li
b9c26518a5 feat(monitor): support multiple metrics alert (#20159) 2024-04-28 11:36:04 +08:00
wanyaoqi
08cad45aea Automated cherry pick of #20152: Fix/host misc fix 0425 (#20153)
* 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:44 +08:00
Zexi Li
467c755036 fix(monitor): alert panic (#20149) 2024-04-26 12:19:17 +08:00
Zexi Li
0d0680b0ea fix(monitor): filter alerts by monitor_resource_id (#20136) 2024-04-25 17:06:59 +08:00
Zexi Li
c893c71e8a fix(monitor): query monitor_resource_alert by monitor_resource_id is not working (#20132) 2024-04-25 15:49:05 +08:00
Jian Qiu
d4016f744f fix: guest stop revisit (#20094)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-22 14:51:48 +08:00
wanyaoqi
c19d970b33 fix(regin,host): delete snapshots after stream complete (#20086) 2024-04-19 18:27:47 +08:00
Jian Qiu
61637e7000 fix: backup storage access containd by hosts (#20064)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-19 07:21:03 +08:00
屈轩
8af82884bc fix(region): avoid skip zone purge (#20067) 2024-04-18 15:39:29 +08:00
屈轩
b2cfdd4166 fix(region): vendor update for code generate (#20060) 2024-04-18 13:22:56 +08:00
Zexi Li
0f6b24a88b Merge pull request #20016 from wanyaoqi/automated-cherry-pick-of-#20013-upstream-release-3.10
Automated cherry pick of #20013: fix(region,host): custom device model add auto detect option
2024-04-17 10:28:09 +08:00
Zexi Li
e4df4f2605 Merge pull request #19993 from wanyaoqi/fix/host-sriov-bond
fix(host): sriov bond
2024-04-17 10:26:22 +08:00
wanyaoqi
27d7b39f8a fix(region,host): custom device model add auto detect option
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-04-16 19:55:06 +08:00
Zexi Li
6a887329a1 Merge pull request #20000 from swordqiu/automated-cherry-pick-of-#19996-upstream-release-3.10
Automated cherry pick of #19996: fix: disk post create not inherit upper class
2024-04-16 18:20:57 +08:00
Zexi Li
4dfcc5f7ac Merge pull request #20028 from wanyaoqi/automated-cherry-pick-of-#20025-upstream-release-3.10
Automated cherry pick of #20025: fix(host): fix gpu device vendor check strategy
2024-04-16 18:19:48 +08:00
Zexi Li
edb7dc288f Merge pull request #20009 from swordqiu/automated-cherry-pick-of-#20006-upstream-release-3.10
Automated cherry pick of #20006: fix: fail to create encrypted nfs disk
2024-04-16 16:00:54 +08:00
wanyaoqi
6a9a551169 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:57:40 +08:00
Qiu Jian
4762650665 fix: fail to create encrypted nfs disk 2024-04-16 00:19:01 +08:00
Qiu Jian
1d4e6511eb fix: disk post create not inherit upper class 2024-04-15 21:47:44 +08:00
屈轩
fe50664353 fix(image): set image upload download timeout 4 hour (#19979) 2024-04-15 10:14:01 +08:00
wanyaoqi
0fe7bbec46 fix(host): init from existing guest load cpuset 2024-04-12 19:21:20 +08:00
wanyaoqi
ec863b29aa fix(host): detect sriov bond nics 2024-04-12 17:33:38 +08:00
Jian Qiu
e920b6bcdf fix: netplan empty bond address @ release/3.10 (#19951)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-11 18:11:52 +08:00
屈轩
52aac7072f fix(region): vendor update (#19949) 2024-04-11 15:06:59 +08:00
屈轩
9727232aab fix(region): avoid purge zone (#19939) 2024-04-11 14:01:57 +08:00
Zexi Li
906635d954 Merge pull request #19928 from swordqiu/hotfix/qj-disable-disk-serial-for-esxi-3.10
fix: disable disk serial for esxi vm on release/3.10
2024-04-11 11:35:00 +08:00
Qiu Jian
12c3369a56 fix: disable disk serial for esxi vm on release/3.10 2024-04-11 01:16:07 +08:00
屈轩
d7bd82d534 fix(region): avoid purge regions (#19925) 2024-04-10 17:06:18 +08:00
wanyaoqi
fedc88762b Automated cherry pick of #19844: feat: lvm snapshots (#19893)
* fix(region,host): remove snapshot fake delete state

* feat(region,host): lvm snapshot support
2024-04-08 02:56:04 +08:00
Jian Qiu
d493013428 fix: fail to detect lv by megacli64 and storecli (#19882)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-08 00:27:13 +08:00
屈轩
f960354c76 fix(region): prepare regions by prefix (#19874) 2024-04-03 10:15:19 +08:00
屈轩
aee1d8be2a fix(region): total count rds by zone id (#19868) 2024-04-02 20:33:01 +08:00
屈轩
9fa7b7ffd2 fix(region): vendor update for region sync (#19865) 2024-04-02 20:22:29 +08:00
gouqi11
37eb481e3e fix(notify): clean notificationGroup after send (#19860)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-04-02 18:40:20 +08:00
Zexi Li
6402b79c65 Merge pull request #19852 from swordqiu/automated-cherry-pick-of-#19850-upstream-release-3.10
Automated cherry pick of #19850: fix: idp list query filter by sso_domain
2024-04-02 10:36:12 +08:00
Qiu Jian
a43fe54154 fix: idp list query filter by sso_domain 2024-04-02 01:30:51 +08:00
屈轩
0a11bdf8fb fix(region): billing resource check (#19842) 2024-04-01 10:06:23 +08:00
Zexi Li
96526ad6a0 Merge pull request #19832 from wanyaoqi/automated-cherry-pick-of-#19830-upstream-release-3.10
Automated cherry pick of #19830: fix(host-deployer): deploy guest arm kernel path fix
2024-03-29 16:15:19 +08:00
wanyaoqi
9220554156 fix(host-deployer): deploy guest arm kernel path fix 2024-03-29 16:13:24 +08:00
屈轩
bb071ea46d fix(region): vendor update (#19828) 2024-03-29 10:38:05 +08:00
屈轩
48506a293b fix(region): cloudpods region sync (#19822) 2024-03-28 15:33:46 +08:00
Zexi Li
f1a163702d Merge pull request #19811 from wanyaoqi/automated-cherry-pick-of-#19803-upstream-release-3.10
Automated cherry pick of #19803: fix(host): delete lvm disk active first
2024-03-27 20:23:34 +08:00
屈轩
5044c06e59 fix(region): avoid panic (#19817) 2024-03-27 15:05:22 +08:00
wanyaoqi
7ca2f7b3ce fix(host): resize slvm disk 2024-03-26 22:56:39 +08:00
wanyaoqi
78c7cb32ad fix(host): delete lvm disk active first 2024-03-26 22:56:39 +08:00
Jian Qiu
876eda36ea fix: create lb listener rules fail due to domain not found (#19787)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-26 09:49:45 +08:00
wanyaoqi
01bd3b3c56 fix(ansibleserver): update file repo (#19774) 2024-03-26 09:48:37 +08:00
Jian Qiu
5772b2a3fa fix: server skus ignore seting SetModelManager (#19779)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-26 09:47:31 +08:00
屈轩
94fd886cda fix(vpcagent): signal killed (#19763) 2024-03-22 09:37:39 +08:00
屈轩
3a5b215731 fix(vpcagent): prevent the security group deletion rule from taking effect (#19760) 2024-03-21 20:39:23 +08:00
屈轩
36f873ef4b fix(notify): simplify receiver api (#19766) 2024-03-21 20:07:45 +08:00
Zexi Li
78daf104b0 Merge pull request #19732 from wanyaoqi/automated-cherry-pick-of-#19730-upstream-release-3.10
Automated cherry pick of #19730: fix(region,host): lvm storage misc fix
2024-03-21 19:53:41 +08:00
屈轩
ee02051ce0 fix(region): skip set lost name when purge deleted vm (#19754) 2024-03-20 18:20:13 +08:00
屈轩
66bd2a10f9 fix(region): support create vmware vm with desc (#19741) 2024-03-18 09:47:22 +08:00
wanyaoqi
f8df78755c fix(region,host): lvm storage misc fix
- add some lvm storage create check
- fix slvm storage image cache not correct

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-03-14 22:16:02 +08:00
屈轩
1b237ce01c fix(esxi-agent): create vmware vm with suitable version (#19727) 2024-03-14 15:54:31 +08:00
Zexi Li
5d010d9097 Merge pull request #19713 from wanyaoqi/automated-cherry-pick-of-#19711-upstream-release-3.10
Automated cherry pick of #19711: fix(host): gpu probe check vendor is amd or nvidia
2024-03-13 20:06:24 +08:00
Zexi Li
5c3b8805f1 Merge pull request #19716 from swordqiu/automated-cherry-pick-of-#19714-upstream-release-3.10
Automated cherry pick of #19714: fix: tag filter with no value revisit
2024-03-13 20:05:11 +08:00
屈轩
4fab709e03 fix(region): filter disks by guest status (#19722) 2024-03-13 19:10:58 +08:00
屈轩
0fb3bcccf4 fix(region): avoid panic when network is nil (#19719) 2024-03-13 11:58:54 +08:00
Qiu Jian
df3be7a101 fix: tag filter with no value revisit 2024-03-12 22:06:34 +08:00
wanyaoqi
96d67a6833 fix(host): gpu probe check vendor is amd or nvidia 2024-03-12 21:38:08 +08:00
屈轩
154433943c fix(region): avoid duplicate vm name (#19707) 2024-03-12 15:50:17 +08:00
Jian Qiu
a4567fb721 fix: host-deploy options struct consistent with host options (#19696)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-12 13:35:55 +08:00
Zexi Li
8436e27831 Merge pull request #19690 from swordqiu/automated-cherry-pick-of-#19688-upstream-release-3.10
Automated cherry pick of #19688: fix: make authManager a singleton
2024-03-12 10:49:35 +08:00
屈轩
24c2c0846e fix(region): avoid update network dns panic (#19699) 2024-03-11 10:57:53 +08:00
Qiu Jian
771304a2f4 fix: make authManager a singleton 2024-03-10 10:09:39 +08:00
Jian Qiu
5969e2b20c fix: webconsole command log empty opstime (#19684)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-10 07:24:47 +08:00
Jian Qiu
c9ce8f9930 fix: vpcagent always do full sync, disable incremental sync (#19630)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-10 07:23:38 +08:00
wanyaoqi
f0e3fcf3a2 fix(host): qga set network flush ipv4 address (#19673) 2024-03-10 07:22:40 +08:00
屈轩
6e93cf13fe fix(region): vendor update for qcloud nat sync (#19678) 2024-03-08 18:13:48 +08:00
Zexi Li
509f838827 Merge pull request #19666 from swordqiu/hotfix/qj-always-add-static-routes
fix: always add static routes for default nic
2024-03-07 10:04:33 +08:00
Qiu Jian
a81f05cedc fix: always add static routes for default nic 2024-03-06 19:35:05 +08:00
屈轩
bf22a4fa22 fix(region): vendor update for sync azure network cidr (#19663) 2024-03-06 18:08:27 +08:00
Jian Qiu
a2cd574870 fix: donot use insertOrUpdate for create joint resources (#19652)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-06 02:24:06 +08:00
wanyaoqi
61103acb4a fix(host-deployer): support deploy encrypted disk (#19641) 2024-03-06 02:23:15 +08:00
wanyaoqi
76a5e1c6da fix(host): backup guest dirty shutdown (#19622)
backup guest dirty shutdown master request sync status,
slave request dirty start.
2024-03-06 02:21:57 +08:00
wanyaoqi
229544d14e feat(region,host): support shared driver by lvmlockd (#19617) 2024-03-06 02:20:31 +08:00
屈轩
dabb647d94 fix(region): dissociate eip when vm deleted (#19648) 2024-03-05 18:35:56 +08:00
屈轩
1fbadd5bcb fix(region): sync account project (#19645) 2024-03-05 17:18:25 +08:00
屈轩
0633063fc0 fix(region): compatible with v3.9 vm cdrom (#19638) 2024-03-05 15:57:00 +08:00
Zexi Li
b1fe1f6ff0 Merge pull request #19633 from swordqiu/automated-cherry-pick-of-#19631-upstream-release-3.10
Automated cherry pick of #19631: fix: tokenCache newInformer fail
2024-03-05 10:29:57 +08:00
Qiu Jian
20937a79e3 fix: tokenCache newInformer fail 2024-03-05 00:30:40 +08:00
屈轩
15d8af61d6 fix(region): vendor update for azure associate type (#19626) 2024-03-04 20:09:22 +08:00
gouqi11
06f54776de fix(influxdb): support set timeout (#19601)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-03-03 10:48:00 +08:00
屈轩
7c1eee7f9f fix(region): raw query with delete-all options (#19605) 2024-03-01 19:36:40 +08:00
屈轩
9bdc4617e5 fix(cloudmon): collect metric with project tags (#19599) 2024-03-01 16:46:22 +08:00
屈轩
4fcdf8476f fix(region): avoid sync huawei lb backend panic (#19591) 2024-03-01 10:41:37 +08:00
屈轩
2a04dea345 fix(region): ctyun api page size must le 50 (#19586) 2024-02-29 18:20:45 +08:00
屈轩
c06c3b4a1b fix(region): skip sync apsara expired time (#19581) 2024-02-29 16:08:19 +08:00
屈轩
40e44b1828 fix(keystone): domain-list with delete-all options (#19578) 2024-02-29 16:06:20 +08:00
屈轩
74eba501d4 fix(notify): add capability for notify config (#19572) 2024-02-29 14:36:36 +08:00
wanyaoqi
abc4558b24 Automated cherry pick of #19547: Fix/create from iso set os distro (#19549)
* fix(region): iso guest copy image props to metadata

* fix(region): always run host ping detect task
2024-02-28 14:16:49 +08:00
Jian Qiu
cf5208c9c5 fix: backport cephutils to 3.10/3.9 (#19545)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-02-28 14:02:59 +08:00
wanyaoqi
1e88f4cd24 Automated cherry pick of #19558: Fix/guest image live migrate (#19560)
* fix(host): slvm storage active on init

* fix(region): guest live migrate cache all of guestimage caches
2024-02-28 11:32:14 +08:00
Zexi Li
8f1f82e05c Merge pull request #19561 from zexi/sched-queue-key
fix(scheduler): unsued key
2024-02-28 10:59:53 +08:00
Zexi Li
0051cc6aae fix(scheduler): unsued key 2024-02-28 10:24:46 +08:00
wanyaoqi
bb25345eaf fix(host): load guest desc hpet and video1 dev (#19532) 2024-02-24 07:51:44 +08:00
Jian Qiu
309af994d8 fix: support OpenCloudOS, OpenKylin, Alma, UOSDesktop (#19529)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-02-24 07:50:14 +08:00
gouqi11
220a908707 fix(util): fix excelutils set emptu cell (#19526)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-02-22 19:55:34 +08:00
屈轩
26dbb92fda fix(region): vendor update for qcloud nat status (#19514) 2024-02-20 16:01:48 +08:00
wanyaoqi
112f4ebfc3 fix(host): script start guest donot force restart on monitor timeout (#19502) 2024-02-19 20:52:20 +08:00
wanyaoqi
0bb4fb9944 feat(region,host): guest numa allocate (#19400) 2024-02-18 19:35:05 +08:00
屈轩
e9a29645eb fix(region): vendor update for openstack https support (#19495) 2024-02-18 10:22:47 +08:00
Jian Qiu
3253857e94 fix: invalid token request too frequent (#19490)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-02-17 19:00:22 +08:00
Jian Qiu
0ba359589a fix: sync error (#19414)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-02-10 16:32:56 +08:00
wanyaoqi
051025e944 fix(host-deployer): elfherader fd leak (#19473) 2024-02-08 14:11:00 +08:00
屈轩
8462776b4d fix(region): add read only filter for account and provider (#19470) 2024-02-07 15:33:08 +08:00
wanyaoqi
c0efb08381 fix(host-deployer): xfs unlock panic (#19456) 2024-02-06 00:31:45 +08:00
屈轩
79a5e8063c fix(region): qcloud disks delete when vm deleted (#19454) 2024-02-05 17:54:55 +08:00
屈轩
90265c3191 fix(region): cloudpods deploy api (#19448) 2024-02-05 11:23:49 +08:00
Jian Qiu
95d93f80de Automated cherry pick of #19440: fix: tenant cache sync deleted projects (#19442)
* fix: tenant cache sync deleted projects

* remove user sync

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-02-05 08:45:31 +08:00
屈轩
8e836e5baf fix(region): avoid filesystem sync error (#19437) 2024-02-04 15:20:53 +08:00
gouqi11
319ac1b782 fix(scheduledtask): fix deletedResource task (#19429)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-02-04 10:42:58 +08:00
Zexi Li
fa1c6de647 Merge pull request #19421 from wanyaoqi/fix/host-memobj-miss-size
fix(host): init from guest mem obj miss size
2024-02-02 16:53:31 +08:00
wanyaoqi
fe7412761a fix(host): init from guest mem obj miss size 2024-02-02 16:41:25 +08:00
Jian Qiu
5d895393d2 fix: sync unknown guest status when host ping (#19383)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-02-01 10:57:32 +08:00
屈轩
e0d967b85d fix(common): auto disable 3des cipher suites (#19393) 2024-02-01 10:57:13 +08:00
Zexi Li
a75e24d2f2 Merge pull request #19365 from swordqiu/automated-cherry-pick-of-#19363-upstream-release-3.10
Automated cherry pick of #19363: fix: validate policy violation when assign users for oidc IDP
2024-01-28 21:58:58 +08:00
Qiu Jian
9fcde5f2cc fix: validate policy violation when assign users for oidc IDP 2024-01-27 18:17:48 +08:00
Zexi Li
2c0e7fd689 fix(apigateway): ignore empty rows when registering baremetal host (#19353) 2024-01-27 18:16:23 +08:00
wanyaoqi
e15d5332ba fix(host-deployer): escape back quote (#19358) 2024-01-27 08:10:40 +08:00
Zexi Li
d2b21b9374 Merge pull request #19348 from wanyaoqi/automated-cherry-pick-of-#19347-upstream-release-3.10
Automated cherry pick of #19347: fix(host-deployer): check sshclient is nil on disconnect
2024-01-26 16:04:13 +08:00
wanyaoqi
5f4e8d2d3d fix(host-deployer): check sshclient is nil on disconnect 2024-01-26 12:10:29 +08:00
Zexi Li
f1448fda84 Merge pull request #19345 from zexi/fix-pkg-version
fix(vendor): fixed yunion.io/x/pkg version to v1.10.0
2024-01-25 20:26:09 +08:00
Zexi Li
f9631dceba fix(vendor): fixed yunion.io/x/pkg version to v1.10.0 2024-01-25 20:16:08 +08:00
Zexi Li
c8f025f9c1 Merge pull request #19342 from zexi/sched-projects
optimized(scheduler): remove fillResidentTenants function loading data from db
2024-01-25 17:10:44 +08:00
Zexi Li
6da2cbcb2b optimized(scheduler): remove fillResidentTenants function loading data from db 2024-01-25 16:52:10 +08:00
Zexi Li
2615b0282a Merge pull request #19334 from zexi/bm-h3c
fix(baremetal): hardcode h3c ipmi lan channel to 1
2024-01-25 15:49:29 +08:00
Zexi Li
de266f79b9 fix(baremetal): hardcode h3c ipmi lan channel to 1 2024-01-25 11:52:06 +08:00
Zexi Li
8f3eb73ffd Merge pull request #19314 from zexi/upgrade-telegraf-raid-plugin
fix(build): use telegraf-raid-plugin:release-1.6.5
2024-01-22 16:59:12 +08:00
Zexi Li
3accf7f3ae fix(build): use telegraf-raid-plugin:release-1.6.5 2024-01-22 16:48:14 +08:00
屈轩
95f577c4c1 fix(region): eip sync with project (#19303) 2024-01-19 14:04:22 +08:00
gouqi11
dc916a3282 fix(region): add public_cloud_provider list (#19288)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-01-18 10:48:59 +08:00
Jian Qiu
fbb82f84c7 fix: try resolve tenant by project id first (#19278)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-01-17 00:28:41 +08:00
Jian Qiu
877bd56198 fix: automatically refresh invalid admin token (#19274)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-01-17 00:28:08 +08:00
屈轩
648c5eb21c fix(region): vendor update for pve vm sync (#19267) 2024-01-16 15:34:52 +08:00
屈轩
b155224e3a fix(region): esxi vm create with tags (#19264) 2024-01-16 14:25:58 +08:00
屈轩
6f0372f8e8 fix(region): avoid duplicate cachedimage insert (#19256) 2024-01-15 18:30:49 +08:00
wanyaoqi
331b87df8b fix(host-deployer): add growpart resize partitions (#19246) 2024-01-15 12:14:03 +08:00
wanyaoqi
0b496af99b fix(host-deployer): add cmdline vsyscall=emulate on ramfs guest (#19222)
deploy fs on older system like centos 6, need emulate vsyscall.
otherwise will get error like:
    Code: Unable to access opcode bytes at 0xffffffffff6003d6.
2024-01-11 05:44:17 +08:00
Jian Qiu
61d5207105 fix: verbose api helper params (#19221)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-01-11 05:43:45 +08:00
Jian Qiu
7c9a8e80a7 fix: verbose api helper params (#19219)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-01-11 05:43:35 +08:00
wanyaoqi
f4a0da91a6 feat(region,host): shared lvm storage (#19177) 2024-01-10 23:25:35 +08:00
Zexi Li
24d75f3736 Merge pull request #19197 from wanyaoqi/automated-cherry-pick-of-#19196-upstream-release-3.10
Automated cherry pick of #19196: fix(host): host-agent register skip upload vf nics
2024-01-10 10:28:32 +08:00
Zexi Li
873518d98a Merge pull request #19215 from wanyaoqi/fix/host-deployer-guest-mem-size
fix(host-deployer): deploy params has special char
2024-01-10 10:27:05 +08:00
wanyaoqi
323a9890f8 fix(host-deployer): deploy params has special char 2024-01-09 23:01:20 +08:00
屈轩
c1202e6b4c fix(region): skip sync used ip addr (#19209) 2024-01-09 17:50:36 +08:00
屈轩
86209f23a1 fix(region): image project tags (#19212) 2024-01-09 17:50:02 +08:00
屈轩
4a68beb063 fix(region): skip clear secgroup when delete vm (#19201) 2024-01-09 16:59:20 +08:00
wanyaoqi
e03f259dd6 fix(host): host-agent register skip upload vf nics 2024-01-08 23:13:32 +08:00
屈轩
5649535c8d fix(region): support aliyun essd entry (#19186) 2024-01-08 11:18:11 +08:00
wanyaoqi
ca75c9804a fix(host): host register set isinit false on hostId not null (#19153)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-01-02 14:00:55 +08:00
Jian Qiu
3c63350d7c fix: qmp free port test (#19150)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-01-02 14:00:12 +08:00
wanyaoqi
15816b90f5 fix(region): ovs offload interface get ifname from isolated devices tlb (#19145)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-12-31 12:30:05 +08:00
Jian Qiu
93372985e3 fix: network update params backport 3.10 (#19144)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-12-31 11:59:09 +08:00
Jian Qiu
7467605d48 fix: deploy user ssh keypair for user account only (#19135)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-12-30 16:56:49 +08:00
Zexi Li
de0061a848 Merge pull request #19131 from swordqiu/automated-cherry-pick-of-#19129-upstream-release-3.10
Automated cherry pick of #19129: fix: avoid megacli hang on adpallinfo
2023-12-29 16:37:16 +08:00
Qiu Jian
de0230dc1d fix: avoid megacli hang on adpallinfo 2023-12-28 22:16:59 +08:00
gouqi11
e9d111f073 fix(monitor): fix alertRecord manager (#19119)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-12-27 17:30:54 +08:00
Jian Qiu
f6c23817a6 fix: backport network avaialble addresses (#19112)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-12-26 20:43:37 +08:00
wanyaoqi
8e6d5a16e3 fix(region,host-deployer): qga os distribution format (#19107)
host-deployer fix xfs mount error

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-12-26 20:15:10 +08:00
Jian Qiu
5babce8322 fix: delete server will purge instance backups (#19104)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-12-26 15:44:50 +08:00
wanyaoqi
0e43e81dfc feat(region,host): guest sync os info (#19098) 2023-12-26 12:49:17 +08:00
Zexi Li
08e594819d Merge pull request #19088 from zexi/cp-18190
fix(hostman): try to deploy telegraf via systemd
2023-12-23 11:46:13 +08:00
Zexi Li
948dd7f779 fix(hostman): try to deploy telegraf via systemd
cherry pick https://github.com/yunionio/cloudpods/pull/18190
2023-12-22 19:42:11 +08:00
屈轩
f7ea547bc7 fix(region): change storage_size from int to int64 (#19087) 2023-12-22 18:36:21 +08:00
Zexi Li
a780425627 Merge pull request #19082 from wanyaoqi/fix/host-deployer-init-qemu-driver
fix(host-deployer): check executor is enabled on init qemu driver
2023-12-22 17:31:52 +08:00
wanyaoqi
5a20a7baa8 fix(host-deployer): check executor is enabled on init qemu driver 2023-12-22 16:30:02 +08:00
屈轩
5339c8363b fix(region): optimized disk list (#19078) 2023-12-22 14:49:42 +08:00
Zexi Li
6a34dd7216 feat(baremetal-agent): support using tftp to download kernel and initrd (#19056) 2023-12-21 00:50:39 +08:00
屈轩
3b0324bc1f fix(region): vendor update for volcengine network and aws dnsrecords sync (#19063) 2023-12-20 11:35:16 +08:00
Zexi Li
0202907b2e Merge pull request #19048 from zhasm/automated-cherry-pick-of-#19046-upstream-release-3.10
Automated cherry pick of #19046: fix(docker): update dockerfile for ansible-base
2023-12-19 13:17:10 +08:00
Zhang Dongliang
13152e9595 fix(docker): update dockerfile for ansible-base 2023-12-19 13:08:52 +08:00
Zexi Li
c800e3ed13 Merge pull request #19033 from swordqiu/hotfix/qj-disable-pvpanic-dev
fix: disable pvpanic dev
2023-12-18 17:26:41 +08:00
Zexi Li
06bcfe340f Merge pull request #19031 from wanyaoqi/fix/host-deployer-config
fix(host-deployer): pass config files to deploy vm
2023-12-18 17:25:05 +08:00
Zexi Li
4efa4a6724 Merge pull request #19037 from wanyaoqi/fix/usb-device-id
fix(host): usb device hotplug
2023-12-18 17:23:02 +08:00
wanyaoqi
703ddee2ed fix(host-deployer): pass config files to deploy vm 2023-12-18 16:41:22 +08:00
Qiu Jian
cefd594d5f fix: disable pvpanic dev 2023-12-18 16:33:57 +08:00
wanyaoqi
33ec145d2a fix(host): hot add usb device 2023-12-18 15:26:56 +08:00
wanyaoqi
bef55edf9e fix(host): usb host device add device_id 2023-12-18 13:33:17 +08:00
gouqi11
e8879cc7f6 feat(region): add ip_addr for rds.GetShortDesc (#19023)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-12-16 16:38:10 +08:00
Zexi Li
9ee9bb5274 Merge pull request #19007 from zexi/sched-cloudprovider-sync
fix(scheduler): reload cloudprovider's hosts when syncing finished
2023-12-16 10:06:02 +08:00
Zexi Li
fff4824984 fix(scheduler): reload cloudprovider's hosts when syncing finished 2023-12-15 20:17:06 +08:00
Zexi Li
60d6f3da06 fix(cloudcommon): service config informer doesn't start watching (#19003) 2023-12-15 14:58:29 +08:00
Zexi Li
8784bebbde Merge pull request #18999 from wanyaoqi/fix/host-deployer-yunionos
fix(host-deployer): udpate yunionos, reduce yunionos memsize
2023-12-15 11:50:07 +08:00
wanyaoqi
d177d68359 fix(host-deployer): udpate yunionos, reduce yunionos memsize 2023-12-15 11:39:16 +08:00
屈轩
2a64576b87 fix(region): avoid duplicate rule name for gcp (#18991) 2023-12-14 11:23:42 +08:00
wanyaoqi
97826501d5 feat(region,host): clvm support (#18949) 2023-12-14 09:41:33 +08:00
Zexi Li
ce403d1503 Merge pull request #18984 from zexi/automated-cherry-pick-of-#18981-upstream-release-3.10
Automated cherry pick of #18981: fix(monitor): fetch measurements from victoriametrics
2023-12-13 19:47:33 +08:00
Zexi Li
43cfc6e87a fix(monitor): fetch measurements from victoriametrics 2023-12-13 19:07:27 +08:00
Zexi Li
7f856291c9 Merge pull request #18983 from zexi/automated-cherry-pick-of-#18908-upstream-release-3.10
Automated cherry pick of #18908: fix(monitor): map interval to step
2023-12-13 19:06:14 +08:00
Zexi Li
6a3fc188b5 fix(monitor): map interval to step 2023-12-13 19:04:36 +08:00
Zexi Li
90f73232f6 Merge pull request #18975 from zexi/monitor-mem-mig
fix(monitor): consider whether the target host is in source host of mem balancer
2023-12-13 13:38:07 +08:00
Zexi Li
d0fe863aae fix(monitor): consider whether the target host is in source host of mem balancer 2023-12-13 12:50:36 +08:00
Zexi Li
177148af92 Merge pull request #18971 from ioito/automated-cherry-pick-of-#18969-upstream-release-3.10
Automated cherry pick of #18969: fix(region): vendor update for gcp rebuild-root sys disk size and password login
2023-12-12 18:21:23 +08:00
ioito
0e81616ba3 fix(region): vendor update for gcp rebuild-root sys disk size and password login 2023-12-12 17:25:06 +08:00
Zexi Li
3c8f464e55 Merge pull request #18965 from wanyaoqi/fix/host-deployer-run-guest-on-host
fix(host-deployer): run guest on host and ignore no config file
2023-12-12 15:18:52 +08:00
wanyaoqi
ab9a6e523e fix(host-deployer): run guest on host and ignore no config file
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-12-12 14:52:51 +08:00
Zexi Li
439a2dc978 Merge pull request #18953 from swordqiu/automated-cherry-pick-of-#18951-upstream-release-3.10
Automated cherry pick of #18951: fix: ignore vm virtual ip changes
2023-12-12 09:34:36 +08:00
Qiu Jian
9374824060 fix: ignore vm virtual ip changes 2023-12-10 13:28:49 +08:00
Jian Qiu
1365fc6011 fix: host add a local config file (#18934)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-12-08 21:26:52 +08:00
屈轩
00004fb627 fix(region): support volc balance and gcp api retry (#18948) 2023-12-08 17:56:46 +08:00
Zexi Li
fe35f15395 Merge pull request #18940 from zexi/automated-cherry-pick-of-#18939-upstream-release-3.10
Automated cherry pick of #18939: fix(monitor): not add scope to query resource from region service
2023-12-08 12:41:58 +08:00
Zexi Li
0cd4376ef4 fix(monitor): not add scope to query resource from region service 2023-12-08 12:29:50 +08:00
Zexi Li
575bdd4b34 Merge pull request #18929 from swordqiu/automated-cherry-pick-of-#18927-upstream-release-3.10
Automated cherry pick of #18927: fix: no default fallback dns server
2023-12-08 10:47:19 +08:00
Zexi Li
dbe610dd99 Merge pull request #18931 from zexi/automated-cherry-pick-of-#18926-upstream-release-3.10
Automated cherry pick of #18926: feat(monitor): make simple-query API adapting victoriametrics and add monitor-unifiedmonitor-query command
2023-12-08 10:46:32 +08:00
Zexi Li
987a7fb476 feat(climc): add monitor-unifiedmonitor-query command 2023-12-08 10:06:08 +08:00
Zexi Li
eff7457860 fix(monitor): make simple-query API adapt to victoriametrics 2023-12-08 10:06:07 +08:00
Qiu Jian
35462d4b15 fix: no default fallback dns server 2023-12-08 01:18:10 +08:00
Zexi Li
6309663621 Merge pull request #18924 from ioito/automated-cherry-pick-of-#18922-upstream-release-3.10
Automated cherry pick of #18922: fix(region): cloudpods uefi and generate name
2023-12-07 16:41:15 +08:00
Zexi Li
a210ed0d26 Merge pull request #18916 from wanyaoqi/fix/host-deployer
Fix/host deployer
2023-12-07 16:40:05 +08:00
ioito
a4379cc29c fix(region): cloudpods uefi and generate name 2023-12-07 16:15:44 +08:00
wanyaoqi
ea9ce74767 fix(host-deployer): disconnect fix and concurrence control 2023-12-07 16:03:30 +08:00
wanyaoqi
91ca77a8a1 fix:(host-deployer): arm guest add gic version 2023-12-06 12:16:54 +08:00
Zexi Li
336b8548ab Merge pull request #18902 from zexi/specify-sqlchemy-version
fix(util): fixed yunion.io/x/sqlchemy version
2023-12-06 10:50:46 +08:00
Zexi Li
8200da5b2d fix(util): fixed yunion.io/x/sqlchemy version 2023-12-06 10:27:29 +08:00
Zexi Li
0b6805d68e Merge pull request #18899 from zexi/automated-cherry-pick-of-#18897-upstream-release-3.10
Automated cherry pick of #18897: fix(monitor): update vendor to support victoriametrics topk func
2023-12-05 18:23:39 +08:00
Zexi Li
f3894e3bf8 fix(monitor): update vendor to support victoriametrics topk func 2023-12-05 18:03:07 +08:00
Jian Qiu
83034ad10c fix: add index for token_cache_tbl to accelerate invalid token query (#18891)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-12-05 12:22:53 +08:00
wanyaoqi
faef1cd360 fix(host-deployer): qemu deployer without kvm support (#18876) 2023-12-05 07:07:58 +08:00
Zexi Li
09d0edc0b1 Merge pull request #18869 from ioito/automated-cherry-pick-of-#18867-upstream-release-3.10
Automated cherry pick of #18867: fix(region): vendor update
2023-12-04 15:26:09 +08:00
ioito
99dbaddb28 fix(region): vendor update 2023-12-04 15:00:39 +08:00
Zexi Li
567d1653d0 Merge pull request #18863 from wanyaoqi/fix/deploy-driver-options
fix(host-deployer,host): mv deploy driver option to common options
2023-12-04 14:35:12 +08:00
屈轩
48d62f88d3 fix(region): vendor update (#18862) 2023-12-04 14:26:22 +08:00
wanyaoqi
7969a10eaa fix(host-deployer,host): mv deploy driver option to common options 2023-12-04 14:13:46 +08:00
Zexi Li
a5fbdde0d6 Merge pull request #18856 from wanyaoqi/fix/qemu-deploy
Fix/qemu deploy
2023-12-04 10:35:37 +08:00
wanyaoqi
5ce9b93ceb fix(host-deployer): update base image and fix return errors 2023-12-04 01:40:24 +08:00
wanyaoqi
4ea36162fe feat(host-deployer): use qemu-kvm as default deploy dirver 2023-12-04 01:37:01 +08:00
boironic@gmail.com
b67d8fa8f3 feat(region): add guest rescue api && download initrd from baremetal tftp server && add baremetal agent ip finder & update pic address & support ip kernel config. 2023-12-04 01:37:01 +08:00
Zexi Li
f796b9567a fix(baremetal): disable probe access mac by redfish driver (#18844) 2023-12-03 15:17:43 +08:00
屈轩
03344ff697 fix(region): vendor update (#18850) 2023-12-01 17:03:25 +08:00
Zexi Li
6da80c333e Merge pull request #18848 from zexi/automated-cherry-pick-of-#18843-upstream-release-3.10
Automated cherry pick of #18843: feat(ci): use github action to check PR
2023-12-01 14:59:43 +08:00
Zexi Li
dca1c97972 feat(ci): use github action to check PR 2023-12-01 14:58:55 +08:00
wanyaoqi
47c94d2e21 fix(host): guest switch to backup (#18832) 2023-11-30 17:14:43 +08:00
Jian Qiu
2eff999f16 Revert "Feat/deploy guest (#18821)" (#18833)
This reverts commit 103f1cde8d.
2023-11-30 17:03:24 +08:00
wanyaoqi
103f1cde8d Feat/deploy guest (#18821)
* feat(region): add guest rescue api && download initrd from baremetal tftp server && add baremetal agent ip finder & update pic address & support ip kernel config.

* feat(host-deployer): use qemu-kvm as default deploy dirver

---------

Co-authored-by: boironic@gmail.com <boironic@gmail.com>
2023-11-30 16:49:53 +08:00
屈轩
58ac69e8ab fix(region): skip sync meta if no public cloud register (#18829) 2023-11-30 13:33:07 +08:00
Jian Qiu
71755ff812 fix: generalized metadata getter (#18809)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-29 09:04:31 +08:00
Zexi Li
9839864808 Merge pull request #18802 from swordqiu/automated-cherry-pick-of-#18800-upstream-release-3.10
Automated cherry pick of #18800: fix: customized show content of get-property
2023-11-28 10:09:52 +08:00
Qiu Jian
f8082b2f5b fix: customized show content of get-property 2023-11-28 09:14:57 +08:00
Zexi Li
4a15393d39 Merge pull request #18791 from wanyaoqi/fix/alloc-ovn-mapped-ip-addr-on-host-post-create
fix(region): alloc ovn_mapped_ip_addr on host post create
2023-11-27 19:07:20 +08:00
Zexi Li
5a26d1bb70 Merge pull request #18789 from swordqiu/automated-cherry-pick-of-#18787-upstream-release-3.10
Automated cherry pick of #18787: fix: cloud account update aliyun billing scope
2023-11-27 19:06:56 +08:00
wanyaoqi
d1333c61b6 fix(region): alloc ovn_mapped_ip_addr on host post create 2023-11-27 17:12:35 +08:00
Qiu Jian
014af79b79 fix: cloud account update aliyun billing scope 2023-11-27 01:26:28 +08:00
屈轩
a79cfcf9f9 fix(region): trim metadata key (#18781) 2023-11-24 22:17:36 +08:00
屈轩
60c960ed16 fix(region): vm filter by os dist (#18779) 2023-11-24 20:06:08 +08:00
屈轩
3c32a19364 fix(region): distinct os dist field (#18769) 2023-11-24 11:51:59 +08:00
Jian Qiu
892e5daf3b fix: hot add mem check for esxi vm (#18764)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-23 12:20:31 +08:00
Zexi Li
1dca2ff06d Merge pull request #18761 from swordqiu/automated-cherry-pick-of-#18757-upstream-release-3.10
Automated cherry pick of #18757: fix: hot add mem check for esxi vm
2023-11-23 10:15:40 +08:00
Qiu Jian
fc3403c82f fix: hot add mem check for esxi vm 2023-11-23 10:03:41 +08:00
Zexi Li
46223df7f0 Merge pull request #18748 from zexi/automated-cherry-pick-of-#18746-upstream-release-3.10
Automated cherry pick of #18746: fix(monitor): query multiple fileds from victoria-metrics
2023-11-21 18:08:03 +08:00
Zexi Li
ed3d4a13dc fix(monitor): query multiple fileds from victoria-metrics 2023-11-21 17:46:10 +08:00
屈轩
cd3d7aa248 fix(region): vendor update for aliyun tags (#18729) 2023-11-17 16:30:29 +08:00
gouqi11
a6ce80f4ae fix(notify): fix webhook brand (#18725)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-11-17 15:37:25 +08:00
Zexi Li
756a30dc6e Merge pull request #18718 from zexi/climc-completion
fix(climc): bash completion is not working
2023-11-17 12:33:22 +08:00
Zexi Li
281716df7a fix(climc): bash completion is not working 2023-11-17 11:42:59 +08:00
屈轩
e4a9734643 fix(region): vendor update (#18716) 2023-11-17 11:34:33 +08:00
屈轩
9e9c9dd2a2 fix(region): vendor update (#18713) 2023-11-17 10:15:03 +08:00
gouqi11
bce2d0a81f fix(region): fix db_dispatcher duplicate notify (#18700)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-11-15 17:02:51 +08:00
Jian Qiu
1f9e8729ec fix: update lb cluster with patch params (#18697)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-15 08:57:15 +08:00
Jian Qiu
c909d86eab fix: windows GPU vm should set hypervisor=off (#18692)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-15 08:56:56 +08:00
Jian Qiu
6b60b28fa6 fix: make host dhcp lease options global (#18684)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-15 08:55:40 +08:00
Jian Qiu
9d150a81b9 fix: host set nil metadata (#18689)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-15 08:54:46 +08:00
Zexi Li
b06051d6ca feat(region,climc): add set-os-info api (#18677) 2023-11-14 22:59:37 +08:00
Zexi Li
abeffed6f1 Merge pull request #18669 from wanyaoqi/fix/sriov-nic-change-bw
fix(host): sync sriov nic bw on change config
2023-11-14 20:25:18 +08:00
Zexi Li
ea9daa7246 fix(host): setup routes from start to end (#18672) 2023-11-14 17:55:50 +08:00
wanyaoqi
b58bc3e8cd fix(host): sync sriov nic bw on change config 2023-11-14 16:20:26 +08:00
Zexi Li
0082c1d6f2 Merge pull request #18665 from wanyaoqi/fix/instance_snapshot_fill_os_arch
fix(regin): instance snapshot create guest fill os arch
2023-11-14 14:47:29 +08:00
Zexi Li
0242872a28 Merge pull request #18668 from ioito/automated-cherry-pick-of-#18661-upstream-release-3.10
Automated cherry pick of #18661: fix(region): order by os dist
2023-11-14 14:45:03 +08:00
ioito
01aef4908b fix(region): order by os dist 2023-11-14 14:34:26 +08:00
wanyaoqi
eb4f7988f1 fix(regin): instance snapshot create guest fill os arch 2023-11-14 10:54:51 +08:00
Zexi Li
d862223feb fix(host): catch init error (#18655) 2023-11-13 21:03:12 +08:00
Zexi Li
8b89af2645 Merge pull request #18659 from zexi/automated-cherry-pick-of-#18634-upstream-release-3.10
Automated cherry pick of #18634: chore: unnecessary use of fmt.Sprintf d
2023-11-13 20:45:01 +08:00
guoguangwu
88e13652e7 chore: unnecessary use of fmt.Sprintf d
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-11-13 20:43:21 +08:00
Zexi Li
081401967a Merge pull request #18649 from swordqiu/automated-cherry-pick-of-#18644-upstream-release-3.10
Automated cherry pick of #18644: fix: extend gpu pci class codes
2023-11-13 19:19:54 +08:00
Qiu Jian
7efd8804c4 fix: extend gpu pci class codes 2023-11-13 17:47:34 +08:00
Zexi Li
e873c9c110 Merge pull request #18639 from wanyaoqi/fix/sriov-nic
fix(region,host): sriov nic hotplug and metrics fix
2023-11-13 17:02:20 +08:00
Zexi Li
2d5d96f035 Merge pull request #18636 from wanyaoqi/fix/change-config-set-traffic-limits
fix(region): change config check traffic limit params
2023-11-13 11:38:36 +08:00
wanyaoqi
450e73b3cf fix(region): change config check traffic limit params 2023-11-13 10:59:46 +08:00
wanyaoqi
6d926f2f28 fix(region,host): sriov nic hotplug and metrics fix 2023-11-13 00:33:34 +08:00
Zexi Li
d6bd2a60a9 Merge pull request #18545 from zexi/mig-victoria-metrics
feat(monitor,region,host,cloudmon): support VictoriaMetrics as TSDB backend
2023-11-10 16:05:41 +08:00
Zexi Li
518bd88463 feat(monitor,region,host,cloudmon): support VictoriaMetrics as TSDB backend 2023-11-10 15:32:49 +08:00
屈轩
0a6796c325 fix(region): vendor update (#18624) 2023-11-10 11:59:12 +08:00
Zexi Li
fcc80ec7b6 Merge pull request #18615 from ioito/automated-cherry-pick-of-#18613-upstream-release-3.10
Automated cherry pick of #18613: fix(region): pve cdrom with host info
2023-11-09 12:18:28 +08:00
ioito
c5225d2faa fix(region): pve cdrom with host info 2023-11-09 12:05:18 +08:00
屈轩
b9cec7e12b fix(region): avoid panic when sync aliyun redis (#18609) 2023-11-08 20:56:38 +08:00
屈轩
cfe9a91d83 fix(webconsole): pve vnc support (#18605) 2023-11-08 19:35:15 +08:00
Zexi Li
777094df4b fix(host): ignore error when add bridge ip address route (#18599) 2023-11-08 17:39:29 +08:00
屈轩
520816703e fix(region): clean invalid skus (#18596) 2023-11-07 21:16:54 +08:00
Zexi Li
86e470b51a Merge pull request #18586 from wanyaoqi/automated-cherry-pick-of-#18584-upstream-release-3.10
Automated cherry pick of #18584: fix(host-deployer): use sync.lock on nbd connect/disconnect
2023-11-07 15:40:26 +08:00
wanyaoqi
f3292e3159 fix(host-deployer): use sync.lock on nbd connect/disconnect 2023-11-07 15:30:58 +08:00
wanyaoqi
9afdbc97f5 fix(host): sync guest machine type on live migrate (#18580)
* fix(host): sync guest machine type on live migrate

* fix(host): checkout real anonymous pci devs on ensure pci address
2023-11-07 09:45:32 +08:00
wanyaoqi
8b4cc4686f fix(host-deployer): detach nbd device do not block main thread (#18576) 2023-11-07 07:22:05 +08:00
Zexi Li
181e066f18 Merge pull request #18571 from wanyaoqi/fix/live-migrate-storate-check
fix(host): live migrate ensure disk storate type
2023-11-06 16:47:53 +08:00
wanyaoqi
110d8ead1d fix(host): live migrate ensure disk storate type 2023-11-06 14:28:44 +08:00
Zexi Li
b5a7d7d732 Merge pull request #18567 from swordqiu/automated-cherry-pick-of-#18565-upstream-release-3.10
Automated cherry pick of #18565: fix: qemu disk set serial as disk_id
2023-11-05 11:45:02 +08:00
Qiu Jian
c71c27b389 fix: qemu disk set serial as disk_id 2023-11-04 18:50:19 +08:00
Zexi Li
a4078b8eb2 Merge pull request #18561 from swordqiu/automated-cherry-pick-of-#18559-upstream-release-3.10
Automated cherry pick of #18559: fix: host fail to migrate interface routes
2023-11-04 18:28:40 +08:00
Qiu Jian
2ea3866d22 fix: host fail to migrate interface routes 2023-11-03 23:58:51 +08:00
wanyaoqi
0f60bb60a1 fix(region,host): support traffic limit in change config (#18553) 2023-11-03 10:10:17 +08:00
Zexi Li
1b002d4059 Merge pull request #18551 from ioito/automated-cherry-pick-of-#18549-upstream-release-3.10
Automated cherry pick of #18549: fix(region): esxi vm resize disk online
2023-11-02 15:02:33 +08:00
Zexi Li
772f73f989 Merge pull request #18546 from wanyaoqi/fix/nbd-clean
fix(host-deployer): clean nbd mount on host-deployer start
2023-11-02 15:01:16 +08:00
ioito
f06a7bb50d fix(region): esxi vm resize disk online 2023-11-02 11:24:28 +08:00
wanyaoqi
da53640dea fix(host-deployer): clean nbd mount on host-deployer start 2023-11-01 20:42:09 +08:00
屈轩
7a9df5cbc9 fix(region): vendor update (#18542) 2023-11-01 19:13:44 +08:00
Zexi Li
dda64aadc6 Merge pull request #18529 from wanyaoqi/fix/live-migrate-numqueues
fix(host): live migrate pass disk num queues
2023-11-01 14:58:07 +08:00
wanyaoqi
fc5fc0a0d1 fix(host): live migrate pass disk num queues 2023-11-01 14:46:03 +08:00
Zexi Li
0b56ad1c3b Merge pull request #18526 from ioito/automated-cherry-pick-of-#18524-upstream-release-3.10
Automated cherry pick of #18524: fix(region): skip vm eip not found error log
2023-11-01 10:13:59 +08:00
Jian Qiu
7a9358abf3 fix: xfs zerofree (experimental) (#18528)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-01 09:45:59 +08:00
ioito
e5de9c8da3 fix(region): skip vm eip not found error log 2023-10-31 20:43:43 +08:00
Zexi Li
407890425a Merge pull request #18515 from wanyaoqi/fix/migrate-misc-fix
fix(host): detect blk dev numqueues and nics(no id) pci addresses
2023-10-31 20:17:29 +08:00
Zexi Li
28999f3047 Merge pull request #18520 from wanyaoqi/automated-cherry-pick-of-#18518-upstream-release-3.10
Automated cherry pick of #18518: fix(region): reduce local disk max size to 10T
2023-10-31 19:51:23 +08:00
Zexi Li
4102cbeffc Merge pull request #18509 from swordqiu/automated-cherry-pick-of-#18503-upstream-release-3.10
Automated cherry pick of #18503: fix: dhcp hostname not compatible with some os
2023-10-31 19:42:32 +08:00
wanyaoqi
6849cea0cb fix(region): reduce local disk max size to 10T 2023-10-31 19:40:58 +08:00
wanyaoqi
2ed6193bea fix(host): detect blk dev numqueues and nics(no id) pci addresses 2023-10-31 19:10:27 +08:00
屈轩
3bc1b86c2e fix(keystone): validate time_zone input (#18507) 2023-10-31 18:41:31 +08:00
Zexi Li
e6301db0c4 feat(apigateway): report running env (#18497) 2023-10-31 12:23:05 +08:00
Qiu Jian
5cf89f6abb fix: dhcp hostname not compatible with some os 2023-10-31 12:03:15 +08:00
Zexi Li
4d29d5213e Merge pull request #18480 from swordqiu/automated-cherry-pick-of-#18478-upstream-release-3.10
Automated cherry pick of #18478: fix: scheduler ping/pong response mime
2023-10-30 20:38:44 +08:00
屈轩
114e6029e3 fix(region): avoid hostname has '-' suffix (#18487) 2023-10-30 17:02:36 +08:00
Qiu Jian
5ba0243096 fix: scheduler ping/pong response mime 2023-10-30 13:17:30 +08:00
屈轩
c65dc71bee fix(region): kvm server cnt (#18471) 2023-10-27 19:39:29 +08:00
屈轩
b581934510 fix(region): vendor update (#18468) 2023-10-27 16:41:02 +08:00
Zexi Li
ab7c964a02 Merge pull request #18444 from swordqiu/automated-cherry-pick-of-#18442-upstream-release-3.10
Automated cherry pick of #18442: fix: support rocky linux guestfs
2023-10-27 10:03:59 +08:00
Zexi Li
5cb0a7e3b3 Merge pull request #18450 from ioito/automated-cherry-pick-of-#18448-upstream-release-3.10
Automated cherry pick of #18448: fix(region): 避免esxi vm没有被真正删除
2023-10-27 10:03:22 +08:00
ioito
7e7bece592 fix(region): 避免esxi vm没有被真正删除 2023-10-26 14:49:04 +08:00
Zexi Li
5c9de5b869 Merge pull request #18447 from ioito/automated-cherry-pick-of-#18445-upstream-release-3.10
Automated cherry pick of #18445: fix(region): fix #18397 esxi vm set tags
2023-10-26 12:11:54 +08:00
ioito
d63600dae5 fix(region): fix #18397 esxi vm set tags 2023-10-26 11:42:36 +08:00
Qiu Jian
44b3040afa fix: support rocky linux guestfs 2023-10-26 11:23:36 +08:00
Zexi Li
744c6faef6 Merge pull request #18435 from wanyaoqi/fix/misc-fix-20231025
Fix/misc fix 20231025
2023-10-26 10:07:49 +08:00
Zexi Li
6155e3f145 Merge pull request #18439 from ioito/automated-cherry-pick-of-#18434-upstream-release-3.10
Automated cherry pick of #18434: Hotfix/qx clean scheduler
2023-10-26 10:06:39 +08:00
ioito
9366a026de fix(region): 避免频繁清理调度器缓存 2023-10-26 09:58:49 +08:00
wanyaoqi
dcb387e28f fix(region): guest start check vcpu is enough 2023-10-25 23:49:12 +08:00
wanyaoqi
2d0c14bae6 fix(host): skip isolated device probe on kvm not support 2023-10-25 23:28:25 +08:00
wanyaoqi
b66ae45810 fix(region): rebuild root update guest bios 2023-10-25 23:17:24 +08:00
屈轩
223cc504c7 fix(region): fix cloudaccount sync projectMapping (#18433)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-10-25 20:53:51 +08:00
gouqi11
83ed29f683 feat(cloudmon): support lbMetric for MetricTypeDriver (#18431)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-10-25 20:38:07 +08:00
屈轩
55b61dc498 fix(region): vendor update (#18427) 2023-10-25 18:25:08 +08:00
Zexi Li
6f0a033e98 Merge pull request #18423 from wanyaoqi/fix/host-deployer-base-3-10
chore(host-deployer): update host-deployer base image
2023-10-25 14:58:58 +08:00
wanyaoqi
3d0bda2c70 chore(host-deployer): update host-deployer base image 2023-10-25 14:54:19 +08:00
Zexi Li
1873526254 Merge pull request #18418 from wanyaoqi/fix/live-migrate-misc
fix(host): live migrate misc fix
2023-10-25 10:20:41 +08:00
wanyaoqi
7fdcbadccf fix(host): live migrate misc fix 2023-10-25 01:57:08 +08:00
Zexi Li
05032c8a8c Merge pull request #18387 from swordqiu/automated-cherry-pick-of-#18385-upstream-release-3.10
Automated cherry pick of #18385: fix: capabilities brand revisit
2023-10-24 20:02:01 +08:00
Zexi Li
21fb74b500 Merge pull request #18403 from zexi/fetch-host-storage
fix(scheduler): fetch host storages directly
2023-10-24 14:37:22 +08:00
Zexi Li
95ce645ba0 fix(scheduler): fetch host storages directly 2023-10-24 14:24:39 +08:00
Zexi Li
5c92767b45 Merge pull request #18402 from ioito/automated-cherry-pick-of-#18400-upstream-release-3.10
Automated cherry pick of #18400: fix(region): aws eip not found error
2023-10-24 14:23:47 +08:00
ioito
1105e8dda1 fix(region): aws eip not found error 2023-10-24 13:28:02 +08:00
Zexi Li
153abe9ab9 Merge pull request #18395 from wanyaoqi/automated-cherry-pick-of-#18393-upstream-release-3.10
Automated cherry pick of #18393: fix(host-deployer): deploy qga conf according hypervisor
2023-10-23 11:43:05 +08:00
Zexi Li
2e80813917 Merge pull request #18383 from wanyaoqi/fix/live-migrate-disks1
fix(region,host): live migrate disk driver determines the migration mode
2023-10-23 11:17:53 +08:00
Zexi Li
2d1e9e546e Merge pull request #18391 from ioito/automated-cherry-pick-of-#18389-upstream-release-3.10
Automated cherry pick of #18389: fix(apigateway): baremetal usage
2023-10-23 11:17:24 +08:00
wanyaoqi
a97cebd50c fix(host-deployer): deploy qga conf according hypervisor 2023-10-23 10:49:43 +08:00
ioito
9cfc1f1ff0 fix(apigateway): baremetal usage 2023-10-23 10:38:38 +08:00
Qiu Jian
ca5d9accba fix: capabilities brand revisit 2023-10-23 10:16:51 +08:00
wanyaoqi
7763b99724 fix(region,host): live migrate disk driver determines the migration mode 2023-10-23 09:47:28 +08:00
wanyaoqi
8ff752a1b1 feat(region,host): cloudpods guest convert to kvm guest (#18379) 2023-10-23 09:26:01 +08:00
Zexi Li
e97c4c2a4c fix(scheduler): improve scheduler prefer and avoid tags strategy (#18374) 2023-10-20 20:46:26 +08:00
Zexi Li
8c51f87b0c Merge pull request #18367 from swordqiu/automated-cherry-pick-of-#18365-upstream-release-3.10
Automated cherry pick of #18365: fix: auto convert missing subformat images
2023-10-20 12:28:37 +08:00
Zexi Li
f69c11f1fe Merge pull request #18364 from swordqiu/automated-cherry-pick-of-#18362-upstream-release-3.10
Automated cherry pick of #18362: fix: fail to fetch admin ssh keypair
2023-10-20 10:35:28 +08:00
Qiu Jian
2ed4a3fffb fix: auto convert missing subformat images 2023-10-20 10:24:29 +08:00
Qiu Jian
efc732460e fix: fail to fetch admin ssh keypair 2023-10-20 05:42:26 +08:00
wanyaoqi
02f776459e fix(host-deployer): change netdev prefix to "en" on nics has different driver (#18329)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-10-18 20:40:36 +08:00
wanyaoqi
a0bea57624 fix(host): host register skip infiniband nic (#18337) 2023-10-18 20:40:16 +08:00
Jian Qiu
9e74ec08b2 fix: missing project mapping body (#18354)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-18 20:39:28 +08:00
Zexi Li
365745aa36 Merge pull request #18344 from swordqiu/automated-cherry-pick-of-#18342-upstream-release-3.10
Automated cherry pick of #18342: fix: unable to recognize anolis os
2023-10-18 15:00:41 +08:00
屈轩
c9d9b9e763 fix(climc): 避免climc交互模式下--help自动退出 (#18340) 2023-10-17 20:58:59 -05:00
Qiu Jian
c88bbc0ee4 fix: unable to recognize anolis os 2023-10-18 01:54:50 +08:00
Zexi Li
3961f2c282 Merge pull request #18324 from gouqi11/automated-cherry-pick-of-#18320-upstream-release-3.10
Automated cherry pick of #18320: fix(notify): fix role subscriber groupTimes
2023-10-17 12:24:26 +08:00
Zexi Li
36e058e0d9 Merge pull request #18327 from wanyaoqi/automated-cherry-pick-of-#18325-upstream-release-3.10
Automated cherry pick of #18325: fix(scheduler): isolated device predicate miss sriov nic
2023-10-17 11:51:26 +08:00
wanyaoqi
5dccbecbda fix(scheduler): isolated device predicate miss sriov nic 2023-10-16 16:23:05 +08:00
马鸿飞
098b22cc78 fix(notify): fix role subscriber groupTimes 2023-10-16 15:59:48 +08:00
屈轩
978c65dbc3 fix(keystone): policy result (#18286) 2023-10-13 07:41:25 +08:00
Jian Qiu
baa0be59cb fix: update vendor for edito retry (#18310)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-13 07:29:26 +08:00
Jian Qiu
ee28245380 fix: climc server-logininfo action (#18297)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-12 20:19:15 +08:00
屈轩
482a968ff4 fix(region): classify invalid access key error (#18306) 2023-10-12 20:18:01 +08:00
屈轩
47bfb85bd2 fix(region): avoid ctyun signature verification failed (#18303) 2023-10-12 19:08:52 +08:00
屈轩
539926256d fix(region): remove ctyun useless env paramenter (#18294) 2023-10-12 18:06:30 +08:00
Jian Qiu
2cdc71651b fix: update vendor 20231012 for sqlchemy (#18283)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-12 16:56:47 +08:00
Zexi Li
a2e4e09ab2 Merge pull request #18280 from gouqi11/automated-cherry-pick-of-#18267-upstream-release-3.10
Automated cherry pick of #18267: feat(notify): support db_dispatcher notify
2023-10-12 15:51:24 +08:00
马鸿飞
099eea3a98 feat(notify): support db_dispatcher notify 2023-10-12 15:40:46 +08:00
Zexi Li
41c65d48fc Merge pull request #18277 from ioito/automated-cherry-pick-of-#18275-upstream-release-3.10
Automated cherry pick of #18275: fix(region): use project sshkeypair to ssh vm
2023-10-12 15:27:21 +08:00
wanyaoqi
94a37dff10 fix(host): check qga connect is closed (#18273) 2023-10-12 14:49:14 +08:00
ioito
0ed4212a03 fix(region): use project sshkeypair to ssh vm 2023-10-12 14:24:16 +08:00
Zexi Li
37dcf8ce01 Merge pull request #18269 from wanyaoqi/fix/host-deployer-base-image
fix(host-deployer): update host-deployer base image
2023-10-12 10:41:05 +08:00
wanyaoqi
7df3d297e4 fix(host-deployer): update host-deployer base image 2023-10-11 22:57:01 +08:00
Zexi Li
d2c3df38ea Merge pull request #18266 from ioito/automated-cherry-pick-of-#18264-upstream-release-3.10
Automated cherry pick of #18264: fix(region): dns record cname check
2023-10-11 18:09:35 +08:00
屈轩
99202cef4d fix(region): wait vm deleted (#18263) 2023-10-11 17:19:31 +08:00
Zexi Li
2560508aa7 Merge pull request #18256 from zexi/automated-cherry-pick-of-#18254-upstream-release-3.10
Automated cherry pick of #18254: feat(region): filter server ip_addrs by REGEXP
2023-10-11 17:19:01 +08:00
ioito
252adf3e94 fix(region): dns record cname check 2023-10-11 17:12:43 +08:00
Zexi Li
3fbcd736e8 Merge pull request #18252 from swordqiu/automated-cherry-pick-of-#18250-upstream-release-3.10
Automated cherry pick of #18250: fix: guest start params revisit
2023-10-11 17:11:18 +08:00
Zexi Li
80468dbc95 feat(region): filter server ip_addrs by REGEXP 2023-10-11 17:03:57 +08:00
屈轩
82b799abb7 fix: vendor update (#18259) 2023-10-11 16:23:47 +08:00
Qiu Jian
1c987e75bf fix: guest start params revisit 2023-10-11 05:57:10 +08:00
Zexi Li
7d8b4cd9b5 Merge pull request #18248 from zexi/automated-cherry-pick-of-#18246-upstream-release-3.10
Automated cherry pick of #18246: fix(monitor): select host that isn't in source hosts as target
2023-10-10 19:58:27 +08:00
Zexi Li
c84328e99e Merge pull request #18246 from zexi/auto-migration
fix(monitor): select host that isn't in source hosts as target
2023-10-10 19:58:10 +08:00
Zexi Li
2afaee96c9 fix(monitor): select host that isn't in source hosts as target 2023-10-10 19:50:11 +08:00
Zexi Li
6e11ce30d9 fix(monitor): select host that isn't in source hosts as target 2023-10-10 19:48:09 +08:00
Jian Qiu
b264ff3f0d fix: allow specify desktop linux os that not allow root login (#18245)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-09 18:38:23 +08:00
wanyaoqi
58595a1c73 fix(host): host sysinfo metadata double quota (#18241) 2023-10-09 18:36:50 +08:00
Zexi Li
a5bdae4de3 Merge pull request #18237 from wanyaoqi/automated-cherry-pick-of-#18235-upstream-release-3.10
Automated cherry pick of #18235: fix(host-deployer): deploy qga conf ensure /etc/sysconfig dir
2023-10-09 15:06:25 +08:00
Jian Qiu
eb1b40a5ab fix: handle old style auth token (#18234)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-09 12:30:40 +08:00
wanyaoqi
c05781a848 fix(host-deployer): deploy qga conf ensure /etc/sysconfig dir 2023-10-09 12:24:51 +08:00
Jian Qiu
ba35aab3b3 fix: unauthorized error should return 401 (#18231)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-08 21:54:12 +08:00
Jian Qiu
1bf0ed2a25 fix: missing invalid token response (#18228)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-08 18:27:30 +08:00
Jian Qiu
dd1f1b752c fix: shorten keystone token (#18224)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-08 11:20:45 +08:00
屈轩
af92494e52 fix(region): avoid panic when create aws vm (#18217) 2023-10-07 18:36:42 +08:00
Zexi Li
8a5201bb43 Merge pull request #18212 from ioito/automated-cherry-pick-of-#18210-upstream-release-3.10
Automated cherry pick of #18210: fix(region): vendor update
2023-10-07 13:18:25 +08:00
Zexi Li
dc9ee5f07b Merge pull request #18209 from wanyaoqi/automated-cherry-pick-of-#18207-upstream-release-3.10
Automated cherry pick of #18207: feat(region,glance): from cloudaccount to enable vmdk target format
2023-10-07 13:16:13 +08:00
ioito
c3401c000b fix(region): vendor update 2023-10-07 11:01:18 +08:00
wanyaoqi
c97c0d7495 feat(region,glance): from cloudaccount to enable vmdk target format 2023-10-07 10:02:09 +08:00
Jian Qiu
c376c063f6 fix: async refresh revoked tokens (#18206)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-06 13:45:27 +08:00
Zexi Li
886bda390c Merge pull request #18201 from swordqiu/automated-cherry-pick-of-#18199-upstream-release-3.10
Automated cherry pick of #18199: feature: invalidate auth token
2023-10-05 19:22:32 +08:00
Qiu Jian
025294755d feature: invalidate auth token 2023-10-05 03:41:41 +08:00
Jian Qiu
3c445b81e3 fix: rebuild root support deploy params (#18189)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-02 00:16:26 +08:00
Jian Qiu
d695e0178f fix: host nics api (#18186)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-01 23:40:46 +08:00
Jian Qiu
6192b1dd12 fix: add apis for logininfo (#18182)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-01 23:40:09 +08:00
Zexi Li
eeffd9eb15 Merge pull request #18164 from swordqiu/automated-cherry-pick-of-#18162-upstream-release-3.10
Automated cherry pick of #18162: fix: fail purge disk due to getMastHost failure
2023-09-27 22:52:43 +08:00
Zexi Li
7aceecc6c6 Merge pull request #18167 from zexi/sched-sync-joints
fix(scheduler): some joint resources are not synced
2023-09-27 22:51:19 +08:00
Zexi Li
9e229e689c Merge pull request #18172 from zexi/automated-cherry-pick-of-#18072-upstream-release-3.10
Automated cherry pick of #18072: fix(climc): delete the backup machine from the offline host
2023-09-27 17:11:01 +08:00
hoganlxj
55441997fa Update clean_host.sh 2023-09-27 17:09:25 +08:00
Zexi Li
758026a92e fix(scheduler): some joint resources are not synced 2023-09-27 16:39:59 +08:00
Qiu Jian
17bc637bac fix: fail purge disk due to getMastHost failure 2023-09-27 14:33:20 +08:00
屈轩
9c968f0bdb fix(region): change project log detail (#18155) 2023-09-26 17:59:07 +08:00
Zexi Li
0308a241fb Merge pull request #18158 from wanyaoqi/automated-cherry-pick-of-#18156-upstream-release-3.10
Automated cherry pick of #18156: fix(region): remove ansible restart network on guest sync
2023-09-26 17:43:12 +08:00
wanyaoqi
7b59f1cb45 fix(region): remove ansible restart network on guest sync 2023-09-26 15:47:42 +08:00
Zexi Li
fa491d82e0 Merge pull request #18147 from ioito/automated-cherry-pick-of-#18145-upstream-release-3.10
Automated cherry pick of #18145: fix(region): aliyun health check tls error
2023-09-25 16:54:00 +08:00
屈轩
b8efe3ab25 fix(region): avoid panic after created vm (#18143) 2023-09-25 15:12:57 +08:00
ioito
7310453967 fix(region): aliyun health check tls error 2023-09-25 15:11:47 +08:00
Zexi Li
270530ca87 Merge pull request #18116 from ioito/automated-cherry-pick-of-#18114-upstream-release-3.10
Automated cherry pick of #18114: fix(region): network update detail error
2023-09-22 16:48:52 +08:00
Zexi Li
04dee08f20 Merge pull request #18127 from zexi/automated-cherry-pick-of-#18126-upstream-release-3.10
Automated cherry pick of #18126: fix(region): hide agent status
2023-09-22 10:44:19 +08:00
Zexi Li
f9bd26c88c fix(region): hide agent status 2023-09-22 10:36:32 +08:00
ioito
7313d69bad fix(region): network update detail error 2023-09-22 10:11:22 +08:00
Zexi Li
e37be945ea Merge pull request #18125 from swordqiu/automated-cherry-pick-of-#18124-upstream-release-3.10
Automated cherry pick of #18124: fix: charset mismatch in tenant cache convert_ids
2023-09-22 07:38:04 +08:00
Qiu Jian
06b1723185 fix: charset mismatch in tenant cache convert_ids 2023-09-22 00:57:25 +08:00
Zexi Li
5375791ac6 Merge pull request #18098 from wanyaoqi/automated-cherry-pick-of-#18096-upstream-release-3.10
Automated cherry pick of #18096: Fix/backup guest prelaunch
2023-09-21 22:44:13 +08:00
Zexi Li
7c8a901d89 Merge pull request #18093 from wanyaoqi/automated-cherry-pick-of-#18091-upstream-release-3.10
Automated cherry pick of #18091: fix(host): insert iso name not correct
2023-09-21 22:42:17 +08:00
Zexi Li
e639b98529 Merge pull request #18082 from wanyaoqi/automated-cherry-pick-of-#18080-upstream-release-3.10
Automated cherry pick of #18080: Fix/host delete validate
2023-09-21 22:41:39 +08:00
Zexi Li
de3789b62e Merge pull request #18066 from wanyaoqi/automated-cherry-pick-of-#18065-upstream-release-3.10
Automated cherry pick of #18065: fix(region,host): cancel migrate sync guest status
2023-09-21 22:40:24 +08:00
Zexi Li
f1e1eec2fb Merge pull request #18078 from wanyaoqi/automated-cherry-pick-of-#18076-upstream-release-3.10
Automated cherry pick of #18076: fix(region,host): guest save image restart not work
2023-09-21 22:39:32 +08:00
Zexi Li
28e0f6fd4c Merge pull request #18090 from wanyaoqi/automated-cherry-pick-of-#17858-upstream-release-3.10
Automated cherry pick of #17858: feat(region,host,host-deployer): add qga set network
2023-09-21 20:57:21 +08:00
Zexi Li
e00ab90c88 Merge pull request #18075 from wanyaoqi/automated-cherry-pick-of-#18073-upstream-release-3.10
Automated cherry pick of #18073: feat(region): host list filter by host storage type
2023-09-21 20:55:05 +08:00
屈轩
c565653197 fix(esxi-agent): vmware hostname (#18123) 2023-09-21 20:50:36 +08:00
屈轩
a9cf99ce00 fix(region): cloudpods userdata (#18119) 2023-09-21 20:49:44 +08:00
屈轩
f70b7a0022 fix(region): avoid deadlock for delete account (#18101) 2023-09-21 14:56:42 +08:00
屈轩
88c89c3ff3 fix(region): fix #18106 remove change chonfig stop charing restrict (#18109) 2023-09-21 14:55:35 +08:00
屈轩
37d85d5787 fix(region): guest vnc error (#18104) 2023-09-21 14:54:54 +08:00
屈轩
3903298b17 fix(region): server sku cpu arch filter (#18112) 2023-09-21 14:53:36 +08:00
wanyaoqi
9237b62fa4 fix(host): avoid panic on host record not init 2023-09-21 11:07:33 +08:00
wanyaoqi
55529e986b fix(host): cancel backup guest prelaunch 2023-09-21 11:06:34 +08:00
wanyaoqi
ae1448cd8c fix(host): insert iso name not correct 2023-09-20 21:25:56 +08:00
屈轩
6f45a4915f fix(region): vendor update (#18089) 2023-09-20 20:17:37 +08:00
chentianxiang
32aa579662 feat(region,host,host-deployer):use qga set network 2023-09-20 20:09:16 +08:00
wanyaoqi
72cd5a3b5d fix(region): validate is reserve all cpus 2023-09-20 19:44:47 +08:00
wanyaoqi
2dcb94011e fix(region): host delete validate backup guests 2023-09-20 19:44:47 +08:00
wanyaoqi
a264d6f561 fix(region,host): guest save image restart not work 2023-09-20 19:38:01 +08:00
wanyaoqi
7e7c4a78fa feat(region): host list filter by host storage type 2023-09-20 19:35:50 +08:00
wanyaoqi
ca608994d4 fix(region,host): cancel migrate sync guest status 2023-09-20 00:20:15 +08:00
Jian Qiu
5e7f22f2b8 Automated cherry pick of #18063: Hotfix/qj server network sub ips3 (#18064)
* fix: server nic add subips

* minor fixes

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-19 21:39:19 +08:00
Zexi Li
95e4b58d04 Merge pull request #18043 from swordqiu/automated-cherry-pick-of-#18042-upstream-release-3.10
Automated cherry pick of #18042: fix: server nic add subips
2023-09-19 21:02:40 +08:00
Zexi Li
a8d77fa8e8 Merge pull request #18059 from swordqiu/automated-cherry-pick-of-#18058-upstream-release-3.10
Automated cherry pick of #18058: fix: skip get metadata check if usercred is nil
2023-09-19 18:18:20 +08:00
Qiu Jian
d4a4b0617e fix: skip get metadata check if usercred is nil 2023-09-19 18:06:19 +08:00
屈轩
7ce9e30822 fix(region): dns record log (#18049) 2023-09-19 14:16:54 +08:00
屈轩
fa1896cf44 fix(region): vendor update (#18047) 2023-09-19 10:49:09 +08:00
屈轩
2e2f22c24c fix(region): skip sync vm disk error (#18040) 2023-09-19 10:34:53 +08:00
Qiu Jian
899b995a7c fix: server nic add subips 2023-09-19 09:05:23 +08:00
屈轩
1a01ed9aed fix(region): avoid deadlock when delete account (#18038) 2023-09-18 15:27:32 +08:00
Zexi Li
bc9f5db7b7 Merge pull request #18031 from swordqiu/automated-cherry-pick-of-#18024-upstream-release-3.10
Automated cherry pick of #18024: fix: validate get metadata privileges
2023-09-18 10:58:11 +08:00
gouqi11
3a129098b3 fix(region): update vendor (#18029)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-09-18 10:44:44 +08:00
屈轩
d97604a7da fix(region): select available storage (#18033) 2023-09-18 10:23:55 +08:00
Qiu Jian
99add03194 fix: validate get metadata privileges 2023-09-15 19:32:58 +08:00
Zexi Li
b03bb0dd31 Merge pull request #18021 from wanyaoqi/automated-cherry-pick-of-#18020-upstream-release-3.10
Automated cherry pick of #18020: fix(host): nvidia vgpu hotplug
2023-09-15 10:28:04 +08:00
wanyaoqi
77eea8075e fix(host): nvidia vgpu hotplug
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-09-14 21:10:42 +08:00
屈轩
b9e0e88062 fix(region): remove useless code (#18015) 2023-09-13 17:33:00 +08:00
屈轩
e0806c4b98 fix(region): esxi image sync (#18011) 2023-09-13 15:53:54 +08:00
屈轩
59f98a72f0 fix(region): update status failed (#18008) 2023-09-13 15:05:41 +08:00
Zexi Li
b9435ebfc2 Merge pull request #18002 from wanyaoqi/automated-cherry-pick-of-#18001-upstream-release-3.10
Automated cherry pick of #18001: chore: update host-deployer base image
2023-09-13 10:17:46 +08:00
Zexi Li
3138d9904e Merge pull request #18005 from wanyaoqi/automated-cherry-pick-of-#18004-upstream-release-3.10
Automated cherry pick of #18004: fix(logclient): add i18n maps for translation
2023-09-13 10:15:29 +08:00
wanyaoqi
48518010f0 fix(logclient): add i18n maps for translation 2023-09-13 09:36:59 +08:00
wanyaoqi
9761afaaf9 chore: update host-deployer base image 2023-09-12 22:38:08 +08:00
屈轩
a7ef869465 fix(region): support cloud-init shell (#17999) 2023-09-12 17:22:27 +08:00
屈轩
93188805a5 fix(region): vendor update (#17995) 2023-09-12 16:39:19 +08:00
Zexi Li
7ae75278af Merge pull request #17989 from wanyaoqi/automated-cherry-pick-of-#17988-upstream-release-3.10
Automated cherry pick of #17988: fix(region): check nvidia vgpu count and conflict with other gpus
2023-09-12 10:04:45 +08:00
Zexi Li
45910eb247 Merge pull request #17992 from zexi/k8s-cls-list
feat(climc): add k8s-cluster-list options
2023-09-12 03:01:50 +08:00
Zexi Li
7db1346c47 feat(climc): add k8s-cluster-list options 2023-09-11 14:06:51 +02:00
Zexi Li
d321e1024e Merge pull request #17987 from ioito/automated-cherry-pick-of-#17986-upstream-release-3.10
Automated cherry pick of #17986: fix(region): batch sku sync
2023-09-11 16:31:24 +08:00
ioito
b6fbaaaa6f fix(region): batch sku sync 2023-09-11 15:59:29 +08:00
wanyaoqi
8a14d41aa4 fix(region): check nvidia vgpu count and conflict with other gpus
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-09-11 15:55:28 +08:00
Jian Qiu
2b71ce644e fix: allow vm turn on selinux (#17978)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-10 00:29:19 +08:00
Jian Qiu
493497c4b8 fix: error returned by host storage sync was overwritten (#17960)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-10 00:28:23 +08:00
屈轩
8bc692c745 fix(region): avoid panic (#17970) 2023-09-10 00:27:27 +08:00
wanyaoqi
d40d12d425 fix(host): set migrate bandwidth nolimit (#17975) 2023-09-10 00:26:44 +08:00
Zexi Li
3f5b0a824c Merge pull request #17964 from swordqiu/automated-cherry-pick-of-#17963-upstream-release-3.10
Automated cherry pick of #17963: fix: some kernel params tune by default
2023-09-08 04:13:38 +08:00
Qiu Jian
dd88d1ecc5 fix: some kernel params tune by default 2023-09-08 00:00:00 +08:00
Zexi Li
d96913b36c Merge pull request #17959 from gouqi11/automated-cherry-pick-of-#17957-upstream-release-3.10
Automated cherry pick of #17957: fix(notify): add group_times for subscriber
2023-09-07 17:10:13 +08:00
马鸿飞
8d8b2908e6 fix(notify): add group_times for subscriber 2023-09-07 16:51:25 +08:00
Zexi Li
53a86316f6 Merge pull request #17954 from gouqi11/automated-cherry-pick-of-#17953-upstream-release-3.10
Automated cherry pick of #17953: fix(notify): ignore EventId in send
2023-09-06 19:54:17 +08:00
马鸿飞
912059dd3e fix(notify): ignore EventId in send 2023-09-06 19:43:15 +08:00
Jian Qiu
eb44e77a1c fix: support user data scripts (#17939)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-06 17:16:59 +08:00
Jian Qiu
22d5cee356 fix: panic when syncing user external resources (#17945)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-06 17:02:46 +08:00
Jian Qiu
b58b5d0428 fix: allow remvoe server extra options of specific value (#17948)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-06 17:01:15 +08:00
Jian Qiu
8b0fe0cab0 fix: util func to convert id or name of tenants to ids (#17951)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-06 16:52:48 +08:00
Zexi Li
fea1593214 Merge pull request #17946 from gouqi11/automated-cherry-pick-of-#17944-upstream-release-3.10
Automated cherry pick of #17944: fix(region): project mapping support inputProject
2023-09-06 15:18:52 +08:00
马鸿飞
3211dd2819 fix(region): project mapping support inputProject 2023-09-06 14:48:08 +08:00
Zexi Li
3002c16f5e Merge pull request #17940 from zexi/update-data-nil
fix(cloudcommon): compatible with cases when data is nil
2023-09-06 11:28:42 +08:00
Zexi Li
05b7f0f321 fix(cloudcommon): compatible with cases when data is nil 2023-09-06 04:49:59 +02:00
Zexi Li
5e0d47365a feat(climc): download container registry image directly (#17936) 2023-09-06 04:35:51 +08:00
屈轩
51632df800 fix(region): storagecache sync (#17934) 2023-09-06 04:35:30 +08:00
Zexi Li
d9b4b19ecd Merge pull request #17932 from zhasm/automated-cherry-pick-of-#17930-upstream-release-3.10
Automated cherry pick of #17930: hotfix: typo
2023-09-05 12:57:40 +08:00
Zhang Dongliang
f820f1a27e hotfix: typo 2023-09-05 12:55:02 +08:00
Zexi Li
d693c8d450 Merge pull request #17925 from zexi/specific-methods
fix(apigateway): add GetSpecificMethods to resource manager
2023-09-05 12:50:13 +08:00
Zexi Li
6d2b3d6d4a Merge pull request #17928 from zhasm/automated-cherry-pick-of-#17927-upstream-release-3.10
Automated cherry pick of #17927: fix(docker buildx cross platform docker image fix): 跨平台编译docker镜像明确指定架构
2023-09-05 12:49:38 +08:00
Zhang Dongliang
10c0957f6f fix(docker buildx cross platform docker image fix): 跨平台编译docker镜像明确指定架构 2023-09-05 12:43:26 +08:00
Zexi Li
7fcd93637d Merge pull request #17923 from swordqiu/automated-cherry-pick-of-#17922-upstream-release-3.10
Automated cherry pick of #17922: fix: struct sub field tag
2023-09-05 11:54:21 +08:00
Zexi Li
25885bf3f6 fix(apigateway): add GetSpecificMethods to resource manager 2023-09-05 05:36:46 +02:00
Qiu Jian
e20f8a0114 fix: struct sub field tag 2023-09-04 22:48:27 +08:00
Zexi Li
b2c1f78544 Merge pull request #17920 from gouqi11/automated-cherry-pick-of-#17919-upstream-release-3.10
Automated cherry pick of #17919: fix(region): support sync cloudprovider
2023-09-04 17:41:53 +08:00
马鸿飞
a4f6f7bd16 fix(region): support sync cloudprovider 2023-09-04 17:39:04 +08:00
屈轩
163af46699 fix(climc): skip part of service version detect (#17917) 2023-09-04 14:27:11 +08:00
屈轩
956126fdec fix(region-dns): dns query for *.example.com (#17915) 2023-09-04 11:51:35 +08:00
Zexi Li
842d2fdd03 Merge pull request #17904 from wanyaoqi/automated-cherry-pick-of-#17903-upstream-release-3.10
Automated cherry pick of #17903: feat(region,host): support set io throtthle for each disk
2023-09-02 01:36:39 +08:00
Zexi Li
a90ea0e270 Merge pull request #17912 from ioito/automated-cherry-pick-of-#17911-upstream-release-3.10
Automated cherry pick of #17911: fix(region): add log for dns record delete
2023-09-01 21:10:06 +08:00
ioito
9aec66bc65 fix(region): add log for dns record delete 2023-09-01 20:04:25 +08:00
屈轩
ceae2aab39 fix(region): bucket 500 error (#17910) 2023-09-01 18:22:41 +08:00
屈轩
23097b8cca fix(region): distinct account for dns zone (#17908) 2023-09-01 17:15:49 +08:00
wanyaoqi
2cc57a6064 feat(region,host): support set io throtthle for each disk
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-09-01 15:48:24 +08:00
wanyaoqi
8b57e615c5 Manual Cherrypick of #17879: vgpu support, refector host registor (#17880)
* fix(host): refactor host register

* feat(region): vgpu support

add nvidia/amd vgpu support.
nvidia vgpu need manaul confingure vgpu instance before add in host.conf

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

---------

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-09-01 15:42:30 +08:00
屈轩
634e0c187b fix(region): support skip sync vpc and secgorup (#17902) 2023-09-01 15:40:37 +08:00
wanyaoqi
533d42eb35 feat(region): support set server as daemon on create (#17893)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-09-01 15:39:39 +08:00
屈轩
45529e3914 fix(region): auto remove cloudprovider (#17881) 2023-09-01 15:39:02 +08:00
Jian Qiu
4beaebede0 fix: storage usaged capacity by medium_type revisit (#17878)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-01 15:33:18 +08:00
屈轩
2a3105209a fix(region): private zone check vpc (#17900) 2023-08-31 16:30:43 +08:00
Zexi Li
7b3b397c93 Merge pull request #17896 from ioito/automated-cherry-pick-of-#17895-upstream-release-3.10
Automated cherry pick of #17895: fix(cloudmon): skip part of service system metric collect
2023-08-31 16:01:40 +08:00
Zexi Li
2d6ac198d0 Merge pull request #17898 from ioito/automated-cherry-pick-of-#17897-upstream-release-3.10
Automated cherry pick of #17897: fix(region): 云账号首次同步时并发同步sku及资源
2023-08-31 16:01:07 +08:00
ioito
95d2c2ced3 fix(region): 云账号首次同步时并发同步sku及资源 2023-08-31 14:50:50 +08:00
Jian Qiu
b75ec5aac5 fix: user show nil map panic (#17876)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-31 11:27:55 +08:00
屈轩
66f17ca8df fix(region): real delete sku (#17874) 2023-08-31 11:27:23 +08:00
ioito
8b23b20132 fix(cloudmon): skip part of service system metric collect 2023-08-31 11:22:52 +08:00
屈轩
534b80bbec fix(region): avoid esxi vm delete failed (#17891) 2023-08-30 20:43:48 +08:00
屈轩
c323f935c2 fix(region): esxi name and tag sync (#17885) 2023-08-30 20:30:38 +08:00
Zexi Li
e7d79e45aa Merge pull request #17889 from gouqi11/automated-cherry-pick-of-#17888-upstream-release-3.10
Automated cherry pick of #17888: fix(notify): support list group_key,group_list
2023-08-30 18:57:07 +08:00
屈轩
a8c288dd7a fix(region-dns): resolve cname (#17887) 2023-08-30 18:55:08 +08:00
马鸿飞
99a447ab61 fix(notify): support list group_key,group_list 2023-08-30 18:51:57 +08:00
屈轩
1f14b09f09 fix(region-dns): resolve * dns (#17883) 2023-08-30 16:04:57 +08:00
屈轩
ef4b7b04f4 fix(region): vendor update (#17872) 2023-08-29 16:17:43 +08:00
屈轩
d7dc20c556 fix(region): dns zone (#17869) 2023-08-29 15:44:32 +08:00
屈轩
14ffcbe103 fix(region): hostname length (#17867) 2023-08-29 15:43:12 +08:00
wanyaoqi
d71ae5fd75 fix(region,host): support limit guest nic traffic (#17853) 2023-08-29 08:40:31 +08:00
屈轩
d8820d2dd1 fix(region): vendor update (#17862) 2023-08-28 15:33:46 +08:00
屈轩
3e9c2e8831 fix(region): skip resource by tags (#17857) 2023-08-28 14:46:09 +08:00
gouqi11
a337af6da6 fix(region): support project mapping (#17804)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-08-27 05:13:16 +08:00
Jian Qiu
3639f30878 fix: debian 12 OS initialization (#17847)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-27 05:01:25 +08:00
Jian Qiu
8a9aaf05f1 update vendor 20230824 3.10 (#17849)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-24 16:00:23 +08:00
Jian Qiu
8e4c17b70e fix: cachedimage add index (#17844)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-24 03:32:06 +08:00
屈轩
790e98bf89 fix(logger): export limit (#17826) 2023-08-24 03:12:16 +08:00
屈轩
0e27c17b9c fix(region): guest sync log (#17829) 2023-08-24 03:11:46 +08:00
屈轩
cdec129482 fix(region): storage extra info (#17833) 2023-08-24 03:10:54 +08:00
Jian Qiu
e6e22fe21c fix: add index to server skus (#17841)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-24 03:09:54 +08:00
屈轩
5bdef213fd fix(webconsole): fix #17822 (#17838) 2023-08-23 19:39:56 +08:00
屈轩
d7b6a680d2 fix(region): disable prepaid delete check (#17824) 2023-08-23 19:39:20 +08:00
屈轩
c105b9cb6d fix(logger): distinct for kind (#17820) 2023-08-22 10:03:03 +08:00
屈轩
2082bacaf6 fix(logger): distinct field for action log (#17815) 2023-08-21 19:05:45 +08:00
屈轩
51c6ff0d2b fix(region): cloud account sync log (#17773) 2023-08-21 16:30:57 +08:00
屈轩
5255d2e69a fix: external project priority (#17812) 2023-08-21 15:11:40 +08:00
Jian Qiu
e617757351 fix: windows 2012 no dns (#17775)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-21 13:47:37 +08:00
wanyaoqi
7d15d33b35 fix(host): gpu probe miss 3d type gpu (#17806) 2023-08-21 12:32:33 +08:00
屈轩
9688da8e2e fix(region): vendor update (#17802) 2023-08-21 11:07:54 +08:00
屈轩
d7f575ec8c fix(region): support eip sync tags (#17797) 2023-08-18 15:05:23 +08:00
Zexi Li
3cf4cbd5a3 Merge pull request #17777 from wanyaoqi/automated-cherry-pick-of-#17776-upstream-release-3.10
Automated cherry pick of #17776: Fix/lvm disk deploy
2023-08-18 13:40:09 +08:00
Zexi Li
f5c61daac8 Merge pull request #17794 from zexi/climc-k8s-cls-create
feat(climc): support k8s-cluster-create command getting input from file
2023-08-18 13:33:09 +08:00
Zexi Li
b4ddadea6e Merge pull request #17792 from zexi/climc-zone-list
fix(climc): 'zone-list --region' is ignored
2023-08-18 13:32:52 +08:00
Zexi Li
84fd734405 feat(climc): support k8s-cluster-create command getting input from file 2023-08-18 02:01:17 +08:00
Zexi Li
b35cae9be9 fix(climc): 'zone-list --region' is ignored 2023-08-18 00:07:41 +08:00
屈轩
e4f6a38840 fix(logger): add translate (#17770) 2023-08-17 17:55:23 +08:00
屈轩
8d0cd7e233 fix: docker push (#17790) 2023-08-17 17:43:42 +08:00
屈轩
2bbed41457 fix(region): avoid purge normal region (#17787) 2023-08-17 12:23:17 +08:00
屈轩
24790421b3 fix: workflow push secrets (#17784) 2023-08-17 11:00:59 +08:00
Zexi Li
3e59306c53 Merge pull request #17755 from zexi/update-baremetal-img
fix(baremetal-agent): update base image
2023-08-16 11:14:24 +08:00
wanyaoqi
789188a005 fix(host-deployer): lvm deactivate vg in use 2023-08-15 23:25:26 +08:00
wanyaoqi
55745b7355 fix(host-deployer): fix lvm disk concurrent mount
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-08-15 23:25:26 +08:00
屈轩
ab063bc9ca fix: github workflow (#17763) 2023-08-14 16:28:36 +08:00
Zexi Li
29bc5c617d Merge pull request #17761 from gouqi11/automated-cherry-pick-of-#17702-upstream-release-3.10
Automated cherry pick of #17702: fix(notify): add update func for topic
2023-08-14 11:30:19 +08:00
马鸿飞
0244504a92 fix(notify): add update func for topic 2023-08-14 11:18:53 +08:00
屈轩
5f0a08993f fix(keystone): displays the reason why user cannot be deleted (#17664) 2023-08-13 22:42:40 +08:00
屈轩
bf9d440f64 fix(region): clean dirty cached images (#17752) 2023-08-13 22:40:29 +08:00
Zexi Li
0d2e8cf10c fix(baremetal-agent): update base image 2023-08-12 18:47:12 +08:00
Zexi Li
4182ac2ce8 Merge pull request #17749 from zexi/k8s-machine-post-prepare
feat(climc): add k8s-machine-post-prepare-resource command
2023-08-11 15:32:39 +08:00
Zexi Li
c0c83551c0 feat(climc): add k8s-machine-post-prepare-resource command 2023-08-11 12:08:49 +08:00
屈轩
fe7c1aafb0 fix(common): project metadata (#17746) 2023-08-10 20:14:41 +08:00
屈轩
3083911ece fix: auto build docker image (#17741) 2023-08-09 17:10:31 +08:00
Zexi Li
f986bdbde1 Merge pull request #17732 from gouqi11/automated-cherry-pick-of-#17731-upstream-release-3.10
Automated cherry pick of #17731: fix(notify): add option to use template for webhook
2023-08-08 17:57:41 +08:00
马鸿飞
f2be03f305 fix(notify): add option to use template for webhook 2023-08-08 17:40:55 +08:00
Zexi Li
654b4e400f Merge pull request #17725 from ioito/automated-cherry-pick-of-#17724-upstream-release-3.10
Automated cherry pick of #17724: fix(region): add kvm disk storage info
2023-08-08 16:30:20 +08:00
Zexi Li
632abfeb8f Merge pull request #17728 from swordqiu/automated-cherry-pick-of-#17727-upstream-release-3.10
Automated cherry pick of #17727: fix: allow host access_mac nullable
2023-08-08 16:29:15 +08:00
Zexi Li
6d20382f28 Merge pull request #17726 from gouqi11/automated-cherry-pick-of-#17610-upstream-release-3.10
Automated cherry pick of #17610: fix(notify): addNotifyGroup
2023-08-08 16:28:24 +08:00
Qiu Jian
8b97d54fbe fix: allow host access_mac nullable 2023-08-08 12:41:22 +08:00
马鸿飞
09bcaa3e2d fix(notify): addNotifyGroup 2023-08-08 11:59:16 +08:00
ioito
91dca85b55 fix(region): add kvm disk storage info 2023-08-08 10:19:05 +08:00
Zexi Li
b5accb2c00 Merge pull request #17720 from ioito/automated-cherry-pick-of-#17719-upstream-release-3.10
Automated cherry pick of #17719: fix(climc): avoid panic
2023-08-07 20:20:40 +08:00
ioito
97f3bb4d62 fix(climc): avoid panic 2023-08-07 18:48:26 +08:00
Zexi Li
3445f1f912 Merge pull request #17714 from zexi/montor-balance-unit
fix(monitor): remove cloudaccount_balance unit
2023-08-07 00:47:24 +08:00
Zexi Li
f6b5a5d3c4 fix(monitor): remove cloudaccount_balance unit 2023-08-07 00:32:51 +08:00
Jian Qiu
e11d097715 fix: set vcpu vendor_id based on host cpu vendor_id (#17712)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-06 21:18:14 +08:00
屈轩
a9c72fd704 fix(region): esxi storage info (#17706) 2023-08-04 23:42:49 +08:00
Zexi Li
b415b05406 Merge pull request #17700 from zexi/climc-set-kubeconfig
feat(climc): k8s-cluster-set-kubeconfig
2023-08-03 19:14:04 +08:00
Zexi Li
c786ec3dcb feat(climc): k8s-cluster-set-kubeconfig 2023-08-03 18:48:29 +08:00
Zexi Li
67e61042f2 Merge pull request #17699 from ioito/automated-cherry-pick-of-#17698-upstream-release-3.10
Automated cherry pick of #17698: fix(region): vendor update
2023-08-03 15:03:16 +08:00
ioito
7ffa8260b4 fix(region): vendor update 2023-08-03 14:41:41 +08:00
Zexi Li
794a5df6c9 Merge pull request #17696 from gouqi11/automated-cherry-pick-of-#17695-upstream-release-3.10
Automated cherry pick of #17695: fix(monitor): fix montior alert startTimeFormat
2023-08-02 17:57:33 +08:00
马鸿飞
9c61252c26 fix(monitor): fix montior alert startTimeFormat 2023-08-02 17:38:54 +08:00
Zexi Li
15713d0522 Merge pull request #17694 from ioito/automated-cherry-pick-of-#17693-upstream-release-3.10
Automated cherry pick of #17693: fix(notify): optimized event query
2023-08-02 10:22:01 +08:00
Zexi Li
f96cddd950 Merge pull request #17691 from ioito/automated-cherry-pick-of-#17690-upstream-release-3.10
Automated cherry pick of #17690: fix(cloudmon): avoid panic
2023-08-02 10:21:24 +08:00
ioito
fdd33be089 fix(notify): optimized event query 2023-08-01 17:03:15 +08:00
ioito
05faddc262 fix(cloudmon): avoid panic 2023-08-01 16:04:41 +08:00
Zexi Li
94c33fbae1 Merge pull request #17686 from ioito/automated-cherry-pick-of-#17685-upstream-release-3.10
Automated cherry pick of #17685: fix(cloudmon): cloudaccout update
2023-08-01 13:02:03 +08:00
ioito
16d1754a2c fix(cloudmon): cloudaccout update 2023-08-01 12:19:36 +08:00
Zexi Li
ae987848c7 Merge pull request #17684 from ioito/automated-cherry-pick-of-#17683-upstream-release-3.10
Automated cherry pick of #17683: fix(region): vpc purge
2023-08-01 10:13:41 +08:00
ioito
0d6b829ea2 fix(region): vpc purge 2023-08-01 10:03:04 +08:00
Zexi Li
375bd1d284 Merge pull request #17673 from ioito/automated-cherry-pick-of-#17672-upstream-release-3.10
Automated cherry pick of #17672: fix(region): optional local system disk size
2023-08-01 00:51:04 +08:00
Zexi Li
d906fc718f Merge pull request #17675 from wanyaoqi/automated-cherry-pick-of-#17674-upstream-release-3.10
Automated cherry pick of #17674: fix(host): add gpu device when driver isn't bind
2023-08-01 00:50:24 +08:00
Zexi Li
bfc748dd4c Merge pull request #17681 from zexi/docker-compose-cloud-shell
fix(webconsole,climc): cloud shell within docker compose environment
2023-08-01 00:48:02 +08:00
Zexi Li
b7f758034f fix(webconsole,climc): cloud shell within docker compose environment 2023-08-01 00:25:49 +08:00
Zexi Li
aa6a64dc5c Merge pull request #17678 from ioito/automated-cherry-pick-of-#17677-upstream-release-3.10
Automated cherry pick of #17677: fix(region): account details
2023-07-31 17:24:07 +08:00
Zexi Li
7f4363e739 Merge pull request #17680 from ioito/automated-cherry-pick-of-#17679-upstream-release-3.10
Automated cherry pick of #17679: fix(region): vendor update
2023-07-31 17:23:44 +08:00
ioito
c45e1fe21f fix(region): vendor update 2023-07-31 17:09:53 +08:00
ioito
cb9abd0da0 fix(region): account details 2023-07-31 16:56:26 +08:00
wanyaoqi
7870f5364e fix(host): add gpu device when driver isn't bind 2023-07-31 15:55:02 +08:00
ioito
02ca380394 fix(region): optional local system disk size 2023-07-31 11:45:03 +08:00
Zexi Li
3b42588091 Merge pull request #17652 from ioito/automated-cherry-pick-of-#17649-upstream-release-3.10
Automated cherry pick of #17649: fix(region): optimized cloud-account-list
2023-07-30 14:02:49 +08:00
Zexi Li
43d1c44517 Merge pull request #17650 from gouqi11/FixEventDefaultReceiver
fix(notify): drop event notification default receiver
2023-07-30 14:02:13 +08:00
Zexi Li
62957df844 Merge pull request #17633 from wanyaoqi/automated-cherry-pick-of-#17632-upstream-release-3.10
Automated cherry pick of #17632: fix(host): storages bind mount should before host register
2023-07-30 14:01:53 +08:00
Zexi Li
e1b38f41be Merge pull request #17666 from ioito/automated-cherry-pick-of-#17665-upstream-release-3.10
Automated cherry pick of #17665: fix(region): acl name
2023-07-30 14:01:24 +08:00
ioito
e4eb02a1c2 fix(region): acl name 2023-07-28 20:18:15 +08:00
Zexi Li
844005d7cf Merge pull request #17654 from ioito/automated-cherry-pick-of-#17653-upstream-release-3.10
Automated cherry pick of #17653: fix(region): vendor update
2023-07-28 17:55:30 +08:00
Zexi Li
fc33ea6c69 Merge pull request #17656 from ioito/automated-cherry-pick-of-#17655-upstream-release-3.10
Automated cherry pick of #17655: fix(keystone): enable cloud shell
2023-07-28 17:55:07 +08:00
Zexi Li
6964ac4718 Merge pull request #17658 from ioito/automated-cherry-pick-of-#17657-upstream-release-3.10
Automated cherry pick of #17657: fix(region): ecs sync options
2023-07-28 17:54:41 +08:00
Zexi Li
d707e18b7f Merge pull request #17662 from ioito/automated-cherry-pick-of-#17661-upstream-release-3.10
Automated cherry pick of #17661: fix(region): server sku update
2023-07-28 17:54:04 +08:00
Zexi Li
d1f0cf195a Merge pull request #17659 from zexi/cloudmon-meter-currency
feat(cloudmon): upload meter currency of the cloudaccount
2023-07-28 17:53:32 +08:00
Zexi Li
70dcdbcf94 feat(cloudmon): upload meter currency of the cloudaccount 2023-07-28 17:29:34 +08:00
ioito
413e14f0a4 fix(region): server sku update 2023-07-28 17:09:39 +08:00
ioito
d55c911e76 fix(region): ecs sync options 2023-07-28 14:23:41 +08:00
ioito
c4acbc8a14 fix(keystone): enable cloud shell 2023-07-28 11:50:12 +08:00
ioito
91f8dc59fb fix(region): vendor update 2023-07-28 11:30:33 +08:00
ioito
5ea148e70f fix(region): optimized cloud-account-list 2023-07-28 10:52:24 +08:00
马鸿飞
889d71587b fix(notify): drop event notification default receiver 2023-07-28 10:18:46 +08:00
Zexi Li
ebceefbec7 Merge pull request #17647 from ioito/automated-cherry-pick-of-#17637-upstream-release-3.10
Automated cherry pick of #17637: fix(region): purge account
2023-07-27 19:23:33 +08:00
ioito
5fd73a35b4 fix(region): purge account 2023-07-27 16:34:12 +08:00
Zexi Li
f8f06f5114 Merge pull request #17636 from wanyaoqi/automated-cherry-pick-of-#17635-upstream-release-3.10
Automated cherry pick of #17635: fix(host-deployer): detect image arch incorrect
2023-07-27 15:38:59 +08:00
Zexi Li
719568843b Merge pull request #17641 from zexi/auto-alloc-net
fix(scheduler): auto allocation network selection is not working
2023-07-27 15:37:03 +08:00
Zexi Li
26b1a0590f Merge pull request #17645 from ioito/automated-cherry-pick-of-#17644-upstream-release-3.10
Automated cherry pick of #17644: fix(region): balance currency
2023-07-27 14:53:15 +08:00
ioito
380816fa16 fix(region): balance currency 2023-07-27 14:33:05 +08:00
Zexi Li
a19231043c fix(scheduler): auto allocation network selection is not working 2023-07-27 12:19:21 +08:00
wanyaoqi
f5349822c4 fix(host-deployer): detect image arch incorrect 2023-07-26 19:29:29 +08:00
Zexi Li
c1b44d87aa Merge pull request #17634 from gouqi11/automated-cherry-pick-of-#17627-upstream-release-3.10
Automated cherry pick of #17627: fix(notify): alert send
2023-07-26 18:10:15 +08:00
马鸿飞
cda5f10680 fix(notify): alert send 2023-07-26 17:46:08 +08:00
wanyaoqi
da754fdc8d fix(host): storages bind mount should before host register
Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2023-07-26 16:34:37 +08:00
Zexi Li
b1f60f4a75 Merge pull request #17630 from ioito/automated-cherry-pick-of-#17629-upstream-release-3.10
Automated cherry pick of #17629: fix(region): vendor update
2023-07-26 11:39:09 +08:00
ioito
4a05a6d846 fix(region): vendor update 2023-07-26 11:12:57 +08:00
Zexi Li
0c69313df8 Merge pull request #17626 from gouqi11/automated-cherry-pick-of-#17625-upstream-release-3.10
Automated cherry pick of #17625: fix(region): fix autoCreateProjectForProvider bug
2023-07-25 20:32:27 +08:00
马鸿飞
d87af53ade fix(region): fix autoCreateProjectForProvider bug 2023-07-25 20:23:33 +08:00
Zexi Li
db6cd5730e Merge pull request #17624 from gouqi11/automated-cherry-pick-of-#17623-upstream-release-3.10
Automated cherry pick of #17623: fix(region): auto create project for provider BUG FIX
2023-07-25 19:50:44 +08:00
马鸿飞
11bfd3b680 fix(region): auto create project for provider BUG FIX 2023-07-25 19:38:46 +08:00
Zexi Li
5ab3280e5f Merge pull request #17621 from ioito/automated-cherry-pick-of-#17620-upstream-release-3.10
Automated cherry pick of #17620: fix(region): vendor update
2023-07-25 18:34:58 +08:00
ioito
a2f6833e7e fix(region): vendor update 2023-07-25 18:21:58 +08:00
Zexi Li
45747c6895 Merge pull request #17617 from zexi/host-reload-telegraf
fix(host): try reloading telegraf by restarting docker
2023-07-25 18:04:21 +08:00
Zexi Li
86090b33ec Merge pull request #17616 from ioito/automated-cherry-pick-of-#17615-upstream-release-3.10
Automated cherry pick of #17615: fix(webconsole): msg write
2023-07-25 17:59:30 +08:00
Zexi Li
b08fa2ceef Merge pull request #17607 from ioito/automated-cherry-pick-of-#17606-upstream-release-3.10
Automated cherry pick of #17606: fix(region): set scheduler failed brand unknown
2023-07-25 17:51:22 +08:00
Zexi Li
bdbe0eb0b1 fix(host): try reloading telegraf by restarting docker 2023-07-25 17:44:25 +08:00
ioito
207f2c7a29 fix(webconsole): msg write 2023-07-25 17:10:46 +08:00
ioito
05ad38450d fix(region): set scheduler failed brand unknown 2023-07-24 16:19:04 +08:00
Zexi Li
0b446a7540 Merge pull request #17598 from ioito/automated-cherry-pick-of-#17597-upstream-release-3.10
Automated cherry pick of #17597: fix(webconsole): ssh command record
2023-07-24 16:01:31 +08:00
Zexi Li
4b44a75c92 Merge pull request #17603 from ioito/automated-cherry-pick-of-#17602-upstream-release-3.10
Automated cherry pick of #17602: fix(region): usage for nic
2023-07-24 15:55:40 +08:00
Zexi Li
30ccdf90c8 Merge pull request #17605 from gouqi11/automated-cherry-pick-of-#17591-upstream-release-3.10
Automated cherry pick of #17591: feat(region): allow auto create project for provider
2023-07-24 15:47:07 +08:00
马鸿飞
58dee06d6f feat(region): allow auto create project for provider 2023-07-24 15:29:45 +08:00
ioito
955410b60c fix(region): usage for nic 2023-07-24 15:26:00 +08:00
ioito
4f773b3c6c fix(webconsole): ssh command record 2023-07-24 12:08:46 +08:00
Jian Qiu
5c0584cb51 fix: update vmware credential with host (#17590)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-07-24 10:47:29 +08:00
Zexi Li
33c77c8705 Merge pull request #17587 from zexi/download-container-image
feat(climc): support download container image
2023-07-21 10:09:22 +08:00
Zexi Li
489039e077 Merge pull request #17583 from wanyaoqi/automated-cherry-pick-of-#17582-upstream-release-3.10
Automated cherry pick of #17582: fix(region): qga ping don't report error on host return error
2023-07-21 00:37:39 +08:00
Zexi Li
ae64e50d77 Merge pull request #17560 from ioito/automated-cherry-pick-of-#17559-upstream-release-3.10
Automated cherry pick of #17559: fix(region): server sku update attribute
2023-07-21 00:36:50 +08:00
Zexi Li
5f4d8397f3 feat(climc): support download container image 2023-07-21 00:16:12 +08:00
Zexi Li
efd21781d8 Merge pull request #17584 from zexi/download-helm-chart
feat(climc): support download helm chart
2023-07-20 22:25:08 +08:00
Zexi Li
0149c54306 feat(climc): support download helm chart 2023-07-20 18:17:28 +08:00
Zexi Li
712d4ab607 Merge pull request #17581 from ioito/automated-cherry-pick-of-#17580-upstream-release-3.10
Automated cherry pick of #17580: fix(region): vendor update
2023-07-20 16:49:15 +08:00
wanyaoqi
6bae836b24 fix(region): qga ping don't report error on host return error
Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2023-07-20 16:34:58 +08:00
ioito
475f0b0dfc fix(region): vendor update 2023-07-20 16:25:06 +08:00
Zexi Li
58f72985bc fix(monitor): return error if metric is nil (#17574) 2023-07-20 11:51:35 +08:00
Zexi Li
3649a4a66c Merge pull request #17568 from swordqiu/automated-cherry-pick-of-#17567-upstream-release-3.10
Automated cherry pick of #17567: fix: disable application profiling by default
2023-07-19 01:33:10 +08:00
Zexi Li
153b34d8ce Merge pull request #17565 from ioito/automated-cherry-pick-of-#17564-upstream-release-3.10
Automated cherry pick of #17564: fix(region): esxi add vmdk disk
2023-07-19 01:30:44 +08:00
Qiu Jian
66894efd40 fix: disable application profiling by default 2023-07-18 21:05:49 +08:00
ioito
c485cbf173 fix(region): esxi add vmdk disk 2023-07-18 20:10:50 +08:00
Zexi Li
602e63a165 Merge pull request #17549 from ioito/automated-cherry-pick-of-#17548-upstream-release-3.10
Automated cherry pick of #17548: fix(region): skip sync resource when account created
2023-07-18 17:42:12 +08:00
Zexi Li
d72429c4dd Merge pull request #17535 from ioito/automated-cherry-pick-of-#17534-upstream-release-3.10
Automated cherry pick of #17534: fix(region): server eip bgp type
2023-07-18 17:40:23 +08:00
Zexi Li
004421ad1f Merge pull request #17554 from wanyaoqi/automated-cherry-pick-of-#17547-upstream-release-3.10
Automated cherry pick of #17547: fix(host): telegraf ignore hugetlbfs
2023-07-18 17:39:37 +08:00
Zexi Li
b2dc684670 Merge pull request #17551 from ioito/automated-cherry-pick-of-#17550-upstream-release-3.10
Automated cherry pick of #17550: fix(region): esxi disk with vmdk format
2023-07-18 17:37:35 +08:00
ioito
95dbce407e fix(region): server sku update attribute 2023-07-18 16:18:00 +08:00
wanyaoqi
a03d36c42e fix(host): telegraf ignore hugetlbfs
Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2023-07-18 09:53:42 +08:00
ioito
2636b779f7 fix(region): esxi disk with vmdk format 2023-07-17 18:19:57 +08:00
ioito
045676dd22 fix(region): skip sync resource when account created 2023-07-17 17:48:16 +08:00
ioito
25eaed8011 fix(region): server eip bgp type 2023-07-14 19:16:49 +08:00
Zexi Li
c3c8c001c2 Merge pull request #17528 from wanyaoqi/automated-cherry-pick-of-#17527-upstream-release-3.10
Automated cherry pick of #17527: fix(host): find python path on guestman init
2023-07-14 18:23:27 +08:00
Zexi Li
b10c5c51ca Merge pull request #17522 from swordqiu/automated-cherry-pick-of-#17521-upstream-release-3.10
Automated cherry pick of #17521: fix: lbcluster reference count
2023-07-14 18:14:42 +08:00
Zexi Li
b5f98a3472 Merge pull request #17511 from zexi/automated-cherry-pick-of-#17493-upstream-release-3.10
Automated cherry pick of #17493: feat(climc): upload helm chart to a repository
2023-07-14 18:08:50 +08:00
Zexi Li
d80aeac573 Merge pull request #17526 from gouqi11/automated-cherry-pick-of-#17525-upstream-release-3.10
Automated cherry pick of #17525: 20230714 make mod
2023-07-14 10:57:47 +08:00
wanyaoqi
f1c1729c75 fix(host): find python path on guestman init
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-07-14 10:43:55 +08:00
马鸿飞
ec6ba33022 20230714 make mod 2023-07-14 10:33:05 +08:00
Qiu Jian
49d9198943 fix: lbcluster reference count 2023-07-14 05:38:10 +08:00
Zexi Li
18884e8089 Merge pull request #17520 from ioito/automated-cherry-pick-of-#17519-upstream-release-3.10
Automated cherry pick of #17519: fix(region): support filter by cloud_env for servertemplate
2023-07-13 21:46:06 +08:00
Zexi Li
71dc713a44 Merge pull request #17510 from wanyaoqi/automated-cherry-pick-of-#17509-upstream-release-3.10
Automated cherry pick of #17509: fix(region,scheduler): ovs offload support vpc network
2023-07-13 21:45:21 +08:00
Zexi Li
7f6b175937 Merge pull request #17518 from ioito/automated-cherry-pick-of-#17517-upstream-release-3.10
Automated cherry pick of #17517: fix(region): clean skip sync resources
2023-07-13 21:43:39 +08:00
ioito
a86b9151b2 fix(region): support filter by cloud_env for servertemplate 2023-07-13 20:37:48 +08:00
ioito
771a837b0f fix(region): clean skip sync resources 2023-07-13 20:15:55 +08:00
屈轩
14a2624b86 fix(climc): add port for ssh (#17514) 2023-07-13 16:40:02 +08:00
Zexi Li
64833d0489 Merge pull request #17512 from zexi/automated-cherry-pick-of-#17505-upstream-release-3.10
Automated cherry pick of #17505: fix fillStorage get storage cause scheduler panic
2023-07-13 15:25:01 +08:00
吴典秋
de178b35ee fix fillStorage get storage cause scheduler panic 2023-07-13 15:14:34 +08:00
Zexi Li
e64b1efdce feat(climc): upload helm chart to a repository 2023-07-13 15:11:55 +08:00
Zexi Li
5d6d3d0a95 Merge pull request #17507 from ioito/automated-cherry-pick-of-#17506-upstream-release-3.10
Automated cherry pick of #17506: fix(region): account update for skip sync resources
2023-07-13 14:55:12 +08:00
wanyaoqi
d92d4b9a5f fix(region,scheduler): ovs offload support vpc network 2023-07-13 14:39:55 +08:00
ioito
48019fa595 fix(region): account update for skip sync resources 2023-07-13 10:43:03 +08:00
屈轩
7ffbc492eb fix(region): esxi vm migrate for search ivm (#17480) 2023-07-12 16:17:06 +08:00
屈轩
adef6588ea fix(region): reset esxi osinfo (#17477) 2023-07-12 16:15:49 +08:00
wanyaoqi
2d8a28d598 fix(region,host): qga command timeout (#17466)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-07-12 16:15:07 +08:00
Zexi Li
22b36b8bb7 Merge pull request #17495 from ioito/automated-cherry-pick-of-#17494-upstream-release-3.10
Automated cherry pick of #17494: fix(region): aliyun eip bgp pro
2023-07-12 12:15:01 +08:00
ioito
b4d0e34eb4 fix(region): aliyun eip bgp pro 2023-07-11 15:54:07 +08:00
Zexi Li
a550c906ba Merge pull request #17488 from gouqi11/automated-cherry-pick-of-#17482-upstream-release-3.10
Automated cherry pick of #17482: feat(notify): add more config for webhook
2023-07-11 11:02:19 +08:00
Zexi Li
62b0c736d8 Merge pull request #17487 from swordqiu/automated-cherry-pick-of-#17486-upstream-release-3.10
Automated cherry pick of #17486: fix: remove class lock in task
2023-07-11 10:09:46 +08:00
Zexi Li
201896be0e Merge pull request #17470 from ioito/automated-cherry-pick-of-#17469-upstream-release-3.10
Automated cherry pick of #17469: fix(region): default username
2023-07-11 10:08:34 +08:00
马鸿飞
4f652488d2 feat(notify): add more config for webhook 2023-07-11 10:07:02 +08:00
Qiu Jian
0ca8dfaa16 fix: remove class lock in task 2023-07-11 04:56:27 +08:00
Zexi Li
ad89e0827e Merge pull request #17473 from ioito/automated-cherry-pick-of-#17472-upstream-release-3.10
Automated cherry pick of #17472: fix(esxi-agent): reset password log
2023-07-10 16:09:17 +08:00
ioito
d3904f5fbf fix(esxi-agent): reset password log 2023-07-10 15:54:00 +08:00
ioito
4514bf1ce9 fix(region): default username 2023-07-10 15:26:01 +08:00
wanyaoqi
781c283059 fix(host): lvm disk create from template (#17463) 2023-07-09 17:10:24 +08:00
Jian Qiu
2f4e1a15db fix: increase handler time if force_no_paging is on (#17460)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-07-09 07:37:45 +08:00
Zexi Li
3760f60d90 Merge pull request #17456 from ioito/automated-cherry-pick-of-#17455-upstream-release-3.10
Automated cherry pick of #17455: fix(region): support aliyun pl0 storage
2023-07-07 10:24:46 +08:00
Zexi Li
664c1e3b20 Merge pull request #17458 from gouqi11/automated-cherry-pick-of-#17453-upstream-release-3.10
Automated cherry pick of #17453: fix(common): add resource translate
2023-07-06 20:38:45 +08:00
马鸿飞
84f447af92 fix(common): add resource translate 2023-07-06 20:35:53 +08:00
ioito
3f35d1fbf6 fix(region): support aliyun pl0 storage 2023-07-06 20:35:09 +08:00
Zexi Li
a15a1c1a06 Merge pull request #17446 from ioito/automated-cherry-pick-of-#17445-upstream-release-3.10
Automated cherry pick of #17445: fix(webconsole): show exit msg for webconsole
2023-07-06 11:31:07 +08:00
Jian Qiu
a4fd22d7c4 fix: allow set executor connection timeout (#17449)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-07-06 01:18:14 +08:00
Zexi Li
0f4950a990 feat(climc): add container registry cmd for k8s service (#17260) 2023-07-06 01:15:16 +08:00
ioito
f29dc5c072 fix(webconsole): show exit msg for webconsole 2023-07-05 15:21:11 +08:00
Zexi Li
737944fae0 Merge pull request #17440 from gouqi11/automated-cherry-pick-of-#17122-upstream-release-3.10
Automated cherry pick of #17122: fix(notify): remove topic_tbl.advance_days
2023-07-04 11:16:31 +08:00
马鸿飞
9d64d10e41 fix(notify): remove topic_tbl.advance_days 2023-07-04 10:56:24 +08:00
Zexi Li
300a736019 Merge pull request #17437 from ioito/automated-cherry-pick-of-#17435-upstream-release-3.10
Automated cherry pick of #17435: fix(region): support skip sync resource
2023-07-03 18:23:59 +08:00
ioito
f0c4f78867 fix(region): support skip sync resource 2023-07-03 16:13:44 +08:00
Zexi Li
9606fc815c Merge pull request #17434 from gouqi11/automated-cherry-pick-of-#17430-upstream-release-3.10
Automated cherry pick of #17430: fix(region): fix server list type and ip from metadata
2023-07-03 11:07:41 +08:00
马鸿飞
f9e467d0ac fix(region): fix server list type and ip from metadata 2023-07-03 10:39:24 +08:00
Zexi Li
d8eb2de03b Merge pull request #17384 from wanyaoqi/fix/get-guestdisks-count-filter-deleted-guests
fix(region): get guestdisks count filter deleted guests
2023-07-01 00:04:08 +08:00
Zexi Li
9cce1a3dd0 Merge pull request #17426 from swordqiu/automated-cherry-pick-of-#17425-upstream-release-3.10
Automated cherry pick of #17425: fix: more event show subcmd
2023-07-01 00:01:43 +08:00
Zexi Li
420e3a0290 Merge pull request #17428 from swordqiu/automated-cherry-pick-of-#17427-upstream-release-3.10
Automated cherry pick of #17427: fix: guestimage log panic
2023-07-01 00:01:10 +08:00
Qiu Jian
d1f08ab9f2 fix: guestimage log panic 2023-06-30 15:04:26 +08:00
Qiu Jian
fdea837584 fix: more event show subcmd 2023-06-30 12:20:49 +08:00
Zexi Li
53a83b59ff Merge pull request #17403 from gouqi11/automated-cherry-pick-of-#17395-upstream-release-3.10
Automated cherry pick of #17395: fix(notify): add more details for emailqueue
2023-06-30 10:15:30 +08:00
Zexi Li
61401b2aa4 Merge pull request #17415 from ioito/automated-cherry-pick-of-#17414-upstream-release-3.10
Automated cherry pick of #17414: fix(region): vendor update
2023-06-29 20:21:15 +08:00
Zexi Li
fe2f9ba4ba Merge pull request #17417 from ioito/automated-cherry-pick-of-#17416-upstream-release-3.10
Automated cherry pick of #17416: fix(host): log storage offline reason
2023-06-29 20:16:31 +08:00
Zexi Li
c9b30c53b5 Merge pull request #17420 from zexi/vpcagent-fetch-region-data
fix(vpcagent): fetch data from region server defaultly
2023-06-29 20:15:43 +08:00
马鸿飞
d0992b4ad6 fix(notify): add more details for emailqueue 2023-06-29 20:13:10 +08:00
Zexi Li
8a155219cf fix(vpcagent): fetch data from region server defaultly 2023-06-29 19:59:54 +08:00
ioito
6e80c69cc9 fix(host): log storage offline reason 2023-06-29 17:47:59 +08:00
ioito
6080f04e65 fix(region): vendor update 2023-06-29 17:25:10 +08:00
Zexi Li
cdabda1c06 Merge pull request #17411 from ioito/automated-cherry-pick-of-#17410-upstream-release-3.10
Automated cherry pick of #17410: fix(region): pve create
2023-06-29 16:26:02 +08:00
ioito
810fa8b819 fix(region): pve create 2023-06-29 15:49:58 +08:00
Zexi Li
48ffbd274b Merge pull request #17407 from ioito/automated-cherry-pick-of-#17406-upstream-release-3.10
Automated cherry pick of #17406: fix(image): optimized iso format check
2023-06-29 15:40:48 +08:00
Zexi Li
21aa000920 Merge pull request #17405 from ioito/automated-cherry-pick-of-#17404-upstream-release-3.10
Automated cherry pick of #17404: fix(region): cached image info sync
2023-06-29 15:39:25 +08:00
ioito
979b7645cb fix(image): optimized iso format check 2023-06-29 14:06:10 +08:00
ioito
e33e831594 fix(region): cached image info sync 2023-06-29 13:26:14 +08:00
Zexi Li
94a4d43332 Merge pull request #17402 from swordqiu/automated-cherry-pick-of-#17401-upstream-release-3.10
Automated cherry pick of #17401: fix: bucket short descption
2023-06-29 06:30:15 +08:00
Qiu Jian
439ee1a4da fix: bucket short descption 2023-06-29 02:51:59 +08:00
Zexi Li
86b12e92dc fix(host): add some logs for dhcp relay (#17386) 2023-06-27 23:50:42 +08:00
Zexi Li
9cd1a2fde5 Merge pull request #17369 from gouqi11/automated-cherry-pick-of-#17361-upstream-release-3.10
Automated cherry pick of #17361: fix(notify): add getSubscriberFunc more details
2023-06-27 20:23:07 +08:00
wanyaoqi
d29379bba4 fix(region): get guestdisks count filter deleted guests
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-06-27 18:10:45 +08:00
Zexi Li
df81b6c20d Merge pull request #17378 from ioito/automated-cherry-pick-of-#17377-upstream-release-3.10
Automated cherry pick of #17377: fix(region): vendor update
2023-06-27 11:03:24 +08:00
ioito
d1f8750f65 fix(region): vendor update 2023-06-27 10:33:33 +08:00
Zexi Li
77bbeeb4d1 Merge pull request #17371 from ioito/automated-cherry-pick-of-#17370-upstream-release-3.10
Automated cherry pick of #17370: fix(region): sync zstack vm ip
2023-06-26 16:40:11 +08:00
ioito
94e7607bdd fix(region): sync zstack vm ip 2023-06-26 15:56:01 +08:00
马鸿飞
ffa2a508b1 fix(notify): add getSubscriberFunc more details 2023-06-26 10:45:26 +08:00
Zexi Li
c906a0e18a Merge pull request #17367 from ioito/automated-cherry-pick-of-#17366-upstream-release-3.10
Automated cherry pick of #17366: fix(region): avoid aliyun elastic cache cycle sync
2023-06-26 10:12:58 +08:00
ioito
07afb19599 fix(region): avoid aliyun elastic cache cycle sync 2023-06-25 21:04:32 +08:00
Jian Qiu
ec8b24d6f3 fix: force no paging limit for list (#17355)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-06-21 20:16:51 +08:00
Zexi Li
579c51896d Merge pull request #17352 from gouqi11/automated-cherry-pick-of-#17351-upstream-release-3.10
Automated cherry pick of #17351: fix(notify): add topic_type for get subscription
2023-06-21 17:16:29 +08:00
Zexi Li
86077b4a8d Merge pull request #17346 from swordqiu/automated-cherry-pick-of-#17345-upstream-release-3.10
Automated cherry pick of #17345: fix: add process timeout option default_process_timeout_seconds
2023-06-21 16:39:09 +08:00
Zexi Li
56246be1c7 Merge pull request #17350 from ioito/automated-cherry-pick-of-#17349-upstream-release-3.10
Automated cherry pick of #17349: fix(region): cloudaccount filter
2023-06-21 16:38:19 +08:00
马鸿飞
a1ea2a412d fix(notify): add topic_type for get subscription 2023-06-21 16:36:12 +08:00
ioito
5ea21bc87e fix(region): cloudaccount filter 2023-06-21 16:00:09 +08:00
Qiu Jian
3451419a99 fix: add process timeout option default_process_timeout_seconds 2023-06-21 13:03:08 +08:00
Jian Qiu
2c64932e81 fix: async create external project (#17320)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-06-21 10:04:53 +08:00
屈轩
642345a464 fix(region): vendor update (#17333) 2023-06-21 10:04:33 +08:00
wanyaoqi
785770f037 fix(region): remove capabilites debug query (#17338) 2023-06-21 10:03:22 +08:00
Jian Qiu
bd07ba2af6 fix: detailed pending usage error (#17341)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-06-21 10:02:14 +08:00
Zexi Li
293ec30c01 Merge pull request #17324 from wanyaoqi/automated-cherry-pick-of-#17323-upstream-release-3.10
Automated cherry pick of #17323: fix(host-deployer): ubuntu like uos detect
2023-06-20 10:43:23 +08:00
Zexi Li
df7cb20337 Merge pull request #17326 from zexi/bm-power-metrics-panic
fix(baremetal): panic occured when fetch powerMetrics
2023-06-20 10:42:39 +08:00
Zexi Li
d3a1623c8c Merge pull request #17330 from gouqi11/automated-cherry-pick-of-#17329-upstream-release-3.10
Automated cherry pick of #17329: fix(region): listitemfilter ignore empty slice
2023-06-20 10:42:28 +08:00
马鸿飞
4e33ab354d fix(region): listitemfilter ignore empty slice 2023-06-20 10:38:28 +08:00
Zexi Li
5b62533240 fix(baremetal): panic occured when fetch powerMetrics 2023-06-19 14:49:46 +08:00
wanyaoqi
4c2aac4f2f fix(host-deployer): ubuntu like uos detect 2023-06-19 14:02:06 +08:00
Zexi Li
991a5c66d0 Merge pull request #17317 from ioito/automated-cherry-pick-of-#17316-upstream-release-3.10
Automated cherry pick of #17316: fix(region): 支持1/2类似的gpu数量
2023-06-15 20:52:45 +08:00
ioito
8045af3d4c fix(region): 支持1/2类似的gpu数量 2023-06-15 20:32:39 +08:00
Zexi Li
226cae2af1 Merge pull request #17315 from ioito/automated-cherry-pick-of-#17286-upstream-release-3.10
Automated cherry pick of #17286: fix(region): optimized sku sync
2023-06-15 20:26:40 +08:00
ioito
0588283628 fix(region): optimized sku sync 2023-06-15 20:11:42 +08:00
Zexi Li
7e5cac0fea Merge pull request #17313 from gouqi11/automated-cherry-pick-of-#17267-upstream-release-3.10
Automated cherry pick of #17267: fix(region): support slice for list
2023-06-15 16:10:26 +08:00
马鸿飞
70061c7ec2 fix(region): support slice for list 2023-06-15 15:59:47 +08:00
Zexi Li
e8eb570372 Merge pull request #17309 from gouqi11/automated-cherry-pick-of-#17308-upstream-release-3.10
Automated cherry pick of #17308: fix(notify): add option to filter disabled subscription
2023-06-15 15:48:45 +08:00
马鸿飞
d6bad55f9e fix(notify): add option to filter disabled subscription 2023-06-15 00:35:36 +08:00
Zexi Li
eeb9573ad0 Merge pull request #17307 from wanyaoqi/automated-cherry-pick-of-#17306-upstream-release-3.10
Automated cherry pick of #17306: fix(region): guest detach disk task duplicate callback
2023-06-15 00:03:39 +08:00
Zexi Li
08bc1f0258 Merge pull request #17301 from ioito/automated-cherry-pick-of-#17300-upstream-release-3.10
Automated cherry pick of #17300: fix(region): vendor update
2023-06-14 22:48:17 +08:00
Zexi Li
56ff9a63e6 Merge pull request #17276 from wanyaoqi/automated-cherry-pick-of-#17275-upstream-release-3.10
Automated cherry pick of #17275: fix(region,host): virtio dirver local disk live migrate
2023-06-14 22:47:20 +08:00
Zexi Li
e11240ea22 Merge pull request #17285 from wanyaoqi/automated-cherry-pick-of-#17284-upstream-release-3.10
Automated cherry pick of #17284: fix(host): host add option no_hpet
2023-06-14 22:46:40 +08:00
Zexi Li
606767ba92 Merge pull request #17290 from zexi/automated-cherry-pick-of-#17288-upstream-release-3.10
Automated cherry pick of #17288: fix(baremetal): skip 'Volatile Size' line when detecting memory size
2023-06-14 22:46:00 +08:00
wanyaoqi
1686157d07 fix(region): guest detach disk task duplicate callback 2023-06-14 16:57:57 +08:00
Zexi Li
2d3e204d7e Merge pull request #17304 from zhasm/automated-cherry-pick-of-#17299-upstream-release-3.10
Automated cherry pick of #17299: [wip] fix(docker,buildx): 兼容本地registry 模式
2023-06-14 15:31:54 +08:00
Zhang Dongliang
79208776a5 fix(docker,buildx): 兼容本地registry 模式 2023-06-14 15:21:10 +08:00
ioito
41c4469fd4 fix(region): vendor update 2023-06-14 15:11:18 +08:00
Zexi Li
3dddaf2000 Merge pull request #17293 from zhasm/automated-cherry-pick-of-#17292-upstream-release-3.10
Automated cherry pick of #17292: fix(docker,buildx): 跨平台编译优化
2023-06-13 17:27:43 +08:00
Zhang Dongliang
4132453665 fix(docker,buildx): 跨平台编译优化 2023-06-13 17:10:13 +08:00
wanyaoqi
ef152f7fc5 fix(region,host): virtio dirver local disk live migrate
Guest using the virtio-blk driver for local disks, iothread is used to
handle IO operations, Qemu will segfault when copying disks during live
migration. To address this issue, use nbd server and drive_mirror
approach to copy the disks.
2023-06-13 16:33:30 +08:00
Zexi Li
7818033a36 Merge pull request #17278 from wanyaoqi/automated-cherry-pick-of-#17277-upstream-release-3.10
Automated cherry pick of #17277: fix(region): qga set password not record logininfo
2023-06-13 13:18:52 +08:00
Zexi Li
88f3b3d23b Merge pull request #17283 from wanyaoqi/automated-cherry-pick-of-#17282-upstream-release-3.10
Automated cherry pick of #17282: fix(host): get live migration port before generate desc
2023-06-13 13:18:18 +08:00
Zexi Li
680cefff1f fix(baremetal): skip 'Volatile Size' line when detecting memory size 2023-06-13 13:16:21 +08:00
wanyaoqi
13bc96a0c8 fix(host): host add option no_hpet
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-06-12 17:32:31 +08:00
wanyaoqi
3166f36aa8 fix(host): get live migration port before generate desc
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-06-12 16:27:41 +08:00
wanyaoqi
5e95055854 fix(region): qga set password not record logininfo
guest create from iso no login_account, record login_account when login
account is empty.
2023-06-12 10:46:03 +08:00
Zexi Li
a13cf1116e Merge pull request #17249 from ioito/automated-cherry-pick-of-#17183-upstream-release-3.10
Automated cherry pick of #17183: fix(region): snapshot policy create and update
2023-06-12 10:09:09 +08:00
Zexi Li
5b9a44dbb5 Merge pull request #17272 from ioito/automated-cherry-pick-of-#17229-upstream-release-3.10
Automated cherry pick of #17229: fix(webconsole): ssh exit
2023-06-09 16:46:36 +08:00
ioito
b0b3a0ea89 fix(webconsole): ssh exit 2023-06-09 16:34:34 +08:00
Zexi Li
b002d434fa Merge pull request #17271 from ioito/automated-cherry-pick-of-#16208-upstream-release-3.10
Automated cherry pick of #16208: fix(webconsole): websocket ssh
2023-06-09 16:33:56 +08:00
ioito
645d171a74 fix(webconsole): websocket ssh 2023-06-09 16:20:38 +08:00
Zexi Li
82ef3ef3f2 Merge pull request #17259 from wanyaoqi/automated-cherry-pick-of-#17258-upstream-release-3.10
Automated cherry pick of #17258: fix(region): validate isolated device register
2023-06-09 16:18:08 +08:00
屈轩
b08b3ec64f fix(region): qcloud hypervisor (#17264) 2023-06-08 21:20:16 +08:00
wanyaoqi
13d4b4785b fix(region): validate isolated device register
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-06-07 16:38:31 +08:00
Zexi Li
b607321abc Merge pull request #17248 from wanyaoqi/automated-cherry-pick-of-#17246-upstream-release-3.10
Automated cherry pick of #17246: feat(region,host): support lvm disk as guest sys disk
2023-06-06 14:20:27 +08:00
Zexi Li
dffc97e745 Merge pull request #17251 from ioito/automated-cherry-pick-of-#17250-upstream-release-3.10
Automated cherry pick of #17250: fix(region): filter host by ips
2023-06-06 14:17:25 +08:00
ioito
06ed8ee803 fix(region): filter host by ips 2023-06-05 17:06:18 +08:00
ioito
0d6a95e195 fix(region): snapshot policy create and update 2023-06-05 16:44:56 +08:00
wanyaoqi
e1a6549947 feat(region,host): support lvm disk as guest sys disk 2023-06-05 16:21:26 +08:00
Zexi Li
cb27d631c2 Merge pull request #17241 from wanyaoqi/automated-cherry-pick-of-#17240-upstream-release-3.10
Automated cherry pick of #17240: fix(host): don't sync status on resume from postmigrate
2023-06-03 10:58:24 +08:00
Zexi Li
fd7ccd1b60 Merge pull request #17239 from ioito/automated-cherry-pick-of-#17238-upstream-release-3.10
Automated cherry pick of #17238: fix(region): swagger api update
2023-06-03 10:56:39 +08:00
wanyaoqi
c91dfc8ba4 fix(host): don't sync status on resume from postmigrate
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-06-02 18:43:46 +08:00
ioito
6c05d72e3d fix(region): swagger api update 2023-06-02 18:33:01 +08:00
wanyaoqi
4de21692eb fix(host): nics get sys conf quiet (#17206) 2023-06-01 20:46:12 +08:00
Jian Qiu
e3172f8d20 fix: allow LDAP sync extra tags (#17203)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-06-01 20:45:27 +08:00
Zexi Li
3e02111248 feat(climc): add service option for action-show command (#17222) 2023-06-01 20:43:57 +08:00
Zexi Li
6e2b36bf53 Merge pull request #17226 from gouqi11/automated-cherry-pick-of-#17225-upstream-release-3.10
Automated cherry pick of #17225: fix(apigateway): add handler for user to get self topic subscriptions
2023-06-01 17:55:10 +08:00
马鸿飞
ef94cd885d fix(apigateway): add handler for user to get self topic subscriptions 2023-06-01 16:59:08 +08:00
Zexi Li
cc0948b577 Merge pull request #17220 from ioito/automated-cherry-pick-of-#17219-upstream-release-3.10
Automated cherry pick of #17219: fix(region): vendor update
2023-05-31 21:37:33 +08:00
ioito
39fd6df5c7 fix(region): vendor update 2023-05-31 20:30:41 +08:00
Zexi Li
360d344aed Merge pull request #17215 from gouqi11/automated-cherry-pick-of-#17214-upstream-release-3.10
Automated cherry pick of #17214: fix(region): fix region.CreatedAt
2023-05-31 19:08:26 +08:00
马鸿飞
4c28049297 fix(region): fix region.CreatedAt 2023-05-31 16:16:12 +08:00
Zexi Li
b2ec3756d9 Merge pull request #17208 from zexi/monitor-time-perf
optimized(monitor): query metrics time
2023-05-31 15:19:41 +08:00
Zexi Li
30895fdaed optimized(monitor): query metrics time 2023-05-31 15:01:32 +08:00
屈轩
dd50edcbee fix(region): sync cloud project log (#17199) 2023-05-30 22:58:19 +08:00
wanyaoqi
a86d650129 fix(host): miss return on syncDiskConf (#17201)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-30 22:57:37 +08:00
Zexi Li
becfedcf7a fix(climc): release upgrade method (#17196) 2023-05-30 22:57:19 +08:00
Zexi Li
cf13801f44 Merge pull request #17181 from ioito/automated-cherry-pick-of-#17180-upstream-release-3.10
Automated cherry pick of #17180: fix(region): vpc purge
2023-05-30 17:41:50 +08:00
Zexi Li
6a67d88c23 Merge pull request #17188 from swordqiu/automated-cherry-pick-of-#17187-upstream-release-3.10
Automated cherry pick of #17187: fix: apigateway endpoint empty error
2023-05-30 17:40:55 +08:00
Zexi Li
5d9e4a53a0 Merge pull request #17192 from wanyaoqi/automated-cherry-pick-of-#17191-upstream-release-3.10
Automated cherry pick of #17191: fix(region): isolated device model add properties hot pluggable
2023-05-30 17:40:27 +08:00
Zexi Li
3becea76c7 Merge pull request #17185 from ioito/automated-cherry-pick-of-#17184-upstream-release-3.10
Automated cherry pick of #17184: fix(region): server list filter by ips
2023-05-30 17:39:27 +08:00
wanyaoqi
070db4887e fix(region): isolated device model add properties hot pluggable
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-30 15:23:35 +08:00
Qiu Jian
9a6069a96b fix: apigateway endpoint empty error 2023-05-30 11:19:35 +08:00
ioito
12f94559f1 fix(region): server list filter by ips 2023-05-29 20:31:34 +08:00
ioito
c755f3d40d fix(region): vpc purge 2023-05-29 16:46:06 +08:00
Zexi Li
a2c05f5f90 Merge pull request #17172 from wanyaoqi/automated-cherry-pick-of-#17171-upstream-release-3.10
Automated cherry pick of #17171: fix(host): adapt arm host no l3 cache but has l1/l2
2023-05-29 11:31:48 +08:00
Zexi Li
2755623ca8 Merge pull request #17174 from wanyaoqi/automated-cherry-pick-of-#17173-upstream-release-3.10
Automated cherry pick of #17173: fix(region): request host set auto migrate use hostId
2023-05-29 11:31:08 +08:00
Zexi Li
a6b15244d7 Merge pull request #17176 from wanyaoqi/automated-cherry-pick-of-#17175-upstream-release-3.10
Automated cherry pick of #17175: fix(region): check host update cmtbound on hugepage host
2023-05-29 11:30:34 +08:00
wanyaoqi
91947a5c16 fix(region): check host update cmtbound on hugepage host
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-29 11:13:56 +08:00
wanyaoqi
9303c35719 fix(region): request host set auto migrate use hostId 2023-05-29 10:23:27 +08:00
wanyaoqi
3876ab0f82 fix(host): adapt arm host no l3 cache but has l1/l2
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-26 22:59:43 +08:00
Jian Qiu
0fc89fad85 fix: resource short desc for elasticcache and natgateway (#17170)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-26 18:55:48 +08:00
Jian Qiu
a804818f82 fix: make cron day job happen earlier (#17167)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-26 17:02:17 +08:00
Jian Qiu
cf5833be81 fix: resource short desc (#17165)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-26 17:01:20 +08:00
Zexi Li
63b9933da6 Merge pull request #17161 from wanyaoqi/automated-cherry-pick-of-#17160-upstream-release-3.10
Automated cherry pick of #17160: fix(host): get pci controller type
2023-05-26 15:23:57 +08:00
wanyaoqi
7881393fb5 fix(host): get pci controller type
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-25 20:45:42 +08:00
Zexi Li
b636cf0f71 Merge pull request #17157 from gouqi11/automated-cherry-pick-of-#17156-upstream-release-3.10
Automated cherry pick of #17156: fix(keystone): fix refreshScopeResourceCount timeout
2023-05-25 20:12:19 +08:00
马鸿飞
61396da15e fix(keystone): fix refreshScopeResourceCount timeout 2023-05-25 15:24:43 +08:00
wanyaoqi
18719d3df1 fix(host): arm cdrom hotplug (#17151)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-25 06:47:32 +08:00
Zexi Li
1a0ddef9f0 feat(climc): make cloud-provider-clirc supports output format (#17147) 2023-05-24 19:01:17 +08:00
Zexi Li
e6b87c3d29 feat(climc): support output yaml format (#17145) 2023-05-24 19:00:52 +08:00
wanyaoqi
dd8ca4b919 fix(host): compatible host no l3 cache (#17121)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-24 06:25:55 +08:00
屈轩
d3ca7d2c1c fix(region): support shutdown mode (#17138) 2023-05-24 06:25:01 +08:00
wanyaoqi
97de8772c0 fix(host): hotplug pcie device use pcie root port (#17130) 2023-05-24 06:24:36 +08:00
Zexi Li
6519ad3e7b Merge pull request #17141 from ioito/automated-cherry-pick-of-#17140-upstream-release-3.10
Automated cherry pick of #17140: fix(region): support aws assign public ip with network
2023-05-24 00:05:32 +08:00
ioito
724ef6d16a fix(region): support aws assign public ip with network 2023-05-23 23:33:13 +08:00
Zexi Li
1669e4d542 Merge pull request #17136 from ioito/automated-cherry-pick-of-#17135-upstream-release-3.10
Automated cherry pick of #17135: fix(region): aws tag sync
2023-05-23 21:16:48 +08:00
ioito
6b67c52fdd fix(region): aws tag sync 2023-05-23 19:44:29 +08:00
Zexi Li
b03081dda2 Merge pull request #17126 from ioito/automated-cherry-pick-of-#17125-upstream-release-3.10
Automated cherry pick of #17125: fix(region): index order
2023-05-23 11:24:50 +08:00
ioito
1a2d2bafb0 fix(region): index order 2023-05-23 11:00:03 +08:00
gzericlee
47f04f296f feat(bingocloud): add bingoiam for oauth2 (#17084)
Co-authored-by: 李锐 <lirui@bingosoft.net>
2023-05-20 02:13:09 +08:00
wanyaoqi
e847b90566 fix(host): record live migrate resume task (#17093)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-20 02:12:47 +08:00
Jian Qiu
a7284d3cde fix: lbagent fail to start due to empty prioty and interface (#17117)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-20 02:11:19 +08:00
wanyaoqi
7b05bc3c92 fix(host): pciroot not assigned in switch case (#17102)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-20 02:10:25 +08:00
wanyaoqi
6769987981 fix(host): don't init pcie to pci bridge on pci extend disabled (#17115)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-20 02:10:03 +08:00
Zexi Li
bed1649474 fix(baremetal): skip running sysinit.sh when arch is aarch64 (#17104) 2023-05-19 17:34:36 +08:00
Zexi Li
7cf9a5e810 Merge pull request #17109 from gouqi11/automated-cherry-pick-of-#17108-upstream-release-3.10
Automated cherry pick of #17108: fxi(scheduledtask): skip task when scheduledtask.labels is empty
2023-05-19 17:30:41 +08:00
马鸿飞
4d111925df fxi(scheduledtask): skip task when scheduledtask.labels is empty 2023-05-19 15:51:39 +08:00
Zexi Li
960be32bec Merge pull request #17100 from gouqi11/automated-cherry-pick-of-#17098-upstream-release-3.10
Automated cherry pick of #17098: fix(keystone): user pwd expired notify bug fix
2023-05-19 12:06:34 +08:00
马鸿飞
016593d4c2 fix(keystone): user pwd expired notify bug fix 2023-05-19 12:03:19 +08:00
Zexi Li
9a51ce72c0 Merge pull request #17097 from ioito/automated-cherry-pick-of-#17096-upstream-release-3.10
Automated cherry pick of #17096: fix(climc): notify v2
2023-05-19 11:28:56 +08:00
ioito
a37149ecc9 fix(climc): notify v2 2023-05-19 11:09:12 +08:00
Zexi Li
d939a0bc5a Merge pull request #17078 from ioito/automated-cherry-pick-of-#17077-upstream-release-3.10
Automated cherry pick of #17077: fix(apigateway): image upload with properties
2023-05-19 10:49:41 +08:00
Zexi Li
e40e00b0b2 Merge pull request #17091 from ioito/automated-cherry-pick-of-#17090-upstream-release-3.10
Automated cherry pick of #17090: fix(region): openstack disk reset
2023-05-19 10:49:15 +08:00
Zexi Li
9e8da7b9cf Merge pull request #17064 from wanyaoqi/automated-cherry-pick-of-#17037-upstream-release-3.10
Automated cherry pick of #17037: feat(region,host): custom pci device type
2023-05-19 10:42:13 +08:00
ioito
533c761a2f fix(region): openstack disk reset 2023-05-18 19:35:25 +08:00
Jian Qiu
57bd0b059c fix: allow bootstrap role policy assignment without violation check (#17088)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-18 19:29:15 +08:00
Zexi Li
ce97fd0a65 Merge pull request #17076 from ioito/automated-cherry-pick-of-#17075-upstream-release-3.10
Automated cherry pick of #17075: fix(region): disable ping debug
2023-05-18 18:07:59 +08:00
Zexi Li
ad4722ecf5 Merge pull request #17081 from ioito/automated-cherry-pick-of-#17080-upstream-release-3.10
Automated cherry pick of #17080: fix(region): validate delete region
2023-05-18 18:07:02 +08:00
Zexi Li
321ec38d5d Merge pull request #17058 from gouqi11/automated-cherry-pick-of-#17057-upstream-release-3.10
Automated cherry pick of #17057: fix(region): snapshot code tidy
2023-05-18 18:06:25 +08:00
Zexi Li
0599ad6e6d Merge pull request #17086 from gouqi11/automated-cherry-pick-of-#17085-upstream-release-3.10
Automated cherry pick of #17085: fix(notify): fix feishu getAccessTokenFailed err
2023-05-18 18:05:18 +08:00
马鸿飞
10e0b1007e fix(notify): fix feishu getAccessTokenFailed err 2023-05-18 17:34:36 +08:00
ioito
873b2d58c4 fix(region): validate delete region 2023-05-18 16:09:37 +08:00
ioito
a190dbd8dd fix(apigateway): image upload with properties 2023-05-18 15:09:38 +08:00
ioito
6524a4864c fix(region): disable ping debug 2023-05-18 11:19:05 +08:00
Zexi Li
de84c4b8ad Merge pull request #17074 from gouqi11/automated-cherry-pick-of-#17060-upstream-release-3.10
Automated cherry pick of #17060: fix(notify): add func to get recevier subscription
2023-05-18 11:00:33 +08:00
马鸿飞
7a35416cd3 fix(notify): add func to get recevier subscription 2023-05-18 10:37:11 +08:00
Zexi Li
06fdb33e67 Merge pull request #17073 from wanyaoqi/automated-cherry-pick-of-#17072-upstream-release-3.10
Automated cherry pick of #17072: fix(host): fix arm topo lib ghw
2023-05-18 10:32:53 +08:00
wanyaoqi
dcdc7696a2 fix(region): list normal guests 2023-05-18 10:19:04 +08:00
wanyaoqi
56de7bd206 fix(host): fix arm topo lib ghw
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-18 10:09:34 +08:00
Zexi Li
0f0a5f34e4 Merge pull request #17067 from swordqiu/automated-cherry-pick-of-#17066-upstream-release-3.10
Automated cherry pick of #17066: fix: disable policy update when enable three member system
2023-05-18 02:17:31 +08:00
Zexi Li
6570552a10 Merge pull request #17070 from wanyaoqi/automated-cherry-pick-of-#17069-upstream-release-3.10
Automated cherry pick of #17069: fix(host): support arm host tcg qemu
2023-05-18 02:17:06 +08:00
Zexi Li
423c3a228e Merge pull request #17053 from wanyaoqi/automated-cherry-pick-of-#17052-upstream-release-3.10
Automated cherry pick of #17052: fix(region): guest restart network task params
2023-05-18 02:16:14 +08:00
wanyaoqi
88a4a835d5 fix(host): support arm host tcg qemu
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-18 00:32:33 +08:00
Qiu Jian
cb131ebf7d fix: disable policy update when enable three member system 2023-05-17 23:36:37 +08:00
wanyaoqi
b961ac5aee feat(region,host): custom pci device type 2023-05-17 17:24:54 +08:00
马鸿飞
4b46b483ab fix(region): snapshot code tidy 2023-05-17 10:52:13 +08:00
Zexi Li
3848411984 Merge pull request #17056 from gouqi11/automated-cherry-pick-of-#17055-upstream-release-3.10
Automated cherry pick of #17055: fix(excelutils): 取消负数标红
2023-05-16 19:38:47 +08:00
马鸿飞
def6a08c13 fix(excelutils): 取消负数标红 2023-05-16 19:36:25 +08:00
wanyaoqi
f827889d4d fix(region): guest restart network task params
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-16 15:03:29 +08:00
Zexi Li
40d691f497 Merge pull request #17046 from gouqi11/automated-cherry-pick-of-#17041-upstream-release-3.10
Automated cherry pick of #17041: fix(notify): add some template translate
2023-05-16 11:35:11 +08:00
Zexi Li
9a9dce85a0 Merge pull request #17048 from swordqiu/automated-cherry-pick-of-#17047-upstream-release-3.10
Automated cherry pick of #17047: fix: prevent policy violate when assigning policy to roles
2023-05-16 11:12:20 +08:00
屈轩
2838fdceb3 fix(region): secgroup rule sync with lock (#17051) 2023-05-16 10:55:06 +08:00
Qiu Jian
6d6cdbddbc fix: prevent policy violate when assigning policy to roles 2023-05-15 21:19:03 +08:00
马鸿飞
4a603c5d12 fix(notify): add some template translate 2023-05-15 21:10:12 +08:00
Zexi Li
388d000310 Merge pull request #17045 from ioito/automated-cherry-pick-of-#17044-upstream-release-3.10
Automated cherry pick of #17044: fix(region): vendor update
2023-05-15 20:11:54 +08:00
ioito
375d63103f fix(region): vendor update 2023-05-15 20:00:41 +08:00
Zexi Li
eda5d3223f feat(apimap): fetch vpcagent net topo info from DB (#17023) 2023-05-15 14:47:27 +08:00
Jian Qiu
f8734e4ab6 fix: options of the maximal number of roles of a user in project (#17034)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-05-14 08:35:09 +08:00
屈轩
9d54a1cfa7 fix(region): optimized snapshot list (#17014) 2023-05-13 07:53:09 +08:00
wanyaoqi
78fd4cb0d4 fix(host): guest sync update cdrom bootindex (#17026)
generate qemu cmdline check cdrom path before generate bootindex params

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-13 07:52:12 +08:00
wanyaoqi
8c27227d9a fix(host): check disk pci device is nil on init disks addrs (#17031)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-13 07:51:52 +08:00
屈轩
8408ac8383 fix(region): optimized sku sync (#17029) 2023-05-13 07:51:03 +08:00
Zexi Li
24e04ba84c Merge pull request #17017 from wanyaoqi/automated-cherry-pick-of-#17016-upstream-release-3.10
Automated cherry pick of #17016: fix(host): guest name has space
2023-05-12 10:32:33 +08:00
wanyaoqi
fa7934cc96 fix(host): guest name has space 2023-05-11 17:48:26 +08:00
Zexi Li
6fc152b653 Merge pull request #17013 from gouqi11/automated-cherry-pick-of-#17011-upstream-release-3.10
Automated cherry pick of #17011: fix(notify): fix notify webconsole
2023-05-11 16:18:05 +08:00
Zexi Li
df3b70b263 Merge pull request #17012 from gouqi11/automated-cherry-pick-of-#17008-upstream-release-3.10
Automated cherry pick of #17008: fix(region): add cleanSnapshotDate option
2023-05-11 16:17:21 +08:00
马鸿飞
9fceb5e521 fix(region): add cleanSnapshotDate option 2023-05-11 15:52:45 +08:00
马鸿飞
f5b8b5a476 fix(notify): fix notify webconsole 2023-05-11 14:15:53 +08:00
屈轩
cf2404a9e0 fix(region): show host info when cache image (#16999) 2023-05-11 11:03:25 +08:00
wanyaoqi
a5739a6597 fix(host): check running guest kvm off option (#16989) 2023-05-11 11:02:40 +08:00
Jian Qiu
d446886437 fix: policy tag filters not effect for shared resources (#17005)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-11 11:00:36 +08:00
gouqi11
cdd616a67c fix(region): add cronjob to cleaning snapshot (#17006)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-05-11 10:59:46 +08:00
Zexi Li
d598c6d710 Merge pull request #16992 from wanyaoqi/automated-cherry-pick-of-#16991-upstream-release-3.10
Automated cherry pick of #16991: fix(region): set sku maxmem size 1024G
2023-05-10 18:05:10 +08:00
Zexi Li
d1be28b740 Merge pull request #16994 from zexi/monitor-query-timeout
fix(monitor): adjust query timeout to 5 mins
2023-05-10 18:01:37 +08:00
Zexi Li
82f312ebb6 fix(monitor): adjust query timeout to 5 mins 2023-05-10 13:00:25 +08:00
wanyaoqi
da181bc3ca fix(region): set sku maxmem size 1024G
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-10 10:53:57 +08:00
Zexi Li
49f1c4f418 Merge pull request #16975 from ioito/automated-cherry-pick-of-#16973-upstream-release-3.10
Automated cherry pick of #16973: fix(region): optimized vpc-list
2023-05-10 09:58:37 +08:00
wanyaoqi
fa7fc2fbe5 fix(host): hide kvm only gpu guests (#16977)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-09 14:45:44 +08:00
Zexi Li
b4ed622c48 Merge pull request #16980 from ioito/automated-cherry-pick-of-#16979-upstream-release-3.10
Automated cherry pick of #16979: fix(region): elastic cache purge
2023-05-09 09:20:09 +08:00
Zexi Li
df6d93d285 Merge pull request #16984 from swordqiu/automated-cherry-pick-of-#16983-upstream-release-3.10
Automated cherry pick of #16983: fix: usage handler nil check revisit
2023-05-09 09:19:26 +08:00
Qiu Jian
f0379dc515 fix: usage handler nil check revisit 2023-05-08 20:50:17 +08:00
ioito
0380aef8ec fix(region): elastic cache purge 2023-05-08 16:05:24 +08:00
ioito
c5c59032bf fix(region): optimized vpc-list 2023-05-08 15:11:37 +08:00
Zexi Li
db5bcf94fa Merge pull request #16970 from swordqiu/automated-cherry-pick-of-#16969-upstream-release-3.10
Automated cherry pick of #16969: fix: three member policy adjustment 20230507
2023-05-08 10:29:15 +08:00
Zexi Li
fd5fc30c63 Merge pull request #16963 from ioito/automated-cherry-pick-of-#16962-upstream-release-3.10
Automated cherry pick of #16962: fix(glance): support filter image by os archs
2023-05-08 10:28:18 +08:00
Zexi Li
92652eab1d Merge pull request #16958 from wanyaoqi/automated-cherry-pick-of-#16957-upstream-release-3.10
Automated cherry pick of #16957: fix(host): don't return error on disk snap chain params miss
2023-05-08 10:26:29 +08:00
Zexi Li
1eafde7f91 Merge pull request #16967 from swordqiu/automated-cherry-pick-of-#16966-upstream-release-3.10
Automated cherry pick of #16966: fix: domain tag filter not working
2023-05-08 10:25:17 +08:00
Qiu Jian
ad1cc70909 fix: three member policy adjustment 20230507 2023-05-08 03:16:59 +08:00
Qiu Jian
edbcb92088 fix: domain tag filter not working 2023-05-08 02:25:19 +08:00
ioito
5ea9c26677 fix(glance): support filter image by os archs 2023-05-06 15:23:16 +08:00
wanyaoqi
a99bcd13f1 fix(host): don't return error on disk snap chain miss 2023-05-06 14:17:22 +08:00
Zexi Li
a673906288 Merge pull request #16954 from ioito/automated-cherry-pick-of-#16953-upstream-release-3.10
Automated cherry pick of #16953: fix(region): skip empty resource metric pull
2023-05-06 12:15:19 +08:00
ioito
db976a6512 fix(region): skip empty resource metric pull 2023-05-06 10:57:11 +08:00
Zexi Li
3e78208328 Merge pull request #16951 from wanyaoqi/automated-cherry-pick-of-#16950-upstream-release-3.10
Automated cherry pick of #16950: fix(region,host): migrate with out chain snapshots
2023-05-06 10:16:01 +08:00
wanyaoqi
bd4f9dd2cf fix(region,host): migrate with out chain snapshots
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-06 01:39:58 +08:00
Zexi Li
aed854edf6 Merge pull request #16949 from ioito/automated-cherry-pick-of-#16948-upstream-release-3.10
Automated cherry pick of #16948: fix(region): host status
2023-05-05 21:24:50 +08:00
ioito
9a290f12c1 fix(region): host status 2023-05-05 20:20:17 +08:00
Zexi Li
794e0b151c Merge pull request #16945 from ioito/automated-cherry-pick-of-#16944-upstream-release-3.10
Automated cherry pick of #16944: fix(region): allow query capabilities
2023-05-05 17:12:25 +08:00
Zexi Li
87f36191e1 Merge pull request #16941 from ioito/automated-cherry-pick-of-#16940-upstream-release-3.10
Automated cherry pick of #16940: fix(region): cloudpods secgroup rule
2023-05-05 17:11:57 +08:00
Zexi Li
853d7caf9d Merge pull request #16931 from ioito/automated-cherry-pick-of-#16930-upstream-release-3.10
Automated cherry pick of #16930: fix(region): optimized guest and cachedimage list speed
2023-05-05 17:10:55 +08:00
Zexi Li
920fc94f91 Merge pull request #16946 from ioito/hotfix/qx-aws-redis-tag
fix(region): vendor update for aws redis tag
2023-05-05 17:02:39 +08:00
ioito
e363f729ac fix(region): vendor update for aws redis tag 2023-05-05 17:00:33 +08:00
ioito
7adefec371 fix(region): allow query capabilities 2023-05-05 16:20:17 +08:00
Zexi Li
426071aa54 Merge pull request #16943 from zexi/automated-cherry-pick-of-#16936-upstream-release-3.10
Automated cherry pick of #16936: feat(climc): create k8s cluster v1.22.9
2023-05-05 16:13:33 +08:00
Zexi Li
c780616e43 feat(climc): create k8s cluster v1.22.9 2023-05-05 16:13:00 +08:00
wanyaoqi
b53926b8a6 fix(region): get cdrom details (#16928) 2023-05-05 15:07:43 +08:00
Zexi Li
f9c71874b6 fix(monitor): truncated JSONObject of alert model (#16934) 2023-05-05 14:43:14 +08:00
屈轩
c1285be160 fix(region): aws redis tags (#16938) 2023-05-05 14:42:22 +08:00
ioito
420ad0bcc1 fix(region): cloudpods secgroup rule 2023-05-05 11:44:58 +08:00
ioito
bad28dc7fd fix(region): optimized guest and cachedimage list speed 2023-05-04 14:22:23 +08:00
1884 changed files with 297607 additions and 68025 deletions

3
.editorconfig Normal file
View File

@@ -0,0 +1,3 @@
[*.sh]
indent_style = space
indent_size = 4

38
.github/workflows/ci-pr-build-test.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Building and test for PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Install check tools
shell: bash
run: |
set -o xtrace
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
- name: Test and build
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
make -j3 check
make test
targets="$(find cmd -mindepth 1 -maxdepth 1 -type d | grep -v cmd/host-image)"
echo $targets | tr ' ' '\n'
make $targets
ls -lh _output/bin

View File

@@ -1,233 +0,0 @@
name: Docker image
on:
push:
branches:
- master
- releases/*
#paths:
#- 'cmd/*'
#- 'pkg/*'
#- 'vendor/*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Build
run: |
sudo apt-get update
sudo apt-get install librados-dev librbd-dev # baremetal-agent needs this
make cmd/baremetal-agent && ./scripts/bundle_libraries.sh _output/bin/bundles/baremetal-agent _output/bin/baremetal-agent
make docker-alpine-build F='-j4 cmd/host cmd/vpcagent cmd/region-dns make cmd/apigateway cmd/climc cmd/keystone make cmd/logger cmd/region cmd/scheduler cmd/webconsole make cmd/yunionconf cmd/glance cmd/torrent cmd/s3gateway make cmd/ansibleserver cmd/cloudnet cmd/notify make cmd/host-deployer make cmd/cloudevent cmd/devtool cmd/cloudid make cmd/*cli make cmd/esxi-agent'
- name: Image region
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/region
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.region
- name: Image host
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/host
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.host
- name: Image host-deployer
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/host-deployer
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.host-deployer
- name: Image baremetal-agent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/baremetal-agent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.baremetal-agent
- name: Image esxi-agent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/esxi-agent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.esxi-agent
- name: Image vpcagent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/vpcagent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.vpcagent
- name: Image climc
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/climc
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.climc
- name: Image keystone
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/keystone
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.keystone
- name: Image logger
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/logger
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.logger
- name: Image scheduler
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/scheduler
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.scheduler
- name: Image apigateway
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/apigateway
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.apigateway
- name: Image s3gateway
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/s3gateway
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.s3gateway
- name: Image ansibleserver
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.ansibleserver
- name: Image cloudnet
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudnet
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.cloudnet
- name: Image glance
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/glance
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.glance
- name: Image notify
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/notify
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.notify
- name: Image cloudevent
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudevent
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.cloudevent
- name: Image cloudid
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/cloudid
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.cloudid
- name: Image devtool
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/devtool
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.devtool
- name: Image region DNS
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: registry.cn-beijing.aliyuncs.com/yunionio/region-dns
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-beijing.aliyuncs.com
snapshot: true
dockerfile: build/docker/Dockerfile.region-dns

52
.github/workflows/docker_apigateway.yml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: Apigateway Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/apigateway/**.go'
- 'pkg/apis/apigateway/**.go'
- 'pkg/mcclient/modules/**.go'
jobs:
build_apigateway:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image apigateway

50
.github/workflows/docker_climc.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Climc Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'cmd/climc/**.go'
- 'pkg/mcclient/**.go'
- 'vendor/yunion.io/x/structarg/**.go'
jobs:
build_climc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image climc

51
.github/workflows/docker_cloudmon.yml vendored Normal file
View File

@@ -0,0 +1,51 @@
name: Cloudmon Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudmon/**.go'
- 'vendor/yunion.io/x/cloudmux/pkg/multicloud/loader/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image cloudmon

49
.github/workflows/docker_esxi_agent.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: Esxi Agent Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/esxi/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image esxi-agent

53
.github/workflows/docker_glance.yml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: Glance Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/image/**.go'
- 'pkg/apis/image/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_glance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image glance

49
.github/workflows/docker_host.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: Host Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/hostman/**.go'
- 'pkg/apis/host/**.go'
jobs:
build_host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image host

53
.github/workflows/docker_keystone.yml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: Keystone Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/keystone/**.go'
- 'pkg/apis/identity/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_keystone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image keystone

53
.github/workflows/docker_logger.yml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: Logger Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/logger/**.go'
- 'pkg/apis/logger/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image logger

53
.github/workflows/docker_notify.yml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: Notify Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/notify/**.go'
- 'pkg/apis/notify/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image notify

54
.github/workflows/docker_region.yml vendored Normal file
View File

@@ -0,0 +1,54 @@
name: Region Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/compute/**.go'
- 'pkg/apis/compute/**.go'
- 'vendor/yunion.io/x/cloudmux/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_region:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image region

50
.github/workflows/docker_scheduler.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Scheduler Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/scheduler/**.go'
- 'pkg/apis/scheduler/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image scheduler

53
.github/workflows/docker_webconsole.yml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: Webconsole Docker Image
on:
push:
branches:
- 'releases/**'
- 'main'
- 'master'
paths:
- 'pkg/appsrv/**.go'
- 'pkg/cloudcommon/db/**.go'
- 'pkg/webconsole/**.go'
- 'pkg/apis/webconsole/**.go'
- 'vendor/yunion.io/x/sqlchemy/**.go'
- 'vendor/yunion.io/x/jsonutils/**.go'
jobs:
build_webconsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 8
- uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: https://registry.us-west-1.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build And Push Docker Image
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
branch="${GITHUB_REF#refs/heads/}"
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
export VERSION="$branch-$timestamp-solo"
export GOOS=linux
export ARCH=all
export REGISTRY=registry.us-west-1.aliyuncs.com/yunion-dev
make image webconsole

View File

@@ -287,9 +287,11 @@ GOPROXY ?= direct
mod:
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$$'))
go mod tidy
go mod vendor -v
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d yunion.io/x/sqlchemy@v1.1.2
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d yunion.io/x/pkg@v1.10.1
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' | egrep -v '/cloudmux$$|/sqlchemy$$|/pkg$$'))
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go mod tidy
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go mod vendor -v
define helpText
Build with docker
@@ -349,7 +351,7 @@ image:
.PHONY: image
image-telegraf-raid-plugin:
VERSION=release-1.6.4 ARCH=all make image telegraf-raid-plugin
VERSION=release-1.6.5 ARCH=all make image telegraf-raid-plugin
%:
@:

View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -e
BASHRC=/etc/profile.d/climc.sh
grep -q rcadmin $BASHRC || echo 'source /etc/yunion/rcadmin' >> $BASHRC
source $BASHRC
climc sshkeypair-inject --admin --target-dir /root/
mkdir -p /etc/dropbear
mkdir -p /var/run/dropbear
test -f /etc/dropbear/dropbear_rsa_host_key || dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
dropbear -RFEjk -G root -p 22

View File

@@ -1,3 +1,14 @@
export PATH=/opt/yunion/bin:$PATH
if [ -f /etc/profile.d/bash_completion.sh ]; then
source /etc/profile.d/bash_completion.sh
fi
test -f /etc/yunion/rcadmin && source /etc/yunion/rcadmin
source <(climc --completion bash)
source <(kubectl completion bash)
echo "Welcome to Cloud Shell :-) You may execute climc and other command tools in this shell."
echo "Please exec 'climc' to get started"
echo ""

View File

@@ -47,6 +47,11 @@ do
climc server-purge $i > /dev/null
done
for i in $(climc server-list --admin --limit 2048 --system --filter "backup_host_id.equals($HOSTID)" | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $2}')
do
climc server-delete-backup $i > /dev/null
done
echo "3. Clean disks on $HOSTNAME($HOSTID)"
for storageid in $(climc host-storage-list --host $HOSTID --show-emulated | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | awk '{print $4}')

View File

@@ -1,7 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v1.1.1
# install playbook and telegraf install pkg
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.4.0 /opt/yunion/playbook /opt/yunion/playbook
COPY --from=registry.cn-beijing.aliyuncs.com/yunionio/file-repo:v0.4.0 /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

@@ -9,12 +9,20 @@ RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /e
# openssh-client, for ansible ssh connection
# git, ca-certificates, for fetching ansible roles
RUN set -x \
&& apk update \
&& apk add openssh-client \
&& apk add sshpass \
&& apk add ansible \
&& apk add py3-pip \
&& apk add tzdata git ca-certificates \
&& rm -rf /var/cache/apk/*
&& apk update \
&& apk add openssh-client \
&& apk add sshpass \
&& apk add py3-pip \
&& apk add tzdata git ca-certificates
RUN pip3 install pywinrm
RUN apk add --no-cache openssh openssl curl rsync pv mariadb-client
RUN apk add --no-cache --virtual .build-dependencies \
libffi-dev openssl-dev python3-dev build-base py-setuptools rust cargo mariadb-dev
# ansible should be installed
# after setuptools and wheel
RUN pip3 install -U pip setuptools wheel \
&& 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

@@ -0,0 +1,3 @@
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,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.9-20230221.2
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.9-20231219.0
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"

View File

@@ -1,7 +1,7 @@
#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:v0.1.8-20230221.2 as yunionos
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunionos:v3.10.8-20231215.0 as yunionos
FROM centos:8 as grub-stage

View File

@@ -1,7 +1,7 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20210901
FROM registry.cn-beijing.aliyuncs.com/yunionio/climc-base:20230731.5
ADD ./build/climc/root/opt /opt
RUN cat /opt/yunion/scripts/motd/climc.sh >> /root/.bashrc
RUN cp /opt/yunion/scripts/motd/climc.sh /etc/profile.d/climc.sh && ln -sf /etc/profile.d/climc.sh /root/.bashrc
ADD ./_output/alpine-build/bin/climc ./_output/alpine-build/bin/*cli /opt/yunion/bin/

View File

@@ -1,5 +1,9 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.3.5
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETARCH
MAINTAINER "Zexi Li <lizexi@yunionyun.com>"
ENV TZ Asia/Shanghai
@@ -8,11 +12,13 @@ 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 kubectl ceph-common && \
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 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
ENV PATH="/opt/yunion/bin:${PATH}"
RUN mkdir -p /opt/yunion/bin

View File

@@ -1,3 +1,5 @@
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>"
@@ -11,12 +13,13 @@ RUN set -x \
# install default playbook and install pkg
Run mkdir -p /opt/yunion/ansible-install-pkg
Run wget https://yunioniso.oss-cn-beijing.aliyuncs.com/rpms/telegraf/telegraf-1.19.2-yn~be742cbf-0.x86_64.rpm -P /opt/yunion/ansible-install-pkg
Run wget https://yunioniso.oss-cn-beijing.aliyuncs.com/rpms/telegraf/telegraf-1.19.2-yn~be742cbf-0.aarch64.rpm -P /opt/yunion/ansible-install-pkg
Run wget https://yunioniso.oss-cn-beijing.aliyuncs.com/rpms/telegraf/telegraf_1.19.2-yn~be742cbf-0_arm64.deb -P /opt/yunion/ansible-install-pkg
Run wget https://yunioniso.oss-cn-beijing.aliyuncs.com/rpms/telegraf/telegraf_1.19.2-yn~be742cbf-0_amd64.deb -P /opt/yunion/ansible-install-pkg
Run wget https://yunioniso.oss-cn-beijing.aliyuncs.com/rpms/telegraf/telegraf-1.19.2-yn~be742cbf_windows_amd64.zip -P /opt/yunion/ansible-install-pkg
Run wget https://yunioniso.oss-cn-beijing.aliyuncs.com/rpms/telegraf/telegraf-1.19.2-yn~be742cbf_windows_i386.zip -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

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:1.3
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-deployer-base:1.4.4
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"

View File

@@ -1,3 +1,3 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/webconsole-base:v0.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

@@ -15,22 +15,22 @@ onecloud-base:
onecloud-base-3-15-4:
$(DOCKER_BUILDX)/onecloud-base:$(ONECLOUD_BASE_VERSION_3-15-4) -f ./Dockerfile.onecloud-base-3-15-4 .
ANSIBLESERVER_BASE = v1.1.1
ANSIBLESERVER_BASE = v1.1.2
ansibleserver-base:
$(DOCKER_BUILDX)/ansibleserver-base:$(ANSIBLESERVER_BASE) -f ./Dockerfile.ansibleserver-base .
CLIMC_BASE_VERSION = 20210901
CLIMC_BASE_VERSION = 20230731.5
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 .
WEBCONSOLE_BASE_VERSION = v0.2-1
WEBCONSOLE_BASE_VERSION = 20230731.2
webconsole-base:
$(DOCKER_BUILDX)/webconsole-base:$(WEBCONSOLE_BASE_VERSION) -f ./Dockerfile.webconsole-base .
BAREMETAL_BASE_VERSION = v0.3.9-20230221.2
BAREMETAL_BASE_VERSION = v0.3.9-20231219.1
baremetal-base:
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .
@@ -44,7 +44,7 @@ GLANCE_BASE_VERSION = v0.0.1
glance-base:
$(DOCKER_BUILDX)/glance-base:$(GLANCE_BASE_VERSION) -f ./Dockerfile.glance-base .
FILE_REPO_VERSION = v0.3.3
FILE_REPO_VERSION = v0.5.2
file-repo:
$(DOCKER_BUILDX)/file-repo:$(FILE_REPO_VERSION) -f ./Dockerfile.file-repo .

View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -e
BASHRC=/root/.bashrc
source $BASHRC
climc sshkeypair-inject --admin
mkdir -p /etc/dropbear
mkdir -p /var/run/dropbear
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
dropbear -RFEjk -G root -p 22

View File

@@ -3,7 +3,7 @@
触发时间: {{.start_time}}
报警级别: {{.level}}
触发条件: {{.description | unescaped}}
资源数量:{{len .matches}}
报警数量:{{len .matches}}
资源名称:{{.resource_name}}
详情地址: {{.web_url}}

View File

@@ -108,6 +108,7 @@
<td>名称</td>
<td>IP</td>
<td>平台</td>
<td>指标</td>
<td>触发值</td>
</tr>
</thead>
@@ -124,7 +125,8 @@
<td>
{{ index .tags "brand" }}
</td>
<td>{{$Matche.value_str}}</td>
<td>{{ $Matche.metric }}</td>
<td>{{ $Matche.value_str }}</td>
</tr>
{{end}}
</tbody>

View File

@@ -3,7 +3,7 @@ AlertName: {{.name}}
Time: {{.start_time}}
Level: {{.level}}
TriggerCondition: {{.description | unescaped}}
ResourceCount: {{len .matches}}
AlertCount: {{len .matches}}
ResourceName: {{.resource_name}}
WebUrl: {{.web_url}}

View File

@@ -108,6 +108,7 @@
<td>Name</td>
<td>IP</td>
<td>Brand</td>
<td>Metric</td>
<td>Trigger value</td>
</tr>
</thead>
@@ -124,7 +125,8 @@
<td>
{{ index .tags "brand" }}
</td>
<td>{{$Matche.value_str}}</td>
<td>{{ $Matche.metric }}</td>
<td>{{ $Matche.value_str }}</td>
</tr>
{{end}}
</tbody>

View File

@@ -1,2 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.account }}:您的密码有效期将过,请及时登录平台更新密码。
{{ $d.account }}:您的密码将在{{ $d.advance_days }} 天后过期,请及时登录平台更新密码。

View File

@@ -1,2 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.account }}:Your password is valid and will expire soon. Please log in to the platform in time to update your password.
{{ $d.account }}:Your password will expire in {{ $d.advance_days}} days. Please log in to the platform in time to update your password.

View File

@@ -1,2 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.account }}:您的密码有效期将过,请及时登录平台更新密码。
{{ $d.account }}:您的密码有效期将过

View File

@@ -1,2 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.account }}:Your password is valid and will expire soon. Please log in to the platform in time to update your password.
{{ $d.account }}:Your password is valid and will expire soon

21
cmd/apimap/main.go Normal file
View File

@@ -0,0 +1,21 @@
// 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/apimap/service"
func main() {
service.StartService()
}

View File

@@ -72,7 +72,7 @@ type BaseOptions struct {
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"`
// ApiVersion string `default:"$API_VERSION" help:"override default modules service api version"`
OutputFormat string `default:"$CLIMC_OUTPUT_FORMAT|table" choices:"table|kv|json|flatten-table|flatten-kv" help:"output format"`
OutputFormat string `default:"$CLIMC_OUTPUT_FORMAT|table" choices:"table|kv|json|yaml|flatten-table|flatten-kv" help:"output format"`
ParallelRun int `help:"run in parallel to stess test the performance of server"`

View File

@@ -18,6 +18,7 @@ import (
"yunion.io/x/onecloud/cmd/climc/entry"
_ "yunion.io/x/onecloud/cmd/climc/shell"
_ "yunion.io/x/onecloud/cmd/climc/shell/ansible"
_ "yunion.io/x/onecloud/cmd/climc/shell/apimap"
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudevent"
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudid"
_ "yunion.io/x/onecloud/cmd/climc/shell/cloudnet"
@@ -32,7 +33,7 @@ import (
_ "yunion.io/x/onecloud/cmd/climc/shell/logger"
_ "yunion.io/x/onecloud/cmd/climc/shell/misc"
_ "yunion.io/x/onecloud/cmd/climc/shell/monitor"
_ "yunion.io/x/onecloud/cmd/climc/shell/notifyv2"
_ "yunion.io/x/onecloud/cmd/climc/shell/notify"
_ "yunion.io/x/onecloud/cmd/climc/shell/quota"
_ "yunion.io/x/onecloud/cmd/climc/shell/scheduledtask"
_ "yunion.io/x/onecloud/cmd/climc/shell/scheduler"

View File

@@ -75,7 +75,7 @@ func Executor(s string) {
} else {
session.GetClient().SetDebug(false)
}
if subparser.IsHelpSet() {
if subparser != nil && subparser.IsHelpSet() {
fmt.Print(subparser.HelpString())
return
}

View File

@@ -0,0 +1,36 @@
// 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 apimap
import (
"fmt"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/apimap"
)
func init() {
type GetOptions struct{}
shell.R(new(GetOptions), "apimap-vpcagent", "Show net map for vpcagent", func(s *mcclient.ClientSession, _ *GetOptions) error {
ret, err := apimap.APIMap.GetVPCAgentTopo(s)
if err != nil {
return err
}
fmt.Print(ret.YAMLString())
return nil
})
}

View File

@@ -49,4 +49,10 @@ func init() {
ibCmd.Create(&compute.InstanceBackupManagerCreateFromPackageOptions{})
ibCmd.Perform("syncstatus", &compute.DiskBackupSyncstatusOptions{})
ibCmd.Perform("set-class-metadata", &options.ResourceMetadataOptions{})
hbsCmd := shell.NewJointCmd(&modules.HostBackupstorages)
hbsCmd.List(&compute.HostBackupStorageListOptions{})
hbsCmd.Show(&compute.HostBackupStorageJoinOptions{})
hbsCmd.Attach(&compute.HostBackupStorageJoinOptions{})
hbsCmd.Detach(&compute.HostBackupStorageJoinOptions{})
}

View File

@@ -0,0 +1,50 @@
// 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 compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
baremetalmodules "yunion.io/x/onecloud/pkg/mcclient/modules/compute/baremetal"
baremetaloptions "yunion.io/x/onecloud/pkg/mcclient/options/compute/baremetal"
)
func init() {
cmd := shell.NewResourceCmd(&baremetalmodules.BaremetalProfiles)
cmd.List(new(baremetaloptions.BaremetalProfileListOptions))
cmd.Show(new(baremetaloptions.BaremetalProfileIdOptions))
cmd.Delete(new(baremetaloptions.BaremetalProfileIdOptions))
type BaremetalProfileMatchOpts struct {
OEMNAME string
MODEL string
}
R(&BaremetalProfileMatchOpts{}, "baremetal-profile-match", "find match baremetal profile by oemname and model", func(s *mcclient.ClientSession, args *BaremetalProfileMatchOpts) error {
specs, err := baremetalmodules.BaremetalProfiles.GetMatchProfiles(s, args.OEMNAME, args.MODEL)
if err != nil {
return errors.Wrap(err, "GetMatchProfiles")
}
listResults := printutils.ListResult{}
for _, spec := range specs {
listResults.Data = append(listResults.Data, jsonutils.Marshal(spec))
}
printList(&listResults, nil)
return nil
})
}

View File

@@ -42,8 +42,8 @@ func init() {
}
var result *printutils.ListResult
var err error
if len(args.Manager) > 0 {
result, err = modules.CloudproviderregionManager.ListDescendent(s, args.Manager, params)
if len(args.Manager) == 1 {
result, err = modules.CloudproviderregionManager.ListDescendent(s, args.Manager[0], params)
} else if len(args.Region) > 0 {
result, err = modules.CloudproviderregionManager.ListDescendent2(s, args.Region, params)
} else {

View File

@@ -26,6 +26,11 @@ import (
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
type ClircShowOpt struct {
options.BaseIdOptions
FollowOutputFormat bool `help:"follow output format"`
}
func init() {
cmd := shell.NewResourceCmd(&modules.Cloudproviders).WithKeyword("cloud-provider")
cmd.List(&compute.CloudproviderListOptions{})
@@ -39,17 +44,21 @@ func init() {
cmd.Perform("project-mapping", &compute.ClouproviderProjectMappingOptions{})
cmd.Perform("set-syncing", &compute.ClouproviderSetSyncingOptions{})
cmd.GetWithCustomShow("clirc", func(result jsonutils.JSONObject) {
cmd.GetWithCustomOptionShow("clirc", func(result jsonutils.JSONObject, opt shell.IGetOpt) {
rc := make(map[string]string)
err := result.Unmarshal(&rc)
if err != nil {
log.Errorf("error: %v", err)
log.Errorf("Unmarshal error: %v", err)
return
}
for k, v := range rc {
fmt.Printf(`export %s='%s'`+"\n", k, v)
if opt.(*ClircShowOpt).FollowOutputFormat {
shell.PrintObject(result)
} else {
for k, v := range rc {
fmt.Printf(`export %s='%s'`+"\n", k, v)
}
}
}, &options.BaseIdOptions{})
}, &ClircShowOpt{})
cmd.Get("storage-classes", &compute.CloudproviderStorageClassesOptions{})
cmd.Get("change-owner-candidate-domains", &options.BaseIdOptions{})
cmd.Get("balance", &options.BaseIdOptions{})

View File

@@ -24,26 +24,14 @@ import (
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Cloudregions).WithKeyword("cloud-region")
cmd.PerformClass("sync-skus", &options.CloudregionSkuSyncOptions{})
cmd.Perform("sync-images", &options.CloudregionIdOptions{})
R(&options.SkuTaskQueryOptions{}, "cloud-region-sync-task-show", "Show details of skus sync tasks", func(s *mcclient.ClientSession, args *options.SkuTaskQueryOptions) error {
params, err := args.Params()
if err != nil {
return err
}
result, err := modules.Cloudregions.Get(s, "sync-tasks", params)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd.PerformClass("sync-skus", &compute.CloudregionSkuSyncOptions{})
cmd.Perform("sync-images", &compute.CloudregionIdOptions{})
cmd.Perform("purge", &compute.CloudregionPurgeOptions{})
type CloudregionListOptions struct {
options.BaseListOptions

View File

@@ -16,7 +16,6 @@ package compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -25,19 +24,4 @@ func init() {
cmd := shell.NewResourceCmd(&modules.DBInstanceSkus).WithKeyword("dbinstance-sku")
cmd.List(&options.DBInstanceSkuListOption{})
cmd.Show(&options.DBInstanceSkuIdOption{})
cmd.PerformClass("sync-skus", &options.SkuSyncOptions{})
R(&options.SkuTaskQueryOptions{}, "dbinstance-sku-sync-task-show", "Show details of skus sync tasks", func(s *mcclient.ClientSession, args *options.SkuTaskQueryOptions) error {
params, err := args.Params()
if err != nil {
return err
}
result, err := modules.DBInstanceSkus.Get(s, "sync-tasks", params)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -174,6 +174,7 @@ func init() {
AutoSnapshot string `help:"enable/disable auto snapshot of disk" choices:"enable|disable"`
DiskType string `help:"Disk type" choices:"data|volume"`
IsSsd *bool `help:"mark disk as ssd" negative:"no-is-ssd"`
AutoReset *bool `help:"Enable auto reset disk after geust shutdown"`
}
R(&DiskUpdateOptions{}, "disk-update", "Update property of a virtual disk", func(s *mcclient.ClientSession, args *DiskUpdateOptions) error {
params := jsonutils.NewDict()
@@ -207,6 +208,10 @@ func init() {
params.Add(jsonutils.JSONFalse, "is_ssd")
}
}
if args.AutoReset != nil {
params.Add(jsonutils.NewBool(*args.AutoReset), "auto_reset")
}
if params.Size() == 0 {
return InvalidUpdateError()
}

View File

@@ -15,129 +15,18 @@
package compute
import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
R(&options.DNSListOptions{}, "dns-list", "List dns records", func(s *mcclient.ClientSession, opts *options.DNSListOptions) error {
params, err := options.ListStructToParams(opts)
if err != nil {
return err
}
result, err := modules.DNSRecords.List(s, params)
if err != nil {
return err
}
printList(result, modules.DNSRecords.GetColumns(s))
return nil
})
R(&options.DNSCreateOptions{}, "dns-create", "Create dns record", func(s *mcclient.ClientSession, opts *options.DNSCreateOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
rec, e := modules.DNSRecords.Create(s, params)
if e != nil {
return e
}
printObject(rec)
return nil
})
R(&options.DNSGetOptions{}, "dns-show", "Show details of a dns records", func(s *mcclient.ClientSession, opts *options.DNSGetOptions) error {
dns, e := modules.DNSRecords.Get(s, opts.ID, nil)
if e != nil {
return e
}
printObject(dns)
return nil
})
R(&options.DNSUpdateOptions{}, "dns-update", "Update details of a dns records", func(s *mcclient.ClientSession, opts *options.DNSUpdateOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
dns, e := modules.DNSRecords.Update(s, opts.ID, params)
if e != nil {
return e
}
printObject(dns)
return nil
})
R(&options.DNSGetOptions{}, "dns-delete", "Delete a dns record", func(s *mcclient.ClientSession, opts *options.DNSGetOptions) error {
dns, e := modules.DNSRecords.Delete(s, opts.ID, nil)
if e != nil {
return e
}
printObject(dns)
return nil
})
R(&options.DNSGetOptions{}, "dns-public", "Make a dns record publicly available", func(s *mcclient.ClientSession, opts *options.DNSGetOptions) error {
dns, e := modules.DNSRecords.PerformAction(s, opts.ID, "public", nil)
if e != nil {
return e
}
printObject(dns)
return nil
})
R(&options.DNSGetOptions{}, "dns-private", "Make a dns record private", func(s *mcclient.ClientSession, opts *options.DNSGetOptions) error {
dns, e := modules.DNSRecords.PerformAction(s, opts.ID, "private", nil)
if e != nil {
return e
}
printObject(dns)
return nil
})
R(&options.DNSGetOptions{}, "dns-enable", "Enable dns record", func(s *mcclient.ClientSession, opts *options.DNSGetOptions) error {
dns, e := modules.DNSRecords.PerformAction(s, opts.ID, "enable", nil)
if e != nil {
return e
}
printObject(dns)
return nil
})
R(&options.DNSGetOptions{}, "dns-disable", "Disable dns record", func(s *mcclient.ClientSession, opts *options.DNSGetOptions) error {
dns, e := modules.DNSRecords.PerformAction(s, opts.ID, "disable", nil)
if e != nil {
return e
}
printObject(dns)
return nil
})
R(&options.DNSUpdateRecordsOptions{}, "dns-add-records", "Add DNS records to a name", func(s *mcclient.ClientSession, opts *options.DNSUpdateRecordsOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
dns, e := modules.DNSRecords.PerformAction(s, opts.ID, "add-records", params)
if e != nil {
return e
}
printObject(dns)
return nil
})
R(&options.DNSUpdateRecordsOptions{}, "dns-remove-records", "Remove DNS records from a name", func(s *mcclient.ClientSession, opts *options.DNSUpdateRecordsOptions) error {
params, err := opts.Params()
if err != nil {
return err
}
dns, e := modules.DNSRecords.PerformAction(s, opts.ID, "remove-records", params)
if e != nil {
return e
}
printObject(dns)
return nil
})
cmd := shell.NewResourceCmd(&modules.DnsRecords).WithKeyword("dns-record")
cmd.List(&compute.DnsRecordListOptions{})
cmd.Create(&compute.DnsRecordCreateOptions{})
cmd.Update(&compute.DnsRecordUpdateOptions{})
cmd.Show(&compute.DnsRecordIdOptions{})
cmd.Delete(&compute.DnsRecordIdOptions{})
cmd.Perform("enable", &compute.DnsRecordIdOptions{})
cmd.Perform("disable", &compute.DnsRecordIdOptions{})
}

View File

@@ -1,33 +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 compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
cmd := shell.NewResourceCmd(&modules.DnsRecordSets).WithKeyword("dns-recordset")
cmd.List(&options.DnsRecordSetListOptions{})
cmd.Create(&options.DnsRecordSetCreateOptions{})
cmd.Update(&options.DnsRecordSetUpdateOptions{})
cmd.Show(&options.DnsRecordSetIdOptions{})
cmd.Delete(&options.DnsRecordSetIdOptions{})
cmd.Perform("enable", &options.DnsRecordSetIdOptions{})
cmd.Perform("disable", &options.DnsRecordSetIdOptions{})
cmd.Perform("set-traffic-policies", &options.DnsRecordSetTrafficPolicyOptions{})
}

View File

@@ -22,23 +22,20 @@ import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.DnsZones).WithKeyword("dns-zone")
cmd.List(&options.SDnsZoneListOptions{})
cmd.Show(&options.SDnsZoneIdOptions{})
cmd.ClassShow(&options.DnsZoneCapabilitiesOptions{})
cmd.Delete(&options.SDnsZoneIdOptions{})
cmd.Create(&options.DnsZoneCreateOptions{})
cmd.Perform("syncstatus", &options.SDnsZoneIdOptions{})
cmd.Perform("sync-recordsets", &options.SDnsZoneIdOptions{})
cmd.Perform("cache", &options.DnsZoneCacheOptions{})
cmd.Perform("uncache", &options.DnsZoneUncacheOptions{})
cmd.Perform("purge", &options.SDnsZoneIdOptions{})
cmd.Perform("add-vpcs", &options.DnsZoneAddVpcsOptions{})
cmd.Perform("remove-vpcs", &options.DnsZoneRemoveVpcsOptions{})
cmd.List(&compute.SDnsZoneListOptions{})
cmd.Show(&compute.SDnsZoneIdOptions{})
cmd.ClassShow(&compute.DnsZoneCapabilitiesOptions{})
cmd.Delete(&compute.SDnsZoneIdOptions{})
cmd.Create(&compute.DnsZoneCreateOptions{})
cmd.Perform("syncstatus", &compute.SDnsZoneIdOptions{})
cmd.Perform("purge", &compute.SDnsZoneIdOptions{})
cmd.Perform("add-vpcs", &compute.DnsZoneAddVpcsOptions{})
cmd.Perform("remove-vpcs", &compute.DnsZoneRemoveVpcsOptions{})
cmd.GetWithCustomShow("exports", func(result jsonutils.JSONObject) {
rr := make(map[string]string)
err := result.Unmarshal(&rr)
@@ -49,5 +46,5 @@ func init() {
for _, v := range rr {
fmt.Printf("%s\n", v)
}
}, &options.SDnsZoneIdOptions{})
}, &compute.SDnsZoneIdOptions{})
}

View File

@@ -23,11 +23,12 @@ import (
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.ElasticcacheSkus).WithKeyword("elastic-cache-sku")
cmd.PerformClass("sync-skus", &options.SkuSyncOptions{})
cmd.PerformClass("sync-skus", &compute.SkuSyncOptions{})
R(&options.BaseListOptions{}, "elastic-cache-list", "List elastisc cache instance", func(s *mcclient.ClientSession, opts *options.BaseListOptions) error {
params, err := options.ListStructToParams(opts)
@@ -411,20 +412,6 @@ func init() {
return nil
})
R(&options.SkuTaskQueryOptions{}, "elastic-cache-sku-sync-task-show", "Show details of skus sync tasks", func(s *mcclient.ClientSession, args *options.SkuTaskQueryOptions) error {
params, err := args.Params()
if err != nil {
return err
}
result, err := modules.ElasticcacheSkus.Get(s, "sync-tasks", params)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&options.ResourceMetadataOptions{}, "elastic-cache-add-tag", "Set tag of a server", func(s *mcclient.ClientSession, opts *options.ResourceMetadataOptions) error {
params, err := opts.Params()
if err != nil {

View File

@@ -25,6 +25,7 @@ func init() {
cmd := shell.NewResourceCmd(&compute.ExternalProjects).WithKeyword("external-project")
cmd.List(&opts.ExternalProjectListOptions{})
cmd.Create(&opts.ExternalProjectCreateOptions{})
cmd.Update(&opts.ExternalProjectUpdateOptions{})
cmd.Show(&options.BaseIdOptions{})
cmd.Perform("change-project", &opts.ExterProjectChagneProjectOptions{})
}

View File

@@ -23,6 +23,7 @@ import (
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/httputils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
@@ -41,6 +42,7 @@ func init() {
cmd.GetProperty(&compute.HostStatusStatisticsOptions{})
cmd.Perform("ping", &options.BaseIdOptions{})
cmd.Perform("purge", &options.BaseIdOptions{})
cmd.Perform("undo-convert", &options.BaseIdOptions{})
cmd.Perform("maintenance", &options.BaseIdOptions{})
cmd.Perform("unmaintenance", &options.BaseIdOptions{})
@@ -52,6 +54,7 @@ func init() {
cmd.Perform("probe-isolated-devices", &options.BaseIdOptions{})
cmd.Perform("class-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("set-class-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("set-commit-bound", &compute.HostSetCommitBoundOptions{})
cmd.BatchPerform("enable", &options.BaseIdsOptions{})
cmd.BatchPerform("disable", &options.BaseIdsOptions{})
@@ -62,18 +65,32 @@ func init() {
cmd.BatchPerform("reserve-cpus", &compute.HostReserveCpusOptions{})
cmd.BatchPerform("unreserve-cpus", &options.BaseIdsOptions{})
cmd.BatchPerform("auto-migrate-on-host-down", &compute.HostAutoMigrateOnHostDownOptions{})
cmd.BatchPerform("restart-host-agent", &options.BaseIdsOptions{})
cmd.Get("ipmi", &options.BaseIdOptions{})
cmd.Get("vnc", &options.BaseIdOptions{})
cmd.Get("app-options", &options.BaseIdOptions{})
cmd.Get("tap-config", &options.BaseIdOptions{})
cmd.GetWithCustomShow("nics", func(data jsonutils.JSONObject) {
results := printutils.ListResult{}
err := data.Unmarshal(&results)
if err == nil {
printutils.PrintJSONList(&results, []string{
"mac",
"vlan_id",
"interface",
"bridge",
"ip_addr",
"net",
"wire",
})
} else {
fmt.Println("error", err)
}
}, &options.BaseIdOptions{})
R(&options.BaseIdOptions{}, "host-logininfo", "Get SSH login information of a host", func(s *mcclient.ClientSession, args *options.BaseIdOptions) error {
srvid, e := modules.Hosts.GetId(s, args.ID, nil)
if e != nil {
return e
}
i, e := modules.Hosts.GetLoginInfo(s, srvid, nil)
i, e := modules.Hosts.PerformAction(s, args.ID, "login-info", nil)
if e != nil {
return e
}
@@ -157,17 +174,16 @@ func init() {
})
type HostUpdateOptions struct {
ID string `help:"ID or Name of Host"`
Name string `help:"New name of the host"`
Desc string `help:"New Description of the host"`
CpuCommitBound float64 `help:"CPU overcommit upper bound at this host"`
MemoryCommitBound float64 `help:"Memory overcommit upper bound at this host"`
MemoryReserved string `help:"Memory reserved"`
CpuReserved int64 `help:"CPU reserved"`
HostType string `help:"Change host type, CAUTION!!!!" choices:"hypervisor|kubelet|esxi|baremetal"`
ID string `help:"ID or Name of Host"`
Name string `help:"New name of the host"`
Desc string `help:"New Description of the host"`
MemoryReserved string `help:"Memory reserved"`
CpuReserved int64 `help:"CPU reserved"`
HostType string `help:"Change host type, CAUTION!!!!" choices:"hypervisor|kubelet|esxi|baremetal"`
// AccessIp string `help:"Change access ip, CAUTION!!!!"`
AccessMac string `help:"Change baremetal access MAC, CAUTION!!!!"`
Uuid string `help:"Change baremetal UUID, CAUTION!!!!"`
AccessMac string `help:"Change baremetal access MAC, CAUTION!!!!"`
Uuid string `help:"Change baremetal UUID, CAUTION!!!!"`
EnableNumaAllocate string `help:"Host enable numa allocate" choices:"True|False"`
IpmiUsername string `help:"IPMI user"`
IpmiPassword string `help:"IPMI password"`
@@ -185,12 +201,6 @@ func init() {
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if args.CpuCommitBound > 0.0 {
params.Add(jsonutils.NewFloat64(args.CpuCommitBound), "cpu_cmtbound")
}
if args.MemoryCommitBound > 0.0 {
params.Add(jsonutils.NewFloat64(args.MemoryCommitBound), "mem_cmtbound")
}
if len(args.MemoryReserved) > 0 {
params.Add(jsonutils.NewString(args.MemoryReserved), "mem_reserved")
}
@@ -218,6 +228,13 @@ func init() {
if len(args.Sn) > 0 {
params.Add(jsonutils.NewString(args.Sn), "sn")
}
if len(args.EnableNumaAllocate) > 0 {
enableNumaAllocate := false
if args.EnableNumaAllocate == "True" {
enableNumaAllocate = true
}
params.Add(jsonutils.NewBool(enableNumaAllocate), "enable_numa_allocate")
}
if params.Size() == 0 {
return fmt.Errorf("Not data to update")
}
@@ -574,14 +591,10 @@ func init() {
Port int `help:"SSH service port" default:"22"`
}
R(&HostSSHLoginOptions{}, "host-ssh", "SSH login of a host", func(s *mcclient.ClientSession, args *HostSSHLoginOptions) error {
srvid, e := modules.Hosts.GetId(s, args.ID, nil)
if e != nil {
return e
}
i, e := modules.Hosts.GetLoginInfo(s, srvid, nil)
i, e := modules.Hosts.PerformAction(s, args.ID, "login-info", nil)
privateKey := ""
if e != nil {
if httputils.ErrorCode(e) == 404 || e.Error() == "ciphertext too short" {
if httputils.ErrorCode(e) == 404 || strings.Contains(e.Error(), "ciphertext too short") {
var err error
privateKey, err = modules.Sshkeypairs.FetchPrivateKeyBySession(context.Background(), s)
if err != nil {

View File

@@ -59,6 +59,17 @@ func init() {
printBatchResults(ret, modules.InstanceSnapshots.GetColumns(s))
return nil
})
type InstanceSnapshotPurgeOptions struct {
ID string `help:"Delete snapshot id"`
}
R(&InstanceSnapshotPurgeOptions{}, "instance-snapshot-purge", "Purge snapshots", func(s *mcclient.ClientSession, args *InstanceSnapshotPurgeOptions) error {
result, err := modules.InstanceSnapshots.PerformAction(s, args.ID, "purge", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type InstanceSnapshotShowOptions struct {
ID string `help:"ID or Name of snapshot"`

View File

@@ -0,0 +1,98 @@
// 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 compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
baseoptions "yunion.io/x/onecloud/pkg/mcclient/options"
options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.IsolatedDeviceModels)
cmd.List(new(options.IsolatedDeviceModelListOptions))
cmd.Create(new(options.IsolatedDeviceModelCreateOptions))
cmd.Update(new(options.IsolatedDeviceModelUpdateOptions))
cmd.Delete(new(options.IsolatedDeviceIdsOptions))
type HostIsolatedDeviceModelListOptions struct {
baseoptions.BaseListOptions
Host string `help:"ID or Name of Host"`
IsolatedDeviceModel string `help:"ID or Name of Isolated device model"`
}
R(&HostIsolatedDeviceModelListOptions{}, "host-isolated-device-model-list",
"List host Isolated device model pairs", func(s *mcclient.ClientSession, args *HostIsolatedDeviceModelListOptions) error {
var params *jsonutils.JSONDict
{
var err error
params, err = args.BaseListOptions.Params()
if err != nil {
return err
}
}
var result *printutils.ListResult
var err error
if len(args.Host) > 0 {
result, err = modules.HostIsolatedDeviceModels.ListDescendent(s, args.Host, params)
} else if len(args.IsolatedDeviceModel) > 0 {
result, err = modules.HostIsolatedDeviceModels.ListDescendent2(s, args.IsolatedDeviceModel, params)
} else {
result, err = modules.HostIsolatedDeviceModels.List(s, params)
}
if err != nil {
return err
}
printList(result, modules.HostIsolatedDeviceModels.GetColumns(s))
return nil
})
type HostIsolatedDeviceModelDetailOptions struct {
HOST string `help:"ID or Name of Host"`
IsolatedDeviceModel string `help:"ID or Name of Isolated device model"`
}
R(&HostIsolatedDeviceModelDetailOptions{}, "host-isolated-device-model-show", "Show host isolated-device-model details", func(s *mcclient.ClientSession, args *HostIsolatedDeviceModelDetailOptions) error {
result, err := modules.HostIsolatedDeviceModels.Get(s, args.HOST, args.IsolatedDeviceModel, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&HostIsolatedDeviceModelDetailOptions{}, "host-isolated-device-model-detach", "Detach a isolated-device-model from a host", func(s *mcclient.ClientSession, args *HostIsolatedDeviceModelDetailOptions) error {
result, err := modules.HostIsolatedDeviceModels.Detach(s, args.HOST, args.IsolatedDeviceModel, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&HostIsolatedDeviceModelDetailOptions{}, "host-isolated-device-model-attach", "Attach a isolated-device-model to a host", func(s *mcclient.ClientSession, args *HostIsolatedDeviceModelDetailOptions) error {
params := jsonutils.NewDict()
result, err := modules.HostIsolatedDeviceModels.Attach(s, args.HOST, args.IsolatedDeviceModel, params)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -17,7 +17,6 @@ package compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
@@ -25,5 +24,5 @@ func init() {
cmd := shell.NewResourceCmd(&modules.NasSkus).WithKeyword("nas-sku")
cmd.List(&compute.NasSkuListOption{})
cmd.Show(&compute.NasSkuIdOption{})
cmd.PerformClass("sync-skus", &options.SkuSyncOptions{})
cmd.PerformClass("sync-skus", &compute.SkuSyncOptions{})
}

View File

@@ -17,7 +17,6 @@ package compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
@@ -25,5 +24,4 @@ func init() {
cmd := shell.NewResourceCmd(&modules.NatSkus).WithKeyword("nat-sku")
cmd.List(&compute.NatSkuListOption{})
cmd.Show(&compute.NatSkuIdOption{})
cmd.PerformClass("sync-skus", &options.SkuSyncOptions{})
}

View File

@@ -22,8 +22,8 @@ import (
func init() {
cmd := shell.NewResourceCmd(&modules.NetworkAddresses).WithContextManager(&modules.Wires)
cmd.BatchCreate(&options.NetworkAddressCreateOptions{})
// cmd.BatchCreate(&options.NetworkAddressCreateOptions{})
cmd.List(&options.NetworkAddressListOptions{})
cmd.Show(&options.NetworkAddressIdOptions{})
cmd.Delete(&options.NetworkAddressIdOptions{})
cmd.BatchDelete(&options.NetworkAddressIdsOptions{})
}

View File

@@ -43,6 +43,7 @@ func init() {
cmd.Get("change-owner-candidate-domains", &compute_options.NetworkIdOptions{})
cmd.Perform("set-class-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("switch-wire", &compute_options.NetworkSwitchWireOptions{})
cmd.Get("available-addresses", &compute_options.NetworkIdOptions{})
type NetworkShareOptions struct {
ID string `help:"ID or Name of the zone to show"`
@@ -114,18 +115,20 @@ func init() {
})
type NetworkCreateOptions2 struct {
Wire string `help:"ID or Name of wire in which the network is created"`
Vpc string `help:"ID or Name of vpc in which the network is created"`
Zone string `help:"ID or Name of zone in which the network is created"`
NAME string `help:"Name of new network"`
PREFIX string `help:"Start of IPv4 address range"`
BgpType string `help:"Internet service provider name" positional:"false"`
Desc string `help:"Description" metavar:"DESCRIPTION"`
Wire string `help:"ID or Name of wire in which the network is created"`
Vpc string `help:"ID or Name of vpc in which the network is created"`
Zone string `help:"ID or Name of zone in which the network is created"`
NAME string `help:"Name of new network"`
PREFIX string `help:"Start of IPv4 address range"`
BgpType string `help:"Internet service provider name" positional:"false"`
AssignPublicIp bool
Desc string `help:"Description" metavar:"DESCRIPTION"`
}
R(&NetworkCreateOptions2{}, "network-create2", "Create a virtual network", func(s *mcclient.ClientSession, args *NetworkCreateOptions2) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.NAME), "name")
params.Add(jsonutils.NewString(args.PREFIX), "guest_ip_prefix")
params.Set("assign_public_ip", jsonutils.NewBool(args.AssignPublicIp))
if len(args.BgpType) > 0 {
params.Add(jsonutils.NewString(args.BgpType), "bgp_type")
}

View File

@@ -114,9 +114,20 @@ func init() {
cmd.BatchPerform("enable-memclean", new(options.ServerIdsOptions))
cmd.Perform("qga-set-password", &options.ServerQgaSetPassword{})
cmd.Perform("qga-command", &options.ServerQgaCommand{})
cmd.Perform("qga-ping", &options.ServerQgaPing{})
cmd.Perform("qga-guest-info-task", &options.ServerQgaGuestInfoTask{})
cmd.Perform("qga-get-network", &options.ServerQgaGetNetwork{})
cmd.Perform("set-password", &options.ServerSetPasswordOptions{})
cmd.Perform("set-boot-index", &options.ServerSetBootIndexOptions{})
cmd.Perform("reset-nic-traffic-limit", &options.ServerNicTrafficLimitOptions{})
cmd.Perform("set-nic-traffic-limit", &options.ServerNicTrafficLimitOptions{})
cmd.Perform("add-sub-ips", &options.ServerAddSubIpsOptions{})
cmd.BatchPerform("set-os-info", &options.ServerSetOSInfoOptions{})
cmd.BatchPerform("start-rescue", &options.ServerStartOptions{})
cmd.BatchPerform("stop-rescue", &options.ServerStartOptions{})
cmd.BatchPerform("sync-os-info", &options.ServerIdsOptions{})
cmd.BatchPerform("set-root-disk-matcher", &options.ServerSetRootDiskMatcher{})
cmd.Perform("disable-auto-merge-snapshot", &options.ServerDisableAutoMergeSnapshot{})
cmd.Get("vnc", new(options.ServerVncOptions))
cmd.Get("desc", new(options.ServerIdOptions))
cmd.Get("status", new(options.ServerIdOptions))
@@ -295,11 +306,6 @@ func init() {
})
R(&options.ServerLoginInfoOptions{}, "server-logininfo", "Get login info of a server", func(s *mcclient.ClientSession, opts *options.ServerLoginInfoOptions) error {
srvid, e := modules.Servers.GetId(s, opts.ID, nil)
if e != nil {
return e
}
params := jsonutils.NewDict()
if len(opts.Key) > 0 {
privateKey, e := ioutil.ReadFile(opts.Key)
@@ -309,7 +315,7 @@ func init() {
params.Add(jsonutils.NewString(string(privateKey)), "private_key")
}
i, e := modules.Servers.GetLoginInfo(s, srvid, params)
i, e := modules.Servers.PerformAction(s, opts.ID, "login-info", params)
if e != nil {
return e
}
@@ -395,10 +401,15 @@ func init() {
type ServerRemoveExtraOption struct {
ID string `help:"ID or name of server"`
KEY string `help:"Option key"`
Value string `help:"Option value"`
}
R(&ServerRemoveExtraOption{}, "server-remove-extra-options", "Remove server extra options", func(s *mcclient.ClientSession, args *ServerRemoveExtraOption) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.KEY), "key")
if len(args.Value) > 0 {
params.Add(jsonutils.NewString(args.Value), "value")
}
result, err := modules.Servers.PerformAction(s, args.ID, "del-extra-option", params)
if err != nil {
return err
@@ -856,7 +867,7 @@ func init() {
privateKey = string(key)
}
i, e := modules.Servers.GetLoginInfo(s, srvid, params)
i, e := modules.Servers.PerformAction(s, srvid, "login-info", params)
if e != nil {
return e
}

View File

@@ -16,7 +16,6 @@ package compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -31,19 +30,4 @@ func init() {
cmd.Create(&options.ServerSkusCreateOptions{})
cmd.Update(&options.ServerSkusUpdateOptions{})
cmd.ClassShow(&options.ServerSkusListOptions{})
cmd.PerformClass("sync-skus", &options.SkuSyncOptions{})
R(&options.SkuTaskQueryOptions{}, "server-sku-sync-task-show", "Show details of skus sync tasks", func(s *mcclient.ClientSession, args *options.SkuTaskQueryOptions) error {
params, err := args.Params()
if err != nil {
return err
}
result, err := modules.ServerSkus.Get(s, "sync-tasks", params)
if err != nil {
return err
}
printObject(result)
return nil
})
}

View File

@@ -16,11 +16,17 @@ package compute
import (
"fmt"
"os"
"path"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/pkg/hostman/guestfs/fsdriver"
deployapi "yunion.io/x/onecloud/pkg/hostman/hostdeployer/apis"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/util/procutils"
)
func init() {
@@ -28,7 +34,8 @@ func init() {
Project string `help:"get keypair for specific project"`
Admin bool `help:"get admin keypair, sysadmin ONLY option"`
}
R(&SshkeypairQueryOptions{}, "sshkeypair-show", "Get ssh keypairs", func(s *mcclient.ClientSession, args *SshkeypairQueryOptions) error {
getSshKeypair := func(s *mcclient.ClientSession, args *SshkeypairQueryOptions) (string, string, error) {
query := jsonutils.NewDict()
if args.Admin {
query.Add(jsonutils.JSONTrue, "admin")
@@ -37,22 +44,73 @@ func init() {
if len(args.Project) == 0 {
listResult, err := modules.Sshkeypairs.List(s, query)
if err != nil {
return err
return "", "", err
}
keys = listResult.Data[0]
} else {
result, err := modules.Sshkeypairs.GetById(s, args.Project, query)
if err != nil {
return err
return "", "", err
}
keys = result
}
privKey, _ := keys.GetString("private_key")
pubKey, _ := keys.GetString("public_key")
return privKey, pubKey, nil
}
R(&SshkeypairQueryOptions{}, "sshkeypair-show", "Get ssh keypairs", func(s *mcclient.ClientSession, args *SshkeypairQueryOptions) error {
privKey, pubKey, err := getSshKeypair(s, args)
if err != nil {
return err
}
fmt.Print(privKey)
fmt.Print(pubKey)
return nil
})
type SshkeypairInjectOptions struct {
SshkeypairQueryOptions
TargetDir string `help:"Target directory to save cloud ssh keypair"`
}
R(&SshkeypairInjectOptions{}, "sshkeypair-inject", "Inject ssh keypairs to local path", func(s *mcclient.ClientSession, args *SshkeypairInjectOptions) error {
_, pubKey, err := getSshKeypair(s, &args.SshkeypairQueryOptions)
if err != nil {
return err
}
targetDir := args.TargetDir
if targetDir == "" {
homeDir, err := os.UserHomeDir()
if err != nil {
return errors.Wrap(err, "get current user's home dir")
}
targetDir = homeDir
}
sshDir := path.Join(targetDir, ".ssh")
// MkdirAll anyways
os.MkdirAll(sshDir, 0700)
authFile := path.Join(sshDir, "authorized_keys")
var oldKeys string
if procutils.NewCommand("test", "-f", authFile).Run() == nil {
output, err := procutils.NewCommand("cat", authFile).Output()
if err != nil {
return errors.Wrapf(err, "cat: %s", output)
}
oldKeys = string(output)
}
pubKeys := &deployapi.SSHKeys{AdminPublicKey: pubKey}
newKeys := fsdriver.MergeAuthorizedKeys(oldKeys, pubKeys, true)
if output, err := procutils.NewCommand(
"sh", "-c", fmt.Sprintf("echo '%s' > %s", newKeys, authFile)).Output(); err != nil {
return errors.Wrapf(err, "write public keys: %s", output)
}
if output, err := procutils.NewCommand(
"chmod", "0644", authFile).Output(); err != nil {
return errors.Wrapf(err, "chmod failed %s", output)
}
return nil
})
}

View File

@@ -45,6 +45,7 @@ func init() {
cmd.Perform("force-detach-host", &compute.StorageForceDetachHost{})
cmd.Perform("public", &options.BasePublicOptions{})
cmd.Perform("private", &options.BaseIdOptions{})
cmd.Perform("set-commit-bound", &compute.StorageSetCommitBoundOptions{})
type StorageCephRunOptions struct {
ID string `help:"ID or name of ceph storage"`
@@ -58,9 +59,10 @@ func init() {
info := struct {
StorageType string `json:"storage_type"`
StorageConf struct {
Key string `json:"key"`
MonHost string `json:"mon_host"`
Pool string `json:"pool"`
Key string `json:"key"`
MonHost string `json:"mon_host"`
Pool string `json:"pool"`
EnableMessengerV2 bool `json:"enable_messenger_v2"`
}
}{}
err = result.Unmarshal(&info)
@@ -74,6 +76,7 @@ func init() {
info.StorageConf.MonHost,
info.StorageConf.Key,
info.StorageConf.Pool,
info.StorageConf.EnableMessengerV2,
)
if err != nil {
return errors.Wrap(err, "cephutils.NewClient")

View File

@@ -24,19 +24,28 @@ import (
webconsole_api "yunion.io/x/onecloud/pkg/apis/webconsole"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/identity"
"yunion.io/x/onecloud/pkg/mcclient/modules/webconsole"
o "yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/webconsole/command"
)
const (
DefaultWebconsoleServer = "https://console.yunion.cn/web-console"
)
func init() {
handleResult := func(opt o.WebConsoleOptions, obj jsonutils.JSONObject) error {
handleResult := func(s *mcclient.ClientSession, opt o.WebConsoleOptions, obj jsonutils.JSONObject) error {
if obj.Contains("access_url") {
accessUrl, _ := obj.GetString("access_url")
fmt.Println("AccessURL:", accessUrl)
return nil
}
if opt.WebconsoleUrl == "" {
opt.WebconsoleUrl = DefaultWebconsoleServer
resp, err := identity.ServicesV3.GetSpecific(s, "common", "config", nil)
if err != nil {
return err
}
apiServer, _ := resp.GetString("config", "default", "api_server")
if len(apiServer) > 0 {
opt.WebconsoleUrl = fmt.Sprintf("%s/web-console", apiServer)
}
}
u, err := url.Parse(opt.WebconsoleUrl)
if err != nil {
@@ -48,15 +57,23 @@ func init() {
return err
}
connectParams := resp.GetConnectParams()
if protocol, err := resp.GetConnectProtocol(); err != nil {
protocol, err := resp.GetConnectProtocol()
if err != nil {
return err
} else if !utils.IsInStringArray(protocol, []string{
}
if !utils.IsInStringArray(protocol, []string{
command.PROTOCOL_TTY, webconsole_api.VNC,
webconsole_api.SPICE, webconsole_api.WMKS,
webconsole_api.SPICE, webconsole_api.WMKS, webconsole_api.WS,
}) {
fmt.Println(connectParams)
return nil
}
if protocol == webconsole_api.WS {
u, err = url.Parse(fmt.Sprintf("%s/ws", opt.WebconsoleUrl))
if err != nil {
return err
}
}
newQuery := url.Values{}
newQuery.Set("data", base64.StdEncoding.EncodeToString([]byte(connectParams)))
@@ -74,7 +91,7 @@ func init() {
if err != nil {
return err
}
handleResult(args.WebConsoleOptions, ret)
handleResult(s, args.WebConsoleOptions, ret)
return nil
})
@@ -87,7 +104,7 @@ func init() {
if err != nil {
return err
}
handleResult(args.WebConsoleOptions, ret)
handleResult(s, args.WebConsoleOptions, ret)
return nil
})
@@ -96,7 +113,7 @@ func init() {
if err != nil {
return err
}
handleResult(args.WebConsoleOptions, ret)
handleResult(s, args.WebConsoleOptions, ret)
return nil
})
@@ -109,7 +126,7 @@ func init() {
if err != nil {
return err
}
handleResult(args.WebConsoleOptions, ret)
handleResult(s, args.WebConsoleOptions, ret)
return nil
})
@@ -118,7 +135,7 @@ func init() {
if err != nil {
return err
}
handleResult(args.WebConsoleOptions, ret)
handleResult(s, args.WebConsoleOptions, ret)
return nil
})
}

View File

@@ -15,161 +15,19 @@
package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
type ZoneListOptions struct {
options.BaseListOptions
Region string `help:"cloud region ID or Name" json:"-"`
City string `help:"Filter zone by city of cloudregions"`
Usable *bool `help:"List all zones where networks are usable"`
UsableVpc *bool `help:"List all zones where vpc are usable"`
OrderByWires string
OrderByHosts string
OrderByHostsEnabled string
OrderByBaremetals string
OrderByBaremetalsEnabled string
}
R(&ZoneListOptions{}, "zone-list", "List zones", func(s *mcclient.ClientSession, args *ZoneListOptions) error {
params, err := options.ListStructToParams(args)
if err != nil {
return err
}
var result *printutils.ListResult
if len(args.Region) > 0 {
result, err = modules.Zones.ListInContext(s, params, &modules.Cloudregions, args.Region)
} else {
result, err = modules.Zones.List(s, params)
}
if err != nil {
return err
}
printList(result, modules.Zones.GetColumns(s))
return nil
})
type ZoneUpdateOptions struct {
ID string `help:"ID or Name of zone to update"`
Name string `help:"Name of zone"`
NameCN string `help:"Name in Chinese"`
Desc string `metavar:"<DESCRIPTION>" help:"Description"`
Location string `help:"Location"`
}
R(&ZoneUpdateOptions{}, "zone-update", "Update zone", func(s *mcclient.ClientSession, args *ZoneUpdateOptions) error {
params := jsonutils.NewDict()
if len(args.Name) > 0 {
params.Add(jsonutils.NewString(args.Name), "name")
}
if len(args.NameCN) > 0 {
params.Add(jsonutils.NewString(args.NameCN), "name_cn")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if len(args.Location) > 0 {
params.Add(jsonutils.NewString(args.Location), "location")
}
if params.Size() == 0 {
return InvalidUpdateError()
}
result, err := modules.Zones.Update(s, args.ID, params)
if err != nil {
return err
}
printObject(result)
return nil
})
type ZoneShowOptions struct {
ID string `help:"ID or Name of the zone to show"`
}
R(&ZoneShowOptions{}, "zone-show", "Show zone details", func(s *mcclient.ClientSession, args *ZoneShowOptions) error {
result, err := modules.Zones.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&ZoneShowOptions{}, "zone-delete", "Delete zone", func(s *mcclient.ClientSession, args *ZoneShowOptions) error {
result, err := modules.Zones.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type ZoneCapabilityOptions struct {
ID string `help:"Zone ID or Name" json:"-"`
Domain string `help:"domain Id or name"`
}
R(&ZoneCapabilityOptions{}, "zone-capability", "Show zone's capacibilities", func(s *mcclient.ClientSession, args *ZoneCapabilityOptions) error {
query, err := options.StructToParams(args)
if err != nil {
return err
}
result, err := modules.Zones.GetSpecific(s, args.ID, "capability", query)
if err != nil {
return err
}
printObject(result)
return nil
})
type ZoneCreateOptions struct {
NAME string `help:"Name of zone"`
NameCN string `help:"Name in Chinese"`
Desc string `metavar:"<DESCRIPTION>" help:"Description"`
Location string `help:"Location"`
Region string `help:"Cloudregion in which zone created"`
}
R(&ZoneCreateOptions{}, "zone-create", "Create a zone", func(s *mcclient.ClientSession, args *ZoneCreateOptions) error {
params := jsonutils.NewDict()
params.Add(jsonutils.NewString(args.NAME), "name")
if len(args.NameCN) > 0 {
params.Add(jsonutils.NewString(args.NameCN), "name_cn")
}
if len(args.Desc) > 0 {
params.Add(jsonutils.NewString(args.Desc), "description")
}
if len(args.Location) > 0 {
params.Add(jsonutils.NewString(args.Location), "location")
}
if len(args.Region) > 0 {
params.Add(jsonutils.NewString(args.Region), "region")
}
zone, err := modules.Zones.Create(s, params)
if err != nil {
return err
}
printObject(zone)
return nil
})
type ZoneStatusOptions struct {
ID string `help:"ID or name of zone"`
STATUS string `help:"zone status" choices:"enable|disable|soldout"`
REASON string `help:"why update status"`
}
R(&ZoneStatusOptions{}, "zone-update-status", "Update zone status", func(s *mcclient.ClientSession, args *ZoneStatusOptions) error {
params := jsonutils.NewDict()
params.Set("status", jsonutils.NewString(args.STATUS))
params.Set("reason", jsonutils.NewString(args.REASON))
result, err := modules.Zones.PerformAction(s, args.ID, "status", params)
if err != nil {
return err
}
printObject(result)
return nil
})
cmd := shell.NewResourceCmd(&modules.Zones).WithContextManager(&modules.Cloudregions)
cmd.List(&compute.ZoneListOptions{})
cmd.Update(&compute.ZoneUpdateOptions{})
cmd.Show(&compute.ZoneIdOptions{})
cmd.Delete(&compute.ZoneIdOptions{})
cmd.Get("capability", &compute.ZoneCapabilityOptions{})
cmd.Perform("purge", &compute.ZonePurgeOptions{})
cmd.Create(&compute.ZoneCreateOptions{})
cmd.PerformWithKeyword("update-status", "status", &compute.ZoneStatusOptions{})
}

View File

@@ -21,6 +21,7 @@ import (
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
)
type BaseEventListOptions struct {
@@ -78,6 +79,10 @@ func doNotifyEventList(s *mcclient.ClientSession, args *EventListOptions) error
return DoEventList(modules.NotifyLogs, s, args)
}
func doK8sEventList(s *mcclient.ClientSession, args *EventListOptions) error {
return DoEventList(*k8s.Logs.ResourceManager, s, args)
}
func DoEventList(man modulebase.ResourceManager, s *mcclient.ClientSession, args *EventListOptions) error {
params := jsonutils.NewDict()
if len(args.Type) > 0 {
@@ -146,6 +151,12 @@ func DoEventList(man modulebase.ResourceManager, s *mcclient.ClientSession, args
func init() {
R(&EventListOptions{}, "event-show", "Show operation event logs", doComputeEventList)
R(&EventListOptions{}, "region-event-show", "Show operation event logs", doComputeEventList)
R(&EventListOptions{}, "glance-event-show", "Show operation event logs", doImageEventList)
R(&EventListOptions{}, "keystone-event-show", "Show operation event logs", doIdentityEventList)
R(&EventListOptions{}, "monitor-event-show", "Show operation event logs", doMonitorEventList)
R(&EventListOptions{}, "notify-event-show", "Show operation event logs", doNotifyEventList)
R(&EventListOptions{}, "kube-event-show", "Show operation event logs", doK8sEventList)
R(&TypeEventListOptions{}, "server-event", "Show operation event logs of server", func(s *mcclient.ClientSession, args *TypeEventListOptions) error {
nargs := EventListOptions{BaseEventListOptions: args.BaseEventListOptions, Id: args.ID, Type: []string{"server"}}

View File

@@ -229,7 +229,7 @@ type IPropertyOpt interface {
Property() string
}
func (cmd ResourceCmd) GetProperty(args IPropertyOpt) {
func (cmd ResourceCmd) GetPropertyWithShowFunc(args IPropertyOpt, showFunc func(jsonutils.JSONObject) error) {
man := cmd.manager
callback := func(s *mcclient.ClientSession, args IPropertyOpt) error {
params, err := args.Params()
@@ -240,6 +240,17 @@ func (cmd ResourceCmd) GetProperty(args IPropertyOpt) {
if err != nil {
return err
}
err = showFunc(ret)
if err != nil {
return err
}
return nil
}
cmd.RunWithDesc(args.Property(), fmt.Sprintf("Get property of a %s", man.GetKeyword()), args, callback)
}
func (cmd ResourceCmd) GetProperty(args IPropertyOpt) {
cmd.GetPropertyWithShowFunc(args, func(ret jsonutils.JSONObject) error {
if _, ok := ret.(*jsonutils.JSONArray); ok {
data, _ := ret.GetArray()
PrintList(&printutils.ListResult{
@@ -249,8 +260,7 @@ func (cmd ResourceCmd) GetProperty(args IPropertyOpt) {
PrintObject(ret)
}
return nil
}
cmd.RunWithDesc(args.Property(), fmt.Sprintf("Get property of a %s", man.GetKeyword()), args, callback)
})
}
func (cmd ResourceCmd) Show(args IShowOpt) {
@@ -477,6 +487,12 @@ type IGetOpt interface {
}
func (cmd ResourceCmd) GetWithCustomShow(specific string, show func(data jsonutils.JSONObject), args IGetOpt) {
cmd.GetWithCustomOptionShow(specific, func(data jsonutils.JSONObject, _ IGetOpt) {
show(data)
}, args)
}
func (cmd ResourceCmd) GetWithCustomOptionShow(specific string, show func(data jsonutils.JSONObject, args IGetOpt), args IGetOpt) {
man := cmd.manager
callback := func(s *mcclient.ClientSession, args IGetOpt) error {
params, err := args.Params()
@@ -487,7 +503,7 @@ func (cmd ResourceCmd) GetWithCustomShow(specific string, show func(data jsonuti
if err != nil {
return err
}
show(ret)
show(ret, args)
return nil
}
cmd.RunWithDesc(specific, fmt.Sprintf("Get %s of a %s", specific, man.GetKeyword()), args, callback)
@@ -651,15 +667,15 @@ func (cmd JointCmd) List(args IJointListOpt) {
cmd.RunWithDesc("list", fmt.Sprintf("list %s %s pairs", man.MasterManager().KeyString(), man.SlaveManager().KeyString()), args, callback)
}
type IJointShowOpt interface {
type IJointOpt interface {
IOpt
GetMasterId() string
GetSlaveId() string
}
func (cmd JointCmd) Show(args IJointShowOpt) {
func (cmd JointCmd) Show(args IJointOpt) {
man := cmd.manager.(modulebase.JointManager)
callback := func(s *mcclient.ClientSession, args IJointShowOpt) error {
callback := func(s *mcclient.ClientSession, args IJointOpt) error {
params, err := args.Params()
if err != nil {
return err
@@ -673,3 +689,54 @@ func (cmd JointCmd) Show(args IJointShowOpt) {
}
cmd.Run("show", args, callback)
}
func (cmd JointCmd) Attach(args IJointOpt) {
man := cmd.manager.(modulebase.JointManager)
callback := func(s *mcclient.ClientSession, args IJointOpt) error {
params, err := args.Params()
if err != nil {
return err
}
result, err := man.Attach(s, args.GetMasterId(), args.GetSlaveId(), params)
if err != nil {
return err
}
PrintObject(result)
return nil
}
cmd.Run("attach", args, callback)
}
func (cmd JointCmd) Detach(args IJointOpt) {
man := cmd.manager.(modulebase.JointManager)
callback := func(s *mcclient.ClientSession, args IJointOpt) error {
params, err := args.Params()
if err != nil {
return err
}
result, err := man.Detach(s, args.GetMasterId(), args.GetSlaveId(), params)
if err != nil {
return err
}
PrintObject(result)
return nil
}
cmd.Run("detach", args, callback)
}
func (cmd JointCmd) Update(args IJointOpt) {
man := cmd.manager.(modulebase.JointManager)
callback := func(s *mcclient.ClientSession, args IJointOpt) error {
params, err := args.Params()
if err != nil {
return err
}
result, err := man.Update(s, args.GetMasterId(), args.GetSlaveId(), nil, params)
if err != nil {
return err
}
PrintObject(result)
return nil
}
cmd.Run("update", args, callback)
}

View File

@@ -17,15 +17,25 @@ package identity
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/cmd/climc/shell"
api "yunion.io/x/onecloud/pkg/apis/identity"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/identity"
"yunion.io/x/onecloud/pkg/mcclient/options"
identity_options "yunion.io/x/onecloud/pkg/mcclient/options/identity"
)
func init() {
type UserListOptions struct {
cmd := shell.NewResourceCmd(&modules.UsersV3)
cmd.List(&identity_options.UserListOptions{})
cmd.Perform("user-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("set-user-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("class-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("set-class-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("metadata", &options.ResourceMetadataOptions{})
/*type UserListOptions struct {
options.BaseListOptions
Name string `help:"Filter by name"`
OrderByDomain string `help:"order by domain name" choices:"asc|desc"`
@@ -50,7 +60,7 @@ func init() {
printList(result, modules.UsersV3.GetColumns(s))
}
return nil
})
})*/
type UserDetailOptions struct {
ID string `help:"ID of user"`
@@ -76,6 +86,7 @@ func init() {
printObject(user)
return nil
})
R(&UserDetailOptions{}, "user-delete", "Delete user", func(s *mcclient.ClientSession, args *UserDetailOptions) error {
query := jsonutils.NewDict()
if len(args.Domain) > 0 {

View File

@@ -87,6 +87,26 @@ func initKubeCluster() {
return nil
})
type SetKubeconfigOptions struct {
o.IdentOptions
FILE string `json:"filepath of kubeconfig"`
}
R(new(SetKubeconfigOptions), cmdN("set-kubeconfig"), "Set kubeconfig of a cluster", func(s *mcclient.ClientSession, args *SetKubeconfigOptions) error {
content, err := ioutil.ReadFile(args.FILE)
if err != nil {
return errors.Wrapf(err, "read file content of %q", args.FILE)
}
input := map[string]string{
"kubeconfig": string(content),
}
ret, err := k8s.KubeClusters.PerformAction(s, args.ID, "set-kubeconfig", jsonutils.Marshal(input))
if err != nil {
return err
}
printObject(ret)
return nil
})
R(&o.ClusterGetAddonsOpt{}, cmdN("addons"), "Get addon manifest of a cluster", func(s *mcclient.ClientSession, args *o.ClusterGetAddonsOpt) error {
params, err := args.Params()
if err != nil {

View File

@@ -0,0 +1,123 @@
// 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 k8s
import (
"io"
"os"
"strings"
"github.com/cheggaaa/pb/v3"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
o "yunion.io/x/onecloud/pkg/mcclient/options/k8s"
)
func initContainerRegistry() {
cmd := NewK8sResourceCmd(k8s.ContainerRegistries)
cmd.List(new(o.RegistryListOptions))
cmd.Show(new(o.RegistryGetOptions))
cmd.Delete(new(o.RegistryGetOptions))
cmd.Create(new(o.RegistryCreateOptions))
cmd.Get("images", new(o.RegistryGetImagesOptions))
cmd.Get("image-tags", new(o.RegistryGetImageTagsOptions))
type UploadOptions struct {
REGISTRY string `help:"The name or id of registry" json:"-"`
FILE string `help:"The container tar image" json:"-"`
Name string `help:"Override image name" json:"name`
Tag string `help:"Override image tag" json:"tag"`
}
R(new(UploadOptions), "k8s-container-registry-upload-image", "Upload a docker image", func(s *mcclient.ClientSession, args *UploadOptions) error {
f, err := os.Open(args.FILE)
if err != nil {
return err
}
defer f.Close()
finfo, err := f.Stat()
if err != nil {
return err
}
size := finfo.Size()
bar := pb.Full.Start64(size)
barReader := bar.NewProxyReader(f)
param := jsonutils.Marshal(args)
img, err := k8s.ContainerRegistries.UploadImage(s, args.REGISTRY, param, barReader, size)
if err != nil {
return err
}
printObject(img)
return nil
})
type DownloadOptions struct {
NAME string `help:"The name of image, e.g. 'influxdb:1.7.7'"`
Registry string `help:"The name or id of registry" json:"-"`
Output string `help:"Saved file path"`
Insecure bool `help:"Set insecure"`
Username string `help:"Image registry username, effective only when --registry is not specified"`
Password string `help:"Image registry password, effective only when --registry is not specified"`
}
R(new(DownloadOptions), "k8s-container-registry-download-image", "Download container image to a file", func(s *mcclient.ClientSession, args *DownloadOptions) error {
var (
fileName string
src io.Reader
size int64
err error
)
if args.Registry != "" {
parts := strings.Split(args.NAME, ":")
if len(parts) != 2 {
return errors.Errorf("invalid NAME %q, use format <name>:<tag>", args.NAME)
}
name := parts[0]
tag := parts[1]
fileName, src, size, err = k8s.ContainerRegistries.DownloadImage(s, args.Registry, name, tag)
if err != nil {
return errors.Wrap(err, "download chart")
}
} else {
fileName, src, size, err = k8s.ContainerRegistries.DownloadImageByManager(s, &k8s.DownloadImageByManagerInput{
Insecure: args.Insecure,
Image: args.NAME,
Username: args.Username,
Password: args.Password,
})
}
output := args.Output
if output == "" && fileName != "" {
output = fileName
}
if output == "" {
return errors.Errorf("--output filepath must provide")
}
f, err := os.Create(output)
if err != nil {
return errors.Wrapf(err, "create saved file: %q", args.Output)
}
defer f.Close()
var sink io.Writer = f
bar := pb.Full.Start64(size)
barReader := bar.NewProxyReader(src)
if _, err := io.Copy(sink, barReader); err != nil {
return errors.Wrap(err, "save chart")
}
return nil
})
}

View File

@@ -59,6 +59,9 @@ func init() {
initRbac()
initApp()
// container registry
initContainerRegistry()
}
var (

View File

@@ -31,4 +31,5 @@ func initKubeMachine() {
cmd.Perform("terminate", new(o.IdentOptions))
cmd.Get("networkaddress", new(o.MachineListNetworkAddressOptions))
cmd.Perform("attach-networkaddress", new(o.MachineAttachNetworkAddressOptions))
cmd.Perform("post-prepare-resource", new(o.IdentOptions))
}

View File

@@ -53,7 +53,7 @@ func initRelease() {
return err
}
res, err := k8s.Releases.Put(s, args.NAME, params)
res, err := k8s.Releases.PerformAction(s, args.NAME, "upgrade", params)
if err != nil {
return err
}

View File

@@ -15,6 +15,16 @@
package k8s
import (
"io"
"os"
"path/filepath"
"github.com/cheggaaa/pb/v3"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
o "yunion.io/x/onecloud/pkg/mcclient/options/k8s"
)
@@ -29,4 +39,63 @@ func initRepo() {
cmd.Perform("sync", new(o.RepoGetOptions))
cmd.Perform("public", new(o.RepoPublicOptions))
cmd.Perform("private", new(o.RepoGetOptions))
type UploadOptions struct {
REPO string `help:"The name or id of helm repository`
FILE string `help:"Helm packaged file"`
}
R(new(UploadOptions), "k8s-repo-upload-chart", "Upload chart to the repository", func(s *mcclient.ClientSession, args *UploadOptions) error {
f, err := os.Open(args.FILE)
if err != nil {
return err
}
defer f.Close()
finfo, err := f.Stat()
if err != nil {
return err
}
size := finfo.Size()
bar := pb.Full.Start64(size)
barReader := bar.NewProxyReader(f)
param := jsonutils.Marshal(args)
param.(*jsonutils.JSONDict).Add(jsonutils.NewString(filepath.Base(args.FILE)), "chart_name")
ret, err := k8s.Repos.UploadChart(s, args.REPO, param, barReader, size)
if err != nil {
return err
}
printObject(ret)
return nil
})
type DownloadOptions struct {
REPO string `help:"The name or id of helm repository`
CHART string `help:"The name of chart"`
Output string `help:"Saved file path"`
Version string `help:"The version of chart"`
}
R(new(DownloadOptions), "k8s-repo-download-chart", "Download helm chart to a file", func(s *mcclient.ClientSession, args *DownloadOptions) error {
chartFileName, src, size, err := k8s.Repos.DownloadChart(s, args.REPO, args.CHART, args.Version)
if err != nil {
return errors.Wrap(err, "download chart")
}
output := args.Output
if output == "" && chartFileName != "" {
output = chartFileName
}
if output == "" {
return errors.Errorf("--output filepath must provide")
}
f, err := os.Create(output)
if err != nil {
return errors.Wrapf(err, "create saved file: %q", args.Output)
}
defer f.Close()
var sink io.Writer = f
bar := pb.Full.Start64(size)
barReader := bar.NewProxyReader(src)
if _, err := io.Copy(sink, barReader); err != nil {
return errors.Wrap(err, "save chart")
}
return nil
})
}

View File

@@ -45,8 +45,9 @@ type BaseActionListOptions struct {
type ActionListOptions struct {
BaseActionListOptions
Id string `help:"" metavar:"OBJ_ID"`
Type []string `help:"Type of relevant object" metavar:"OBJ_TYPE"`
Service []string `help:"service name`
Id string `help:"" metavar:"OBJ_ID"`
Type []string `help:"Type of relevant object" metavar:"OBJ_TYPE"`
}
type TypeActionListOptions struct {
@@ -56,6 +57,9 @@ type TypeActionListOptions struct {
func doActionList(s *mcclient.ClientSession, args *ActionListOptions) error {
params := jsonutils.NewDict()
if len(args.Service) > 0 {
params.Add(jsonutils.NewStringArray(args.Service), "service")
}
if len(args.Type) > 0 {
params.Add(jsonutils.NewStringArray(args.Type), "obj_type")
}

View File

@@ -19,12 +19,45 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/utils"
"yunion.io/x/pkg/util/sets"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/yunionconf"
)
type GlobalSettingsValue struct {
SetupKeys []string `json:"setupKeys"`
SetupKeysVersion string `json:"setupKeysVersion"`
SetupOneStackInitialized bool `json:"setupOneStackInitialized"`
ProductVersion string `json:"productVersion"`
UserDefinedKeys map[string]bool `json:"userDefinedKeys"`
}
func NewGlobalSettingsValue(setupKeys []string, setupOneStack bool) *GlobalSettingsValue {
settings := &GlobalSettingsValue{
SetupOneStackInitialized: setupOneStack,
UserDefinedKeys: make(map[string]bool),
}
for _, key := range setupKeys {
settings.Switch(key, true)
}
return settings
}
func (g *GlobalSettingsValue) Switch(featureKey string, on bool) {
if g.UserDefinedKeys == nil {
g.UserDefinedKeys = map[string]bool{}
}
g.UserDefinedKeys[featureKey] = on
ss := sets.NewString(g.SetupKeys...)
if on {
ss.Insert(featureKey)
} else {
ss.Delete(featureKey)
}
g.SetupKeys = ss.List()
}
func init() {
var features = []string{
"onestack",
@@ -61,6 +94,7 @@ func init() {
"default",
"k8s",
"monitor",
"bingocloud",
}
const (
@@ -92,10 +126,7 @@ func init() {
input := map[string]interface{}{
"name": GlobalSettings,
"service_id": YunionAgent,
"value": map[string]interface{}{
"setupKeys": []string{name},
"setupOneStackInitialized": true,
},
"value": NewGlobalSettingsValue([]string{name}, true),
}
params := jsonutils.Marshal(input)
if _, err := yunionconf.Parameters.Create(s, params); err != nil {
@@ -117,33 +148,20 @@ func init() {
if err != nil {
return errors.Wrap(err, "get value")
}
setupKeys := []string{}
if value.Contains("setupKeys") {
if err := value.Unmarshal(&setupKeys, "setupKeys"); err != nil {
return errors.Wrap(err, "unmarshal setupKeys")
}
curConf := new(GlobalSettingsValue)
if err := value.Unmarshal(curConf); err != nil {
return errors.Wrapf(err, "unmarshal to GlobalSettingsValue: %s", value)
}
if !enable {
if utils.IsInStringArray(name, setupKeys) {
newKeys := []string{}
for _, key := range setupKeys {
if key != name {
newKeys = append(newKeys, key)
}
}
setupKeys = newKeys
}
} else if enable {
if !utils.IsInStringArray(name, setupKeys) {
setupKeys = append(setupKeys, name)
}
curConf.Switch(name, false)
} else {
curConf.Switch(name, true)
}
value.(*jsonutils.JSONDict).Set("setupKeys", jsonutils.Marshal(setupKeys))
id, err := ss.GetString("id")
if err != nil {
return errors.Errorf("get id from %s", ss)
}
ss.(*jsonutils.JSONDict).Set("value", value)
ss.(*jsonutils.JSONDict).Set("value", jsonutils.Marshal(curConf))
obj, err := yunionconf.Parameters.Update(s, id, ss)
if err != nil {
return errors.Wrapf(err, "update %s(%s)", GlobalSettings, id)

View File

@@ -23,6 +23,7 @@ import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/pkg/utils"
"yunion.io/x/onecloud/pkg/apis"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules"
@@ -91,7 +92,14 @@ func init() {
vers := map[string]string{}
for _, service := range services {
serviceType, _ := service.GetString("type")
if utils.IsInStringArray(serviceType, []string{"offlinecloudmeta"}) {
if utils.IsInStringArray(serviceType, []string{
apis.SERVICE_TYPE_OFFLINE_CLOUDMETA,
apis.SERVICE_TYPE_CLOUDMETA,
apis.SERVICE_TYPE_INFLUXDB,
apis.SERVICE_TYPE_VICTORIA_METRICS,
apis.SERVICE_TYPE_ETCD,
"torrent-tracker",
}) {
continue
}
ver, err := modules.GetVersion(s, serviceType)

View File

@@ -15,7 +15,6 @@
package monitor
import (
"encoding/json"
"fmt"
"yunion.io/x/pkg/errors"
@@ -46,11 +45,7 @@ func init() {
if err != nil {
return errors.Wrap(err, "DoTestRun")
}
jsonBytes, err := json.MarshalIndent(ret, "", " ")
if err != nil {
return errors.Wrap(err, "MarshalIndent")
}
fmt.Printf("%s\n", jsonBytes)
fmt.Printf("%s\n", ret.PrettyString())
return nil
})
}

View File

@@ -36,9 +36,7 @@ func initAlertNotification() {
return err
}
var result *printutils.ListResult
if len(args.Alert) > 0 {
result, err = monitor.Alertnotification.ListDescendent(s, args.Alert, params)
} else if len(args.Notification) > 0 {
if len(args.Notification) > 0 {
result, err = monitor.Alertnotification.ListDescendent2(s, args.Notification, params)
} else {
result, err = monitor.Alertnotification.List(s, params)

View File

@@ -15,10 +15,136 @@
package monitor
import (
"yunion.io/x/jsonutils"
monitorapi "yunion.io/x/onecloud/pkg/apis/monitor"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/monitor"
options "yunion.io/x/onecloud/pkg/mcclient/options/monitor"
)
type CommonAlertTerm struct {
Database string
Measurement string
Operator string // and / or
Field []string
FieldFunc string
Reduce string
Comparator string
Threshold float64
Filters []monitorapi.MetricQueryTag
FieldOpt string
Name string
ConditionType string
From string
Interval string
GroupBy string
Level string
}
func newCommonAlertQuery(tem *CommonAlertTerm) *monitorapi.CommonAlertQuery {
mq := monitorapi.MetricQuery{
Alias: "",
Tz: "",
Database: tem.Database,
Measurement: tem.Measurement,
Tags: make([]monitorapi.MetricQueryTag, 0),
GroupBy: make([]monitorapi.MetricQueryPart, 0),
Selects: nil,
Interval: "",
Policy: "",
ResultFormat: "",
}
for _, field := range tem.Field {
sel := monitorapi.MetricQueryPart{
Type: "field",
Params: []string{field},
}
selectPart := []monitorapi.MetricQueryPart{sel}
if len(tem.FieldFunc) != 0 {
selectPart = append(selectPart, monitorapi.MetricQueryPart{
Type: tem.FieldFunc,
Params: []string{},
})
} else {
selectPart = append(selectPart, monitorapi.MetricQueryPart{
Type: "mean",
Params: []string{},
})
}
mq.Selects = append(mq.Selects, selectPart)
}
if len(tem.Filters) != 0 {
for _, filter := range tem.Filters {
mq.Tags = append(mq.Tags, filter)
}
}
alertQ := new(monitorapi.AlertQuery)
alertQ.Model = mq
alertQ.From = "60m"
commonAlert := monitorapi.CommonAlertQuery{
AlertQuery: alertQ,
Reduce: tem.Reduce,
Comparator: tem.Comparator,
Threshold: tem.Threshold,
Operator: tem.Operator,
}
if tem.FieldOpt != "" {
commonAlert.FieldOpt = monitorapi.CommonAlertFieldOpt_Division
}
if len(tem.ConditionType) != 0 {
commonAlert.ConditionType = tem.ConditionType
}
if len(tem.GroupBy) != 0 {
commonAlert.Model.GroupBy = append(commonAlert.Model.GroupBy, monitorapi.MetricQueryPart{
Type: "field",
Params: []string{tem.GroupBy},
})
}
return &commonAlert
}
var (
cpuTem = &CommonAlertTerm{
Operator: "or",
Database: "telegraf",
Measurement: "vm_cpu",
Field: []string{"usage_active"},
Comparator: ">=",
Reduce: "avg",
Threshold: 50,
Name: "lzx-test.cpu.usage_active",
Filters: []monitorapi.MetricQueryTag{
{
Key: "id",
Operator: "=",
Value: "a0eee5dd-3cfe-4ab1-8c79-aee1a8cf4dab",
},
},
}
memTem = &CommonAlertTerm{
Operator: "or",
Database: "telegraf",
Measurement: "vm_mem",
Field: []string{"used_percent"},
Comparator: ">=",
Reduce: "avg",
Threshold: 3,
Name: "lzx-test.mem.avaiable",
Filters: []monitorapi.MetricQueryTag{
{
Key: "id",
Operator: "=",
Value: "a0eee5dd-3cfe-4ab1-8c79-aee1a8cf4dab",
},
},
}
)
func init() {
cmd := NewResourceCmd(modules.CommonAlerts)
cmd.Create(new(options.CommonAlertCreateOptions))
@@ -28,4 +154,34 @@ func init() {
cmd.Perform("disable", &options.CommonAlertShowOptions{})
cmd.BatchDelete(new(options.CommonAlertDeleteOptions))
cmd.Perform("config", &options.CommonAlertUpdateOptions{})
type TestOpt struct {
NAME string
RobotIds []string
Users []string
}
R(&TestOpt{}, "monitor-commonalert-create-mul-test", "create test monitor common alert", func(s *mcclient.ClientSession, opt *TestOpt) error {
cpuQ := newCommonAlertQuery(cpuTem)
memQ := newCommonAlertQuery(memTem)
input := monitorapi.CommonAlertCreateInput{
CommonMetricInputQuery: monitorapi.CommonMetricInputQuery{
MetricQuery: []*monitorapi.CommonAlertQuery{
cpuQ,
memQ,
},
},
AlertCreateInput: monitorapi.AlertCreateInput{
Name: opt.NAME,
},
CommonAlertCreateBaseInput: monitorapi.CommonAlertCreateBaseInput{
Recipients: opt.Users,
RobotIds: opt.RobotIds,
Channel: []string{"webconsole"},
AlertType: monitorapi.CommonAlertNomalAlertType,
Scope: "system",
},
}
_, err := modules.CommonAlerts.Create(s, jsonutils.Marshal(input))
return err
})
}

View File

@@ -15,7 +15,10 @@
package monitor
import (
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/monitor"
options "yunion.io/x/onecloud/pkg/mcclient/options/monitor"
)
@@ -24,5 +27,18 @@ func init() {
cmd := shell.NewResourceCmd(monitor.UnifiedMonitorManager).SetPrefix("monitor")
cmd.Show(&options.SimpleQueryOptions{})
cmd.GetProperty(&options.MeasurementsQueryOptions{})
cmd.GetProperty(&options.DatabasesQueryOptions{})
// cmd.GetProperty(&options.DatabasesQueryOptions{})
R(new(options.MetricQueryOptions), "monitor-unifiedmonitor-query", "Perform metrics query", func(s *mcclient.ClientSession, opts *options.MetricQueryOptions) error {
input, err := opts.GetQueryInput()
if err != nil {
return err
}
resp, err := monitor.UnifiedMonitorManager.PerformQuery(s, input)
if err != nil {
return errors.Wrap(err, "PerformQuery")
}
printObject(resp)
return nil
})
}

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
package notify
import (
"yunion.io/x/pkg/util/printutils"

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
package notify
import (
"yunion.io/x/onecloud/cmd/climc/shell"
@@ -27,4 +27,5 @@ func init() {
cmd.Update(new(options.ConfigUpdateOptions))
cmd.Show(new(options.ConfigOptions))
cmd.Delete(new(options.ConfigOptions))
cmd.GetProperty(new(options.ConfigCapabilityOptions))
}

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
package notify
import (
"yunion.io/x/onecloud/cmd/climc/shell"

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
package notify
import (
"fmt"
@@ -104,6 +104,7 @@ func init() {
return nil
})
type NotificationEventInput struct {
AdvanceDays int
Event string
Priority string
MsgBody string
@@ -122,6 +123,7 @@ func init() {
return fmt.Errorf("msg_body should be a json string, like '{'name': 'hello'}'")
}
params := api.NotificationManagerEventNotifyInput{
AdvanceDays: args.AdvanceDays,
ReceiverIds: []string{},
ResourceDetails: dict,
Event: args.Event,

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
package notify
import (
"yunion.io/x/onecloud/cmd/climc/shell"
@@ -34,4 +34,5 @@ func init() {
cmd.Perform("enable-contact-type", new(options.ReceiverEnableContactTypeInput))
cmd.PerformClass("intellij-get", new(options.ReceiverIntellijGetOptions))
cmd.PerformClass("get-types", new(options.ReceiverGetTypeOptions))
cmd.Perform("get-subscription", new(options.ReceiverGetSubscriptionOptions))
}

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
package notify
import (
"yunion.io/x/onecloud/cmd/climc/shell"

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
package notify
import (
"yunion.io/x/onecloud/cmd/climc/shell"
@@ -21,9 +21,6 @@ import (
)
func init() {
cmd := shell.NewResourceCmd(&modules.NotifyTopic).WithKeyword("notify-topic")
cmd.List(new(notify.TopicListOptions))
cmd1 := shell.NewResourceCmd(&modules.NotifySubscriber).WithKeyword("notify-subscriber")
cmd1.List(new(notify.SubscriberListOptions))
cmd1.Create(new(notify.SubscriberCreateOptions))

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
package notify
import (
"yunion.io/x/jsonutils"

View File

@@ -12,16 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package compute
package notify
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/notify"
options "yunion.io/x/onecloud/pkg/mcclient/options/notify"
)
func init() {
cmd := shell.NewResourceCmd(&modules.DnsTrafficPolicies).WithKeyword("dns-trafficpolicy")
cmd.List(&options.DnsTrafficPolicyListOptions{})
cmd.Create(&options.DnsTrafficPolicyCreateOptions{})
cmd := shell.NewResourceCmd(&modules.NotifyTopic).WithKeyword("notify-topic")
cmd.List(new(options.TopicListOptions))
cmd.Update(new(options.TopicUpdateOptions))
cmd.Show(new(options.TopicOptions))
}

View File

@@ -30,6 +30,7 @@ const (
OUTPUT_FORMAT_TABLE = "table" // pretty table
OUTPUT_FORMAT_FLATTEN_TABLE = "flatten-table" // pretty table with flattened keys
OUTPUT_FORMAT_JSON = "json" // json string
OUTPUT_FORMAT_YAML = "yaml" // yaml string
OUTPUT_FORMAT_KV = "kv" // "key: value" as separate line
OUTPUT_FORMAT_FLATTEN_KV = "flatten-kv" // kv with flattened keys
)
@@ -47,6 +48,8 @@ func PrintList(list *printutils.ListResult, columns []string) {
case OUTPUT_FORMAT_JSON:
fmt.Print(jsonutils.Marshal(list).PrettyString())
fmt.Print("\n")
case OUTPUT_FORMAT_YAML:
fmt.Print(jsonutils.Marshal(list).YAMLString())
default:
fmt.Fprintf(os.Stderr, "unknown output format: %q\n", outputFormat)
}
@@ -61,6 +64,8 @@ func PrintObject(obj jsonutils.JSONObject) {
case OUTPUT_FORMAT_JSON:
fmt.Print(obj.PrettyString())
fmt.Print("\n")
case OUTPUT_FORMAT_YAML:
fmt.Print(obj.YAMLString())
case OUTPUT_FORMAT_FLATTEN_TABLE:
printObjectRecursive(obj)
case OUTPUT_FORMAT_FLATTEN_KV:

View File

@@ -44,6 +44,14 @@ const (
// Failed, Offline, Degraded, Rebuilding, Out of Sync (OSY)
func main() {
logLevel := "debug"
logVerboseLevel := 5
log.SetVerboseLevel(int32(logVerboseLevel))
err := log.SetLogLevelByString(log.Logger(), logLevel)
if err != nil {
log.Fatalf("Set log level %q: %v", logLevel, err)
}
// creates the in-cluster config
config, err := rest.InClusterConfig()
if err != nil {

View File

@@ -1,20 +0,0 @@
# swagger.yaml
使用swagger编辑器
docker run -d -p 8081:8080 swaggerapi/swagger-editor
swagger文档https://swagger.io/docs/specification/2-0/basic-structure/
编辑测试:
1. 首先启动swagger-ui
sudo docker pull swaggerapi/swagger-ui
sudo docker run -d -p 80:8080 swaggerapi/swagger-ui
2. 用python启动本地的http server这是允许CORS的SimpleHTTPServer监听在8000端口
python server.py
3. 用浏览器打开swagger-ui的URLhttp://<swagger_ui_host>?url=http://<simple_http_server_host>:8000/index.yaml

View File

@@ -1,21 +0,0 @@
post:
summary: 执行ansibleplaybook
description: |
调用成功后
- start_time将置为当前时间
- end_time置为空
- status设置为running
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
- name: ansibleplaybook
in: body
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookCreateRequest"
responses:
200:
description: ansibleplaybook的信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks

View File

@@ -1,20 +0,0 @@
post:
summary: 中止执行ansibleplaybook
description: |
调用成功后
- end_time置为当前时间
- status设置为canceled
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
- name: ansibleplaybook
in: body
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookCreateRequest"
responses:
200:
description: ansibleplaybook的信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks

View File

@@ -1,41 +0,0 @@
get:
summary: 获取指定ansibleplaybook的信息
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
responses:
200:
description: ansibleplaybook信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks
put:
summary: 更新ansibleplaybook自身参数
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
- name: ansibleplaybook
in: body
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookCreateRequest"
responses:
200:
description: ansibleplaybook的信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks
delete:
summary: 删除指定ansibleplaybook
description: |
处于运行状态的playbook需先中止执行才允许删除
parameters:
- $ref: "../parameters/ansibleplaybook.yaml#/ansibleplaybookId"
responses:
200:
description: 被删除ansibleplaybook的信息
schema:
$ref: "../schemas/ansibleplaybook.yaml#/AnsiblePlaybookResponse"
tags:
- ansibleplaybooks

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