Compare commits

..

970 Commits

Author SHA1 Message Date
wanyaoqi
2d57d0c89b fix(region): reset guest quorum child index on guest shutdown (#25137) 2026-07-14 00:09:37 +08:00
wanyaoqi
86f7be7708 fix(region): snapshot validate add check guest is quorum master guest (#25055) 2026-06-24 10:31:01 +08:00
wanyaoqi
2350cb97ad fix(host): dd zero to lv wife partitions on lvremove (#24524) 2026-03-23 19:01:53 +08:00
wanyaoqi
9fd503fd73 fix(scheduler): correct mem_free = (mem_total - mem_reserved) * mem_cmtbound (#23977) 2025-12-29 11:18:16 +08:00
Jian Qiu
538e3b741c fix: splitable not function due to empty datefield (#23913)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-12-09 13:33:54 +08:00
wanyaoqi
d50535b69c fix(region): disk take snapshot check backing snapshot is merged (#23835) 2025-11-26 00:59:49 +08:00
Jian Qiu
2c7c920394 fix: validate policy role delete condition (#23812)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-11-21 12:03:52 +08:00
Jian Qiu
6643d3c331 fix: default cloud region init error (#23474)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-10-03 06:34:47 +08:00
wanyaoqi
338fffeeea fix(host): check min_free_kbytes size is enough (#23286) 2025-09-12 22:55:51 +08:00
wanyaoqi
5e03d3891d fix(host): convert snaphsot rely on reload disk exclusive first (#23090) 2025-08-22 10:26:15 +08:00
wanyaoqi
5d36ca8189 fix(scheduler): add session usage timeout options (#23147) 2025-08-21 18:11:30 +08:00
wanyaoqi
26be169b10 fix(host): lvm guest reload disk before delete snapshot (#23057) 2025-08-08 20:56:46 +08:00
Jian Qiu
bf8122caf4 fix: always update hostname for rhel-like os (#23021)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-08-06 01:06:03 +08:00
wanyaoqi
f99020ff37 fix(host,glance): only target qcow2 set cluster size on image convert (#22978) 2025-07-30 00:43:00 +08:00
wanyaoqi
d43f410747 fix(host): set qemuimg convert cluster_size 64k on compat image (#22969) 2025-07-29 00:04:53 +08:00
wanyaoqi
3102e9e0b8 fix(host): qemuimg convert add cluster_size (#22796) 2025-07-03 05:28:15 +08:00
wanyaoqi
19c780b566 fix(host-deployer): update host-deployer-base to 1.4.9 (#22776) 2025-06-24 17:04:02 +08:00
wanyaoqi
74e49560c3 fix(regin): instance snapshot create guest fill os arch (#22717) 2025-06-13 15:20:49 +08:00
wanyaoqi
e959456e8f fix(region,host): add auto merge snapshots options, preallocation options (#22710) 2025-06-13 15:18:48 +08:00
wanyaoqi
171bc15457 fix(host): qemu extra params format (#22612) 2025-05-27 13:34:14 +08:00
wanyaoqi
e74b655a2b fix(region): guestdisk list add auto reset column (#22324) 2025-03-26 15:06:47 +08:00
Zexi Li
8ca1f41779 Revert "Automated cherry pick of #22262: Automated cherry pick of #22259: fix(webconsole,monitor): pprof handlers of gorilla mux" (#22328) 2025-03-25 10:10:36 +08:00
Zexi Li
d606c9d8ea Merge pull request #22263 from zexi/automated-cherry-pick-of-#22262-upstream-release-3.9
Automated cherry pick of #22262: Automated cherry pick of #22259: fix(webconsole,monitor): pprof handlers of gorilla mux
2025-03-11 12:27:58 +08:00
Zexi Li
e79e8b6e87 fix(webconsole,monitor): pprof handlers of gorilla mux 2025-03-11 12:01:47 +08:00
wanyaoqi
710e3b570a feat(glance,region,host): auto cache glance images to ceph storages (#22248) 2025-03-08 11:04:36 +08:00
wanyaoqi
9fea893a03 fix(host): unmarshal cpuset use json parseString, disk change storage add encrypt support (#22227)
* fix(host): change storage clone disk add encrypt info

* fix(host): unmarshal cpuset use parsestring
2025-03-08 08:58:47 +08:00
Jian Qiu
448f374897 fix: disk copy to storage inherit classmeta (#22217)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-03-03 10:04:31 +08:00
wanyaoqi
969c443f64 fix(host): shared lvm activte with auto activation option (#22193) 2025-02-27 16:06:03 +08:00
wanyaoqi
bc8e9226a7 feat(region,host): add guest disk auto reset on shutdown support (#22196) 2025-02-27 16:02:54 +08:00
Jian Qiu
3c0d842d48 fix: remove default values from cmtbound columns (#22159)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-02-24 17:32:35 +08:00
Zexi Li
9065d4683a fix(scheduler): 尽早发现子网ip不足引起的调度失败 (#22135) 2025-02-19 17:16:35 +08:00
Zexi Li
f12461a82c fix(scheduler): avoid_same_host 策略分数过高导致调度分配不均 (#22138) 2025-02-19 16:48:35 +08:00
Zexi Li
125f068d37 optimized(scheduler): reduce scheduling time (#22033) 2025-02-05 10:25:53 +08:00
wanyaoqi
8681e90b04 fix(region,host): slvm snapshot delete and instance snapshot purge (#22001) 2025-01-26 19:37:34 +08:00
wanyaoqi
251f43c515 fix(region): remove delete expired snapshot after auto snapshots (#22003) 2025-01-26 19:36:58 +08:00
Jian Qiu
d83b088259 fix: prevent access from anonymous user release/3.8 (#22026)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2025-01-26 12:43:38 +08:00
wanyaoqi
4c64f77f5e fix(region): record snapshot last attched host on delete disk (#21909) 2025-01-07 19:59:41 +08:00
wanyaoqi
d3c5245da3 fix: add more action log (#21804)
* fix: add more action log

* fix(region): add set cmt bound action
2024-12-29 23:08:21 +08:00
wanyaoqi
df560f5ef8 fix(host): delete snapshot from storagehandler misc fix (#21881) 2024-12-23 20:43:15 +08:00
wanyaoqi
f96e5bffe3 Fix/merge release39 (#21647)
* fix(host): lvm image convert on save to glance

* fix(region,host): cached image add encrypt info, lvm support encrypt image cache
2024-12-06 20:59:15 +08:00
屈轩
b795352223 fix(apigateway): add service settings info (#21723) 2024-12-04 09:41:38 +08:00
wanyaoqi
c9a74dab84 fix(region): check disk is deleted on delete snapshot (#21372) 2024-10-09 21:48:58 +08:00
wanyaoqi
900e7da357 fix: fix slice init length (#21352)
Co-authored-by: cui fliter <imcusg@gmail.com>
2024-10-07 20:08:55 +08:00
wanyaoqi
b1fd14b73a fix(region,host): lvm snapshot delete and create from backup (#20996)
* 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:36:56 +08:00
Jian Qiu
5bc9558932 fix: telegraf config file format error (#21148)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-03 11:03:29 +08:00
Jian Qiu
7e40a5470d fix: opsadmin deny host perform login-info (#20907)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-29 02:02:45 +08:00
Zexi Li
56e1dd6ac5 fix: add apis for logininfo (#20893)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-25 15:27:35 +08:00
Zexi Li
242704e1d5 feat(webconsole): add secret_level property inside query data (#20886) 2024-07-24 17:41:34 +08:00
Zexi Li
3ab140d1b7 Automated cherry pick of #20884: Automated cherry pick of #19012: fix: webconsole display information control (#20885)
* fix: webconsole display information control

* fix(webconsole): fill dispInfo of ssh

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-24 17:38:43 +08:00
wanyaoqi
42b9a16994 Manual cherrypick of #20852 to release/3.9 (#20857)
* fix(host): lvm disk create from backup

* fix(host): resolve confilct lvm create from backup
2024-07-22 15:12:28 +08:00
Jian Qiu
9cc856a85a fix: ceph stats backward compatible with ceph 12.x (#20810)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-07-14 08:29:15 +08:00
wanyaoqi
62a1db4511 fix(host): disk reset with encryption (#20762) 2024-07-10 16:10:47 +08:00
wanyaoqi
62b1a69804 fix(region,host): lvm snapshot reset and backup (#20716)
- 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:35 +08:00
wanyaoqi
9ebbe7e9ef fix(region): login account allow startwith capital letter (#20673) 2024-06-27 20:50:53 +08:00
wanyaoqi
e8ec444dde fix(host): delete snapshot on guest deleted (#20644) 2024-06-26 21:19:33 +08:00
gouqi11
d6fa207b46 fix(region): fix snapshotpolicy create action (#20653)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-06-26 16:03:43 +08:00
wanyaoqi
516ea6cf11 Automated cherry pick of #20594: Fix/deploy reset password support loginaccount (#20598)
* fix(host): lvm resize add encrypt support

* fix(region): deploy reset password add loginaccount
2024-06-25 10:57:47 +08:00
Zexi Li
9a13f105a9 fix(logger): add rejected action i18n translation (#20600) 2024-06-20 15:01:14 +08:00
Zexi Li
6a94426092 feat(log): add i18n consts for itsm service (#20578) 2024-06-19 15:35:33 +08:00
Jian Qiu
dae1a636c9 fix: add predefined log policy (#20573)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-19 09:34:42 +08:00
wanyaoqi
a1768baefa fix(host-deployer): extend volume before extend filesystem (#20504) 2024-06-06 13:34:31 +08:00
Jian Qiu
1ce584a404 fix: disk backup details missing components (#20499)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-06-06 13:32:31 +08:00
屈轩
d9bbcf6d1e fix(region): mongodb processing status (#20464) 2024-06-04 14:47:51 +08:00
wanyaoqi
f056cad247 fix(host-deployer): split guest dns by comma (#20452) 2024-06-03 19:16:01 +08:00
wanyaoqi
ec826cbfa3 fix(region,host): slvm default deactivate on hosts (#20314) 2024-05-30 15:03:26 +08:00
Jian Qiu
7729869968 fix: hostbackupstorage climc subcmds (#20288)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-15 18:03:19 +08:00
wanyaoqi
216b911faa fix(region,host): slvm misc fix (#20273) 2024-05-15 10:45:25 +08:00
Jian Qiu
4a6927e18d fix: support cloudcloudos at release/3.8 (#20247)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-14 15:40:41 +08:00
Jian Qiu
ca77bf34b8 fix: cachedimage sync tenant_id (#20239)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-05-10 14:53:00 +08:00
wanyaoqi
31a630b76c fix(host): fix skip add boot vga as isolated device (#20173) 2024-04-30 07:15:46 +08:00
wanyaoqi
e87e69c6dc fix(host): ignore disk not found on disk delete handler (#20179) 2024-04-30 07:14:08 +08:00
wanyaoqi
797471004c fix(regin,host): delete snapshots after stream complete (#20085) 2024-04-19 18:27:21 +08:00
Jian Qiu
258fd1b547 fix: backup storage access containd by hosts (#20068)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-04-19 07:21:17 +08:00
wanyaoqi
c44223ec36 fix(host): resize lvm disk (#20049) 2024-04-19 07:18:34 +08:00
Zexi Li
b740408b57 Merge pull request #20001 from swordqiu/automated-cherry-pick-of-#19996-upstream-release-3.9
Automated cherry pick of #19996: fix: disk post create not inherit upper class
2024-04-16 18:21:10 +08:00
Zexi Li
0ab9727b60 Merge pull request #20010 from swordqiu/automated-cherry-pick-of-#20006-upstream-release-3.9
Automated cherry pick of #20006: fix: fail to create encrypted nfs disk
2024-04-16 16:01:06 +08:00
Qiu Jian
b4e65893ec fix: fail to create encrypted nfs disk 2024-04-16 00:19:23 +08:00
Qiu Jian
7577288f4a fix: disk post create not inherit upper class 2024-04-15 21:48:08 +08:00
屈轩
b4d6efbf4f fix(region): qcloud zone sync (#19967) 2024-04-12 20:52:21 +08:00
屈轩
e2b996b0af fix(region): skip check qcloud network (#19944) 2024-04-11 14:48:27 +08:00
屈轩
b6141ea00d fix(region): avoid create qcloud vm panic (#19935) 2024-04-11 12:23:06 +08:00
Zexi Li
19d529e4cb Merge pull request #19927 from swordqiu/hotfix/qj-disable-disk-serial-for-esxi
fix: disable disk serial for esxi vm
2024-04-11 11:34:38 +08:00
Qiu Jian
e51f82cf30 fix: disable disk serial for esxi vm 2024-04-11 00:57:34 +08:00
wanyaoqi
384b39cfc9 Automated cherry pick of #19893: Automated cherry pick of #19844: feat: lvm snapshots (#19894)
* fix(region,host): remove snapshot fake delete state

* feat(region,host): lvm snapshot support
2024-04-10 01:30:28 +08:00
Zexi Li
fe2a91e4b5 Merge pull request #19853 from swordqiu/automated-cherry-pick-of-#19850-upstream-release-3.9
Automated cherry pick of #19850: fix: idp list query filter by sso_domain
2024-04-02 10:36:29 +08:00
Qiu Jian
6a2675d722 fix: idp list query filter by sso_domain 2024-04-02 01:32:22 +08:00
Zexi Li
56bc4687a3 Merge pull request #19833 from wanyaoqi/automated-cherry-pick-of-#19830-upstream-release-3.9
Automated cherry pick of #19830: fix(host-deployer): deploy guest arm kernel path fix
2024-03-29 16:15:01 +08:00
wanyaoqi
6ee111fe46 fix(host-deployer): deploy guest arm kernel path fix 2024-03-29 16:14:05 +08:00
Zexi Li
d0f8addc64 Merge pull request #19803 from wanyaoqi/fix/slvm-delete-disk
fix(host): delete lvm disk active first
2024-03-27 20:23:06 +08:00
wanyaoqi
25dbe8fbc6 fix(host): resize slvm disk 2024-03-26 22:40:34 +08:00
wanyaoqi
074dadde8a fix(host): delete lvm disk active first 2024-03-26 19:53:50 +08:00
Jian Qiu
02eb288412 fix: server skus ignore seting SetModelManager (#19780)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-26 09:47:14 +08:00
Zexi Li
3a5a118be9 Merge pull request #19733 from wanyaoqi/automated-cherry-pick-of-#19730-upstream-release-3.9
Automated cherry pick of #19730: fix(region,host): lvm storage misc fix
2024-03-21 19:53:51 +08:00
wanyaoqi
173ac61b64 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:17:37 +08:00
Jian Qiu
a4b1fe10ee fix: host-deploy options struct consistent with host options (#19701)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-12 13:36:49 +08:00
Jian Qiu
336b390a74 fix: webconsole command log empty opstime (#19685)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-10 07:24:59 +08:00
Zexi Li
b5d73b912f Merge pull request #19667 from swordqiu/automated-cherry-pick-of-#19666-upstream-release-3.9
Automated cherry pick of #19666: fix: always add static routes for default nic
2024-03-07 10:04:44 +08:00
Qiu Jian
018636b8fa fix: always add static routes for default nic 2024-03-06 19:49:09 +08:00
wanyaoqi
db271ffccc feat(region,host): support shared driver by lvmlockd (#19618) 2024-03-06 09:56:23 +08:00
Jian Qiu
59e7773331 fix: donot use insertOrUpdate for create joint resources (#19653)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-03-06 02:24:16 +08:00
wanyaoqi
2b476fb9cc fix(host-deployer): support deploy encrypted disk (#19642) 2024-03-06 02:22:49 +08:00
wanyaoqi
aa473d0b1a Automated cherry pick of #19558: Fix/guest image live migrate (#19615)
* fix(host): slvm storage active on init

* fix(region): guest live migrate cache all of guestimage caches
2024-03-06 02:11:28 +08:00
gouqi11
8326696825 fix(influxdb): support set timeout (#19602)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2024-03-03 10:48:16 +08:00
Jian Qiu
8a68b95e34 fix: backport cephutils to 3.10/3.9 (#19546)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-02-28 14:07:06 +08:00
wanyaoqi
d085cea651 feat(host): no hpet and disable kvm=off (#19533) 2024-02-24 07:53:05 +08:00
wanyaoqi
3e801fe2ef fix(host-deployer): elfherader fd leak (#19474) 2024-02-08 14:11:14 +08:00
wanyaoqi
b591fa0b46 fix(host-deployer): xfs unlock panic (#19459) 2024-02-06 00:33:13 +08:00
Jian Qiu
411934aac5 fix: tenant cache sync deleted projects (#19443)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-02-05 08:45:43 +08:00
屈轩
87fb244226 fix(region): avoid filesystem sync error (#19438) 2024-02-04 15:44:23 +08:00
Jian Qiu
2d69a1c28a fix: update vendor release/3.9 20240128 (#19366)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-01-29 17:48:29 +08:00
wanyaoqi
505ef33abd fix(host-deployer): escape back quote (#19359) 2024-01-27 08:10:56 +08:00
Zexi Li
b548f003f2 Merge pull request #19349 from wanyaoqi/automated-cherry-pick-of-#19347-upstream-release-3.9
Automated cherry pick of #19347: fix(host-deployer): check sshclient is nil on disconnect
2024-01-26 16:04:24 +08:00
wanyaoqi
3d766ff89f fix(host-deployer): check sshclient is nil on disconnect 2024-01-26 12:11:35 +08:00
Jian Qiu
33189c8e6b fix: automatically refresh invalid admin token (#19275)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-01-17 00:28:19 +08:00
wanyaoqi
c5d5f8fe85 feat/backport qemu kvm deployer 3 9 (#19233)
* feat(host-deployer): use qemu-kvm as default deploy dirver

* fix(host-deployer): update base image and fix return errors

* fix(host-deployer,host): mv deploy driver option to common options

* fix(host-deployer): qemu deployer without kvm support (#18876)

* fix:(host-deployer): arm guest add gic version

* fix(host-deployer): disconnect fix and concurrence control

* fix(host-deployer): run guest on host and ignore no config file

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

* fix(host-deployer): udpate yunionos, reduce yunionos memsize

* fix(host-deployer): pass config files to deploy vm

* fix(host-deployer): check executor is enabled on init qemu driver

* fix(region,host-deployer): qga os distribution format (#19107)

host-deployer fix xfs mount error

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

* fix(host-deployer): deploy params has special char

* fix(host-deployer): add cmdline vsyscall=emulate on ramfs guest

deploy fs on older system like centos 6, need emulate vsyscall.
otherwise will get error like:
    Code: Unable to access opcode bytes at 0xffffffffff6003d6.

---------

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2024-01-15 13:24:28 +08:00
wanyaoqi
290401f6b8 feat(region,host): shared lvm storage (#19193) 2024-01-10 23:26:06 +08:00
Zexi Li
ec793e3ba7 Merge pull request #19041 from zexi/automated-cherry-pick-of-#18975-upstream-release-3.9
Automated cherry pick of #18975: fix(monitor): consider whether the target host is in source host of mem balancer
2023-12-18 18:58:16 +08:00
Zexi Li
f045b6dae0 fix(monitor): consider whether the target host is in source host of mem balancer 2023-12-18 18:57:22 +08:00
Zexi Li
8aa138b6ad Merge pull request #19040 from zexi/automated-cherry-pick-of-#18246-upstream-release-3.9
Automated cherry pick of #18246: fix(monitor): select host that isn't in source hosts as target
2023-12-18 18:57:10 +08:00
Zexi Li
c80c3fc242 fix(monitor): select host that isn't in source hosts as target 2023-12-18 18:56:41 +08:00
Zexi Li
b1a5739626 Merge pull request #18980 from wanyaoqi/feat/lvm-clvm-support
feat(region,host): lvm support backport to release/3.9
2023-12-14 03:28:55 +08:00
wanyaoqi
80caeb629f feat(region,host): clvm support 2023-12-13 18:38:37 +08:00
wanyaoqi
afae3efd87 feat(region,host): lvm support sys disk 2023-12-13 15:47:15 +08:00
wanyaoqi
c1a02a29c8 feat(region,host): lvm storage support 2023-12-13 15:20:49 +08:00
Jian Qiu
ab78a4ac23 fix: host add a local config file (#18935)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-12-08 21:27:05 +08:00
Zexi Li
c2fac34ed8 Merge pull request #18849 from zexi/automated-cherry-pick-of-#18843-upstream-release-3.9
Automated cherry pick of #18843: feat(ci): use github action to check PR
2023-12-01 14:59:53 +08:00
Zexi Li
0b1a7ba5d7 feat(ci): use github action to check PR 2023-12-01 14:59:18 +08:00
屈轩
59a851ed52 fix(region): trim metadata key (#18782) 2023-11-24 22:17:23 +08:00
Jian Qiu
4e2f333f22 fix: windows GPU vm should set hypervisor=off (#18681)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-15 08:56:20 +08:00
Jian Qiu
f9d92cce30 fix: make host dhcp lease options global (#18685)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-11-15 08:55:50 +08:00
Zexi Li
d80e60c96e fix(host): setup routes from start to end (#18673) 2023-11-14 17:55:59 +08:00
Jian Qiu
6694fd41a5 fix(host): catch init error (#18660)
Co-authored-by: Zexi Li <zexi.li@icloud.com>
2023-11-14 09:46:31 +08:00
Zexi Li
23890d1e1e Merge pull request #18650 from swordqiu/hotfix/qj-gpu-class-codes-3.9
fix: extend gpu pci class codes to [0380] at release/3.9
2023-11-13 19:20:26 +08:00
Qiu Jian
4669d95bbc fix: extend gpu pci class codes to [0380] at release/3.9 2023-11-13 17:43:40 +08:00
Zexi Li
eefe477f9e fix(host): ignore error when add bridge ip address route (#18602) 2023-11-08 17:39:36 +08:00
Zexi Li
72bdd60fda Merge pull request #18568 from swordqiu/automated-cherry-pick-of-#18565-upstream-release-3.9
Automated cherry pick of #18565: fix: qemu disk set serial as disk_id
2023-11-05 11:45:11 +08:00
Qiu Jian
e81f2c528a fix: qemu disk set serial as disk_id 2023-11-04 18:50:40 +08:00
Zexi Li
aa9cc6d12a Merge pull request #18562 from swordqiu/automated-cherry-pick-of-#18559-upstream-release-3.9
Automated cherry pick of #18559: fix: host fail to migrate interface routes
2023-11-04 18:28:49 +08:00
Qiu Jian
a70ec0bfe8 fix: host fail to migrate interface routes 2023-11-04 00:01:31 +08:00
Zexi Li
0199950657 Merge pull request #18510 from swordqiu/automated-cherry-pick-of-#18503-upstream-release-3.9
Automated cherry pick of #18503: fix: dhcp hostname not compatible with some os
2023-10-31 19:42:43 +08:00
Zexi Li
bc749b6eed Merge pull request #18500 from zexi/automated-cherry-pick-of-#18497-upstream-release-3.9
Automated cherry pick of #18497: feat(apigateway): report running env
2023-10-31 19:28:17 +08:00
屈轩
32c70e72b2 fix(keystone): validate time_zone input (#18508) 2023-10-31 18:41:36 +08:00
Qiu Jian
c9f79d1c33 fix: dhcp hostname not compatible with some os 2023-10-31 13:54:48 +08:00
Zexi Li
14877d8b83 Merge pull request #18481 from swordqiu/automated-cherry-pick-of-#18478-upstream-release-3.9
Automated cherry pick of #18478: fix: scheduler ping/pong response mime
2023-10-30 20:39:01 +08:00
Zexi Li
df5d2810a5 feat(apigateway): report running env 2023-10-30 20:33:26 +08:00
屈轩
4cad747970 fix(region): avoid hostname has '-' suffix (#18490) 2023-10-30 17:02:41 +08:00
Qiu Jian
e5ee3c1746 fix: scheduler ping/pong response mime 2023-10-30 13:19:05 +08:00
Zexi Li
9a7eb920c4 Merge pull request #18392 from ioito/automated-cherry-pick-of-#18389-upstream-release-3.9
Automated cherry pick of #18389: fix(apigateway): baremetal usage
2023-10-23 11:17:05 +08:00
ioito
026b98e452 fix(apigateway): baremetal usage 2023-10-23 10:39:00 +08:00
Zexi Li
c679f7e570 fix(scheduler): improve scheduler prefer and avoid tags strategy (#18371) 2023-10-20 20:45:53 +08:00
Zexi Li
db9c80acf2 Merge pull request #18369 from swordqiu/automated-cherry-pick-of-#18207-upstream-release-3.9
Automated cherry pick of #18207: feat(region,glance): from cloudaccount to enable vmdk target format
2023-10-20 12:29:18 +08:00
Zexi Li
26083e65e2 Merge pull request #18368 from swordqiu/automated-cherry-pick-of-#18365-upstream-release-3.9
Automated cherry pick of #18365: fix: auto convert missing subformat images
2023-10-20 12:28:48 +08:00
wanyaoqi
80915e2f17 feat(region,glance): from cloudaccount to enable vmdk target format 2023-10-20 11:44:35 +08:00
Qiu Jian
a51eb1c31f fix: auto convert missing subformat images 2023-10-20 10:25:01 +08:00
Jian Qiu
e5bde173cb fix: missing project mapping body (#18355)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-18 20:39:19 +08:00
Zexi Li
52485756bc Merge pull request #18345 from swordqiu/automated-cherry-pick-of-#18342-upstream-release-3.9
Automated cherry pick of #18342: fix: unable to recognize anolis os
2023-10-18 15:01:09 +08:00
Qiu Jian
cd414cfe7c fix: unable to recognize anolis os 2023-10-18 01:55:19 +08:00
Jian Qiu
7e64a88a1b fix: update vendor for edito retry (#18311)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-13 07:29:54 +08:00
Jian Qiu
4c54d42411 fix: update vendor 20231012 for sqlchemy (#18287)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-10-12 16:56:36 +08:00
wanyaoqi
76d5cd84e2 fix(host): check qga connect is closed (#18274) 2023-10-12 14:49:27 +08:00
wanyaoqi
c8083f2895 fix(host): host sysinfo metadata double quota (#18242) 2023-10-09 18:37:00 +08:00
Zexi Li
e4ec40967f Merge pull request #18238 from wanyaoqi/automated-cherry-pick-of-#18235-upstream-release-3.9
Automated cherry pick of #18235: fix(host-deployer): deploy qga conf ensure /etc/sysconfig dir
2023-10-09 15:06:58 +08:00
wanyaoqi
b97f552df4 fix(host-deployer): deploy qga conf ensure /etc/sysconfig dir 2023-10-09 12:25:36 +08:00
Zexi Li
4ef8534937 Merge pull request #18168 from zexi/automated-cherry-pick-of-#18167-upstream-release-3.9
Automated cherry pick of #18167: fix(scheduler): some joint resources are not synced
2023-09-27 22:51:29 +08:00
Zexi Li
2bdd37a826 fix(scheduler): some joint resources are not synced 2023-09-27 16:49:09 +08:00
Jian Qiu
b9c34b9622 fix: fail purge disk due to getMastHost failure (#18165)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-27 15:08:36 +08:00
Zexi Li
40cfbf0e95 Merge pull request #18156 from wanyaoqi/fix/qga-restart-network
fix(region): remove ansible restart network on guest sync
2023-09-26 17:41:59 +08:00
wanyaoqi
dab3d47936 fix(region): remove ansible restart network on guest sync 2023-09-26 15:45:52 +08:00
Zexi Li
98e9870e03 Merge pull request #18148 from ioito/automated-cherry-pick-of-#18145-upstream-release-3.9
Automated cherry pick of #18145: fix(region): aliyun health check tls error
2023-09-25 16:54:13 +08:00
屈轩
4de0e10565 fix(region): avoid panic after created vm (#18144) 2023-09-25 15:13:11 +08:00
ioito
6df7983cb8 fix(region): aliyun health check tls error 2023-09-25 15:12:05 +08:00
Zexi Li
fbd7afb00c Merge pull request #18068 from wanyaoqi/automated-cherry-pick-of-#18065-upstream-release-3.9
Automated cherry pick of #18065: fix(region,host): cancel migrate sync guest status
2023-09-21 22:40:51 +08:00
Zexi Li
0563ba47ba Merge pull request #18079 from wanyaoqi/automated-cherry-pick-of-#18076-upstream-release-3.9
Automated cherry pick of #18076: fix(region,host): guest save image restart not work
2023-09-21 22:39:47 +08:00
Zexi Li
e10b6e6266 Merge pull request #18085 from wanyaoqi/feat/qga-set-network-3.9
Manual Cherrypick of #17858: add qga set network
2023-09-21 20:56:48 +08:00
wanyaoqi
24ccd64b18 feat(region,host): qga set guest network 2023-09-20 19:55:33 +08:00
wanyaoqi
6782220ee6 fix(region,host): guest save image restart not work 2023-09-20 19:38:33 +08:00
wanyaoqi
15aad29ff3 fix(region,host): cancel migrate sync guest status 2023-09-20 09:57:13 +08:00
chentianxiang
6b73a39415 fix(region):some fix 2023-09-18 11:00:09 +08:00
chentianxiang
ad8b734ef6 feat(region): add qga set network 2023-09-18 11:00:09 +08:00
Zexi Li
dc21f63ed3 Merge pull request #18036 from wanyaoqi/automated-cherry-pick-of-#17465-upstream-release-3.9
Automated cherry pick of #17465: fix(region,host): qga command timeout
2023-09-18 10:57:33 +08:00
wanyaoqi
1848c2eac1 fix(region,host): qga command timeout
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-09-18 10:46:19 +08:00
屈轩
2ff239f25b fix(region): select available storage (#18034) 2023-09-18 10:24:07 +08:00
gouqi11
5f198f4f8d fix(region): fix empty zone for qcloud (#18030)
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
2023-09-15 19:38:48 +08:00
Zexi Li
2ad255ed4e Merge pull request #18006 from wanyaoqi/automated-cherry-pick-of-#18004-upstream-release-3.9
Automated cherry pick of #18004: fix(logclient): add i18n maps for translation
2023-09-13 10:15:38 +08:00
wanyaoqi
22e764cd76 fix(logclient): add i18n maps for translation 2023-09-13 09:43:47 +08:00
屈轩
b893386efe fix(region): sync tencent lb rule (#17980) 2023-09-11 10:13:24 +08:00
屈轩
57255ecd6d fix(region): avoid panic (#17971) 2023-09-10 00:27:37 +08:00
wanyaoqi
582995a369 fix(host): set migrate bandwidth nolimit (#17976) 2023-09-10 00:26:56 +08:00
Zexi Li
2146cf2208 Merge pull request #17965 from swordqiu/automated-cherry-pick-of-#17963-upstream-release-3.9
Automated cherry pick of #17963: fix: some kernel params tune by default
2023-09-08 04:13:51 +08:00
Qiu Jian
ed7dac3f6e fix: some kernel params tune by default 2023-09-08 00:00:27 +08:00
Jian Qiu
1e694bee37 fix: allow remvoe server extra options of specific value (#17949)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-09-06 17:02:22 +08:00
Zexi Li
a0191d5590 Merge pull request #17931 from zhasm/automated-cherry-pick-of-#17930-upstream-release-3.9
Automated cherry pick of #17930: hotfix: typo
2023-09-05 12:57:29 +08:00
Zhang Dongliang
13f5d83b9b hotfix: typo 2023-09-05 12:54:43 +08:00
Zexi Li
2ccc178be6 Merge pull request #17929 from zhasm/automated-cherry-pick-of-#17927-upstream-release-3.9
Automated cherry pick of #17927: fix(docker buildx cross platform docker image fix): 跨平台编译docker镜像明确指定架构
2023-09-05 12:49:48 +08:00
Zhang Dongliang
f2bc227702 fix(docker buildx cross platform docker image fix): 跨平台编译docker镜像明确指定架构 2023-09-05 12:43:47 +08:00
Zexi Li
9af9603721 Merge pull request #17924 from swordqiu/automated-cherry-pick-of-#17922-upstream-release-3.9
Automated cherry pick of #17922: fix: struct sub field tag
2023-09-05 11:56:57 +08:00
Qiu Jian
94a18b89e2 fix: struct sub field tag 2023-09-04 22:49:31 +08:00
屈轩
56cd2ef187 fix(region): vendor update (#17863) 2023-08-28 15:33:56 +08:00
屈轩
c37fbaafea fix(region): skip resource by tags (#17860) 2023-08-28 14:47:00 +08:00
Jian Qiu
976c7e2783 fix: debian 12 OS initialization (#17848)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-27 05:01:08 +08:00
屈轩
7a1cb3910b fix(region): vendor update (#17854) 2023-08-27 04:56:32 +08:00
屈轩
3eb8486299 fix(logger): export limit (#17855) 2023-08-25 10:22:30 +08:00
Jian Qiu
ffa1ddc411 fix: cachedimage add index (#17845)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-24 03:31:54 +08:00
屈轩
b8053c07bf fix(region): storage extra info (#17834) 2023-08-24 03:11:11 +08:00
Jian Qiu
e59998a9c5 fix: add index to server skus (#17842)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-24 03:10:09 +08:00
屈轩
90644b8bf4 fix(webconsole): fix #17822 (#17839) 2023-08-23 19:40:09 +08:00
屈轩
d90c3b7fb7 fix(logger): distinct for kind (#17821) 2023-08-22 10:03:12 +08:00
屈轩
c174405f38 fix(logger): distinct field for action log (#17816) 2023-08-21 19:05:57 +08:00
Jian Qiu
67874b2b13 fix: windows 2012 no dns (#17809)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-21 14:20:10 +08:00
wanyaoqi
d4157bdded fix(host): gpu probe miss 3d type gpu (#17807) 2023-08-21 12:32:23 +08:00
Zexi Li
37a359ede3 Merge pull request #17729 from swordqiu/automated-cherry-pick-of-#17727-upstream-release-3.9
Automated cherry pick of #17727: fix: allow host access_mac nullable
2023-08-08 16:29:32 +08:00
Qiu Jian
c93520ed5c fix: allow host access_mac nullable 2023-08-08 12:41:48 +08:00
Zexi Li
40f0108fe8 Merge pull request #17721 from ioito/automated-cherry-pick-of-#17719-upstream-release-3.9
Automated cherry pick of #17719: fix(climc): avoid panic
2023-08-07 20:20:50 +08:00
ioito
0bfaa1a85d fix(climc): avoid panic 2023-08-07 18:48:41 +08:00
Jian Qiu
54874df19f fix: set vcpu vendor_id based on host cpu vendor_id for release/3.9 (#17713)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-08-06 21:31:13 +08:00
Zexi Li
0c89a9a4a4 Merge pull request #17697 from gouqi11/automated-cherry-pick-of-#17695-upstream-release-3.9
Automated cherry pick of #17695: fix(monitor): fix montior alert startTimeFormat
2023-08-02 17:57:18 +08:00
马鸿飞
f811c83a61 fix(monitor): fix montior alert startTimeFormat 2023-08-02 17:40:25 +08:00
Zexi Li
65b5f4c8c0 Merge pull request #17692 from ioito/automated-cherry-pick-of-#17690-upstream-release-3.9
Automated cherry pick of #17690: fix(cloudmon): avoid panic
2023-08-02 10:21:14 +08:00
ioito
059deacef3 fix(cloudmon): avoid panic 2023-08-01 16:04:55 +08:00
Zexi Li
67fb011ef5 Merge pull request #17687 from ioito/automated-cherry-pick-of-#17685-upstream-release-3.9
Automated cherry pick of #17685: fix(cloudmon): cloudaccout update
2023-08-01 13:01:54 +08:00
ioito
4a5de78d09 fix(cloudmon): cloudaccout update 2023-08-01 12:20:43 +08:00
Zexi Li
710b1deb52 Merge pull request #17676 from wanyaoqi/automated-cherry-pick-of-#17674-upstream-release-3.9
Automated cherry pick of #17674: fix(host): add gpu device when driver isn't bind
2023-08-01 00:50:33 +08:00
wanyaoqi
9fb6a0b98d fix(host): add gpu device when driver isn't bind 2023-07-31 15:55:59 +08:00
Zexi Li
34df171bab Merge pull request #17667 from ioito/automated-cherry-pick-of-#17665-upstream-release-3.9
Automated cherry pick of #17665: fix(region): acl name
2023-07-30 14:01:16 +08:00
ioito
4482ed8393 fix(region): acl name 2023-07-28 20:18:32 +08:00
Zexi Li
571fd2d84e Merge pull request #17638 from wanyaoqi/automated-cherry-pick-of-#17635-upstream-release-3.9
Automated cherry pick of #17635: fix(host-deployer): detect image arch incorrect
2023-07-27 15:39:10 +08:00
Zexi Li
bd14d74c5a Merge pull request #17643 from zexi/automated-cherry-pick-of-#17641-upstream-release-3.9
Automated cherry pick of #17641: fix(scheduler): auto allocation network selection is not working
2023-07-27 15:37:21 +08:00
Zexi Li
5cab3d187a fix(scheduler): auto allocation network selection is not working 2023-07-27 12:20:52 +08:00
wanyaoqi
998cfed30b fix(host-deployer): detect image arch incorrect 2023-07-26 21:54:50 +08:00
Zexi Li
6682efa2ac Merge pull request #17631 from ioito/automated-cherry-pick-of-#17629-upstream-release-3.9
Automated cherry pick of #17629: fix(region): vendor update
2023-07-26 11:39:19 +08:00
ioito
19ae1835b9 fix(region): vendor update 2023-07-26 11:36:34 +08:00
Zexi Li
c964761225 Merge pull request #17622 from ioito/automated-cherry-pick-of-#17620-upstream-release-3.9
Automated cherry pick of #17620: fix(region): vendor update
2023-07-25 18:35:09 +08:00
ioito
fb6e2bd043 fix(region): vendor update 2023-07-25 18:29:14 +08:00
Zexi Li
24b7fd31f7 Merge pull request #17618 from zexi/automated-cherry-pick-of-#17617-upstream-release-3.9
Automated cherry pick of #17617: fix(host): try reloading telegraf by restarting docker
2023-07-25 18:04:27 +08:00
Zexi Li
ac258ff38b Merge pull request #17608 from ioito/automated-cherry-pick-of-#17606-upstream-release-3.9
Automated cherry pick of #17606: fix(region): set scheduler failed brand unknown
2023-07-25 17:51:30 +08:00
Zexi Li
fdad35210f fix(host): try reloading telegraf by restarting docker 2023-07-25 17:49:07 +08:00
ioito
887161d428 fix(region): set scheduler failed brand unknown 2023-07-24 16:20:00 +08:00
Zexi Li
f881e2c8ee Merge pull request #17604 from ioito/automated-cherry-pick-of-#17602-upstream-release-3.9
Automated cherry pick of #17602: fix(region): usage for nic
2023-07-24 15:55:48 +08:00
ioito
43a2ed88a8 fix(region): usage for nic 2023-07-24 15:26:45 +08:00
Zexi Li
9691902f48 fix(monitor): return error if metric is nil (#17576) 2023-07-20 11:51:51 +08:00
Zexi Li
e312e5fb19 Merge pull request #17566 from ioito/automated-cherry-pick-of-#17564-upstream-release-3.9
Automated cherry pick of #17564: fix(region): esxi add vmdk disk
2023-07-19 01:30:52 +08:00
ioito
8d79fe7f93 fix(region): esxi add vmdk disk 2023-07-18 20:11:34 +08:00
Zexi Li
27cbdfa598 Merge pull request #17552 from ioito/automated-cherry-pick-of-#17550-upstream-release-3.9
Automated cherry pick of #17550: fix(region): esxi disk with vmdk format
2023-07-18 17:37:53 +08:00
ioito
0a15eb3f75 fix(region): esxi disk with vmdk format 2023-07-17 18:20:17 +08:00
Zexi Li
046579dba4 Merge pull request #17524 from swordqiu/automated-cherry-pick-of-#17521-upstream-release-3.9
Automated cherry pick of #17521: fix: lbcluster reference count
2023-07-14 18:14:52 +08:00
Qiu Jian
66222d33ee fix: lbcluster reference count 2023-07-14 06:48:56 +08:00
屈轩
8f3be4d36e fix(climc): add port for ssh (#17515) 2023-07-13 16:39:54 +08:00
wanyaoqi
f2b1a31029 fix(host): qemu arm add qga params (#17508) 2023-07-13 13:35:52 +08:00
屈轩
659dfcce9d fix(region): esxi vm migrate for search ivm (#17481) 2023-07-12 16:16:51 +08:00
屈轩
c89fb6be46 fix(region): reset esxi osinfo (#17478) 2023-07-12 16:15:36 +08:00
Zexi Li
8df97583fb Merge pull request #17471 from ioito/automated-cherry-pick-of-#17469-upstream-release-3.9
Automated cherry pick of #17469: fix(region): default username
2023-07-11 10:08:45 +08:00
Zexi Li
9e3cf697f2 Merge pull request #17474 from ioito/automated-cherry-pick-of-#17472-upstream-release-3.9
Automated cherry pick of #17472: fix(esxi-agent): reset password log
2023-07-10 16:09:28 +08:00
ioito
4fe9ee76d7 fix(esxi-agent): reset password log 2023-07-10 15:55:07 +08:00
ioito
551c1f8316 fix(region): default username 2023-07-10 15:27:06 +08:00
Zexi Li
4ba953f431 Merge pull request #17379 from ioito/automated-cherry-pick-of-#17377-upstream-release-3.9
Automated cherry pick of #17377: fix(region): vendor update
2023-06-27 11:03:40 +08:00
ioito
1453ebfa34 fix(region): vendor update 2023-06-27 10:34:29 +08:00
Zexi Li
cb937c67e7 Merge pull request #17372 from ioito/automated-cherry-pick-of-#17370-upstream-release-3.9
Automated cherry pick of #17370: fix(region): sync zstack vm ip
2023-06-26 16:40:20 +08:00
ioito
09083a16bd fix(region): sync zstack vm ip 2023-06-26 15:57:39 +08:00
Zexi Li
50a787e726 Merge pull request #17368 from ioito/automated-cherry-pick-of-#17366-upstream-release-3.9
Automated cherry pick of #17366: fix(region): avoid aliyun elastic cache cycle sync
2023-06-26 10:13:09 +08:00
ioito
d6130aca4b fix(region): avoid aliyun elastic cache cycle sync 2023-06-25 21:07:41 +08:00
Zexi Li
bf72c364d3 Merge pull request #17347 from swordqiu/automated-cherry-pick-of-#17345-upstream-release-3.9
Automated cherry pick of #17345: fix: add process timeout option default_process_timeout_seconds
2023-06-21 16:39:18 +08:00
Qiu Jian
2e651ba117 fix: add process timeout option default_process_timeout_seconds 2023-06-21 13:55:09 +08:00
Jian Qiu
6211743469 fix: detailed pending usage error (#17342)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-06-21 10:02:22 +08:00
Zexi Li
887de27fc6 Merge pull request #17328 from zexi/automated-cherry-pick-of-#17326-upstream-release-3.9
Automated cherry pick of #17326: fix(baremetal): panic occured when fetch powerMetrics
2023-06-20 10:42:58 +08:00
Zexi Li
8cd2c65731 fix(baremetal): panic occured when fetch powerMetrics 2023-06-19 15:24:49 +08:00
Zexi Li
f2986931ba Merge pull request #17302 from ioito/automated-cherry-pick-of-#17300-upstream-release-3.9
Automated cherry pick of #17300: fix(region): vendor update
2023-06-14 22:48:44 +08:00
Zexi Li
f58556b9a3 Merge pull request #17288 from zexi/bm-mem-size
fix(baremetal): skip 'Volatile Size' line when detecting memory size
2023-06-14 22:45:52 +08:00
Zexi Li
8c05089c86 Merge pull request #17303 from zhasm/automated-cherry-pick-of-#17299-upstream-release-3.9
Automated cherry pick of #17299: [wip] fix(docker,buildx): 兼容本地registry 模式
2023-06-14 15:31:37 +08:00
Zhang Dongliang
2d19cf003a fix(docker,buildx): 兼容本地registry 模式 2023-06-14 15:20:51 +08:00
ioito
448a35fe5f fix(region): vendor update 2023-06-14 15:15:08 +08:00
Zexi Li
f0bf8606d1 Merge pull request #17294 from zhasm/automated-cherry-pick-of-#17292-upstream-release-3.9
Automated cherry pick of #17292: fix(docker,buildx): 跨平台编译优化
2023-06-13 17:27:54 +08:00
Zhang Dongliang
b004c296fa fix(docker,buildx): 跨平台编译优化 2023-06-13 17:10:50 +08:00
Zexi Li
34ebfa5cc5 Merge pull request #17279 from wanyaoqi/automated-cherry-pick-of-#17277-upstream-release-3.9
Automated cherry pick of #17277: fix(region): qga set password not record logininfo
2023-06-13 13:19:07 +08:00
Zexi Li
ec8c855130 fix(baremetal): skip 'Volatile Size' line when detecting memory size 2023-06-13 13:14:22 +08:00
wanyaoqi
ae00c4fecd 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:27 +08:00
屈轩
086e55c45d fix(region): qcloud hypervisor (#17265) 2023-06-08 21:20:26 +08:00
Zexi Li
2f825aaed2 Merge pull request #17256 from ioito/automated-cherry-pick-of-#17250-upstream-release-3.9
Automated cherry pick of #17250: fix(region): filter host by ips
2023-06-06 14:17:36 +08:00
ioito
8dbc52718e fix(region): filter host by ips 2023-06-06 10:57:58 +08:00
Zexi Li
b5709114a6 Merge pull request #17242 from wanyaoqi/automated-cherry-pick-of-#17240-upstream-release-3.9
Automated cherry pick of #17240: fix(host): don't sync status on resume from postmigrate
2023-06-03 10:58:32 +08:00
wanyaoqi
dae645b421 fix(host): don't sync status on resume from postmigrate
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-06-02 18:50:33 +08:00
Zexi Li
f451f19c20 feat(climc): add service option for action-show command (#17224) 2023-06-01 20:44:03 +08:00
Zexi Li
2dec5d715c Merge pull request #17216 from gouqi11/automated-cherry-pick-of-#17214-upstream-release-3.9
Automated cherry pick of #17214: fix(region): fix region.CreatedAt
2023-05-31 19:08:18 +08:00
马鸿飞
26b3b3f9d8 fix(region): fix region.CreatedAt 2023-05-31 16:16:35 +08:00
Zexi Li
e723c37f11 Merge pull request #17210 from zexi/automated-cherry-pick-of-#17208-upstream-release-3.9
Automated cherry pick of #17208: optimized(monitor): query metrics time
2023-05-31 15:19:48 +08:00
Zexi Li
c30819ee75 optimized(monitor): query metrics time 2023-05-31 15:01:54 +08:00
Zexi Li
0073f7fc64 fix(climc): release upgrade method (#17197) 2023-05-30 22:57:10 +08:00
Zexi Li
a53884bd79 Merge pull request #17182 from ioito/automated-cherry-pick-of-#17180-upstream-release-3.9
Automated cherry pick of #17180: fix(region): vpc purge
2023-05-30 17:41:38 +08:00
Zexi Li
a213c35e99 Merge pull request #17189 from swordqiu/automated-cherry-pick-of-#17187-upstream-release-3.9
Automated cherry pick of #17187: fix: apigateway endpoint empty error
2023-05-30 17:41:08 +08:00
Zexi Li
4a9feb85f4 Merge pull request #17193 from ioito/automated-cherry-pick-of-#17184-upstream-release-3.9
Automated cherry pick of #17184: fix(region): server list filter by ips
2023-05-30 17:39:39 +08:00
ioito
bd92a1d03d fix(region): server list filter by ips 2023-05-30 16:31:15 +08:00
Qiu Jian
74c67b6967 fix: apigateway endpoint empty error 2023-05-30 11:21:14 +08:00
ioito
9e11ca7e5f fix(region): vpc purge 2023-05-29 16:46:28 +08:00
Jian Qiu
360e63f1dd fix: make cron day job happen earlier (#17168)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-26 17:02:33 +08:00
Zexi Li
454324aec4 Merge pull request #17158 from gouqi11/automated-cherry-pick-of-#17156-upstream-release-3.9
Automated cherry pick of #17156: fix(keystone): fix refreshScopeResourceCount timeout
2023-05-25 20:12:36 +08:00
马鸿飞
af41aa07c5 fix(keystone): fix refreshScopeResourceCount timeout 2023-05-25 15:25:01 +08:00
Zexi Li
9927b9d13d Merge pull request #17127 from ioito/automated-cherry-pick-of-#17125-upstream-release-3.9
Automated cherry pick of #17125: fix(region): index order
2023-05-23 11:25:12 +08:00
ioito
e027bdd07d fix(region): index order 2023-05-23 11:00:30 +08:00
Zexi Li
29a8f731f2 fix(baremetal): skip running sysinit.sh when arch is aarch64 (#17106) 2023-05-19 17:34:49 +08:00
Zexi Li
ac87a44e77 Merge pull request #17079 from ioito/automated-cherry-pick-of-#17077-upstream-release-3.9
Automated cherry pick of #17077: fix(apigateway): image upload with properties
2023-05-19 10:49:53 +08:00
Jian Qiu
3a1b1db18f fix: allow bootstrap role policy assignment without violation check (#17089)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-05-18 19:29:28 +08:00
Zexi Li
de9b911d9e Merge pull request #17082 from ioito/automated-cherry-pick-of-#17080-upstream-release-3.9
Automated cherry pick of #17080: fix(region): validate delete region
2023-05-18 18:07:14 +08:00
ioito
4fbd6ed7bf fix(region): validate delete region 2023-05-18 16:10:50 +08:00
ioito
c14fee7bbf fix(apigateway): image upload with properties 2023-05-18 15:10:02 +08:00
Zexi Li
00b0ae9fab Merge pull request #17068 from swordqiu/automated-cherry-pick-of-#17066-upstream-release-3.9
Automated cherry pick of #17066: fix: disable policy update when enable three member system
2023-05-18 02:17:40 +08:00
Qiu Jian
d4fe392e26 fix: disable policy update when enable three member system 2023-05-17 23:39:47 +08:00
Zexi Li
f9fc2618fe Merge pull request #17049 from swordqiu/automated-cherry-pick-of-#17047-upstream-release-3.9
Automated cherry pick of #17047: fix: prevent policy violate when assigning policy to roles
2023-05-16 11:12:43 +08:00
Qiu Jian
678b8171dd fix: prevent policy violate when assigning policy to roles 2023-05-15 21:26:35 +08:00
屈轩
3f2c214b59 fix(region): optimized sku sync (#17030) 2023-05-13 07:50:46 +08:00
Zexi Li
2e605f5c53 Merge pull request #16915 from wanyaoqi/fix/update-desc-meta-on-sync-meta
fix(host): update desc metadata on guest sync meta
2023-05-12 10:31:46 +08:00
Zexi Li
17c6a2e88b Merge pull request #16996 from zexi/automated-cherry-pick-of-#16994-upstream-release-3.9
Automated cherry pick of #16994: fix(monitor): adjust query timeout to 5 mins
2023-05-10 18:01:52 +08:00
Zexi Li
4916a7cf5c fix(monitor): adjust query timeout to 5 mins 2023-05-10 13:02:01 +08:00
Zexi Li
2cfd79956a Merge pull request #16976 from ioito/automated-cherry-pick-of-#16973-upstream-release-3.9
Automated cherry pick of #16973: fix(region): optimized vpc-list
2023-05-10 09:58:51 +08:00
Zexi Li
1bb4ad8c0e Merge pull request #16981 from ioito/automated-cherry-pick-of-#16979-upstream-release-3.9
Automated cherry pick of #16979: fix(region): elastic cache purge
2023-05-09 09:20:21 +08:00
Zexi Li
d35cc4d9e8 Merge pull request #16985 from swordqiu/automated-cherry-pick-of-#16983-upstream-release-3.9
Automated cherry pick of #16983: fix: usage handler nil check revisit
2023-05-09 09:19:38 +08:00
Qiu Jian
09b53eb545 fix: usage handler nil check revisit 2023-05-08 20:52:15 +08:00
ioito
36b6df58fb fix(region): elastic cache purge 2023-05-08 16:05:43 +08:00
ioito
03d836222e fix(region): optimized vpc-list 2023-05-08 15:11:58 +08:00
Zexi Li
133093872d Merge pull request #16971 from swordqiu/automated-cherry-pick-of-#16969-upstream-release-3.9
Automated cherry pick of #16969: fix: three member policy adjustment 20230507
2023-05-08 10:29:26 +08:00
Zexi Li
3261a41175 Merge pull request #16964 from ioito/automated-cherry-pick-of-#16962-upstream-release-3.9
Automated cherry pick of #16962: fix(glance): support filter image by os archs
2023-05-08 10:28:39 +08:00
Zexi Li
306d7dacc3 Merge pull request #16959 from wanyaoqi/automated-cherry-pick-of-#16957-upstream-release-3.9
Automated cherry pick of #16957: fix(host): don't return error on disk snap chain params miss
2023-05-08 10:26:41 +08:00
Zexi Li
820b9449e8 Merge pull request #16968 from swordqiu/automated-cherry-pick-of-#16966-upstream-release-3.9
Automated cherry pick of #16966: fix: domain tag filter not working
2023-05-08 10:25:32 +08:00
Zexi Li
1756ce1804 Merge pull request #16972 from ioito/automated-cherry-pick-of-#16948-upstream-release-3.9
Automated cherry pick of #16948: fix(region): host status
2023-05-08 10:25:00 +08:00
ioito
275cfcad23 fix(region): host status 2023-05-08 10:23:47 +08:00
Qiu Jian
001a49c7b1 fix: three member policy adjustment 20230507 2023-05-08 03:17:53 +08:00
Qiu Jian
75a6570b31 fix: domain tag filter not working 2023-05-08 02:34:07 +08:00
ioito
255e51f1ee fix(glance): support filter image by os archs 2023-05-06 15:25:08 +08:00
wanyaoqi
d28ffc66e7 fix(host): don't return error on disk snap chain miss 2023-05-06 14:20:14 +08:00
Zexi Li
d61e421def Merge pull request #16950 from wanyaoqi/fix/migrate-with-snapshots
fix(region,host): migrate with out chain snapshots
2023-05-06 10:15:53 +08:00
wanyaoqi
b30306a651 fix(region,host): migrate with out chain snapshots
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-05-06 00:15:43 +08:00
Zexi Li
7be0e2f6ca Merge pull request #16932 from ioito/automated-cherry-pick-of-#16930-upstream-release-3.9
Automated cherry pick of #16930: fix(region): optimized guest and cachedimage list speed
2023-05-05 17:11:09 +08:00
Zexi Li
654d47d526 fix(monitor): truncated JSONObject of alert model (#16935) 2023-05-05 14:43:01 +08:00
ioito
04e6ce0bb0 fix(region): optimized guest and cachedimage list speed 2023-05-04 14:23:21 +08:00
Zexi Li
3bf577a78f Merge pull request #16912 from swordqiu/automated-cherry-pick-of-#16907-upstream-release-3.9
Automated cherry pick of #16907: fix: auth getStats should ignore no permission error
2023-04-28 10:28:37 +08:00
wanyaoqi
317f96ac36 update desc metadata on guest sync meta 2023-04-27 23:46:05 +08:00
屈轩
bd5c4d1bd0 fix(region): optimized storage-list (#16913) 2023-04-27 23:06:56 +08:00
Qiu Jian
30b3c4e8f5 fix: auth getStats should ignore no permission error 2023-04-27 21:37:44 +08:00
Zexi Li
5c2592a293 Merge pull request #16893 from ioito/automated-cherry-pick-of-#16891-upstream-release-3.9
Automated cherry pick of #16891: fix(region): vendor update
2023-04-27 21:07:01 +08:00
Zexi Li
7c916323a6 Merge pull request #16906 from zexi/automated-cherry-pick-of-#16904-upstream-release-3.9
Automated cherry pick of #16904: fix(monitor,apihelper): list storages without details
2023-04-27 19:37:25 +08:00
Zexi Li
f2837d9795 fix(monitor,apihelper): list storages without details 2023-04-27 19:35:56 +08:00
屈轩
9508771b34 fix(region): add table index (#16896) 2023-04-27 14:33:51 +08:00
ioito
4bf9a46872 fix(region): vendor update 2023-04-27 10:10:30 +08:00
Zexi Li
f987729dd2 Merge pull request #16888 from zexi/skip-load-esxi-net
fix(scheduler): skip load esxi network free-port cache
2023-04-27 09:35:48 +08:00
Zexi Li
1ead3a6e50 fix(scheduler): skip load esxi network free-port cache 2023-04-26 20:50:46 +08:00
Zexi Li
09cb3bef98 Merge pull request #16862 from zexi/automated-cherry-pick-of-#16860-upstream-release-3.9
Automated cherry pick of #16860: fix(monitor): panic of StatisticHandler
2023-04-25 10:03:13 +08:00
Zexi Li
e9a20a200c Merge pull request #16857 from zexi/handle-probe-isodev-error
fix(region): handle probe-isolated-device error
2023-04-25 10:02:38 +08:00
Zexi Li
3ff14f2559 fix(monitor): panic of StatisticHandler 2023-04-24 20:01:43 +08:00
Zexi Li
2b2f0a1bfb fix(region): handle probe-isolated-device error 2023-04-24 19:51:20 +08:00
Zexi Li
b3828e7462 Merge pull request #16850 from wanyaoqi/automated-cherry-pick-of-#16848-upstream-release-3.9
Automated cherry pick of #16848: fix(region):  check disk purge  get host error is sql.ErrNoRows
2023-04-24 15:21:27 +08:00
wanyaoqi
656639cf80 fix(region): check disk purge get host error is sql.ErrNoRows
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-04-24 10:52:54 +08:00
Zexi Li
15497db5b8 Merge pull request #16827 from ioito/automated-cherry-pick-of-#16825-upstream-release-3.9
Automated cherry pick of #16825: fix(region): log with account disconnect reason
2023-04-20 13:24:35 +08:00
Zexi Li
762eb1e224 Merge pull request #16830 from ioito/automated-cherry-pick-of-#16828-upstream-release-3.9
Automated cherry pick of #16828: fix(region): vendor update for aws region
2023-04-20 13:23:00 +08:00
ioito
af18ebdb2c fix(region): vendor update for aws region 2023-04-20 11:30:42 +08:00
ioito
0c76154e80 fix(region): log with account disconnect reason 2023-04-20 10:38:39 +08:00
Zexi Li
1933184653 Merge pull request #16815 from zexi/automated-cherry-pick-of-#16814-upstream-release-3.9
Automated cherry pick of #16814: fix(monitor): disable query signature defaultly
2023-04-19 10:09:04 +08:00
Zexi Li
f89ac09124 fix(monitor): disable query signature defaultly 2023-04-19 10:06:44 +08:00
Zexi Li
d25c028091 Merge pull request #16808 from ioito/automated-cherry-pick-of-#16791-upstream-release-3.9
Automated cherry pick of #16791: fix(cloudmon): support skip pull azure memory and disk usage metric
2023-04-18 15:28:15 +08:00
ioito
f7b7869b5d fix(cloudmon): support skip pull azure memory and disk usage metric 2023-04-18 13:50:21 +08:00
Zexi Li
8ba55749b9 Merge pull request #16481 from ioito/automated-cherry-pick-of-#16463-upstream-release-3.9
Automated cherry pick of #16463: fix: avoid panic when sync vmware host
2023-04-17 23:18:24 +08:00
ioito
56ab043a62 fix: avoid panic when sync vmware host 2023-04-17 10:07:12 +08:00
Jian Qiu
fcc7a2a6cb fix: update vendor 20230413 (#16469)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-04-14 02:41:08 +08:00
Zexi Li
3a2c032e74 Merge pull request #16457 from wanyaoqi/automated-cherry-pick-of-#16447-upstream-release-3.9
Automated cherry pick of #16447: fix(host): set default live migrate bandwidth unlimited
2023-04-13 17:42:06 +08:00
Zexi Li
f2ca49c25e Merge pull request #16458 from zexi/monitor-metric-measurement
fix(monitor): wrong tag filter when get metric measurement
2023-04-13 11:56:40 +08:00
Zexi Li
5ea157287e Merge pull request #16456 from gouqi11/fixModelartsValidateDeleteConditionStatus
fix(region): change modelarts validateDeleteCondition
2023-04-13 11:56:25 +08:00
Zexi Li
ea69795d84 fix(monitor): wrong tag filter when get metric measurement 2023-04-13 11:37:30 +08:00
wanyaoqi
3329a782f8 fix(host): set default live migrate bandwidth unlimited
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-04-13 11:06:42 +08:00
mhf
67180c9cfe fix(region): change modelarts validateDeleteCondition 2023-04-13 11:03:09 +08:00
Zexi Li
4ab086dc11 Merge pull request #16434 from zexi/kvm-storage-cap
feat(region): set kvm storage instance capability
2023-04-13 10:08:20 +08:00
Zexi Li
606c5bd977 Merge pull request #16446 from ioito/automated-cherry-pick-of-#16444-upstream-release-3.9
Automated cherry pick of #16444: fix(region): support import private k8s
2023-04-12 20:47:48 +08:00
Zexi Li
02a1318a19 Merge pull request #16443 from ioito/automated-cherry-pick-of-#16441-upstream-release-3.9
Automated cherry pick of #16441: fix(region): sync purge vpc
2023-04-12 20:46:31 +08:00
ioito
85fc86a67e fix(region): support import private k8s 2023-04-12 16:45:00 +08:00
ioito
fa71b2a6f5 fix(region): sync purge vpc 2023-04-12 15:27:44 +08:00
Jian Qiu
7a57356dd0 fix: clickhouse parttion expression of divide inconstent 3.9 (#16437)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-04-12 12:04:02 +08:00
Zexi Li
f298e0c6c6 feat(region): set kvm storage instance capability 2023-04-12 10:17:50 +08:00
Zexi Li
70fce898da Merge pull request #16431 from ioito/automated-cherry-pick-of-#16429-upstream-release-3.9
Automated cherry pick of #16429: fix: only request error show time
2023-04-11 22:17:33 +08:00
ioito
37bfde3756 fix: only request error show time 2023-04-11 22:03:57 +08:00
Zexi Li
eb3a3d0b56 Merge pull request #16426 from ioito/automated-cherry-pick-of-#16424-upstream-release-3.9
Automated cherry pick of #16424: fix(common): show request time with rfc3339
2023-04-11 21:16:01 +08:00
ioito
aa6f55f1d2 fix(common): show request time with rfc3339 2023-04-11 20:56:11 +08:00
Zexi Li
a4344faa87 Merge pull request #16419 from ioito/automated-cherry-pick-of-#16417-upstream-release-3.9
Automated cherry pick of #16417: fix(common): log time zone and format
2023-04-11 18:28:25 +08:00
ioito
cfa2077932 fix(common): log time zone and format 2023-04-11 17:25:54 +08:00
Zexi Li
e4178f6d06 Merge pull request #16416 from ioito/automated-cherry-pick-of-#16414-upstream-release-3.9
Automated cherry pick of #16414: fix(common): log time with time zone
2023-04-11 15:02:19 +08:00
Zexi Li
fb0869b727 Merge pull request #16410 from ioito/automated-cherry-pick-of-#16408-upstream-release-3.9
Automated cherry pick of #16408: fix(common): show exception with remote addr and duration
2023-04-11 15:00:09 +08:00
Zexi Li
81c90068ea Merge pull request #16413 from ioito/automated-cherry-pick-of-#16411-upstream-release-3.9
Automated cherry pick of #16411: fix(keystone): avoid panic when sync scope reosurce
2023-04-11 14:57:29 +08:00
Zexi Li
b3e0d74b6f Merge pull request #16405 from ioito/automated-cherry-pick-of-#16403-upstream-release-3.9
Automated cherry pick of #16403: fix(region): optimized cloudprovider list
2023-04-11 14:56:16 +08:00
ioito
953fdaa914 fix(common): log time with time zone 2023-04-11 14:36:38 +08:00
ioito
680711f244 fix(common): show exception with remote addr and duration 2023-04-11 13:45:05 +08:00
ioito
8942f18cd1 fix(keystone): avoid panic when sync scope reosurce 2023-04-11 10:51:15 +08:00
Jian Qiu
f239662550 fix: backport opslog clickhouse partition expression to 3.9 (#16394)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-04-11 01:45:48 +08:00
ioito
b34e8b94fd fix(region): optimized cloudprovider list 2023-04-10 19:13:29 +08:00
Zexi Li
72ec118da6 Merge pull request #16397 from ioito/automated-cherry-pick-of-#16395-upstream-release-3.9
Automated cherry pick of #16395: fix(region): remove useless server sku
2023-04-10 17:18:20 +08:00
Zexi Li
dc3d7f3b5a Merge pull request #16400 from zexi/automated-cherry-pick-of-#16398-upstream-release-3.9
Automated cherry pick of #16398: fix(devtool): panic occurred cause of nil ctx
2023-04-10 17:17:00 +08:00
Zexi Li
279a623467 fix(devtool): panic occurred cause of nil ctx 2023-04-10 17:13:51 +08:00
Zexi Li
fde49d1b9c Merge pull request #16391 from swordqiu/hotfix/qj-allow-vm-monitor-status-live-migrating
fix: allow vm monitor in status live migrating
2023-04-10 10:54:13 +08:00
ioito
0e760ccf6f fix(region): remove useless server sku 2023-04-10 10:52:39 +08:00
Qiu Jian
37124d871a fix: allow vm monitor in status live migrating 2023-04-08 17:42:32 +08:00
Zexi Li
e278d793d7 Merge pull request #16386 from ioito/automated-cherry-pick-of-#16384-upstream-release-3.9
Automated cherry pick of #16384: fix(region): vendor update for openstack nic
2023-04-07 18:45:15 +08:00
Zexi Li
3659e30988 Merge pull request #16383 from ioito/automated-cherry-pick-of-#16381-upstream-release-3.9
Automated cherry pick of #16381: fix(webconsole): avoid panic when send stats request
2023-04-07 18:20:19 +08:00
Zexi Li
6e1b22eaa4 Merge pull request #16377 from zexi/batch-create-disks
fix(region): not set default data when batch creating disks
2023-04-07 18:19:31 +08:00
Zexi Li
cc99ce60c9 Merge pull request #16370 from gouqi11/addModelartsCreateFailedReason
fix(region): modelarts delete deff failed,timeout
2023-04-07 18:18:57 +08:00
ioito
5c71afab3b fix(region): vendor update for openstack nic 2023-04-07 17:59:31 +08:00
ioito
0143cda8a4 fix(webconsole): avoid panic when send stats request 2023-04-07 17:15:26 +08:00
mhf
220f1d0b13 fix(region): modelarts delete deff failed,timeout 2023-04-07 16:16:57 +08:00
Zexi Li
04338e0302 Merge pull request #16376 from ioito/automated-cherry-pick-of-#16374-upstream-release-3.9
Automated cherry pick of #16374: fix(region): openstack keypair
2023-04-07 10:59:13 +08:00
Zexi Li
77dbe36b31 fix(region): not set default data when batch creating disks 2023-04-07 10:55:16 +08:00
ioito
a16afce1cc fix(region): openstack keypair 2023-04-07 10:24:07 +08:00
Zexi Li
acb31323e0 Merge pull request #16373 from ioito/automated-cherry-pick-of-#16371-upstream-release-3.9
Automated cherry pick of #16371: fix(region): azure china user create
2023-04-07 01:01:28 +08:00
Zexi Li
2ca2cc6cd8 Merge pull request #16358 from zexi/bm-raid-ssd-pd
fix(baremetal): panic occured when using SSD as raid PD
2023-04-07 01:00:40 +08:00
Zexi Li
082fff080e Merge pull request #16365 from ioito/automated-cherry-pick-of-#16311-upstream-release-3.9
Automated cherry pick of #16311: fix(region): support fast sync cloud resources
2023-04-07 01:00:00 +08:00
ioito
194a9e4543 fix(region): azure china user create 2023-04-06 22:03:32 +08:00
屈轩
0b1074b6fc fix(region): vender update (#16369) 2023-04-06 20:39:58 +08:00
ioito
929b2fb479 fix(region): support fast sync cloud resources 2023-04-06 18:44:46 +08:00
Zexi Li
ae2d15bf14 Merge pull request #16362 from ioito/automated-cherry-pick-of-#16360-upstream-release-3.9
Automated cherry pick of #16360: fix(cloudmon): bingo metric
2023-04-06 18:02:13 +08:00
Zexi Li
00ade21f0a Merge pull request #16357 from ioito/automated-cherry-pick-of-#16334-upstream-release-3.9
Automated cherry pick of #16334: Automated cherry pick of #16311: fix(region): support fast sync cloud resources
2023-04-06 17:53:22 +08:00
ioito
4589a43fe2 fix(cloudmon): bingo metric 2023-04-06 17:51:14 +08:00
Zexi Li
09050b427d fix(baremetal): panic occured when using SSD as raid PD 2023-04-06 17:44:21 +08:00
ioito
347a99475a fix(region): support fast sync cloud resources 2023-04-06 17:04:56 +08:00
Zexi Li
9b4db626a7 Merge pull request #16355 from gouqi11/addModelartsCreateFailedReason
fix(region): addModelartsCreateFailedReason
2023-04-06 16:52:04 +08:00
Zexi Li
9dbf863218 Merge pull request #16356 from ioito/automated-cherry-pick-of-#16353-upstream-release-3.9
Automated cherry pick of #16353: fix(cloudmon): esxi disk usage
2023-04-06 16:25:00 +08:00
mhf
675c2ef3b5 fix(region): addModelartsCreateFailedReason 2023-04-06 15:57:09 +08:00
ioito
7b569da70a fix(cloudmon): esxi disk usage 2023-04-06 15:55:09 +08:00
Zexi Li
b0b9c704ff Merge pull request #16350 from swordqiu/hotfix/qj-async-setup-brvpc-mtu-3.9
fix: async setup brvpc mtu 3.9
2023-04-06 11:15:55 +08:00
Qiu Jian
c84517b6bc fix: async setup brvpc mtu 2023-04-05 23:34:30 +08:00
屈轩
1df2b9d57c fix(region): sync esxi disk access path (#16337) 2023-04-04 09:51:39 +08:00
Zexi Li
431cfb8d68 Merge pull request #16333 from zexi/automated-cherry-pick-of-#16331-upstream-release-3.9
Automated cherry pick of #16331: fix(monitor): eip fields are missed in details
2023-04-03 14:45:59 +08:00
Zexi Li
97bac0530b fix(monitor): eip fields are missed in details 2023-04-03 14:17:48 +08:00
Zexi Li
4dfeb2adc0 Merge pull request #16329 from swordqiu/automated-cherry-pick-of-#16327-upstream-release-3.9
Automated cherry pick of #16327: fix: host remove netif also remove baremnetal server netif
2023-04-03 13:33:47 +08:00
Qiu Jian
2a61f9da13 fix: host remove netif also remove baremnetal server netif 2023-04-03 11:25:55 +08:00
Zexi Li
df3c7cf3f4 Merge pull request #16314 from gouqi11/fixModelartsStatus0330
fix(region): fixModelartsStatus
2023-04-03 10:52:43 +08:00
Jian Qiu
2a21f5a0d4 fix: minor fixes 20230403 (#16326)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-04-03 09:28:24 +08:00
mhf
41cbd56f25 fix(region): fixModelartsStatus 2023-03-31 16:38:30 +08:00
Zexi Li
b6ebb5c160 Merge pull request #16317 from zexi/automated-cherry-pick-of-#16315-upstream-release-3.9
Automated cherry pick of #16315: fix(keystone): add kubeserver running_mode option to blacklist
2023-03-31 01:41:48 +08:00
Zexi Li
6f2fa2f2f1 fix(keystone): add kubeserver running_mode option to blacklist 2023-03-31 01:40:38 +08:00
Zexi Li
6c9bc5126d Merge pull request #16305 from swordqiu/automated-cherry-pick-of-#16303-upstream-release-3.9
Automated cherry pick of #16303: fix: simplify i18n table
2023-03-29 19:20:57 +08:00
Qiu Jian
06b6e38057 fix: simplify i18n table 2023-03-29 00:50:42 +08:00
Zexi Li
0728a8e547 Merge pull request #16284 from gouqi11/addHcsoRequestRetry
fix(region): Add hcso request retry just 3.9
2023-03-27 19:47:22 +08:00
mhf
39233bf023 fix(region): addHcso request retry 2023-03-27 15:13:44 +08:00
Zexi Li
a7016ee8e0 Merge pull request #16290 from zexi/monitor-rds-consts
fix(monitor): update rds tags
2023-03-27 12:21:14 +08:00
Zexi Li
a7f42cd93a fix(monitor): update rds tags 2023-03-27 12:18:59 +08:00
Zexi Li
2044224ea2 Merge pull request #16281 from gouqi11/addModelartsLogTest
log(region): just add log for modelarts
2023-03-23 15:44:28 +08:00
mhf
eb39d00098 log(region): just add log for modelarts 2023-03-23 15:39:52 +08:00
Zexi Li
c796748d78 Merge pull request #16268 from gouqi11/fixJdcloudAccountConnectFor3.9
fix(region): check JdAccountConnect
2023-03-22 20:39:24 +08:00
Zexi Li
536e372ada Merge pull request #16269 from zexi/monitor-server-tags
feat(monitor): add extral server tags
2023-03-22 14:00:49 +08:00
Zexi Li
7d10d96747 feat(monitor): add extral server tags 2023-03-22 12:24:00 +08:00
mhf
9a447010ab fix(region): check JdAccountConnect 2023-03-22 11:56:15 +08:00
gouqi11
96ebc2675f fix(region): addModelartsDeleteLoaclTask (#16263) 2023-03-21 00:22:47 +08:00
Zexi Li
1a8e3bf344 Merge pull request #16251 from swordqiu/hotfix/qj-merge-wire-not-sync-update-netinterface-3.9
fix(region): not sync update netinterface wire_id when merge wires at
2023-03-20 10:13:08 +08:00
Zexi Li
700f7aa8df Merge pull request #16255 from wanyaoqi/fix/get-catalog-data-by-region
fix(region): get catalog data by region id
2023-03-20 10:11:54 +08:00
Qiu Jian
15ed79e5ff fix(region): not sync update netinterface wire_id when merge wires at
release/3.9
2023-03-17 22:33:20 +08:00
wanyaoqi
c635bd5020 fix(region): get catalog data by region id
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-17 19:10:15 +08:00
Jian Qiu
e8145d2514 fix: avoid dup sync table revisit (#16248)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-16 22:28:10 +08:00
wanyaoqi
b717da12c5 fix(host): kvm detect and iommu probe (#16243)
- use lsmod check kvm modules on /dev/kvm exist
- don't check grub params "intel_iommu=on" on kvm_intel not loaded

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-16 22:20:03 +08:00
Zexi Li
efa5257ebc Merge pull request #16241 from swordqiu/hotfix/qj-cloud-account-options-3.9
fix: cloud account options visiable @release/3.9
2023-03-16 16:05:24 +08:00
Zexi Li
87e3b85041 Merge pull request #16238 from zexi/project-monitor-query
fix(monitor): set wrong resType when query
2023-03-16 16:03:37 +08:00
Qiu Jian
62f33a08a6 fix: cloud account options visiable @release/3.9 2023-03-15 22:57:38 +08:00
Zexi Li
156666cdc4 fix(monitor): set wrong resType when query 2023-03-15 20:25:29 +08:00
Zexi Li
22c76e010a Merge pull request #16225 from swordqiu/hotfix/qj-climc-fail-create-vm-with-guest-image
fix: fail to create vm with guest_image
2023-03-15 10:12:33 +08:00
Zexi Li
16b807a190 Merge pull request #16233 from wanyaoqi/automated-cherry-pick-of-#16231-upstream-release-3.9
Automated cherry pick of #16231: fix(host): download sparse file truncate first
2023-03-15 10:12:10 +08:00
屈轩
0d3e1d6069 fix(region): vender update (#16230) 2023-03-14 21:55:37 +08:00
wanyaoqi
4bafc0180e fix(host): download sparse file truncate first
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-14 20:57:54 +08:00
Qiu Jian
18d9a87d77 fix: fail to create vm with guest_image 2023-03-14 20:10:28 +08:00
Zexi Li
a4b76ca1f0 Merge pull request #16211 from ioito/automated-cherry-pick-of-#16209-upstream-release-3.9
Automated cherry pick of #16209: fix(region): aws dns zone name
2023-03-13 14:55:10 +08:00
Zexi Li
a30f0026a8 Merge pull request #16214 from swordqiu/automated-cherry-pick-of-#16212-upstream-release-3.9
Automated cherry pick of #16212: fix: minor fixes 20230313
2023-03-13 14:54:48 +08:00
Qiu Jian
6ce3a4280e fix: minor fixes 20230313 2023-03-13 12:49:01 +08:00
ioito
26be76740e fix(region): aws dns zone name 2023-03-13 11:28:38 +08:00
Jian Qiu
c1d2dfbc92 fix: add vm integrity check notify (#16207)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-13 09:59:58 +08:00
Jian Qiu
1062fc8118 fix: prevent duplicate table sync (#16204)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-13 09:07:57 +08:00
Zexi Li
fe01ea7773 Merge pull request #16192 from swordqiu/automated-cherry-pick-of-#16190-upstream-release-3.9
Automated cherry pick of #16190: fix: storecli missing lv device name
2023-03-12 23:21:03 +08:00
Zexi Li
8c11f2361a Merge pull request #16195 from swordqiu/automated-cherry-pick-of-#16193-upstream-release-3.9
Automated cherry pick of #16193: fix: refine dashboard policy
2023-03-12 23:19:49 +08:00
Zexi Li
f8a8b776a3 Merge pull request #16196 from swordqiu/hotfix/qj-guest-image-manual-create
feature: compose guest image with existing images
2023-03-12 23:19:06 +08:00
Qiu Jian
8213d91dde fix: refine dashboard policy 2023-03-12 15:56:26 +08:00
Qiu Jian
d1ce4398d0 feature: compose guest image with existing images 2023-03-12 15:19:46 +08:00
Qiu Jian
cd5a8dafd9 fix: storecli missing lv device name 2023-03-11 08:45:29 +08:00
Jian Qiu
2c7ba6fbff fix: logclient request add service name context (#16131)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-03-09 11:08:11 +08:00
Zexi Li
656b273d0d Merge pull request #16160 from ioito/automated-cherry-pick-of-#16158-upstream-release-3.9
Automated cherry pick of #16158: fix(region): apsara projects sync
2023-03-09 00:09:20 +08:00
Zexi Li
b5c86419ad Merge pull request #16178 from zexi/automated-cherry-pick-of-#16177-upstream-release-3.9
Automated cherry pick of #16177: fix(scheduler): storage failed reason isn't showed in forecast result
2023-03-08 13:06:19 +08:00
Zexi Li
a16d0d4c76 fix(scheduler): storage failed reason isn't showed in forecast result 2023-03-08 13:03:18 +08:00
Zexi Li
e83a5aedc3 Merge pull request #16161 from zexi/bm-update-status
fix(baremetal): not update hypervisor host's status
2023-03-08 11:14:46 +08:00
Jian Qiu
ecb59d9dac fix: zero clean disk add logs (#16173)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-08 09:41:07 +08:00
wanyaoqi
435ff9315b fix(host): tls live migrate disable mulitfd (#16157)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-08 04:36:43 +08:00
Zexi Li
715a5f6bc1 fix(baremetal): not update hypervisor host's status 2023-03-07 16:28:21 +08:00
ioito
3ad5abdb0a fix(region): apsara projects sync 2023-03-07 15:00:12 +08:00
Zexi Li
3efcc3d5c8 Merge pull request #16152 from zexi/monitor-balancer-err
fix(monitor): balancer pair ignored error
2023-03-07 14:05:02 +08:00
Zexi Li
a0a884c024 fix(monitor): balancer pair ignored error 2023-03-07 13:45:44 +08:00
Zexi Li
b18b75f900 Merge pull request #16141 from ioito/hotfix/qx-vpc-name-sync
fix(region): vpc name sync
2023-03-07 10:23:01 +08:00
ioito
e8724c65df fix(region): vpc name sync 2023-03-06 17:47:40 +08:00
Zexi Li
29540cd555 Merge pull request #16136 from zexi/fetch-keypair
fix(mcclient): add FetchKeypairBySession method
2023-03-06 16:26:22 +08:00
Zexi Li
9eaac464ef fix(mcclient): add FetchKeypairBySession method 2023-03-06 16:23:16 +08:00
Zexi Li
01c2b9c483 Merge pull request #16121 from ioito/automated-cherry-pick-of-#16118-upstream-release-3.9
Automated cherry pick of #16118: fix(cloudmon): support collect history metric
2023-03-03 17:16:12 +08:00
ioito
20c0e05d98 fix(cloudmon): support collect history metric 2023-03-03 14:57:04 +08:00
Zexi Li
f8302fb6c9 Merge pull request #16098 from ioito/automated-cherry-pick-of-#16096-upstream-release-3.9
Automated cherry pick of #16096: fix(region): openstack compute api version
2023-03-03 10:49:17 +08:00
Zexi Li
32ee8cd40a Merge pull request #16095 from wanyaoqi/automated-cherry-pick-of-#16093-upstream-release-3.9
Automated cherry pick of #16093: fix(host): check shared file storage mount point
2023-03-03 10:44:55 +08:00
ioito
5f3cf03f8f fix(region): openstack compute api version 2023-03-02 11:32:52 +08:00
Jian Qiu
17ebdea35d fix: three member policy system violation check (#16106)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-02 08:58:10 +08:00
wanyaoqi
273158d496 fix(host): check shared file storage mount point
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-01 17:40:52 +08:00
Zexi Li
3cbbdec08a Merge pull request #16091 from zexi/automated-cherry-pick-of-#16088-upstream-release-3.9
Automated cherry pick of #16088: fix(monitor): rewrite slimit and soffset logic
2023-03-01 17:36:14 +08:00
Zexi Li
70ddb732e3 fix(monitor): rewrite slimit and soffset logic 2023-03-01 17:24:46 +08:00
Zexi Li
89f5970ed9 Merge pull request #16083 from gouqi11/automated-cherry-pick-of-#16081-upstream-release-3.9
Automated cherry pick of #16081: fix(notify): addMissingActionTranslate
2023-03-01 16:32:33 +08:00
Zexi Li
fe33374cf0 Merge pull request #16085 from zexi/monitor-check-series
fix(monitor): skip check series options
2023-03-01 16:02:38 +08:00
Zexi Li
808e046b9f fix(monitor): skip check series options 2023-03-01 15:49:42 +08:00
mhf
aabe752d38 fix(notify): addMissingActionTranslate 2023-03-01 15:01:14 +08:00
Zexi Li
e36cc16e51 Merge pull request #16079 from swordqiu/automated-cherry-pick-of-#16077-upstream-release-3.9
Automated cherry pick of #16077: fix: better prompt info for user failed auth due to invalid idp status
2023-03-01 10:11:55 +08:00
Qiu Jian
0c7ae30159 fix: better prompt info for user failed auth due to invalid idp status 2023-03-01 01:45:57 +08:00
Zexi Li
f04d5dac9d fix(monitor): query resources according by listing region resources (#16072) 2023-03-01 00:03:21 +08:00
Zexi Li
156e8d0290 Merge pull request #16068 from ioito/automated-cherry-pick-of-#16066-upstream-release-3.9
Automated cherry pick of #16066: fix(region): vmware template image size
2023-02-28 23:45:15 +08:00
Zexi Li
8b223d5479 Merge pull request #16065 from wanyaoqi/automated-cherry-pick-of-#16063-upstream-release-3.9
Automated cherry pick of #16063: feat(region): vga gpus
2023-02-28 23:44:38 +08:00
Zexi Li
93f01e12e1 Merge pull request #16071 from wanyaoqi/automated-cherry-pick-of-#16069-upstream-release-3.9
Automated cherry pick of #16069: fix(region): guest change storage
2023-02-28 23:43:33 +08:00
wanyaoqi
57c076bfc2 fix(region): guest change storage
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-28 21:57:04 +08:00
wanyaoqi
f20b94eb44 feat(region): vga gpus
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-28 19:51:16 +08:00
ioito
5a7a779b80 fix(region): vmware template image size 2023-02-28 19:50:34 +08:00
Zexi Li
e82678ea68 Merge pull request #16061 from gouqi11/automated-cherry-pick-of-#16059-upstream-release-3.9
Automated cherry pick of #16059: fix(notify):fix topic of ChecksumTestFailed Result
2023-02-28 15:19:00 +08:00
mhf
87bbea8a97 fix(notify):fix topic of ChecksumTestFailed Result 2023-02-28 15:14:36 +08:00
屈轩
45bc7dd3bb fix(region): azure rebuild root error (#16051) 2023-02-27 22:28:58 +08:00
Zexi Li
e8037f7bc3 fix(climc): add list monitorresource cmd (#16046) 2023-02-27 22:00:10 +08:00
Jian Qiu
9e4349d13b fix: monitor delete resource panic (#16054)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-02-27 21:57:42 +08:00
wanyaoqi
c39d7f0816 fix(host): resume suspend guest (#16057)
- check guest status inmigrate
- fix guest launch python script

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-27 21:56:37 +08:00
Zexi Li
db70d4ac5d Merge pull request #16041 from swordqiu/automated-cherry-pick-of-#16039-upstream-release-3.9
Automated cherry pick of #16039: fix: apihelper sync ignore instancegroups without guets
2023-02-27 13:45:53 +08:00
Zexi Li
f35cc79ce5 Merge pull request #16044 from swordqiu/automated-cherry-pick-of-#16042-upstream-release-3.9
Automated cherry pick of #16042: fix: set eipid after successful eip association
2023-02-27 13:44:51 +08:00
Qiu Jian
69d92ae73b fix: set eipid after successful eip association 2023-02-27 01:22:14 +08:00
Qiu Jian
ee351f308c fix: apihelper sync ignore instancegroups without guets 2023-02-26 01:10:36 +08:00
Zexi Li
27b0672791 Merge pull request #16034 from ioito/automated-cherry-pick-of-#16032-upstream-release-3.9
Automated cherry pick of #16032: fix(region): vm bill type sync
2023-02-24 16:45:27 +08:00
ioito
efbf7811f9 fix(region): vm bill type sync 2023-02-24 11:53:40 +08:00
Zexi Li
fd870c6ef4 Merge pull request #16027 from ioito/automated-cherry-pick-of-#16025-upstream-release-3.9
Automated cherry pick of #16025: fix(region): aliyun lb tag sync
2023-02-23 00:37:26 +08:00
ioito
bcecb25a83 fix(region): aliyun lb tag sync 2023-02-22 16:49:26 +08:00
Zexi Li
91a9e3e0ae fix(baremetal): update baremetal base image to support ice module (#16016) 2023-02-21 19:03:25 +08:00
Zexi Li
a43779042e Merge pull request #16013 from swordqiu/automated-cherry-pick-of-#16012-upstream-release-3.9
Automated cherry pick of #16012: fix: gen policy extra override policy
2023-02-21 11:25:13 +08:00
Qiu Jian
fdf9784835 fix: gen policy extra override policy 2023-02-20 23:14:05 +08:00
Zexi Li
c4694ac12c Merge pull request #16011 from wanyaoqi/automated-cherry-pick-of-#16009-upstream-release-3.9
Automated cherry pick of #16009: fix(esxi-agent): disk temp files recycle
2023-02-20 19:35:14 +08:00
Zexi Li
bf5ef59928 Merge pull request #16008 from ioito/automated-cherry-pick-of-#16006-upstream-release-3.9
Automated cherry pick of #16006: fix(cloudmon): apsara monitor
2023-02-20 19:34:18 +08:00
Zexi Li
812409f1ff Merge pull request #16003 from wanyaoqi/fix/esxi-to-kvm-230120
fix(region): esxi to kvm nic driver fix
2023-02-20 19:31:12 +08:00
wanyaoqi
98e1df6189 fix(esxi-agent): disk temp files recycle
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-20 18:50:11 +08:00
ioito
d3b08e79c7 fix(cloudmon): apsara monitor 2023-02-20 18:17:51 +08:00
wanyaoqi
7d564d63cd fix(region): esxi to kvm nic driver fix
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-20 16:21:50 +08:00
Jian Qiu
33efff389e fix: sms login not verify captchar (#15997)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-18 18:27:18 +08:00
Jian Qiu
d7c112c82e fix: 1. allow remove current user from current project. 2. reset recovery-questions when resetting MFA (#15987)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-18 13:05:31 +08:00
屈轩
4301541481 fix(region): vender update for gcp storage (#15982) 2023-02-18 08:51:22 +08:00
Zexi Li
c06368b148 Merge pull request #15978 from wanyaoqi/automated-cherry-pick-of-#15976-upstream-release-3.9
Automated cherry pick of #15976: fix(region): esxi to kvm clean sched desc disk.storage
2023-02-17 11:56:35 +08:00
wanyaoqi
dc09320de2 fix(region): esxi to kvm clean sched desc disk.storage
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-17 10:11:20 +08:00
Zexi Li
227e52a855 Merge pull request #15972 from ioito/automated-cherry-pick-of-#15970-upstream-release-3.9
Automated cherry pick of #15970: fix(region): gcp image sync
2023-02-17 01:13:56 +08:00
Zexi Li
60d79c910b feat(monitor): add DisableQuerySignatureCheck option (#15974) 2023-02-16 23:57:32 +08:00
Zexi Li
dc25d9b4c1 Merge pull request #15953 from zexi/automated-cherry-pick-of-#15952-upstream-release-3.9
Automated cherry pick of #15952: fix(baremetal): only do status probe job when host_type is hypervisor
2023-02-16 23:02:50 +08:00
Zexi Li
8c3fb564ea Merge pull request #15955 from zexi/monitor-databases-measurements
fix(climc): add measurements and databases api of unifiedmonitor
2023-02-16 22:46:10 +08:00
Zexi Li
7323b2c8f3 Merge pull request #15965 from swordqiu/hotfix/qj-update-vendor-release-3.9-20230216
fix: update vendor
2023-02-16 18:07:46 +08:00
ioito
ecaab10cbe fix(region): gcp image sync 2023-02-16 17:41:52 +08:00
Zexi Li
325c54b61c Merge pull request #15966 from zexi/auth-src
feat(mcclient): allow set default authenticate source
2023-02-16 14:44:29 +08:00
Zexi Li
1d3338a6db feat(mcclient): allow set default authenticate source 2023-02-16 14:28:59 +08:00
Zexi Li
9566ed5e4a Merge pull request #15960 from wanyaoqi/automated-cherry-pick-of-#15958-upstream-release-3.9
Automated cherry pick of #15958: fix(region): kvm convert to esxi
2023-02-16 13:58:47 +08:00
Zexi Li
f454360f3d Merge pull request #15964 from wanyaoqi/automated-cherry-pick-of-#15962-upstream-release-3.9
Automated cherry pick of #15962: fix(region): guest change disk storage
2023-02-16 13:57:42 +08:00
wanyaoqi
7b8e08edb6 fix(region): guest change disk storage
new disk use src disk driver and cache mode.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-16 13:49:26 +08:00
Qiu Jian
36547249b4 fix: update vendor 2023-02-16 13:42:48 +08:00
wanyaoqi
cb1595ab43 fix(region): kvm convert to esxi
complete kvm guest meta info

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-16 11:18:17 +08:00
Zexi Li
8efca7b3ce fix(climc): add measurements and databases api of unifiedmonitor 2023-02-15 17:06:55 +08:00
Zexi Li
873a577bb1 fix(baremetal): only do status probe job when host_type is hypervisor 2023-02-15 12:46:45 +08:00
Zexi Li
973fb2b1ba Merge pull request #15935 from swordqiu/automated-cherry-pick-of-#15933-upstream-release-3.9
Automated cherry pick of #15933: fix: usage filter by policy tags revisit2
2023-02-15 10:11:25 +08:00
Zexi Li
748801a791 Merge pull request #15950 from wanyaoqi/automated-cherry-pick-of-#15948-upstream-release-3.9
Automated cherry pick of #15948: fix(host-deployer): revert linux efi check
2023-02-15 10:07:54 +08:00
wanyaoqi
0aca8fffd2 fix(host-deployer): revert linux efi check
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-14 23:25:40 +08:00
Zexi Li
a23ba831ad Merge pull request #15944 from ioito/automated-cherry-pick-of-#15942-upstream-release-3.9
Automated cherry pick of #15942: fix(region): aws s3 upload failed
2023-02-14 18:04:00 +08:00
ioito
535ffe0931 fix(region): aws s3 upload failed 2023-02-14 17:21:06 +08:00
Zexi Li
9e60d3383a Merge pull request #15941 from ioito/automated-cherry-pick-of-#15939-upstream-release-3.9
Automated cherry pick of #15939: fix(cloudmon): huawei read only check
2023-02-14 12:22:38 +08:00
Zexi Li
64227d6e50 Merge pull request #15936 from zexi/duplicate-task-worker-count
fix(baremetal): duplicate argument task-worker-count
2023-02-14 12:20:08 +08:00
ioito
a9e7781344 fix(cloudmon): huawei read only check 2023-02-14 12:06:51 +08:00
Zexi Li
a1fd09c6d1 fix(baremetal): duplicate argument task-worker-count 2023-02-14 11:55:09 +08:00
Qiu Jian
3215744e05 fix: usage filter by policy tags revisit2 2023-02-14 09:35:45 +08:00
Zexi Li
2242373ab7 fix(region): start LoadBalancerBackendSyncTask when needed (#15932) 2023-02-14 01:39:54 +08:00
Zexi Li
b3ae9c5433 Merge pull request #15927 from wanyaoqi/automated-cherry-pick-of-#15925-upstream-release-3.9
Automated cherry pick of #15925: fix(host,baremetal): deploy content action not marshaled
2023-02-13 15:37:07 +08:00
wanyaoqi
c61db2587c fix(host,baremetal): deploy content action not marshaled
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-13 12:14:54 +08:00
Zexi Li
03f8defbf1 Merge pull request #15911 from zexi/automated-cherry-pick-of-#15909-upstream-release-3.9
Automated cherry pick of #15909: fix(region): update kube cluster to kubeserver
2023-02-08 14:01:58 +08:00
Zexi Li
2d5ba30a83 fix(region): update kube cluster to kubeserver 2023-02-08 13:50:10 +08:00
Zexi Li
ea9fcb6578 Merge pull request #15904 from ioito/automated-cherry-pick-of-#15902-upstream-release-3.9
Automated cherry pick of #15902: fix(region): cdn domain config
2023-02-06 23:40:21 +08:00
ioito
937fcf545a fix(region): cdn domain config 2023-02-06 14:12:01 +08:00
屈轩
09fb7f1837 fix(region): fake server generate (#15898) 2023-02-03 23:26:37 +08:00
Zexi Li
5ead117c23 Merge pull request #15893 from ioito/automated-cherry-pick-of-#15891-upstream-release-3.9
Automated cherry pick of #15891: fix(region): usage with policy tags
2023-02-02 17:14:23 +08:00
Zexi Li
9498d957dd Merge pull request #15887 from ioito/automated-cherry-pick-of-#15885-upstream-release-3.9
Automated cherry pick of #15885: fix(region): dns recordset details
2023-02-02 17:13:33 +08:00
Zexi Li
716d872edb Merge pull request #15883 from ioito/automated-cherry-pick-of-#15881-upstream-release-3.9
Automated cherry pick of #15881: fix(cloudmon): project tags for metric
2023-02-02 17:12:28 +08:00
ioito
2f4bc37c5b fix(region): usage with policy tags 2023-02-02 16:37:11 +08:00
ioito
85356f583d fix(region): dns recordset details 2023-02-02 10:56:53 +08:00
ioito
20e18137f3 fix(cloudmon): project tags for metric 2023-02-01 19:48:58 +08:00
Zexi Li
a5da5173e4 optimized(scheduler): reduce sql query of mysql (#15871) 2023-01-31 19:30:29 +08:00
Zexi Li
b2b1f767f0 Merge pull request #15864 from ioito/automated-cherry-pick-of-#15862-upstream-release-3.9
Automated cherry pick of #15862: fix(region): 避免创建相同配置时使用当前实例的hostname
2023-01-30 22:12:54 +08:00
Zexi Li
7fea411342 Merge pull request #15876 from swordqiu/automated-cherry-pick-of-#15874-upstream-release-3.9
Automated cherry pick of #15874: fix: usage filter by policy tags
2023-01-30 22:12:21 +08:00
Qiu Jian
479523b6ab fix: usage filter by policy tags 2023-01-30 22:04:24 +08:00
Jian Qiu
cce48c23ab fix: climc logs-splitable support monitor notify (#15870)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-01-30 17:44:43 +08:00
Jian Qiu
7ee55e1a67 fix: vmemsize error prompt (#15867)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-01-30 16:24:07 +08:00
rex zhasm
603c6bf051 feat(build,test): 新增 dry_run 模式以便夜间测试 (#15860)
Co-authored-by: Zhang Dongliang <zhangdongliang@yunion.cn>
2023-01-30 16:23:22 +08:00
ioito
37e359998f fix(region): 避免创建相同配置时使用当前实例的hostname 2023-01-30 15:23:02 +08:00
Zexi Li
44acfbc1ac Merge pull request #15850 from ioito/automated-cherry-pick-of-#15848-upstream-release-3.9
Automated cherry pick of #15848: fix(region): vm created with public ip
2023-01-29 18:32:18 +08:00
ioito
a86c01a999 fix(region): vm created with public ip 2023-01-29 16:05:10 +08:00
Zexi Li
3a44ee700d Merge pull request #15847 from ioito/hotfix/qx-azure-project-id
fix(region): azure resource project id
2023-01-29 14:47:12 +08:00
ioito
298ab60748 fix(region): azure resource project id 2023-01-29 14:41:36 +08:00
Jian Qiu
1e4bd25b1f fix: webconsole ssh user/pass prompt backspace hanlding (#15836)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-29 01:35:10 +08:00
Zexi Li
3d61cab11a feat(climc): add action of k8s-cluster-deploy (#15819) 2023-01-18 23:39:50 +08:00
Jian Qiu
f5b18585c0 fix: clean pending usage when dry run validate_create_data (#15824)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-18 23:37:05 +08:00
Zexi Li
db7bb397b0 Merge pull request #15802 from ioito/automated-cherry-pick-of-#15800-upstream-release-3.9
Automated cherry pick of #15800: fix(mcclient): 避免休眠后再次启动后admin token失效, 导致用户登录失败
2023-01-17 17:51:27 +08:00
Zexi Li
8cb1192e63 Merge pull request #15813 from gouqi11/automated-cherry-pick-of-#15811-upstream-release-3.9
Automated cherry pick of #15811: fix(keystone): serviceAbnormal token fix
2023-01-17 15:07:34 +08:00
Zexi Li
dbf9ce8209 Merge pull request #15818 from gouqi11/automated-cherry-pick-of-#15816-upstream-release-3.9
Automated cherry pick of #15816: fix(notify): fix topic enable bug
2023-01-17 15:06:56 +08:00
mhf
88810de249 fix(notify): fix topic enable bug 2023-01-17 14:41:19 +08:00
Zexi Li
1e5b37baa8 Merge pull request #15815 from ioito/automated-cherry-pick-of-#15811-upstream-release-3.9
Automated cherry pick of #15811: fix(keystone): serviceAbnormal token fix
2023-01-17 10:46:49 +08:00
mhf
d2e76ee8ee fix(keystone): serviceAbnormal token fix 2023-01-17 10:31:31 +08:00
Zexi Li
3a1a603846 Merge pull request #15807 from ioito/automated-cherry-pick-of-#15805-upstream-release-3.9
Automated cherry pick of #15805: fix(region): vmware migrate vnc
2023-01-16 16:55:18 +08:00
Zexi Li
9d606691ba Merge pull request #15810 from wanyaoqi/fix/rescue-migrate-3.9
fix(region): rescue mode data is nil
2023-01-16 16:53:47 +08:00
mhf
be46ef4cf8 fix(keystone): serviceAbnormal token fix 2023-01-16 16:46:18 +08:00
Zexi Li
45b6e483e1 Merge pull request #15809 from gouqi11/automated-cherry-pick-of-#15799-upstream-release-3.9
Automated cherry pick of #15799: fix(notify): 对服务异常添加消息通知
2023-01-16 16:02:28 +08:00
wanyaoqi
83e56d3505 fix(region): rescue mode data is nil 2023-01-16 16:02:15 +08:00
mhf
da2132f821 fix(notify): 对服务异常添加消息通知 2023-01-16 15:49:35 +08:00
ioito
d9a04a3833 fix(region): vmware migrate vnc 2023-01-16 15:12:14 +08:00
ioito
b4c9e02750 fix(mcclient): 避免休眠后再次启动后admin token失效, 导致用户登录失败 2023-01-16 14:29:19 +08:00
wanyaoqi
3938172a27 fix(region): update guest status on backup guest start complete (#15794)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-15 13:50:18 +08:00
屈轩
6550c2e244 fix(notify): send msg with custom brand (#15793) 2023-01-15 13:49:06 +08:00
屈轩
1d08a1365a fix(region): optimized capability (#15789) 2023-01-15 13:47:35 +08:00
Zexi Li
34521ebd91 Merge pull request #15790 from gouqi11/automated-cherry-pick-of-#15780-upstream-release-3.9
Automated cherry pick of #15780: fix(notify): Add topic result
2023-01-14 18:20:25 +08:00
mhf
f3c24838e9 fix(notify): fix server/create bug 2023-01-14 18:02:12 +08:00
Zexi Li
697cf0cd14 Merge pull request #15786 from ioito/automated-cherry-pick-of-#15783-upstream-release-3.9
Automated cherry pick of #15783: fix(region): vender update for vmware timeout
2023-01-14 16:57:36 +08:00
ioito
3c42d26a8a fix(region): vender update for vmware timeout 2023-01-14 16:30:49 +08:00
Zexi Li
a110bfd5e7 Merge pull request #15779 from ioito/automated-cherry-pick-of-#15771-upstream-release-3.9
Automated cherry pick of #15771: fix(common): service exception
2023-01-14 11:56:39 +08:00
ioito
e1687134a1 fix(common): service exception 2023-01-14 11:51:51 +08:00
Zexi Li
6c94f048e7 Merge pull request #15759 from wanyaoqi/fix/backup
fix(region): auto switch to backup on host down
2023-01-12 18:05:08 +08:00
wanyaoqi
d106a3d4a2 fix(region): auto switch to backup on host down 2023-01-11 21:39:23 +08:00
Zexi Li
52734aef01 Merge pull request #15752 from ioito/automated-cherry-pick-of-#15750-upstream-release-3.9
Automated cherry pick of #15750: fix(region): vender update
2023-01-11 10:36:48 +08:00
ioito
7eabac42ef fix(region): vender update 2023-01-10 19:05:02 +08:00
Zexi Li
f3d9be3ff7 Merge pull request #15739 from ioito/automated-cherry-pick-of-#15737-upstream-release-3.9
Automated cherry pick of #15737: fix(region): hostname validate
2023-01-09 14:31:55 +08:00
Zexi Li
92c0133254 Merge pull request #15745 from wanyaoqi/automated-cherry-pick-of-#15742-upstream-release-3.9
Automated cherry pick of #15742: fix(host-deployer): windows 2008 Out-File IOException
2023-01-09 14:31:04 +08:00
Zexi Li
4494f84a23 Merge pull request #15744 from ioito/automated-cherry-pick-of-#15725-upstream-release-3.9
Automated cherry pick of #15725: fix(region): vmware migrate
2023-01-09 14:30:09 +08:00
ioito
a8b8d88bf8 fix(region): vmware migrate 2023-01-09 14:06:53 +08:00
wanyaoqi
92767719de fix(host-deployer): windows 2008 Out-File IOException
debug log cause windows 2008 IOException, multi process open log file.
2023-01-09 14:06:37 +08:00
ioito
17dbf63985 fix(region): hostname validate 2023-01-09 11:20:01 +08:00
屈轩
3c885d343e fix(region): optimzed zone-list speed (#15731) 2023-01-07 20:56:24 +08:00
Zexi Li
48e5899371 Merge pull request #15723 from ioito/automated-cherry-pick-of-#15721-upstream-release-3.9
Automated cherry pick of #15721: fix(region): vender update
2023-01-06 15:32:23 +08:00
Zexi Li
04a265ddf9 Merge pull request #15720 from ioito/automated-cherry-pick-of-#15709-upstream-release-3.9
Automated cherry pick of #15709: fix(region): account sync status
2023-01-06 15:31:42 +08:00
ioito
7d697aade7 fix(region): vender update 2023-01-06 11:24:44 +08:00
ioito
f0625102f4 fix(region): account sync status 2023-01-06 10:32:05 +08:00
wanyaoqi
783297ebd0 fix(worker): policy and task worker count configurable (#15715) 2023-01-05 22:49:13 +08:00
Zexi Li
a6266ca09c Merge pull request #15712 from swordqiu/automated-cherry-pick-of-#15710-upstream-release-3.9
Automated cherry pick of #15710: fix: init shceduler schedinfo project and domain
2023-01-05 17:04:39 +08:00
Qiu Jian
eef8581847 fix: init shceduler schedinfo project and domain 2023-01-05 16:14:27 +08:00
Zexi Li
49600fd880 fix(notify): update MYSQL_OUT_OF_SYNC template (#15705) 2023-01-05 15:35:58 +08:00
Zexi Li
faa875fc58 Merge pull request #15704 from ioito/automated-cherry-pick-of-#15701-upstream-release-3.9
Automated cherry pick of #15701: fix(region): vender update
2023-01-04 20:02:00 +08:00
ioito
a645abea98 fix(region): vender update 2023-01-04 19:52:37 +08:00
Zexi Li
7aeba1856e Merge pull request #15696 from zexi/automated-cherry-pick-of-#15694-upstream-release-3.9
Automated cherry pick of #15694: fix(scheduler): do migrate checking when hypervisor is not esxi
2023-01-03 18:35:52 +08:00
Zexi Li
a61f93c8d8 fix(scheduler): do migrate checking when hypervisor is not esxi 2023-01-03 18:26:06 +08:00
gouqi11
6557b6a6d6 fix(notify): add some template and notification (#15670) 2023-01-02 12:00:55 +08:00
wanyaoqi
e370f5df82 fix(host): use drive backup sync backup disks (#15618)
* fix(host): use drive backup sync backup disks

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

* fix(region,host): guest backup backend use fetcherfs

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-02 11:59:42 +08:00
Zexi Li
56d359408a Merge pull request #15678 from ioito/automated-cherry-pick-of-#15676-upstream-release-3.9
Automated cherry pick of #15676: fix(region): system disk storage type
2022-12-30 16:18:44 +08:00
ioito
8a65831764 fix(region): system disk storage type 2022-12-30 16:08:51 +08:00
Zexi Li
cf4cd03156 Merge pull request #15673 from zexi/sched-storage-cap
fix(scheduler): reduce calculation of storage's free_capacity
2022-12-30 14:52:40 +08:00
Zexi Li
dc2b2da5cd fix(scheduler): reduce calculation of storage's free_capacity 2022-12-30 12:38:56 +08:00
屈轩
a85c17a64b fix(region): hostname sync (#15659) 2022-12-29 23:19:14 +08:00
Zexi Li
fdc4467042 Merge pull request #15653 from zexi/automated-cherry-pick-of-#15651-upstream-release-3.9
Automated cherry pick of #15651: fix(webconsole): not get pod info when fetchK8sEnv
2022-12-29 16:07:08 +08:00
Zexi Li
540e5d3d16 fix(webconsole): not get pod info when fetchK8sEnv 2022-12-29 15:49:42 +08:00
Zexi Li
b9d673919e Merge pull request #15638 from swordqiu/automated-cherry-pick-of-#15635-upstream-release-3.9
Automated cherry pick of #15635: fix: limit roles that a user join a project
2022-12-29 10:45:29 +08:00
Zexi Li
cc8ca6caba Merge pull request #15642 from swordqiu/hotfix/qj-esxi-vm-missing-datastore-property-3.9
fix: esxi virtualmachine missing datastore property at release/3.9
2022-12-29 10:44:15 +08:00
QIU Jian
1a71367c3c fix: esxi virtualmachine missing datastore property at release/3.9 2022-12-28 20:47:53 +08:00
Qiu Jian
b44a4027a9 fix: limit roles that a user join a project 2022-12-28 15:21:58 +08:00
Zexi Li
ba66482130 Merge pull request #15630 from ioito/hotfix/qx-openstack-version
fix(region): openstack api version
2022-12-27 20:59:42 +08:00
ioito
95a0bcd0fc fix(region): openstack api version 2022-12-27 17:16:27 +08:00
Jian Qiu
ca7984dd2e fix: guests short desc add status (#15614)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-23 19:23:23 +08:00
Zexi Li
b634256c99 Merge pull request #15473 from wanyaoqi/fix/pasm
fix(region,host): backup guest
2022-12-22 10:17:19 +08:00
Zexi Li
ae55d5a662 Merge pull request #15601 from gouqi11/fixModelartsCidrDiffFor3.9
fix(region): fixModelartsCidrDiffBetweenHuaweiAndHCSO
2022-12-21 17:40:14 +08:00
mhf
f0b2866041 fix(region): fixModelartsCidrDiffBetweenHuaweiAndHCSO 2022-12-21 11:45:13 +08:00
Zexi Li
ad78e0b030 optimize(scheduler): reduce calculation of network free address (#15594)
- only calculate non-emulated host's network on building
- calculate emulated host's network on scheduling
2022-12-20 20:42:01 +08:00
Zexi Li
c5a3c0802f fix(baremetal): update base image to v0.3.9 (#15597)
ref: https://github.com/yunionio/yunionos/pull/27
2022-12-20 20:39:51 +08:00
Jian Qiu
a6b6ec2847 fix: prefer id over name when fetching owner id (#15592)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-20 20:37:20 +08:00
Zexi Li
73561a4872 Merge pull request #15585 from ioito/automated-cherry-pick-of-#15583-upstream-release-3.9
Automated cherry pick of #15583: fix(cloudmon): ignore empty metric error
2022-12-20 12:59:44 +08:00
Zexi Li
879d623451 Merge pull request #15582 from ioito/automated-cherry-pick-of-#15580-upstream-release-3.9
Automated cherry pick of #15580: fix(region): vender update
2022-12-20 12:58:48 +08:00
ioito
25ae8b8f88 fix(cloudmon): ignore empty metric error 2022-12-19 17:13:37 +08:00
ioito
243160a3a0 fix(region): vender update 2022-12-19 14:52:05 +08:00
屈轩
443c42c606 fix(region): vender update (#15561) 2022-12-17 17:27:24 +08:00
屈轩
208c3c30be fix(region): sync vm hostname with ascii (#15564) 2022-12-16 16:07:25 +08:00
Zexi Li
e1f5185672 Merge pull request #15569 from zexi/bm-lan-get
fix(baremetal): mac address of BMC not found
2022-12-15 16:52:01 +08:00
Zexi Li
ffa94889b6 Merge pull request #15576 from gouqi11/automated-cherry-pick-of-#15574-upstream-release-3.9
Automated cherry pick of #15574: fix(region): fix sync project bug and add climc choices
2022-12-15 16:50:45 +08:00
mhf
039c0ad6e9 fix(region): fix sync project bug and add climc choices 2022-12-15 15:25:42 +08:00
Zexi Li
6b961d72a1 fix(baremetal): mac address of BMC not found 2022-12-15 11:25:28 +08:00
wanyaoqi
a54d49136f fix(region,host): backup guest refactor 2022-12-14 22:58:31 +08:00
Zexi Li
cf6c8761eb Merge pull request #15552 from swordqiu/automated-cherry-pick-of-#15550-upstream-release-3.9
Automated cherry pick of #15550: fix: usb tablet not function for windows 10 guest
2022-12-14 15:33:53 +08:00
Zexi Li
4175e80873 Merge pull request #15556 from ioito/automated-cherry-pick-of-#15545-upstream-release-3.9
Automated cherry pick of #15545: fix(region): vender update
2022-12-14 15:31:35 +08:00
ioito
0296b0fc2e fix(region): vender update 2022-12-14 15:04:43 +08:00
Qiu Jian
3d4fe99db0 fix: usb tablet not function for windows 10 guest 2022-12-14 12:17:02 +08:00
wanyaoqi
7a57a2ba85 fix(region): use qcow2 format on raw disk cache image (#15549) 2022-12-13 18:32:50 +08:00
Zexi Li
fd5dc55130 Merge pull request #15525 from gouqi11/cloudpodsMetric3.9
fix(cloudmon): add 3.9 cloudpods GetMetric
2022-12-12 14:49:52 +08:00
Zexi Li
261f623deb Merge pull request #15544 from gouqi11/automated-cherry-pick-of-#15541-upstream-release-3.9
Automated cherry pick of #15541: fix(climc): add server option cloudpods
2022-12-12 14:48:44 +08:00
mhf
141b49c855 fix(climc): add server option cloudpods 2022-12-12 14:16:06 +08:00
Zexi Li
083cf645b7 Merge pull request #15540 from swordqiu/automated-cherry-pick-of-#15537-upstream-release-3.9
Automated cherry pick of #15537: fix: host init before auth
2022-12-12 09:42:31 +08:00
屈轩
686b080a83 fix(common): optimized metadata list (#15531) 2022-12-11 18:10:40 +08:00
Qiu Jian
39f72c63ad fix: host init before auth 2022-12-11 17:47:47 +08:00
Zexi Li
117dccd0b1 Merge pull request #15519 from wanyaoqi/automated-cherry-pick-of-#15509-upstream-release-3.9
Automated cherry pick of #15509: fix(region,host): fix some bugs of server disk change storage
2022-12-09 11:45:42 +08:00
Zexi Li
476f1efe60 Merge pull request #15528 from ioito/automated-cherry-pick-of-#15526-upstream-release-3.9
Automated cherry pick of #15526: fix(common): limit request
2022-12-09 11:44:19 +08:00
ioito
c99cc9bfe1 fix(common): limit request 2022-12-08 15:56:13 +08:00
mhf
6c3802e1f9 fix(cloudmon): add 3.9 cloudpods GetMetric 2022-12-08 15:44:04 +08:00
wanyaoqi
bfe23a659b Automated cherry pick of #15475: fix(host): convert migrate set downtime value to float64 (#15477)
* fix(host): convert migrate set downtime value to float64

* fix(host): live migration optimize

Qemu will send `STOP` event on start last time migration, but this
moment migration not completed. So we need wait magration complete.
Configurable Auto converge max cpu throttle.
2022-12-08 14:46:05 +08:00
wanyaoqi
d716ef73f9 fix(host): don't set ovs interface external id on migrating (#15499)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-12-08 14:43:49 +08:00
屈轩
3f174a30cc fix(cloudid): support custom saml user name (#15513) 2022-12-08 14:42:20 +08:00
wanyaoqi
f27d3cfb98 fix(host): ceph util timeout (#15517) 2022-12-08 14:41:23 +08:00
wanyaoqi
14a033c289 fix(region,host): fix some bugs of server disk change storage 2022-12-08 13:02:56 +08:00
Zexi Li
59c359b9f5 Merge pull request #15507 from ioito/automated-cherry-pick-of-#15505-upstream-release-3.9
Automated cherry pick of #15505: fix(cloudid): huawei saml user name
2022-12-07 22:35:58 +08:00
ioito
018f66c05e fix(cloudid): huawei saml user name 2022-12-07 11:22:52 +08:00
wanyaoqi
b5e6e6be8b fix(host): update host wire with mac addr (#15502) 2022-12-07 02:21:02 +08:00
Zexi Li
cadf82e010 Merge pull request #15496 from ioito/automated-cherry-pick-of-#15494-upstream-release-3.9
Automated cherry pick of #15494: fix(cloudid): vender update
2022-12-07 00:13:05 +08:00
ioito
ca63bc7a9e fix(cloudid): vender update 2022-12-06 18:43:44 +08:00
Jian Qiu
59f51ecae3 fix: allow baremetal to specify external tftp server and file (#15491)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-05 23:41:02 +08:00
Zexi Li
12c84fad68 Merge pull request #15480 from swordqiu/hotfix/qj-host-disable-gso-for-specific-nics
fix: host disable gso for specific nics
2022-12-05 18:19:15 +08:00
Zexi Li
d25fb4d4db Merge pull request #15487 from swordqiu/automated-cherry-pick-of-#15485-upstream-release-3.9
Automated cherry pick of #15485: feature: allow update hostname
2022-12-05 18:16:54 +08:00
Qiu Jian
af74eb78c7 feature: allow update hostname 2022-12-05 17:22:28 +08:00
Qiu Jian
6955c373cf fix: host disable gso for specific nics 2022-12-04 00:52:06 +08:00
Jian Qiu
ed37341f2c fix: lbagent deploy fix release/3.9 (#15474)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-01 08:30:57 +08:00
Jian Qiu
f71ef994cb fix: sync aws os_arch release/3.9 (#15464)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-01 01:22:53 +08:00
Zexi Li
1482f631d9 fix(scheduler): consider storage backend and mediumType size (#15468) 2022-12-01 01:22:11 +08:00
gouqi11
2f4f99692b fix(region): fix modelarts create task setStatus (#15455) 2022-11-28 23:58:20 +08:00
Zexi Li
df8b84fc58 Merge pull request #15447 from swordqiu/automated-cherry-pick-of-#15445-upstream-release-3.9
Automated cherry pick of #15445: fix: vmware convert to kvm need check network configuration
2022-11-28 19:16:22 +08:00
Qiu Jian
7a7d89d3b0 fix: vmware convert to kvm need check network configuration 2022-11-28 02:22:07 +08:00
Zexi Li
b35bf67e88 Merge pull request #15442 from gouqi11/automated-cherry-pick-of-#15440-upstream-release-3.9
Automated cherry pick of #15440: fix(region): add modelarts sku policy
2022-11-25 15:49:58 +08:00
mhf
704496fedd fix(region): add modelarts sku policy 2022-11-25 15:41:32 +08:00
Jian Qiu
5ce9742f09 fix: keep schedtask_label table name (#15433)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-25 15:38:30 +08:00
wanyaoqi
ca58f35451 fix(region,host): check memdev on live migration (#15380)
* fix(region,host): check memdev on live migration

* fix(region,host): live migrate check scsi num queus

* fix(host): change scsi num queues

* fix(host): fix nics pci addr on live migration
2022-11-24 22:17:56 +08:00
gouqi11
21af852658 fix(region): fix modelarts sku purgeall managerId (#15436) 2022-11-24 21:59:42 +08:00
Zexi Li
b91838e57d Merge pull request #15421 from gouqi11/fid/modelartsCreatedFailed
fix(region): fix network status
2022-11-22 15:22:48 +08:00
Zexi Li
5f60e290f2 Merge pull request #15422 from zexi/automated-cherry-pick-of-#15394-upstream-release-3.9
Automated cherry pick of #15394: fix(baremetal): Physical server installation OS optimization
2022-11-22 13:30:52 +08:00
seraphico
e4f8f914be fix(baremetal): When the mac address in nics_standby does not have Index or nic_type, it will cause a panic, which will cause the physical server to fail to switch to bare metal 2022-11-22 13:28:59 +08:00
mhf
2895262df9 fix(region): fix network status 2022-11-22 13:08:19 +08:00
wanyaoqi
523b6a70b0 fix(region,host): live migrate quickly converge (#15418) 2022-11-22 12:25:46 +08:00
Jian Qiu
5b3e16536c fix: filter projects by idp (#15400)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-22 12:24:30 +08:00
Jian Qiu
e551080c73 fix: fail to delete guest due to guestdisk inconsistency (#15403)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-22 12:24:02 +08:00
屈轩
25d4621b05 fix(region): ceph df size (#15411) 2022-11-22 12:23:07 +08:00
wanyaoqi
2d8fa20a22 Automated cherry pick of #15383: Fix/migrate (#15420)
* fix(region): ask host offline on rescue mode migration

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

* fix(host): desc add is_volatile_host

Is volatile host tell sdn agent guest is not final state running on this
host, and do not bind port and report chassis right now.

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

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-11-22 12:22:27 +08:00
Zexi Li
449f1ddfc7 fix(host): filter usb hub devices (#15406) 2022-11-21 17:21:52 +08:00
Zexi Li
f49fbdac8e Merge pull request #15408 from wanyaoqi/automated-cherry-pick-of-#15407-upstream-release-3.9
Automated cherry pick of #15407: fix(host): ceph utils command add timeout
2022-11-21 15:26:19 +08:00
wanyaoqi
676488e991 fix(host): ceph utils command add timeout
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-11-21 15:10:23 +08:00
Zexi Li
6d931b6969 Merge pull request #15397 from ioito/hotfix/qx-self-manage-check
fix(region): cloudpods self manage check
2022-11-18 19:33:39 +08:00
ioito
8e5614fe34 fix(region): cloudpods self manage check 2022-11-18 19:20:38 +08:00
屈轩
4ecb482d65 fix(cloudmon): add process stats metric (#15393) 2022-11-17 20:40:19 +08:00
屈轩
94d492da9d fix(cloudmon): collect system metric (#15386) 2022-11-17 18:39:44 +08:00
Zexi Li
7eed64d26a Merge pull request #15389 from zexi/k8s-cluster-extra-config
feat(climc): k8s cluster extra config
2022-11-17 18:13:01 +08:00
Zexi Li
947d5c6e28 feat(climc): k8s cluster extra config 2022-11-17 17:48:09 +08:00
gouqi11
8ad9a11649 fix(region): modelarts sku external id (#15388) 2022-11-17 16:51:14 +08:00
Zexi Li
5d96284683 Merge pull request #15387 from gouqi11/fix/modelartsManagerIdPanic
fix(region): modelarts sku managerId panic
2022-11-17 15:47:54 +08:00
mhf
501f7d97f6 fix(region): modelarts sku managerId panic 2022-11-17 15:25:54 +08:00
Zexi Li
d00342d7f0 Merge pull request #15381 from gouqi11/fix/modelartsSkuProcessor
fix(region): add modelarts sku list input cpu_arch,processor_type
2022-11-17 14:20:36 +08:00
mhf
c93a306f72 fix(cloudmux): add modelarts sku list input cpu_arch,processor_type 2022-11-16 19:52:21 +08:00
Zexi Li
b2a51d3b21 Merge pull request #15378 from gouqi11/fix/modelartsSkuProcessor
fix(region) :fix modelarts sku bug
2022-11-16 16:42:13 +08:00
屈轩
32148b8ab7 fix(region): account clean host cache (#15376) 2022-11-16 15:50:57 +08:00
mhf
16943ed51a fix(region) :fix modelarts sku bug 2022-11-16 15:39:52 +08:00
Zexi Li
3f5995cd2d Merge pull request #15373 from gouqi11/fix/modelartsNetworkBug
fix(region): fix modelarts network no available bug
2022-11-16 12:03:57 +08:00
mhf
37ac9f2960 fix(region): fix modelarts network no available bug 2022-11-16 11:50:58 +08:00
Jian Qiu
5198de290a fix: vpc secgroup should deny any ingress traffic be default (#15356)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-16 11:17:10 +08:00
Zexi Li
e54e942035 feat(climc): k8s cluster force deploy (#15371) 2022-11-16 10:12:44 +08:00
Zexi Li
5e0473a61f Merge pull request #15366 from swordqiu/automated-cherry-pick-of-#15365-upstream-release-3.9
Automated cherry pick of #15365: fix: automatically set disk is_ssd according to storage medium_type
2022-11-15 23:45:28 +08:00
Zexi Li
6529067de6 Merge pull request #15359 from swordqiu/automated-cherry-pick-of-#15358-upstream-release-3.9
Automated cherry pick of #15358: fix: do not detect vm ips when managing vmware
2022-11-15 10:39:55 +08:00
wanyaoqi
18bc9077be fix(scheduler): ignore fetch disk image failed (#15362) 2022-11-15 00:50:26 +08:00
wanyaoqi
be32ab259b fix(region): dead lock on batch migrate (#15364)
New parallel task will lock Model Manager.
If guests hosts count bigger than one will stuck on Lock
Guest Model Manager.

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

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-11-15 00:49:08 +08:00
Qiu Jian
b73e53b7c2 fix: automatically set disk is_ssd according to storage medium_type 2022-11-15 00:18:08 +08:00
Zexi Li
f99457b780 Merge pull request #15360 from gouqi11/fix/uploadModelartsNetworkCidr
fix(region): add modelarts created failed
2022-11-14 16:21:29 +08:00
mhf
655a693989 fix(region): add modelarts created failed 2022-11-14 12:00:15 +08:00
wanyaoqi
2beaf112c1 fix(host-deployer): os arch and uefi detect (#15352) 2022-11-13 18:19:26 +08:00
Qiu Jian
27f380d235 fix: do not detect vm ips when managing vmware 2022-11-12 22:44:13 +08:00
Zexi Li
d5ff3f313d Merge pull request #15347 from gouqi11/fix/uploadModelartsNetworkCidr
fix(region): upload modelarts network cidr
2022-11-12 18:41:51 +08:00
Zexi Li
6b3fa1fd45 Merge pull request #15349 from swordqiu/automated-cherry-pick-of-#15348-upstream-release-3.9
Automated cherry pick of #15348: fix: scheduler ignore storage capacity constraint if migrating
2022-11-12 18:41:13 +08:00
Zexi Li
0a849c9217 Merge pull request #15354 from swordqiu/automated-cherry-pick-of-#15353-upstream-release-3.9
Automated cherry pick of #15353: fix: make excel output floating number pretty
2022-11-12 18:40:00 +08:00
Qiu Jian
bdc24b38ff fix: make excel output floating number pretty 2022-11-11 22:18:38 +08:00
Qiu Jian
81b7bcdae9 fix: scheduler ignore storage capacity constraint if migrating 2022-11-11 20:49:40 +08:00
mhf
c006f1439d fix(region): upload modelarts network cidr 2022-11-11 20:04:51 +08:00
屈轩
e192dce599 fix(region): task panic (#15346) 2022-11-11 19:51:51 +08:00
Zexi Li
e6cf0f85a8 Merge pull request #15343 from ioito/hotfix/qx-hcso-region-cache
fix(region): hcso region cache
2022-11-11 11:21:55 +08:00
ioito
ec99a501b9 fix(region): hcso region cache 2022-11-11 10:58:09 +08:00
Zexi Li
91eb6b99bb feat(glance): precise_match option of image list input (#15340) 2022-11-11 08:27:40 +08:00
Zexi Li
17096e4815 fix(scheduler): check capacity of disk_schedtag_predicate (#15335)
* only check free_capacity when not migrating or non schared storage

* only check actual_free_capacity when storage is local
2022-11-10 11:42:30 +08:00
Zexi Li
4fc27e11d1 Merge pull request #15332 from swordqiu/hotfix/qj-image-osinfo-nil
fix: image osinfo nil panic
2022-11-09 23:06:35 +08:00
Qiu Jian
b4395aef3c fix: image osinfo nil panic 2022-11-09 14:45:13 +08:00
屈轩
c6c66a927c fix(region): 避免i18n重复删除再创建 (#15325) 2022-11-09 00:10:14 +08:00
Jian Qiu
3a4166fc38 fix: format version for rpm spec (#15329)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2022-11-09 00:09:09 +08:00
wanyaoqi
58c3d0df77 fix(host-deployer): check /etc/network dir is esixt (#15315) 2022-11-08 11:43:06 +08:00
Zexi Li
76b9ed3273 Merge pull request #15322 from ioito/automated-cherry-pick-of-#15321-upstream-release-3.9
Automated cherry pick of #15321: fix(common): avoid return invalid delete status
2022-11-08 10:20:19 +08:00
ioito
a0c63e314c fix(common): avoid return invalid delete status 2022-11-07 17:35:54 +08:00
Zexi Li
46134dc3ea Merge pull request #15319 from gouqi11/release/3.9
fix(regioin): modelarts refresh status
2022-11-07 15:25:32 +08:00
mhf
3f174b362c fix(regioin): modelarts refresh status 2022-11-07 15:22:14 +08:00
Jian Qiu
119c0ee225 fix: add openstack oscli doc (#15312)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-07 02:51:08 +08:00
Jian Qiu
1fe0399a80 fix: mcclient code cleanup 20221106 (#15311)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-07 02:20:18 +08:00
Jian Qiu
e98e6be8e3 fix: choose available storage by server_id (#15307)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-07 02:19:11 +08:00
wanyaoqi
d33f1f53c6 fix(region,host): disconnect esxi disk on disk delete (#15299) 2022-11-07 02:18:42 +08:00
Zexi Li
bcfa131ddb fix(monitor): only query enabled host for alerting (#15300) 2022-11-07 02:17:30 +08:00
Jian Qiu
ecfedc4705 fix: generate ssh host keys for linux guest (#15304)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-07 02:16:37 +08:00
Jian Qiu
7b2f48091d fix: secgroup peer secgroup constraint (#15309)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2022-11-07 02:16:01 +08:00
Zexi Li
21110e515e Merge pull request #15296 from gouqi11/automated-cherry-pick-of-#15295-upstream-release-3.9
Automated cherry pick of #15295: fix(region):modelartsTimeout
2022-11-04 17:42:59 +08:00
mhf
d4b30efc64 fix(region):modelartsTimeout 2022-11-04 16:35:36 +08:00
Zexi Li
6984df0233 Merge pull request #15293 from gouqi11/automated-cherry-pick-of-#15292-upstream-release-3.9
Automated cherry pick of #15292: fix(region):modelarts task
2022-11-04 15:27:22 +08:00
mhf
aeb83c10ac fix/modelarts task 2022-11-04 14:56:46 +08:00
Zexi Li
0b38ca8898 Merge pull request #15258 from ioito/automated-cherry-pick-of-#15257-upstream-release-3.9
Automated cherry pick of #15257: fix(keystone): optimzed project list
2022-11-04 14:29:28 +08:00
Zexi Li
03d108fa88 Merge pull request #15291 from ioito/hotfix/qx-hcso-saml
fix(cloudid): hcso saml provider update
2022-11-04 14:15:04 +08:00
ioito
7e8b525f7c fix(cloudid): hcso saml provider update 2022-11-04 14:04:12 +08:00
Zexi Li
700fb9dd54 Merge pull request #15267 from swordqiu/automated-cherry-pick-of-#15266-upstream-release-3.9
Automated cherry pick of #15266: fix: allow duplicate vm ids when sync
2022-11-04 12:27:33 +08:00
Zexi Li
55052f1aef Merge pull request #15289 from zexi/automated-cherry-pick-of-#15280-upstream-release-3.9
Automated cherry pick of #15280: fix: allow upload image via apigateway backend proxy
2022-11-04 12:26:52 +08:00
Qiu Jian
bc3f90fd2d fix: allow upload image via apigateway backend proxy 2022-11-04 12:25:59 +08:00
Zexi Li
abab461012 Merge pull request #15285 from ioito/hotfix/qx-cloudpods-manage
fix(region): check cloudpods self manage
2022-11-04 12:17:50 +08:00
Zexi Li
be37e889fa Merge pull request #15287 from wanyaoqi/automated-cherry-pick-of-#15286-upstream-release-3.9
Automated cherry pick of #15286: fix(host-deployer): add deploy telegraf error info
2022-11-04 12:16:12 +08:00
wanyaoqi
d2a9d25034 fix(host-deployer): add deploy telegraf error info 2022-11-03 20:43:13 +08:00
ioito
ac3fab5a44 fix(region): check cloudpods self manage 2022-11-03 18:51:22 +08:00
Zexi Li
eb6d0d99db Merge pull request #15279 from wanyaoqi/automated-cherry-pick-of-#15276-upstream-release-3.9
Automated cherry pick of #15276: fix(region): implement failed stage: OnDiskLiveChangeStorageReadyFailed
2022-11-03 15:29:28 +08:00
Zexi Li
202d786f4e Merge pull request #15277 from ioito/hotfix/qx-aliyun-dns-record
fix(region): dns record sync
2022-11-03 15:22:08 +08:00
Zexi Li
cab130b9a2 Merge pull request #15273 from wanyaoqi/automated-cherry-pick-of-#15272-upstream-release-3.9
Automated cherry pick of #15272: fix(region): panic on host offline and update health status is nil
2022-11-03 15:21:23 +08:00
Zexi Li
c68b8d1c3f Merge pull request #15283 from zexi/automated-cherry-pick-of-#15268-upstream-release-3.9
Automated cherry pick of #15268: fix: save unsynced ip to metadata
2022-11-03 15:20:32 +08:00
Qiu Jian
d7c67548bb fix: sync unsynced ip to metadata 2022-11-03 15:20:15 +08:00
Zexi Li
1ef2fd93a3 Merge pull request #15282 from gouqi11/automated-cherry-pick-of-#15281-upstream-release-3.9
Automated cherry pick of #15281: fix/modelarts status
2022-11-03 15:17:33 +08:00
mhf
e090712505 fix/modelarts status 2022-11-03 15:03:14 +08:00
wanyaoqi
3a2f2ccdc4 fix(region): implement failed stage: OnDiskLiveChangeStorageReadyFailed 2022-11-02 17:33:59 +08:00
ioito
12fb840668 fix(region): dns record sync 2022-11-02 17:01:30 +08:00
wanyaoqi
32b7d296e2 fix(region): panic on host offline and update health status is nil 2022-11-01 20:49:50 +08:00
Zexi Li
ec321023d2 feat(region): no_bmc option of host create api (#15269) 2022-11-01 17:38:27 +08:00
Qiu Jian
92ba7c6816 fix: allow duplicate vm ids when sync 2022-10-31 23:17:22 +08:00
Zexi Li
3974f48866 Merge pull request #15263 from ioito/automated-cherry-pick-of-#15262-upstream-release-3.9
Automated cherry pick of #15262: fix(region): account balance
2022-10-31 15:18:07 +08:00
ioito
a05a830112 fix(region): account balance 2022-10-31 14:36:59 +08:00
ioito
1cfd1a5545 fix(keystone): optimzed project list 2022-10-31 10:43:24 +08:00
Jian Qiu
d0506b4420 Automated cherry pick of #15244: feature: enable monitor proxy at host metadata server (#15245)
* feature: enable monitor proxy at host metadata server

* fix: host metadatahandler

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-30 09:14:10 +08:00
Zexi Li
8100a32a30 fix(baremetal): panic occured when get server ssh client (#15248) 2022-10-29 06:20:06 +08:00
Zexi Li
e4f8cf043c Merge pull request #15251 from gouqi11/automated-cherry-pick-of-#15246-upstream-release-3.9
Automated cherry pick of #15246: fix(cloudmon):cloudpodsMonitor
2022-10-27 19:34:05 +08:00
mhf
a9ca3137ad cloudpodsMonitor 2022-10-27 18:58:11 +08:00
Zexi Li
c036dceba4 Merge pull request #15235 from gouqi11/automated-cherry-pick-of-#15233-upstream-release-3.9
Automated cherry pick of #15233: controlMetricsGoroutineCount
2022-10-27 18:54:40 +08:00
屈轩
d67d7555e6 fix(region): skip disk sync by system tags (#15232) 2022-10-26 02:10:49 +08:00
Jian Qiu
bbcdbac62f fix: force reset expired password (#15230)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-26 02:07:24 +08:00
Jian Qiu
22a2ffec45 feature: automatically purge expired splitables (#15226)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-26 02:07:04 +08:00
Jian Qiu
3cc2cccb5d fix: ignore secgroup sync error (#15237)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-26 02:06:07 +08:00
mhf
7024da858b controlMetricsGoroutineCount 2022-10-25 20:16:53 +08:00
Jian Qiu
3a11565b7b fix: access backend service by specific region/zone (#15227)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-25 17:05:14 +08:00
Zexi Li
40ca3788af Merge pull request #15220 from gouqi11/automated-cherry-pick-of-#15219-upstream-release-3.9
Automated cherry pick of #15219: fixModelartsNodeCount nullable
2022-10-21 18:56:54 +08:00
mhf
2c79573fca fixModelartsNodeCount nullable 2022-10-21 18:49:45 +08:00
Zexi Li
746b08da99 Merge pull request #15214 from zexi/schedule-disk-tag
fix(scheduler): do free capacity check when storage filter enabled
2022-10-20 16:36:31 +08:00
Zexi Li
3155b0a060 Merge pull request #15218 from gouqi11/automated-cherry-pick-of-#15217-upstream-release-3.9
Automated cherry pick of #15217: fix/remoteFileReturnBug
2022-10-20 16:36:16 +08:00
mhf
4b5a07bb44 fix/remoteFileReturnBug 2022-10-20 16:19:46 +08:00
Zexi Li
c4447e27dc fix(scheduler): do free capacity check when storage filter enabled 2022-10-20 14:56:23 +08:00
Zexi Li
4728af489b Merge pull request #15208 from ioito/automated-cherry-pick-of-#15207-upstream-release-3.9
Automated cherry pick of #15207: fix(cloudmon): default delay time for 6 minutes
2022-10-20 00:31:08 +08:00
Zexi Li
d49bc112dd Merge pull request #15211 from ioito/automated-cherry-pick-of-#15210-upstream-release-3.9
Automated cherry pick of #15210: fix(region): add disk_type for disk short desc
2022-10-19 18:45:50 +08:00
ioito
1c2f2ec3b2 fix(region): add disk_type for disk short desc 2022-10-19 18:19:32 +08:00
ioito
4cba85a812 fix(cloudmon): default delay time for 6 minutes 2022-10-18 11:00:27 +08:00
Zexi Li
8c74fe459c Merge pull request #15204 from zexi/ansible-run-time
fix(ansibleserver): force sleep 50s before running
2022-10-18 10:48:45 +08:00
Zexi Li
f239e34d1b fix(ansibleserver): force sleep 50s before running 2022-10-18 10:23:48 +08:00
屈轩
9c733ff130 fix(websonsole): vnc query (#15197) 2022-10-15 22:05:26 +08:00
屈轩
aacdf17099 fix(glance): esxi vmdk requre streamOptimized (#15181) 2022-10-15 22:03:44 +08:00
Zexi Li
07f6572159 Merge pull request #15200 from gouqi11/automated-cherry-pick-of-#15198-upstream-release-3.9
Automated cherry pick of #15198: fix/huawei-aksk-createdAt
2022-10-14 21:12:33 +08:00
mhf
234741d0c4 fix/huawei-aksk-createdAt 2022-10-14 19:38:23 +08:00
Zexi Li
e842e970ba Merge pull request #15193 from zexi/automated-cherry-pick-of-#15192-upstream-release-3.9
Automated cherry pick of #15192: fix(scheduler): check free capacity of each storage
2022-10-14 13:33:06 +08:00
Zexi Li
acbbb6d6f5 fix(scheduler): check free capacity of each storage 2022-10-14 12:40:26 +08:00
Zexi Li
3769869a08 Merge pull request #15188 from ioito/automated-cherry-pick-of-#15187-upstream-release-3.9
Automated cherry pick of #15187: fix(region): optimized sku list
2022-10-14 10:35:13 +08:00
Zexi Li
4b0bdcfe8b Merge pull request #15184 from ioito/automated-cherry-pick-of-#15183-upstream-release-3.9
Automated cherry pick of #15183: fix(region): skip account check
2022-10-14 10:33:52 +08:00
ioito
9151709473 fix(region): optimized sku list 2022-10-13 18:12:31 +08:00
ioito
fb0645e837 fix(region): skip account check 2022-10-13 17:00:12 +08:00
Zexi Li
cfa36774e7 Merge pull request #15180 from ioito/automated-cherry-pick-of-#15179-upstream-release-3.9
Automated cherry pick of #15179: fix(region): skip duplicate account check
2022-10-13 12:14:38 +08:00
ioito
b4516df1a4 fix(region): skip duplicate account check 2022-10-13 12:07:22 +08:00
Zexi Li
6ccd2801f0 Merge pull request #15178 from swordqiu/automated-cherry-pick-of-#15177-upstream-release-3.9
Automated cherry pick of #15177: fix: disk fallocate support
2022-10-13 09:47:44 +08:00
Zexi Li
0baca192e3 Merge pull request #15164 from swordqiu/automated-cherry-pick-of-#15163-upstream-release-3.9
Automated cherry pick of #15163: fix: ssd(rotation_rate=1) option only applicable to scsi-hd device
2022-10-13 09:46:30 +08:00
Zexi Li
fe7cbbfee8 Merge pull request #15157 from ioito/automated-cherry-pick-of-#15156-upstream-release-3.9
Automated cherry pick of #15156: fix(region): openstack vnc
2022-10-13 09:46:00 +08:00
Zexi Li
fdbf01e158 Merge pull request #15171 from ioito/automated-cherry-pick-of-#15170-upstream-release-3.9
Automated cherry pick of #15170: fix(region): purge vm by tags
2022-10-13 09:45:19 +08:00
Zexi Li
e86e4d64e4 Merge pull request #15173 from ioito/automated-cherry-pick-of-#15172-upstream-release-3.9
Automated cherry pick of #15172: fix(cloudmon): show unmarshal error
2022-10-13 09:44:54 +08:00
Jian Qiu
fc916a22f2 fix: no etcd watching if endpoint type is not internal (#15176)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-13 09:36:52 +08:00
Qiu Jian
2887c8196f fix: disk fallocate support 2022-10-13 02:37:50 +08:00
ioito
3e7a321ad3 fix(cloudmon): show unmarshal error 2022-10-12 17:41:30 +08:00
ioito
dcf7bde095 fix(region): purge vm by tags 2022-10-12 16:36:25 +08:00
Zexi Li
9b2208a565 Merge pull request #15166 from ioito/automated-cherry-pick-of-#15165-upstream-release-3.9
Automated cherry pick of #15165: fix(region): avoid panic
2022-10-12 16:32:41 +08:00
ioito
4dad40e3b2 fix(region): avoid panic 2022-10-12 15:15:09 +08:00
屈轩
4142d03cce fix: climc image cache (#15153) 2022-10-12 14:55:49 +08:00
wanyaoqi
39bcd4c471 fix(region): only kvm use qgs set password in guest running status (#15159)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-10-12 14:55:12 +08:00
Qiu Jian
9ad72f63f2 fix: ssd(rotation_rate=1) option only applicable to scsi-hd device 2022-10-12 14:54:05 +08:00
Jian Qiu
5150d3d86d fix: debian 11 support missing at release/3.8 (#15161)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-11 21:18:14 +08:00
ioito
47024114c6 fix(region): openstack vnc 2022-10-11 16:52:41 +08:00
Zexi Li
34266ad52e Merge pull request #15151 from wanyaoqi/automated-cherry-pick-of-#15150-upstream-release-3.9
Automated cherry pick of #15150: fix(host-image): cancel auth host-image http requests
2022-10-11 10:45:27 +08:00
Zexi Li
8e942046e6 Merge pull request #15141 from ioito/automated-cherry-pick-of-#15137-upstream-release-3.9
Automated cherry pick of #15137: fix(region): snapshot time zone
2022-10-11 10:43:56 +08:00
Zexi Li
b3afdc7b93 Merge pull request #15135 from swordqiu/automated-cherry-pick-of-#15134-upstream-release-3.9
Automated cherry pick of #15134: fix: override valid os info in metadata
2022-10-11 10:42:38 +08:00
Zexi Li
08411e3061 Merge pull request #15139 from ioito/automated-cherry-pick-of-#15138-upstream-release-3.9
Automated cherry pick of #15138: fix(region): lb sync panic
2022-10-11 10:40:58 +08:00
Zexi Li
d08864d9e7 Merge pull request #15155 from ioito/automated-cherry-pick-of-#15154-upstream-release-3.9
Automated cherry pick of #15154: fix(region): oss permission
2022-10-11 10:38:59 +08:00
ioito
62362a1887 fix(region): oss permission 2022-10-10 19:15:00 +08:00
Zexi Li
167d3d25e8 Merge pull request #15149 from ioito/automated-cherry-pick-of-#15148-upstream-release-3.9
Automated cherry pick of #15148: fix(region): apsara region endpoint
2022-10-10 15:50:47 +08:00
wanyaoqi
a92e4d72a2 fix(host-image): cancel auth host-image http requests 2022-10-10 10:51:07 +08:00
ioito
4d6490e7a1 fix(region): apsara region endpoint 2022-10-10 10:38:40 +08:00
Qiu Jian
807631b7ca fix: override valid os info in metadata 2022-10-09 23:55:34 +08:00
wanyaoqi
be9bd32824 fix(region): recover code remove by #14996 (#15145)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-10-09 23:53:49 +08:00
wanyaoqi
8742ba05d5 fix(host): marshal cycle struct guest (#15146)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-10-09 23:49:00 +08:00
ioito
8271d86911 fix(region): snapshot time zone 2022-10-09 16:21:56 +08:00
ioito
04ac34755c fix(region): lb sync panic 2022-10-09 15:46:39 +08:00
Zexi Li
3e6d9f0a59 Merge pull request #15103 from ioito/automated-cherry-pick-of-#15102-upstream-release-3.9
Automated cherry pick of #15102: fix(region): azure resource group
2022-10-09 15:36:09 +08:00
Zexi Li
2fea602ecd Merge pull request #15132 from ioito/automated-cherry-pick-of-#15131-upstream-release-3.9
Automated cherry pick of #15131: fix(region): add project tag short desc
2022-10-09 00:26:16 +08:00
Zexi Li
31540c1feb Merge pull request #15129 from ioito/automated-cherry-pick-of-#15128-upstream-release-3.9
Automated cherry pick of #15128: fix(cloudid): aliyun saml provider name
2022-10-09 00:25:17 +08:00
ioito
c66e16190b fix(region): azure resource group 2022-10-08 21:28:31 +08:00
Zexi Li
8b3f7ef336 optimize(scheduler): global cache for schedtag (#15120)
* optimize(scheduler): global cache for schedtag

* feat(scheduler): informer of schedtag
2022-10-08 20:49:26 +08:00
ioito
57005da632 fix(region): add project tag short desc 2022-10-08 18:21:40 +08:00
ioito
68a98c8eb6 fix(cloudid): aliyun saml provider name 2022-10-08 15:39:25 +08:00
Zexi Li
8dd802204f Merge pull request #15123 from ioito/automated-cherry-pick-of-#15122-upstream-release-3.9
Automated cherry pick of #15122: fix(region): modelarts change config
2022-10-08 14:45:54 +08:00
ioito
043b24cca1 fix(region): modelarts change config 2022-10-08 14:28:34 +08:00
Zexi Li
4534f951b1 Merge pull request #15117 from zexi/monitor-error-msg
fix(monitor): monitor error message
2022-10-08 12:03:24 +08:00
Zexi Li
02447ea1f9 fix(monitor): monitor error message 2022-10-08 11:49:18 +08:00
Jian Qiu
3b64b8709e fix: preserve os info of instance (#15115)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2022-10-08 11:19:51 +08:00
Jian Qiu
117c5d60f4 update vendor wireguard 20221005 (#15113)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-05 17:17:53 +08:00
Zexi Li
5c9016bd0c Merge pull request #15110 from gouqi11/automated-cherry-pick-of-#15109-upstream-release-3.9
Automated cherry pick of #15109: fix modelarts status bug
2022-09-30 11:53:28 +08:00
mhf
c8c80dc95d fix modelarts status bug 2022-09-30 11:39:13 +08:00
Zexi Li
43154ddc00 Merge pull request #15106 from swordqiu/automated-cherry-pick-of-#15105-upstream-release-3.9
Automated cherry pick of #15105: fix: do not resize partition of unsupported fs
2022-09-29 10:08:07 +08:00
Qiu Jian
60d45f698b fix: do not resize partition of unsupported fs 2022-09-29 00:56:26 +08:00
Zexi Li
a7ee027326 Merge pull request #15101 from ioito/automated-cherry-pick-of-#15100-upstream-release-3.9
Automated cherry pick of #15100: fix(cloudmon): remove cloudmon metadata tag
2022-09-28 19:32:08 +08:00
ioito
b98983a2df fix(cloudmon): remove cloudmon metadata tag 2022-09-28 18:16:58 +08:00
Zexi Li
1b50d263c4 Merge pull request #15097 from zexi/ansible-sleep
fix(ansibleserver): force sleep 15s before running playbook
2022-09-28 17:38:52 +08:00
Zexi Li
24a3ff8fa9 fix(ansibleserver): force sleep 15s before running playbook 2022-09-28 17:21:56 +08:00
wanyaoqi
6d2e8fdfc1 fix(region): check migration bandwidth is nil (#15095) 2022-09-28 16:41:45 +08:00
Zexi Li
6a9dc28b72 Merge pull request #15096 from gouqi11/automated-cherry-pick-of-#15094-upstream-release-3.9
Automated cherry pick of #15094: add modelarts nodecount
2022-09-28 16:11:34 +08:00
mhf
de65b32a47 add modelarts nodecount 2022-09-28 15:49:30 +08:00
屈轩
e715a725db fix(cloudid): azure cloudgroup (#15093) 2022-09-28 15:27:28 +08:00
屈轩
6119e60c46 fix(monitor): rename tags to tag_pairs (#15088) 2022-09-28 15:26:40 +08:00
wanyaoqi
20b7b9b9f6 fix(host): rbd snap delete (#15083) 2022-09-28 15:25:27 +08:00
wanyaoqi
7d0a88a605 Automated cherry pick of #15067: fix(region): host health use sync map (#15085)
* fix(region): host health use sync map

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

* fix auto migrate on host shutdown

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-09-28 14:12:56 +08:00
Zexi Li
0516f72f46 fix(cloudcommon): notify event of specific resources (#15089) 2022-09-28 13:00:56 +08:00
Zexi Li
c4f0cb4dcd fix(host): out of range when list GPU devices (#15081) 2022-09-28 07:52:56 +08:00
屈轩
f8ef56cf38 fix(region): secgroup rule sync (#15076) 2022-09-27 21:23:00 +08:00
屈轩
aa99aa449e fix(climc): add debug for esxicli (#15060) 2022-09-27 21:22:08 +08:00
Zexi Li
386467927a fix(monitor): not depend taskman to execute async task (#15064) 2022-09-27 21:14:21 +08:00
Zexi Li
f9281c738d fix(cloudcommon): invoke model.PostUpdate when differences exist (#15069) 2022-09-27 21:10:52 +08:00
屈轩
ed8af7fc6f fix(cloudid): azure clouduser (#15073) 2022-09-27 21:10:04 +08:00
屈轩
077390519d fix(cloudmon): remove special characters (#15063) 2022-09-27 21:04:13 +08:00
Zexi Li
791e0753c4 Merge pull request #15058 from zexi/automated-cherry-pick-of-#15053-upstream-release-3.9
Automated cherry pick of #15053: feat(host): deploy telegraf in windows guest
2022-09-27 11:32:14 +08:00
wanyaoqi
ad0d7fde15 feat(host): deploy telegraf in windows guest
depends on telegraf service install command.
2022-09-27 11:31:51 +08:00
Zexi Li
59780e863d Merge pull request #15034 from wanyaoqi/automated-cherry-pick-of-#15033-upstream-release-3.9
Automated cherry pick of #15033: fix(region): migrate forecase add rescue mode
2022-09-26 15:22:59 +08:00
Zexi Li
fec651c425 Merge pull request #15050 from zexi/baremetal-storage
feat(region): is_baremetal option for storage list
2022-09-26 15:20:07 +08:00
Zexi Li
968cd4e6ff Merge pull request #15049 from ioito/automated-cherry-pick-of-#15048-upstream-release-3.9
Automated cherry pick of #15048: fix(monitor): influx query
2022-09-26 15:04:51 +08:00
Zexi Li
ee78115b44 feat(region): is_baremetal option for storage list 2022-09-26 15:02:33 +08:00
ioito
dac5f69abe fix(monitor): influx query 2022-09-26 15:01:24 +08:00
Zexi Li
309c69dcfd Merge pull request #15047 from ioito/automated-cherry-pick-of-#15046-upstream-release-3.9
Automated cherry pick of #15046: Hotfix/qx monitor misc
2022-09-26 14:06:09 +08:00
小林仔
12cbc9c697 support simple query 2022-09-26 13:28:19 +08:00
Zexi Li
8b3bb04adc Merge pull request #15042 from ioito/automated-cherry-pick-of-#15041-upstream-release-3.9
Automated cherry pick of #15041: fix(cloudid): role obs iam
2022-09-23 17:06:08 +08:00
ioito
cc56f30de8 fix(cloudid): role obs iam 2022-09-23 16:47:47 +08:00
Zexi Li
f0d7c4ea09 Merge pull request #15040 from swordqiu/automated-cherry-pick-of-#15039-upstream-release-3.9
Automated cherry pick of #15039: fix: ihost add cpu_architecture interface
2022-09-23 16:07:39 +08:00
QIU Jian
5b54fe3256 fix: ihost add cpu_architecture interface 2022-09-23 14:50:20 +08:00
wanyaoqi
4dd3a6a163 Automated cherry pick of #14996: fix(host): live migrate optimize (#15020)
* fix(host): live migrate optimize

- support set live migrate bandwidth
- support cancel migrate
- live migrate enable multifd
- cancel set live migrate max downtime in init live migrate
- save and sync guest desc and start script on sync config

* feat(region,host): server-monitor support qmp

server-montior add qmp option, default is hmp.

usage:
    climc server-monitor --qmp <ID> <COMMAND>

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

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-09-23 14:09:47 +08:00
Jian Qiu
32931791cf fix: splitable duplicate records (#15038)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-09-23 14:09:11 +08:00
屈轩
6c680c9294 fix(region): avoid panic when show dns zone (#15036) 2022-09-23 13:52:53 +08:00
wanyaoqi
7db9a50f79 fix(region): migrate forecase add rescue mode
Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2022-09-23 11:02:04 +08:00
Zexi Li
bf98f587b8 Merge pull request #15023 from swordqiu/automated-cherry-pick-of-#15022-upstream-release-3.9
Automated cherry pick of #15022: fix: esxi save image fail
2022-09-23 10:12:58 +08:00
Zexi Li
9f9e5361f3 Merge pull request #15029 from ioito/automated-cherry-pick-of-#15028-upstream-release-3.9
Automated cherry pick of #15028: fix(cloudid): obs iam
2022-09-23 10:11:04 +08:00
ioito
201443dcec fix(cloudid): obs iam 2022-09-22 22:58:00 +08:00
Zexi Li
034c743ba6 Merge pull request #15027 from gouqi11/automated-cherry-pick-of-#15024-upstream-release-3.9
Automated cherry pick of #15024: HCSO modelarts monitor
2022-09-22 20:42:33 +08:00
mhf
2dca05c9c2 delete huaweiClient 2022-09-22 18:45:39 +08:00
Qiu Jian
2462128a32 fix: esxi save image fail 2022-09-22 02:10:15 +08:00
Zexi Li
6d6e46083d Merge pull request #15021 from gouqi11/automated-cherry-pick-of-#15018-upstream-release-3.9
Automated cherry pick of #15018: [WIP]add hcso modelarts
2022-09-21 20:56:26 +08:00
mhf
a0efef4c4d resert endpoint 2022-09-21 17:55:14 +08:00
mhf
5cd9d07115 add hcso modelarts 2022-09-21 17:55:14 +08:00
Zexi Li
c9fa13c63b Merge pull request #15014 from ioito/automated-cherry-pick-of-#15013-upstream-release-3.9
Automated cherry pick of #15013: fix(region): qcloud and google system tag
2022-09-21 14:35:39 +08:00
Zexi Li
9379930c21 Merge pull request #15017 from gouqi11/automated-cherry-pick-of-#15011-upstream-release-3.9
Automated cherry pick of #15011: add hcso aksk
2022-09-20 20:26:02 +08:00
mhf
0a1307bb4d add hcso aksk 2022-09-20 20:23:33 +08:00
Zexi Li
905dc803b9 Merge pull request #15016 from ioito/automated-cherry-pick-of-#15015-upstream-release-3.9
Automated cherry pick of #15015: fix(hostman): host and vm metric id
2022-09-20 18:41:34 +08:00
Zexi Li
a7824c6e42 Merge pull request #15012 from ioito/automated-cherry-pick-of-#15009-upstream-release-3.9
Automated cherry pick of #15009: fix(cloudid): clear cloudid error
2022-09-20 18:40:08 +08:00
ioito
ce6d4da16b fix(hostman): host and vm metric id 2022-09-20 18:03:59 +08:00
ioito
fdfd9ad858 fix(region): qcloud and google system tag 2022-09-20 17:41:36 +08:00
ioito
f68f09f067 fix(cloudid): clear cloudid error 2022-09-20 16:30:00 +08:00
Zexi Li
44fc286a9c Merge pull request #15005 from zexi/update-net-vlan-id
fix(climc): always net vlan_id to 1 when updating network
2022-09-20 10:46:28 +08:00
Zexi Li
3491ebdcb9 fix(climc): always net vlan_id to 1 when updating network 2022-09-20 10:44:08 +08:00
Zexi Li
409dd98850 Merge pull request #15002 from zexi/bm-no-cache
feat(baremetal,region): support disable_image_cache for baremetalagent
2022-09-20 10:29:35 +08:00
Zexi Li
21b831252d feat(baremetal,region): support disable_image_cache for baremetalagent 2022-09-20 10:04:21 +08:00
屈轩
26c351796f fix(cloudmon): unified metric id with resource id (#14998) 2022-09-19 22:55:30 +08:00
Zexi Li
7b78f205a9 Merge pull request #14955 from wanyaoqi/automated-cherry-pick-of-#14954-upstream-release-3.9
Automated cherry pick of #14954: feat(region,host): check disk type of gpfs mountpoint
2022-09-19 22:31:16 +08:00
Zexi Li
ea99da1fb5 Merge pull request #15004 from zexi/automated-cherry-pick-of-#14954-upstream-release-3.9
Automated cherry pick of #14954: feat(region,host): check disk type of gpfs mountpoint
2022-09-19 22:28:58 +08:00
wanyaoqi
b13417cba2 feat(region,host): check disk type of gpfs mountpoint
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-09-19 22:28:27 +08:00
Zexi Li
3a573a2242 Merge pull request #15000 from gouqi11/automated-cherry-pick-of-#14987-upstream-release-3.9
Automated cherry pick of #14987: fix modelarts create bug
2022-09-19 21:23:39 +08:00
mhf
7554a59eea fix modelarts create bug 2022-09-19 19:43:58 +08:00
屈轩
16d3cdc7aa fix(region): cloudaccount options (#14991) 2022-09-17 19:38:36 +08:00
wanyaoqi
f272e65780 feat(region,host): check disk type of gpfs mountpoint
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-09-16 18:27:48 +08:00
Zexi Li
5d6a431902 fix(monitor,region,climc): use commonalert api for scaling policy (#14979)
* fix(monitor,region,climc): use commonalert api for scaling policy

* fix(monitor): use commonalert as nodealert's backend
2022-09-16 10:33:59 +08:00
Zexi Li
a9c27a2273 Merge pull request #14975 from ioito/automated-cherry-pick-of-#14974-upstream-release-3.9
Automated cherry pick of #14974: fix(cloudmon): azure windows disk usage
2022-09-16 03:06:25 +08:00
wanyaoqi
7cbf045638 fix(host): get gpu qemu params (#14982)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-09-15 22:48:53 +08:00
Zexi Li
1de4e19670 Merge pull request #14984 from gouqi11/automated-cherry-pick-of-#14983-upstream-release-3.9
Automated cherry pick of #14983: bugfix(modelarts)
2022-09-15 21:42:07 +08:00
mhf
e8228e4e3c modelartsBugFix 2022-09-15 21:40:07 +08:00
Zexi Li
077fd3f891 fix(host): no vm_scaling_group_id in hostmetrics (#14976) 2022-09-15 01:16:23 +08:00
ioito
4975acb914 fix(cloudmon): azure windows disk usage 2022-09-14 19:41:12 +08:00
Zexi Li
85c5e33cf9 Merge pull request #14973 from gouqi11/automated-cherry-pick-of-#14972-upstream-release-3.9
Automated cherry pick of #14972: modelarts
2022-09-14 16:00:44 +08:00
mhf
6671cf9fab modelarts 2022-09-14 15:34:19 +08:00
Zexi Li
6e987b0ba7 Merge pull request #14963 from ioito/automated-cherry-pick-of-#14962-upstream-release-3.9
Automated cherry pick of #14962: fix(region): azure win disk usage percent
2022-09-14 10:12:07 +08:00
Zexi Li
c9b3a4e95c Merge pull request #14964 from zexi/alert-not-recover
fix(monitor): alert resource not recorverd
2022-09-14 10:05:27 +08:00
Zexi Li
6a0b463874 Merge pull request #14968 from swordqiu/automated-cherry-pick-of-#14967-upstream-release-3.9
Automated cherry pick of #14967: fix: set vfs_cache_pressure to 350
2022-09-14 01:05:50 +08:00
Qiu Jian
cfa1f8d3a1 fix: set vfs_cache_pressure to 350 2022-09-13 17:01:29 +08:00
Zexi Li
91b1236e3f fix(monitor): alert resource not recorverd 2022-09-13 13:43:46 +08:00
ioito
586fb7f7cf fix(region): azure win disk usage percent 2022-09-13 10:40:11 +08:00
Zexi Li
8fee86088b Merge pull request #14960 from swordqiu/automated-cherry-pick-of-#14959-upstream-release-3.9
Automated cherry pick of #14959: fix: remove irrelevant common options
2022-09-13 08:56:55 +08:00
Qiu Jian
77f0dcb4c8 fix: remove irrelevant common options 2022-09-12 18:23:29 +08:00
Zexi Li
0e215facb9 fix(baremetal): clean UEFI info for baremetal host (#14956) 2022-09-12 18:19:51 +08:00
1311 changed files with 83189 additions and 27200 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

@@ -285,9 +285,11 @@ dep:
GOPROXY ?= direct
mod:
GOPROXY=$(GOPROXY) go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p'))
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.0
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

View File

@@ -44,7 +44,12 @@ echo "Build root ${BUILDROOT}"
if [ -z "$VERSION" ]; then
TAG=$(git describe --abbrev=0 --tags || echo testing)
VERSION=${TAG/\//-}
VERSION=${VERSION/v/}
if [[ "$VERSION" =~ ^v0. ]]; then
VERSION=${VERSION/v0./}
elif [[ "$VERSION" =~ ^v ]]; then
VERSION=${VERSION/v/}
fi
VERSION=${VERSION//-/.}
fi
RELEASE=`date +"%y%m%d%H"`

View File

@@ -1,4 +1,4 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.8
FROM registry.cn-beijing.aliyuncs.com/yunionio/baremetal-base:v0.3.9-20230221.2
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.6 as yunionos
FROM registry.cn-beijing.aliyuncs.com/yunionio/yunionos:v0.1.8-20230221.2 as yunionos
FROM centos:8 as grub-stage

View File

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

View File

@@ -30,7 +30,7 @@ WEBCONSOLE_BASE_VERSION = v0.2-1
webconsole-base:
$(DOCKER_BUILDX)/webconsole-base:$(WEBCONSOLE_BASE_VERSION) -f ./Dockerfile.webconsole-base .
BAREMETAL_BASE_VERSION = v0.3.8
BAREMETAL_BASE_VERSION = v0.3.9-20230221.2
baremetal-base:
$(DOCKER_BUILDX)/baremetal-base:$(BAREMETAL_BASE_VERSION) -f ./Dockerfile.baremetal-base .

View File

@@ -11,3 +11,6 @@
{{- if eq .resource_type "image" }}
镜像{{ $d.name }}完整性校验失败
{{- end -}}
{{- if eq .resource_type "vm_integrity" }}
主机{{ $d.name }}完整性校验失败
{{- end -}}

View File

@@ -0,0 +1,18 @@
{{- $d := .resource_details -}}
数据库 {{$d.ip}} 的主从同步不一致,请及时检查。
{{ range $status := $d.status }}
数据库 {{$status.ip}} 状态:
{{- if not $status.operator_error }}
- Slave_IO_Running: {{$status.slave_io_running}}
- Slave_SQL_Running: {{$status.slave_sql_running}}
{{- if $status.last_error }}
- Last_Error: {{$status.last_error}}
{{- end -}}
{{- if $status.last_io_error }}
- Last_IO_Error: {{$status.last_io_error}}
{{- end }}
{{else}}
- Operator_Error: {{$status.operator_error}}
{{- end}}
{{end}}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.service_name }}服务的网络拓扑信息同步不一致,请及时检查。

View File

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

View File

@@ -0,0 +1,8 @@
{{- $d := .resource_details -}}
服务:{{ $d.service_name }} 异常。
方法:{{ $d.method }}
路径:{{ $d.path }}
{{- if $d.body }}
请求:{{ $d.body -}}
{{ end }}
错误:{{ $d.error }}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
云账号{{ $d.name }}状态异常,请及时检查。

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
服务{{ d.service_name}} worker阻塞半小时请及时检查。

View File

@@ -0,0 +1,18 @@
{{- $d := .resource_details -}}
The primary and secondary synchronization of the database ({{ $d.ip }}) is inconsistent, please check in time.
{{ range $status := $d.status }}
Database {{$status.ip}} status:
{{- if not $status.operator_error }}
- Slave_IO_Running: {{$status.slave_io_running}}
- Slave_SQL_Running: {{$status.slave_sql_running}}
{{- if $status.last_error }}
- Last_Error: {{$status.last_error}}
{{- end -}}
{{- if $status.last_io_error }}
- Last_IO_Error: {{$status.last_io_error}}
{{- end }}
{{else}}
- Operator_Error: {{$status.operator_error}}
{{- end}}
{{end}}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.service_name }}: The network topology information of the service is inconsistent, please check in time.

View File

@@ -0,0 +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.

View File

@@ -0,0 +1,8 @@
{{- $d := .resource_details -}}
Service: {{ $d.service_name }} abnormal
Method: {{ $d.method }}
Path: {{ $d.path }}
{{- if $d.body }}
Body: {{ $d.body -}}
{{ end }}
Error: {{ $d.error }}

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The account {{ $d.name }} status is abnormal. Please check in time.

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The service: {{ d.service_name}} worker has been block 30 minutes.Please verify the service in time.

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
数据库 {{$d.ip}} 的主从同步不一致,请及时检查。

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.service_name }}服务的网络拓扑信息同步不一致,请及时检查。

View File

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

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
服务{{ $d.service_name }}异常

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
云账号{{ $d.name}}状态异常,请及时检查。

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
服务{{ d.service_name}} worker阻塞半小时请及时检查。

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The primary and secondary synchronization of the database ({{ $d.ip }}) is inconsistent, please check in time.

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
{{ $d.service_name }}: The network topology information of the service is inconsistent, please check in time.

View File

@@ -0,0 +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.

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
Server {{ $d.service_name }} abnormal

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The account {{ $d.name }} has been locked due to abnormal login. Please verify the situation. If you need to unlock the user, please go to the user list to enable the user.

View File

@@ -0,0 +1,2 @@
{{- $d := .resource_details -}}
The service: {{ d.service_name}} worker has been block 30 minutes.Please verify the service in time.

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

@@ -15,7 +15,10 @@
package cloudid
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/cloudid"
"yunion.io/x/onecloud/pkg/mcclient/options/cloudid"
)
@@ -35,4 +38,10 @@ func init() {
cmd.Perform("reset-password", &cloudid.ClouduserResetPasswordOptions{})
cmd.Perform("cloud-user-join-group", &cloudid.ClouduserGroupOptions{})
cmd.Perform("cloud-user-leave-group", &cloudid.ClouduserGroupOptions{})
cmd.GetWithCustomShow("access-keys", func(result jsonutils.JSONObject) {
ret := modulebase.JSON2ListResult(result)
shell.PrintList(ret, nil)
}, &cloudid.ClouduserListAccessKeyInput{})
cmd.Perform("delete-access-key", &cloudid.ClouduserDeleteAccessKeyInput{})
cmd.Perform("create-access-key", &cloudid.ClouduserCreateAccessKeyInput{})
}

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

@@ -17,69 +17,90 @@ package compute
import (
"yunion.io/x/jsonutils"
"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"
)
func init() {
type BaremetalAgentListOptions struct {
options.BaseListOptions
}
R(&BaremetalAgentListOptions{}, "agent-list", "List all agent", func(s *mcclient.ClientSession, args *BaremetalAgentListOptions) error {
var params *jsonutils.JSONDict
{
var err error
params, err = args.BaseListOptions.Params()
if err != nil {
return err
}
}
result, err := modules.Baremetalagents.List(s, params)
if err != nil {
return err
}
printList(result, modules.Baremetalagents.GetColumns(s))
return nil
})
type BaremetalAgentOpsOperations struct {
ID string `help:"ID or name of agent"`
}
R(&BaremetalAgentOpsOperations{}, "agent-show", "Show details of an agent", func(s *mcclient.ClientSession, args *BaremetalAgentOpsOperations) error {
result, err := modules.Baremetalagents.Get(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&BaremetalAgentOpsOperations{}, "agent-enable", "Enable agent", func(s *mcclient.ClientSession, args *BaremetalAgentOpsOperations) error {
result, err := modules.Baremetalagents.PerformAction(s, args.ID, "enable", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&BaremetalAgentOpsOperations{}, "agent-disable", "Disable agent", func(s *mcclient.ClientSession, args *BaremetalAgentOpsOperations) error {
result, err := modules.Baremetalagents.PerformAction(s, args.ID, "disable", nil)
if err != nil {
return err
}
printObject(result)
return nil
})
R(&BaremetalAgentOpsOperations{}, "agent-delete", "Delete agent", func(s *mcclient.ClientSession, args *BaremetalAgentOpsOperations) error {
result, err := modules.Baremetalagents.Delete(s, args.ID, nil)
if err != nil {
return err
}
printObject(result)
return nil
})
type AgentListOptions struct {
options.BaseListOptions
}
func (o AgentListOptions) Params() (jsonutils.JSONObject, error) {
return o.BaseListOptions.Params()
}
func (o AgentListOptions) Description() string {
return "List all agent"
}
type AgentOpsOperations struct {
ID string `help:"ID or name of agent"`
}
func (o AgentOpsOperations) GetId() string {
return o.ID
}
func (o AgentOpsOperations) Params() (jsonutils.JSONObject, error) {
return nil, nil
}
type AgentShowOpt struct {
AgentOpsOperations
}
func (o AgentShowOpt) Description() string {
return "Show details of an agent"
}
type AgentEnableOpt struct {
AgentOpsOperations
}
func (o AgentEnableOpt) Description() string {
return "Enable agent"
}
type AgentDisableOpt struct {
AgentOpsOperations
}
func (o AgentDisableOpt) Description() string {
return "Disable agent"
}
type AgentDeleteOpt struct {
AgentOpsOperations
}
func (o AgentDeleteOpt) Description() string {
return "Delete agent"
}
type AgentEnableImageCacheOpt struct {
AgentOpsOperations
}
func (o AgentEnableImageCacheOpt) Description() string {
return "Enable cache image of a agent"
}
type AgentDisableImageCacheOpt struct {
AgentOpsOperations
}
func (o AgentDisableImageCacheOpt) Description() string {
return "Disable cache image of a agent"
}
func init() {
cmd := shell.NewResourceCmd(&modules.Baremetalagents).WithKeyword("agent")
cmd.List(new(AgentListOptions))
cmd.Show(new(AgentShowOpt))
cmd.Perform("enable", new(AgentEnableOpt))
cmd.Perform("disable", new(AgentDisableOpt))
cmd.Perform("enable-image-cache", new(AgentEnableImageCacheOpt))
cmd.Perform("disable-image-cache", new(AgentDisableImageCacheOpt))
cmd.Delete(new(AgentDeleteOpt))
}

View File

@@ -47,7 +47,7 @@ func init() {
return
}
for k, v := range rc {
fmt.Printf(`export %s="%s"`+"\n", k, v)
fmt.Printf(`export %s='%s'`+"\n", k, v)
}
}, &options.BaseIdOptions{})
cmd.Get("storage-classes", &compute.CloudproviderStorageClassesOptions{})

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()
}
@@ -226,11 +231,16 @@ func init() {
if args.TaskNotify {
s.PrepareTask()
}
disk, err := modules.Disks.Create(s, params.JSON(params))
if err != nil {
return err
if args.Count > 1 {
results := modules.Disks.BatchCreate(s, params.JSON(params), args.Count)
printBatchResults(results, modules.Disks.GetColumns(s))
} else {
disk, err := modules.Disks.Create(s, params.JSON(params))
if err != nil {
return err
}
printObject(disk)
}
printObject(disk)
if args.TaskNotify {
s.WaitTaskNotify()
}
@@ -410,6 +420,13 @@ func init() {
if sparseHeader > 0 {
writer = sparsefile.NewSparseFileWriter(fi, sparseHeader, totalSize)
fileSize, _ := strconv.ParseInt(resp.Header.Get("X-File-Size"), 10, 64)
if fileSize > 0 {
err = fi.Truncate(fileSize)
if err != nil {
return errors.Wrapf(err, "failed truncate file")
}
}
}
bar := pb.Full.Start64(totalSize)

View File

@@ -52,6 +52,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{})
@@ -69,11 +70,7 @@ func init() {
cmd.Get("tap-config", &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
}
@@ -151,14 +148,12 @@ 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!!!!"`
@@ -168,6 +163,8 @@ func init() {
IpmiIpAddr string `help:"IPMI ip_addr"`
Sn string `help:"serial number"`
Hostname string `help:"update host name"`
}
R(&HostUpdateOptions{}, "host-update", "Update information of a host", func(s *mcclient.ClientSession, args *HostUpdateOptions) error {
params := jsonutils.NewDict()
@@ -177,12 +174,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")
}
@@ -413,6 +404,7 @@ func init() {
AccessWire string `help:"Access wire"`
NoProbe bool `help:"just save the record, do not probe"`
NoBMC bool `help:"No BMC hardware"`
NoPrepare bool `help:"just probe, do not reboot baremetal to prepare"`
DisablePxeBoot bool `help:"set enable_pxe_boot to false, which is true by default"`
@@ -454,6 +446,9 @@ func init() {
if args.NoPrepare {
params.Add(jsonutils.JSONTrue, "no_prepare")
}
if args.NoBMC {
params.Add(jsonutils.JSONTrue, "no_bmc")
}
if args.DisablePxeBoot {
params.Add(jsonutils.JSONFalse, "enable_pxe_boot")
}
@@ -562,11 +557,7 @@ 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" {

View File

@@ -57,6 +57,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,31 @@
// 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"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.ModelartsPools).WithKeyword("modelarts-pool")
cmd.List(&compute.ModelartsPoolListOptions{})
cmd.Delete(&options.BaseIdOptions{})
cmd.Create(&compute.ModelartsPoolCreateOption{})
cmd.Perform("syncstatus", &compute.ModelartsPoolSyncstatusOption{})
cmd.Perform("change-config", &compute.ModelartsPoolChangeConfigOption{})
}

View File

@@ -0,0 +1,26 @@
// 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/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.ModelartsPoolSku).WithKeyword("modelarts-pool-sku")
cmd.List(&compute.ModelartsPoolSkuListOptions{})
}

View File

@@ -55,7 +55,8 @@ func init() {
cmd.BatchPerform("sync", new(options.ServerIdsOptions))
cmd.Perform("switch-to-backup", new(options.ServerSwitchToBackupOptions))
cmd.BatchPerform("reconcile-backup", new(options.ServerIdsOptions))
cmd.BatchPerform("create-backup", new(options.ServerIdsOptions))
cmd.Perform("create-backup", new(options.ServerCreateBackupOptions))
cmd.BatchPerform("start-backup", new(options.ServerIdsOptions))
cmd.Perform("delete-backup", new(options.ServerDeleteBackupOptions))
cmd.BatchPerform("stop", new(options.ServerStopOptions))
cmd.BatchPerform("suspend", new(options.ServerIdsOptions))
@@ -66,6 +67,8 @@ func init() {
cmd.PrintObjectYAML().Perform("migrate-forecast", new(options.ServerMigrateForecastOptions))
cmd.Perform("migrate", new(options.ServerMigrateOptions))
cmd.Perform("live-migrate", new(options.ServerLiveMigrateOptions))
cmd.BatchPerform("cancel-live-migrate", new(options.ServerIdsOptions))
cmd.Perform("set-live-migrate-params", new(options.ServerSetLiveMigrateParamsOptions))
cmd.Perform("modify-src-check", new(options.ServerModifySrcCheckOptions))
cmd.Perform("set-secgroup", new(options.ServerSecGroupsOptions))
cmd.Perform("add-secgroup", new(options.ServerSecGroupsOptions))
@@ -95,6 +98,7 @@ func init() {
cmd.Perform("set-sshport", &options.ServerSetSshportOptions{})
cmd.Perform("have-agent", &options.ServerHaveAgentOptions{})
cmd.Perform("change-disk-storage", &options.ServerChangeDiskStorageOptions{})
cmd.Perform("change-storage", &options.ServerChangeStorageOptions{})
cmd.PerformClass("batch-user-metadata", &options.ServerBatchMetadataOptions{})
cmd.PerformClass("batch-set-user-metadata", &options.ServerBatchMetadataOptions{})
cmd.Perform("user-metadata", &baseoptions.ResourceMetadataOptions{})
@@ -107,7 +111,12 @@ 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("monitor", &options.ServerMonitorOptions{})
cmd.Perform("disable-auto-merge-snapshot", &options.ServerDisableAutoMergeSnapshot{})
cmd.Get("vnc", new(options.ServerIdOptions))
cmd.Get("desc", new(options.ServerIdOptions))
@@ -287,11 +296,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)
@@ -301,7 +305,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
}
@@ -309,23 +313,6 @@ func init() {
return nil
})
R(&options.ServerMonitorOptions{}, "server-monitor", "Send commands to qemu monitor", func(s *mcclient.ClientSession, opts *options.ServerMonitorOptions) error {
params, err := baseoptions.StructToParams(opts)
if err != nil {
return err
}
ret, err := modules.Servers.PerformAction(s, opts.ID, "monitor", params)
if err != nil {
return err
}
result, err := ret.GetString("results")
if err != nil {
return err
}
fmt.Println(result)
return nil
})
type ServerDiskSnapshotOptions struct {
SERVER string `help:"server ID or Name"`
DISK string `help:"create snapshot disk id"`
@@ -404,10 +391,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
@@ -865,7 +857,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

@@ -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"`

View File

@@ -35,6 +35,11 @@ const (
func init() {
handleResult := func(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
}

View File

@@ -651,15 +651,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 +673,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

@@ -402,7 +402,7 @@ func init() {
}
R(&PolicyAdminCapableOptions{}, "policy-admin-capable", "Check admin capable", func(s *mcclient.ClientSession, args *PolicyAdminCapableOptions) error {
auth.InitFromClientSession(s)
policy.EnableGlobalRbac(15*time.Second, false)
policy.EnableGlobalRbac(15*time.Second, false, 1)
var token mcclient.TokenCredential
if len(args.User) > 0 {
@@ -456,7 +456,7 @@ func init() {
rbacutils.ShowMatchRuleDebug = true
}
auth.InitFromClientSession(s)
policy.EnableGlobalRbac(15*time.Second, false)
policy.EnableGlobalRbac(15*time.Second, false, 1)
if args.Debug {
consts.EnableRbacDebug()
}

View File

@@ -18,6 +18,7 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
api "yunion.io/x/onecloud/pkg/apis/image"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/image"
"yunion.io/x/onecloud/pkg/mcclient/options"
@@ -26,9 +27,10 @@ import (
func init() {
type GuestImageCreateOptions struct {
NAME string `help:"Name of guest image"`
ImageNumber int `help:"common image number of guest image"`
Protected bool `help:"if guest image is protected"`
NAME string `help:"Name of guest image"`
ImageNumber int `help:"common image number of guest image"`
Protected bool `help:"if guest image is protected"`
Image []string `help:"list of images"`
}
R(&GuestImageCreateOptions{}, "guest-image-create", "Create guest image's metadata", func(s *mcclient.ClientSession,
@@ -42,6 +44,15 @@ func init() {
if args.Protected {
params.Add(jsonutils.JSONTrue, "protected")
}
if len(args.Image) > 0 {
images := make([]api.GuestImageCreateInputSubimage, 0)
for _, img := range args.Image {
images = append(images, api.GuestImageCreateInputSubimage{
Id: img,
})
}
params.Add(jsonutils.Marshal(images), "images")
}
ret, err := modules.GuestImages.Create(s, params)
if err != nil {
return err

View File

@@ -43,7 +43,7 @@ func initKubeCluster() {
cmd.Create(new(o.K8SClusterCreateOptions))
cmd.Perform("sync", new(o.ClusterSyncOptions))
cmd.Perform("syncstatus", new(o.IdentOptions))
cmd.Perform("deploy", new(o.IdentOptions))
cmd.Perform("deploy", new(o.ClusterDeployOptions))
cmd.Get("components-status", new(o.IdentOptions))
cmd.Get("api-resources", new(o.IdentOptions))
cmd.Get("cluster-users", new(o.IdentOptions))
@@ -52,6 +52,8 @@ func initKubeCluster() {
cmd.Perform("delete-machines", new(o.KubeClusterDeleteMachinesOptions))
cmd.Perform("add-machines", new(o.KubeClusterAddMachinesOptions))
cmd.PerformClass("gc", new(o.ClusterGCOpts))
cmd.Perform("set-extra-config", new(o.ClusterSetExtraConfigOpt))
cmd.Get("extra-config", new(o.IdentOptions))
R(&o.KubeClusterImportOptions{}, cmdN("import"), "Import k8s cluster", func(s *mcclient.ClientSession, args *o.KubeClusterImportOptions) error {
params, err := args.Params()

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

@@ -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

@@ -47,6 +47,8 @@ func init() {
"apsara",
"cloudpods",
"hcso",
"hcsop",
"hcs",
"nutanix",
"s3",
"ceph",

View File

@@ -58,7 +58,7 @@ func init() {
svcUrl string
)
if len(opts.Service) > 0 {
svcUrl, err = s.GetServiceURL(opts.Service, "", "")
svcUrl, err = s.GetServiceURL(opts.Service, "")
if err != nil {
return errors.Wrapf(err, "get service %s url", opts.Service)
}

View File

@@ -29,7 +29,7 @@ import (
func init() {
cmd := NewResourceCmd(monitor.Alerts)
cmd.List(new(options.AlertListOptions))
cmd.Create(new(options.AlertCreateOptions))
// cmd.Create(new(options.AlertCreateOptions))
cmd.Show(new(options.AlertShowOptions))
cmd.Update(new(options.AlertUpdateOptions))
cmd.BatchDelete(new(options.AlertDeleteOptions))

View File

@@ -20,7 +20,8 @@ import (
)
func init() {
cmd := NewResourceCmd(modules.CommonAlertManager)
cmd := NewResourceCmd(modules.CommonAlerts)
cmd.Create(new(options.CommonAlertCreateOptions))
cmd.List(new(options.CommonAlertListOptions))
cmd.Show(new(options.CommonAlertShowOptions))
cmd.Perform("enable", &options.CommonAlertShowOptions{})

View File

@@ -21,5 +21,6 @@ import (
func init() {
cmd := NewResourceCmd(modules.MonitorResourceManager)
cmd.Get("", new(options.MonitorResourceJointAlertOptions))
cmd.GetProperty(new(options.MonitorResourceJointAlertOptions))
cmd.List(new(options.MonitorResourceListOptions))
}

View File

@@ -0,0 +1,28 @@
// 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 monitor
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules/monitor"
options "yunion.io/x/onecloud/pkg/mcclient/options/monitor"
)
func init() {
cmd := shell.NewResourceCmd(monitor.UnifiedMonitorManager).SetPrefix("monitor")
cmd.Show(&options.SimpleQueryOptions{})
cmd.GetProperty(&options.MeasurementsQueryOptions{})
cmd.GetProperty(&options.DatabasesQueryOptions{})
}

View File

@@ -35,6 +35,8 @@ type BaseOptions struct {
Port int `help:"Service port" default:"$VMWARE_PORT" metavar:"VMWARE_PORT"`
Account string `help:"VCenter or ESXi Account" default:"$VMWARE_ACCOUNT" metavar:"VMWARE_ACCOUNT"`
Password string `help:"Password" default:"$VMWARE_PASSWORD" metavar:"VMWARE_PASSWORD"`
Debug bool
Format string `choices:"xml|json" default:"json"`
SUBCOMMAND string `help:"aliyuncli subcommand" subcommand:"true"`
}
@@ -101,7 +103,7 @@ func newClient(options *BaseOptions) (*esxi.SESXiClient, error) {
cloudprovider.ProviderConfig{
ProxyFunc: proxyFunc,
},
),
).Debug(options.Debug).Format(options.Format),
)
}

50
go.mod
View File

@@ -24,7 +24,7 @@ require (
github.com/cheggaaa/pb/v3 v3.0.8
github.com/coredns/coredns v1.3.0
github.com/creack/pty v1.1.11
github.com/fatih/color v1.10.0
github.com/fatih/color v1.13.0
github.com/fernet/fernet-go v0.0.0-20180830025343-9eac43b88a5e
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect
github.com/fsnotify/fsnotify v1.4.9
@@ -48,7 +48,7 @@ require (
github.com/lestrrat-go/jwx v1.0.2
github.com/lestrrat/go-jwx v0.0.0-20180221005942-b7d4802280ae
github.com/libvirt/libvirt-go-xml v5.2.0+incompatible
github.com/ma314smith/signedxml v0.0.0-20200410192636-c342a2d0ae60
github.com/ma314smith/signedxml v0.0.0-20210628192057-abc5b481ae1c
github.com/mattn/go-sqlite3 v1.14.12
github.com/mdlayher/arp v0.0.0-20190313224443-98a83c8a2717
github.com/mdlayher/ethernet v0.0.0-20190606142754-0394541c37b7
@@ -56,7 +56,7 @@ require (
github.com/mholt/caddy v0.10.11
github.com/miekg/dns v1.1.25
github.com/minio/minio-go v6.0.14+incompatible
github.com/mozillazg/go-pinyin v0.15.0
github.com/mozillazg/go-pinyin v0.19.0
github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492 // indirect
github.com/opentracing/opentracing-go v1.0.2 // indirect
github.com/openzipkin/zipkin-go-opentracing v0.3.4 // indirect
@@ -67,10 +67,11 @@ require (
github.com/serialx/hashring v0.0.0-20180504054112-49a4782e9908
github.com/sevlyar/go-daemon v0.1.5
github.com/shirou/gopsutil v3.21.11+incompatible
github.com/shirou/gopsutil/v3 v3.22.10
github.com/sirupsen/logrus v1.9.0
github.com/skip2/go-qrcode v0.0.0-20190110000554-dc11ecdae0a9
github.com/smartystreets/goconvey v1.6.4
github.com/stretchr/testify v1.7.2
github.com/smartystreets/goconvey v1.7.2
github.com/stretchr/testify v1.8.1
github.com/tatsushid/go-fastping v0.0.0-20160109021039-d7bb493dee3e
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.413
github.com/tencentyun/cos-go-sdk-v5 v0.7.24
@@ -82,15 +83,15 @@ require (
github.com/vmware/govmomi v0.20.1
go.etcd.io/etcd/api/v3 v3.5.0
go.etcd.io/etcd/client/v3 v3.5.0
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
golang.org/x/net v0.0.0-20210525063256-abc453219eb5
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4
golang.org/x/net v0.0.0-20220418201149-a630d4f3e7a2
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261
golang.org/x/text v0.3.7
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20191008142428-8d021180e987
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20220916014741-473347a5e6e3
google.golang.org/grpc v1.38.0
google.golang.org/protobuf v1.27.1
gopkg.in/fatih/set.v0 v0.2.1
@@ -101,14 +102,18 @@ require (
k8s.io/client-go v0.19.3
k8s.io/cluster-bootstrap v0.19.3
moul.io/http2curl/v2 v2.3.0
yunion.io/x/executor v0.0.0-20211018100936-39a2cd966656
yunion.io/x/jsonutils v1.0.0
yunion.io/x/log v1.0.0
yunion.io/x/ovsdb v0.0.0-20200526071744-27bf0940cbc7
yunion.io/x/pkg v1.0.1-0.20220630095420-9925accd7c5e
yunion.io/x/log v1.0.1-0.20230411060016-feb3f46ab361
yunion.io/x/ovsdb v0.0.0-20230306173834-f164f413a900
yunion.io/x/pkg v1.10.0
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e
yunion.io/x/sqlchemy v1.1.2-0.20220704015412-b0c3988ceaa2
yunion.io/x/structarg v0.0.0-20220312084958-9c6c79c7d1c6
yunion.io/x/structarg v0.0.0-20231017124457-df4d5009457c
)
require (
github.com/google/uuid v1.3.0
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32
yunion.io/x/jsonutils v1.0.1-0.20230613121553-0f3b41e2ef19
yunion.io/x/sqlchemy v1.1.2
)
require (
@@ -175,10 +180,8 @@ require (
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
github.com/googleapis/gnostic v0.4.1 // indirect
github.com/googollee/go-engine.io v0.0.0-20180829091931-e2f255711dcb // indirect
@@ -195,7 +198,8 @@ require (
github.com/lestrrat-go/iter v0.0.0-20200422075355-fc1769541911 // indirect
github.com/lestrrat-go/pdebug v0.0.0-20200204225717-4d6bd78da58d // indirect
github.com/lestrrat/go-pdebug v0.0.0-20180220043741-569c97477ae8 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-colorable v0.1.9 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-tty v0.0.0-20181127064339-e4f871175a2f // indirect
@@ -215,6 +219,7 @@ require (
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/pkg/term v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/prometheus/client_golang v1.12.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
@@ -223,14 +228,15 @@ require (
github.com/rivo/uniseg v0.2.0 // indirect
github.com/ryszard/goskiplist v0.0.0-20150312221310-2dfbae5fcf46 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d // indirect
github.com/smartystreets/assertions v1.2.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.1.1 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/texttheater/golang-levenshtein v0.0.0-20180516184445-d188e65d659e // indirect
github.com/tinylib/msgp v1.1.0 // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect
github.com/tklauser/numcpus v0.4.0 // indirect
github.com/tredoe/osutil/v2 v2.0.0-rc.16 // indirect
github.com/ugorji/go/codec v1.1.7 // indirect
github.com/willf/bitset v1.1.9 // indirect
github.com/willf/bloom v2.0.3+incompatible // indirect
@@ -242,7 +248,7 @@ require (
go.uber.org/zap v1.17.0 // indirect
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
golang.org/x/mod v0.4.2 // indirect
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/tools v0.1.2 // indirect
google.golang.org/api v0.30.0 // indirect
google.golang.org/appengine v1.6.6 // indirect
@@ -250,7 +256,7 @@ require (
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.44.0 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog/v2 v2.2.0 // indirect
k8s.io/utils v0.0.0-20200729134348-d5654de09c73 // indirect

110
go.sum
View File

@@ -240,8 +240,9 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7
github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
github.com/farsightsec/golang-framestream v0.0.0-20181102145529-8a0cb8ba8710 h1:QdyRyGZWLEvJG5Kw3VcVJvhXJ5tZ1MkRgqpJOEZSySM=
github.com/farsightsec/golang-framestream v0.0.0-20181102145529-8a0cb8ba8710/go.mod h1:eNde4IQyEiA5br02AouhEHCu3p3UzrCdFR4LuQHklMI=
github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg=
github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM=
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
github.com/fernet/fernet-go v0.0.0-20180830025343-9eac43b88a5e h1:P10tZmVD2XclAaT9l7OduMH1OLFzTa1wUuUqHZnEdI0=
github.com/fernet/fernet-go v0.0.0-20180830025343-9eac43b88a5e/go.mod h1:2H9hjfbpSMHwY503FclkV/lZTBh2YlOmLLSda12uL8c=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ=
@@ -355,8 +356,10 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
@@ -431,7 +434,6 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGw
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks=
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
@@ -481,13 +483,16 @@ github.com/lestrrat/go-pdebug v0.0.0-20180220043741-569c97477ae8/go.mod h1:VXFH1
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/libvirt/libvirt-go-xml v5.2.0+incompatible h1:ALyVpa0/lFfFaUpb5l0fNBohufmQG6jsOGRCl/nKEi8=
github.com/libvirt/libvirt-go-xml v5.2.0+incompatible/go.mod h1:oBlgD3xOA01ihiK5stbhFzvieyW+jVS6kbbsMVF623A=
github.com/ma314smith/signedxml v0.0.0-20200410192636-c342a2d0ae60 h1:q5rqPuvxdOzg1NC6sls3XSpRokQ5KAmLIYdLW1/kyOo=
github.com/ma314smith/signedxml v0.0.0-20200410192636-c342a2d0ae60/go.mod h1:KEgVcb43+f5KFUH/x6Vd3NROG0AIL2CuKMrIqYsmx6E=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
github.com/ma314smith/signedxml v0.0.0-20210628192057-abc5b481ae1c h1:UPJygtyk491bJJ/DnRJFuzcq9Dl9NSeFrJ7VdiRzMxc=
github.com/ma314smith/signedxml v0.0.0-20210628192057-abc5b481ae1c/go.mod h1:KEgVcb43+f5KFUH/x6Vd3NROG0AIL2CuKMrIqYsmx6E=
github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.9 h1:sqDoxXbdeALODt0DAeJCVp38ps9ZogZEAXjus69YV3U=
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
@@ -512,10 +517,6 @@ github.com/mdlayher/arp v0.0.0-20190313224443-98a83c8a2717/go.mod h1:eOj1DDj3NAZ
github.com/mdlayher/ethernet v0.0.0-20190313224307-5b5fc417d966/go.mod h1:5s5p/sMJ6sNsFl6uCh85lkFGV8kLuIYJCRJLavVJwvg=
github.com/mdlayher/ethernet v0.0.0-20190606142754-0394541c37b7 h1:lez6TS6aAau+8wXUP3G9I3TGlmPFEq2CTxBaRqY6AGE=
github.com/mdlayher/ethernet v0.0.0-20190606142754-0394541c37b7/go.mod h1:U6ZQobyTjI/tJyq2HG+i/dfSoFUt8/aZCM+GKtmFk/Y=
github.com/mdlayher/genetlink v0.0.0-20191004171646-5cf585d3b847/go.mod h1:LNhNWFVJapYK8zEjVHUIle4gy+Oahfc3UtcaqZ8Dz98=
github.com/mdlayher/netlink v0.0.0-20190409211403-11939a169225/go.mod h1:eQB3mZE4aiYnlUsyGGCOpPETfdQq4Jhsgf1fk3cwQaA=
github.com/mdlayher/netlink v0.0.0-20191004170026-3c8695cb0643/go.mod h1:KxeJAFOFLG6AjpyDkQ/iIhxygIUKD+vcwqcnu43w/+M=
github.com/mdlayher/netlink v0.0.0-20191008140946-2a17fd90af51/go.mod h1:KxeJAFOFLG6AjpyDkQ/iIhxygIUKD+vcwqcnu43w/+M=
github.com/mdlayher/raw v0.0.0-20190313224157-43dbcdd7739d/go.mod h1:r1fbeITl2xL/zLbVnNHFyOzQJTgr/3fpf1lJX/cjzR8=
github.com/mdlayher/raw v0.0.0-20190606142536-fef19f00fc18/go.mod h1:7EpbotpCmVZcu+KCX4g9WaRNuu11uyhiW7+Le1dKawg=
github.com/mdlayher/raw v0.0.0-20190606144222-a54781e5f38f h1:Xjvm7UTnKTwrlhbs+8qA6I0v1iX77rY3QxftSgvOVRk=
@@ -526,7 +527,6 @@ github.com/mholt/caddy v0.10.11 h1:s8X+R8DuBbrrMuUTcWSxlDe567B0s5EDmiDBKSYsioY=
github.com/mholt/caddy v0.10.11/go.mod h1:Wb1PlT4DAYSqOEd03MsqkdkXnTxA8v9pKjdpxbqM1kY=
github.com/miekg/dns v1.1.25 h1:dFwPR6SfLtrSwgDcIq2bcU/gVutB4sNApq2HBdqcakg=
github.com/miekg/dns v1.1.25/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
github.com/mikioh/ipaddr v0.0.0-20190404000644-d465c8ab6721/go.mod h1:Ickgr2WtCLZ2MDGd4Gr0geeCH5HybhRJbonOgQpvSxc=
github.com/minio/cli v1.20.0/go.mod h1:bYxnK0uS629N3Bq+AOZZ+6lwF77Sodk4+UL9vNuXhOY=
github.com/minio/minio-go v6.0.14+incompatible h1:fnV+GD28LeqdN6vT2XdGKW8Qe/IfjJDswNVuni6km9o=
github.com/minio/minio-go v6.0.14+incompatible/go.mod h1:7guKYtitv8dktvNUGrhzmNlA5wrAABTQXCoesZdFQO8=
@@ -551,8 +551,8 @@ github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8=
github.com/mozillazg/go-httpheader v0.2.1 h1:geV7TrjbL8KXSyvghnFm+NyTux/hxwueTSrwhe88TQQ=
github.com/mozillazg/go-httpheader v0.2.1/go.mod h1:jJ8xECTlalr6ValeXYdOF8fFUISeBAdw6E61aqQma60=
github.com/mozillazg/go-pinyin v0.15.0 h1:sSwlnsogK/WMzcf0HnjgxyAI4GU6LFqwXnhr77q1Z80=
github.com/mozillazg/go-pinyin v0.15.0/go.mod h1:bO+dztNW6O2lSJdYLha7LO3bujXzjjU3UvKb2IGANfg=
github.com/mozillazg/go-pinyin v0.19.0 h1:p+J8/kjJ558KPvVGYLvqBhxf8jbZA2exSLCs2uUVN8c=
github.com/mozillazg/go-pinyin v0.19.0/go.mod h1:iR4EnMMRXkfpFVV5FMi4FNB6wGq9NV6uDWbUuPhP4Yc=
github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae h1:VeRdUYdCw49yizlSbMEn2SZ+gT+3IUKx8BqxyQdz+BY=
github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg=
github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
@@ -589,6 +589,8 @@ github.com/pkg/term v1.0.0 h1:raTSNJjic7X4n89hhPyLOsgRYczmr3MyezRierWCTa8=
github.com/pkg/term v1.0.0/go.mod h1:6rk0zrj6TXf8MR5fdVFsZMeGM2lxe3tUFLNBRlwX+dk=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
github.com/pquerna/otp v1.2.0 h1:/A3+Jn+cagqayeR3iHs/L62m5ue7710D35zl1zJ1kok=
github.com/pquerna/otp v1.2.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
@@ -635,6 +637,8 @@ github.com/sevlyar/go-daemon v0.1.5 h1:Zy/6jLbM8CfqJ4x4RPr7MJlSKt90f00kNM1D401C+
github.com/sevlyar/go-daemon v0.1.5/go.mod h1:6dJpPatBT9eUwM5VCw9Bt6CdX9Tk6UWvhW3MebLDRKE=
github.com/shirou/gopsutil v3.21.11+incompatible h1:+1+c1VGhc88SSonWP6foOcLhvnKlUeu/erjjvaPEYiI=
github.com/shirou/gopsutil v3.21.11+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
github.com/shirou/gopsutil/v3 v3.22.10 h1:4KMHdfBRYXGF9skjDWiL4RA2N+E8dRdodU/bOZpPoVg=
github.com/shirou/gopsutil/v3 v3.22.10/go.mod h1:QNza6r4YQoydyCfo6rH0blGfKahgibh4dQmV5xdFkQk=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
@@ -643,12 +647,14 @@ github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs
github.com/skip2/go-qrcode v0.0.0-20190110000554-dc11ecdae0a9 h1:lpEzuenPuO1XNTeikEmvqYFcU37GVLl8SRNblzyvGBE=
github.com/skip2/go-qrcode v0.0.0-20190110000554-dc11ecdae0a9/go.mod h1:PLPIyL7ikehBD1OAjmKKiOEhbvWyHGaNDjquXMcYABo=
github.com/smartystreets/assertions v0.0.0-20180607162144-eb5b59917fa2/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs=
github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo=
github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s=
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg=
github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM=
github.com/smartystreets/gunit v0.0.0-20180314194857-6f0d6275bdcd/go.mod h1:XUKj4gbqj2QvJk/OdLWzyZ3FYli0f+MdpngyryX0gcw=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=
@@ -660,16 +666,20 @@ github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/syncthing/syncthing v0.14.48-rc.4/go.mod h1:nw3siZwHPA6M8iSfjDCWQ402eqvEIasMQOE8nFOxy7M=
github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8=
github.com/tatsushid/go-fastping v0.0.0-20160109021039-d7bb493dee3e h1:nt2877sKfojlHCTOBXbpWjBkuWKritFaGIfgQwbQUls=
@@ -691,6 +701,8 @@ github.com/tklauser/numcpus v0.4.0 h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//
github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ=
github.com/tredoe/osutil v0.0.0-20161130133508-7d3ee1afa71c h1:5q7IHeqvAA4hWR1CfpTOS7RFsTDC36TaSZ8Dvc00bPk=
github.com/tredoe/osutil v0.0.0-20161130133508-7d3ee1afa71c/go.mod h1:M/I710pXKQToMdqt/D+mJ4QsnW6WDaajyB6DWFmDXBs=
github.com/tredoe/osutil/v2 v2.0.0-rc.16 h1:5A2SKvyB2c3lhPYUIHyFtu6jbaXlaA3Hu5gWIam8Pik=
github.com/tredoe/osutil/v2 v2.0.0-rc.16/go.mod h1:uLRVx/3pb7Y4RQhG8cQFbPE9ha5r81e6MXpBsxbTAYc=
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
@@ -742,15 +754,13 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ=
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA=
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@@ -805,10 +815,7 @@ golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191003171128-d98b1b443823/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191007182048-72f939374954/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
@@ -827,8 +834,9 @@ golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwY
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/net v0.0.0-20210525063256-abc453219eb5 h1:wjuX4b5yYQnEQHzd+CBcrcC6OVR2J1CN6mUy0oSxIPo=
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220418201149-a630d4f3e7a2 h1:6mzvA99KwZxbOrxww4EvWVQUnN1+xEu9tafK5ZxkYeA=
golang.org/x/net v0.0.0-20220418201149-a630d4f3e7a2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -858,7 +866,6 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190405154228-4b34438f7a67/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190418153312-f0ce4c0180be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -868,15 +875,11 @@ golang.org/x/sys v0.0.0-20190606122018-79a91cf218c4/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190830023255-19e00faab6ad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191003212358-c178f38b412c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -900,6 +903,7 @@ golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -910,13 +914,13 @@ golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261 h1:v6hYoSR9T5oet+pMXwUWkbiVqx/63mlHjefrHmxwfeY=
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b h1:9zKuko04nR4gjZ4+DNjHqRlAJqbJETHwiNKDqTfOjfE=
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -986,9 +990,8 @@ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.zx2c4.com/wireguard v0.0.20190908/go.mod h1:LhfXh5z6bLC2lW2ve6BzYZFwnnsXK3OQjySR0Yh2dO8=
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20191008142428-8d021180e987 h1:26OAgqBTufVr8WKonCEhhjO1oKsYhHv0iM5Dg92G1TM=
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20191008142428-8d021180e987/go.mod h1:7hq1rEDsx7/FWl8IEEnfH2Xhs6M2MNnjUfN0PeI8Rm0=
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20220916014741-473347a5e6e3 h1:ARxNdT6I+00ZyY5yRT/ZECkQti4iGrMZX9dvG/ao/LY=
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20220916014741-473347a5e6e3/go.mod h1:yp4gl6zOlnDGOZeWeDfMwQcsdOIQnMdhuPx9mwwWBL4=
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
@@ -1090,8 +1093,8 @@ gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMy
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/ini.v1 v1.44.0 h1:YRJzTUp0kSYWUVFF5XAbDFfyiqwsl0Vb9R8TVP5eRi0=
gopkg.in/ini.v1 v1.44.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU=
gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/ldap.v3 v3.0.3 h1:YKRHW/2sIl05JsCtx/5ZuUueFuJyoj/6+DGXe3wp6ro=
gopkg.in/ldap.v3 v3.0.3/go.mod h1:oxD7NyBuxchC+SgJDE1Q5Od05eGt29SDQVBmV+HYbzw=
gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
@@ -1145,25 +1148,24 @@ sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
yunion.io/x/executor v0.0.0-20211018100936-39a2cd966656 h1:0zlZD5uhZoIHgLVAWCz2aHaYk2ZrNsACCYD7R6EIBII=
yunion.io/x/executor v0.0.0-20211018100936-39a2cd966656/go.mod h1:Uxuou9WQIeJXNpy7t2fPLL0BYLvLiMvGQwY7Qc6aSws=
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32 h1:v7POYkQwo1XzOxBoIoRVr/k0V9Y5JyjpshlIFa9raug=
yunion.io/x/executor v0.0.0-20230705125604-c5ac3141db32/go.mod h1:Uxuou9WQIeJXNpy7t2fPLL0BYLvLiMvGQwY7Qc6aSws=
yunion.io/x/jsonutils v0.0.0-20190625054549-a964e1e8a051/go.mod h1:4N0/RVzsYL3kH3WE/H1BjUQdFiWu50JGCFQuuy+Z634=
yunion.io/x/jsonutils v1.0.0 h1:ySgXdIoRqUZRYA0t8QVqRkWgV8IWJlh2JtGovqqc+iI=
yunion.io/x/jsonutils v1.0.0/go.mod h1:p0nyMqGA/apTxxyLIU/o1k4V7Vujl2O6ey30L594sYE=
yunion.io/x/jsonutils v1.0.1-0.20230613121553-0f3b41e2ef19 h1:mZh6vuo7oOiOtE5HF4667+XBNnn7uYpmGN5eIgCVMLk=
yunion.io/x/jsonutils v1.0.1-0.20230613121553-0f3b41e2ef19/go.mod h1:VK4Z93dgiKgAijcSqbMKmGaBMJuHulR16Hz4K015ZPo=
yunion.io/x/log v0.0.0-20190514041436-04ce53b17c6b/go.mod h1:+gauLs73omeJAPlsXcevLsJLKixV+sR/E7WSYTSx1fE=
yunion.io/x/log v0.0.0-20190629062853-9f6483a7103d/go.mod h1:LC6f/4FozL0iaAbnFt2eDX9jlsyo3WiOUPm03d7+U4U=
yunion.io/x/log v1.0.0 h1:VPgssPi8Om+KAHjlEjf6RDU86du//yO+X0upu+h6fZM=
yunion.io/x/log v1.0.0/go.mod h1:LC6f/4FozL0iaAbnFt2eDX9jlsyo3WiOUPm03d7+U4U=
yunion.io/x/ovsdb v0.0.0-20200526071744-27bf0940cbc7 h1:gjqNa2uQzIEXyySsbvVz0UltTEbGsnFFlvnzOpCfHdo=
yunion.io/x/ovsdb v0.0.0-20200526071744-27bf0940cbc7/go.mod h1:0vLkNEhlmA64HViPBAnSTUMrx5QP1CLsxXmxDKQ80tc=
yunion.io/x/log v1.0.1-0.20230411060016-feb3f46ab361 h1:c5LyNdhbvBe/92pXs9jgXOU/S+RgYh/DHe538LpT/Mo=
yunion.io/x/log v1.0.1-0.20230411060016-feb3f46ab361/go.mod h1:LC6f/4FozL0iaAbnFt2eDX9jlsyo3WiOUPm03d7+U4U=
yunion.io/x/ovsdb v0.0.0-20230306173834-f164f413a900 h1:Hu/4ERvoWaN6aiFs4h4/yvVBMeVzb3eDaYTxkVx9Kdo=
yunion.io/x/ovsdb v0.0.0-20230306173834-f164f413a900/go.mod h1:0vLkNEhlmA64HViPBAnSTUMrx5QP1CLsxXmxDKQ80tc=
yunion.io/x/pkg v0.0.0-20190620104149-945c25821dbf/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/pkg v0.0.0-20190628082551-f4033ba2ea30/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/pkg v0.0.0-20200814072949-4f1b541857d6/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/pkg v1.0.1-0.20220630095420-9925accd7c5e h1:p/Cb7z6gyJbZKnGMeOPL3pTmnphB9GLCU+8qMsln7qA=
yunion.io/x/pkg v1.0.1-0.20220630095420-9925accd7c5e/go.mod h1:nYOMflWG1wQC6301rGVglQva9bYbJxHThEJUxRAgMFc=
yunion.io/x/pkg v1.10.0 h1:A0L/ebGyF3+z+kXGRifnpMaLX1GSOHwNx6ocLR6cKRw=
yunion.io/x/pkg v1.10.0/go.mod h1:ksCJVQ+DwKrJ5QBEoU8pzrDFfDaZVAFH/iJ6yQCYxJk=
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e h1:v+EzIadodSwkdZ/7bremd7J8J50Cise/HCylsOJngmo=
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e/go.mod h1:0iFKpOs1y4lbCxeOmq3Xx/0AcQoewVPwj62eRluioEo=
yunion.io/x/sqlchemy v1.1.2-0.20220704015412-b0c3988ceaa2 h1:Kz+Np1WHxYIyn2SQJEolFrMifLoT1yNF6J34W0zbRc8=
yunion.io/x/sqlchemy v1.1.2-0.20220704015412-b0c3988ceaa2/go.mod h1:xXVfJLIxxTRTnPEaVIIoRZXqWyO8+takIOYhc+zO5KE=
yunion.io/x/structarg v0.0.0-20220312084958-9c6c79c7d1c6 h1:WuWXhY3DvhdRTzWCJ/kwt3Ss6KIq7+KqJwb+esvNGwU=
yunion.io/x/structarg v0.0.0-20220312084958-9c6c79c7d1c6/go.mod h1:EP6NSv2C0zzqBDTKumv8hPWLb3XvgMZDHQRfyuOrQng=
yunion.io/x/sqlchemy v1.1.2 h1:h44E1ZO3bwiObXZsnCNSTRgXc9xSV86CWINUMs0qDVE=
yunion.io/x/sqlchemy v1.1.2/go.mod h1:uuPVZEyEq3sWd5vf9VjGSy6lZzof22X87OEHw9sddJQ=
yunion.io/x/structarg v0.0.0-20231017124457-df4d5009457c h1:QuLab2kSRECZRxo4Lo2KcYn6XjQFDGaZ1+x0pYDVVwQ=
yunion.io/x/structarg v0.0.0-20231017124457-df4d5009457c/go.mod h1:EP6NSv2C0zzqBDTKumv8hPWLb3XvgMZDHQRfyuOrQng=

View File

@@ -149,6 +149,9 @@ func (apb *SAnsiblePlaybookV2) runPlaybook(ctx context.Context, userCred mcclien
return fmt.Errorf("playbook is already running")
}
// hack: force Sleep 50s to wait some host ssh service started
time.Sleep(50 * time.Second)
var (
privateKey string
err error

View File

@@ -145,10 +145,8 @@ func (h *AuthHandlers) GetRegionsResponse(ctx context.Context, w http.ResponseWr
Domains: []string{},
ReturnFullDomains: false,
Idps: []agapi.SIdp{},
SCommonConfig: agapi.SCommonConfig{
ApiServer: options.Options.ApiServer,
},
EncryptPasswd: true,
EncryptPasswd: true,
ApiServer: options.Options.ApiServer,
}
s := auth.GetAdminSession(ctx, regions[0])
@@ -195,12 +193,10 @@ func (h *AuthHandlers) GetRegionsResponse(ctx context.Context, w http.ResponseWr
// fetch this option directly from Keystone
commonCfg, err := modules.ServicesV3.GetSpecific(s, "common", "config", nil)
if err == nil && commonCfg != nil {
config := agapi.SCommonConfig{}
commonCfg.Unmarshal(&config, "config", "default")
if len(config.ApiServer) > 0 {
ret.ApiServer = config.ApiServer
apiServer, _ := commonCfg.GetString("config", "default", "api_server")
if len(apiServer) > 0 {
ret.ApiServer = apiServer
}
ret.IsForgetLoginUser = config.IsForgetLoginUser
}
return ret, nil
}
@@ -241,11 +237,13 @@ func getStatsInfo(ctx context.Context, req *http.Request) (jsonutils.JSONObject,
}{}
accounts, err := compute_modules.Cloudaccounts.List(s, params)
if err != nil {
if err != nil && httputils.ErrorCode(err) != 403 {
return nil, err
}
ret.Cloudaccounts = accounts.Total
if accounts != nil {
ret.Cloudaccounts = accounts.Total
}
return jsonutils.Marshal(ret), nil
}
@@ -253,7 +251,7 @@ func getStatsInfo(ctx context.Context, req *http.Request) (jsonutils.JSONObject,
func (h *AuthHandlers) getStats(ctx context.Context, w http.ResponseWriter, req *http.Request) {
data, err := getStatsInfo(ctx, req)
if err != nil {
httperrors.NotFoundError(ctx, w, err.Error())
httperrors.GeneralServerError(ctx, w, err)
return
}
body := jsonutils.NewDict()
@@ -359,6 +357,11 @@ func (h *AuthHandlers) doCredentialLogin(ctx context.Context, req *http.Request,
// return nil, errors.Wrap(err, "processSsoLoginData")
// }
} else if body.Contains("verify_code") { // verify by mobile
if h.preLoginHook != nil {
if err = h.preLoginHook(ctx, req, body); err != nil {
return nil, err
}
}
verifyCode, _ := body.GetString("verify_code")
uid, _ := body.GetString("uid")
contactType, _ := body.GetString("contact_type")
@@ -375,13 +378,15 @@ func (h *AuthHandlers) doCredentialLogin(ctx context.Context, req *http.Request,
if httperr.Code == 409 || httperr.Code == 429 {
return nil, err
}
switch httperr.Class {
case "UserNotFound", "WrongPassword":
switch errors.Error(httperr.Class) {
case httperrors.ErrUserNotFound, httperrors.ErrWrongPassword:
return nil, httperrors.NewJsonClientError(httperrors.ErrIncorrectUsernameOrPassword, "incorrect username or password")
case "UserLocked":
case httperrors.ErrUserLocked:
return nil, httperrors.NewJsonClientError(httperrors.ErrUserLocked, "The user has been locked, please contact the administrator")
case "UserDisabled":
case httperrors.ErrUserDisabled:
return nil, httperrors.NewJsonClientError(httperrors.ErrUserDisabled, "The user has been disabled, please contact the administrator")
case httperrors.ErrInvalidIdpStatus:
return nil, httperrors.NewJsonClientError(httperrors.ErrInvalidIdpStatus, "The IDP of user has been disabled or in invalid status")
}
}
return nil, httperrors.NewInvalidCredentialError("invalid credential")
@@ -872,7 +877,8 @@ func getUserInfo2(s *mcclient.ClientSession, uid string, pid string, loginIp str
"created_at", "enable_mfa", "is_system_account",
"last_active_at", "last_login_ip",
"last_login_source",
"password_expires_at", "failed_auth_count", "failed_auth_at", "need_reset_password",
"password_expires_at", "failed_auth_count", "failed_auth_at",
"need_reset_password", "password_reset_hint",
"idps",
"is_local",
} {

View File

@@ -16,9 +16,11 @@ package handler
import (
"context"
"fmt"
"net/http"
"net/url"
"strings"
"time"
"yunion.io/x/log"
@@ -39,14 +41,40 @@ func NewBackendServiceProxyHandler(prefix string) *SBackendServiceProxyHandler {
}
}
func removeLeadingSlash(p string) string {
for len(p) > 0 && p[0] == '/' {
p = p[1:]
}
return p
}
func (h *SBackendServiceProxyHandler) requestManipulator(ctx context.Context, r *http.Request) (*http.Request, error) {
// remove leading prefixes /api/s/<service>
path := r.URL.Path[len("/api/s/"):]
path = removeLeadingSlash(path)
slashPos := strings.Index(path, "/")
if slashPos <= 0 {
return r, httperrors.NewBadRequestError("invalid request URL %s", r.URL.Path)
}
path = path[slashPos:]
if strings.HasPrefix(path, "/r/") {
path = path[len("/r/"):]
path = removeLeadingSlash(path)
slashPos := strings.Index(path, "/")
if slashPos <= 0 {
return r, httperrors.NewBadRequestError("invalid request URL %s", r.URL.Path)
}
path = path[slashPos:]
if strings.HasPrefix(path, "/z/") {
path = path[len("/z/"):]
path = removeLeadingSlash(path)
slashPos := strings.Index(path, "/")
if slashPos <= 0 {
return r, httperrors.NewBadRequestError("invalid request URL %s", r.URL.Path)
}
path = path[slashPos:]
}
}
log.Debugf("Path: %s => %s", r.URL.Path, path)
r.URL = &url.URL{
Path: path,
@@ -57,7 +85,25 @@ func (h *SBackendServiceProxyHandler) requestManipulator(ctx context.Context, r
}
func (h *SBackendServiceProxyHandler) Bind(app *appsrv.Application) {
app.AddReverseProxyHandler(h.prefix, h.fetchReverseEndpoint(), h.requestManipulator)
app.AddReverseProxyHandlerWithCallbackConfig(
h.prefix, h.fetchReverseEndpoint(), h.requestManipulator,
func(method string, hi *appsrv.SHandlerInfo) *appsrv.SHandlerInfo {
if method == "OPTIONS" {
return nil
}
if method == "GET" || method == "PUT" || method == "POST" {
hi.SetProcessTimeout(6 * time.Hour)
}
var worker *appsrv.SWorkerManager
if method == "GET" || method == "HEAD" {
worker = appsrv.NewWorkerManager("apigateway-backend-api-read", 8, appsrv.DEFAULT_BACKLOG, false)
} else {
worker = appsrv.NewWorkerManager("apigateway-backend-api-write", 4, appsrv.DEFAULT_BACKLOG, false)
}
hi.SetWorkerManager(worker)
return hi
},
)
}
func (h *SBackendServiceProxyHandler) fetchReverseEndpoint() *proxy.SEndpointFactory {
@@ -67,9 +113,41 @@ func (h *SBackendServiceProxyHandler) fetchReverseEndpoint() *proxy.SEndpointFac
if len(serviceName) == 0 {
return "", httperrors.NewBadRequestError("no service")
}
path := r.URL.Path
serviceSeg := fmt.Sprintf("/api/s/%s/", serviceName)
pos := strings.Index(path, serviceSeg)
if pos < 0 {
return "", httperrors.NewBadRequestError("malformed URL, expect service")
}
path = path[pos+len(serviceSeg):]
path = removeLeadingSlash(path)
region := FetchRegion(r)
zone := ""
if strings.HasPrefix(path, "r/") {
path = path[len("r/"):]
path = removeLeadingSlash(path)
slashPos := strings.Index(path, "/")
if slashPos <= 0 {
return "", httperrors.NewBadRequestError("malformed URL, expect region")
}
region = path[:slashPos]
path = path[slashPos+1:]
if strings.HasPrefix(path, "z/") {
path = path[len("z/"):]
path = removeLeadingSlash(path)
slashPos := strings.Index(path, "/")
if slashPos <= 0 {
return "", httperrors.NewBadRequestError("malformed URL, expect zone")
}
zone = path[:slashPos]
}
}
endpointType := "internalURL"
session := auth.GetAdminSession(ctx, FetchRegion(r))
ep, err := session.GetServiceURL(serviceName, endpointType, "")
session := auth.GetAdminSession(ctx, region)
if len(zone) > 0 {
session.SetZone(zone)
}
ep, err := session.GetServiceURL(serviceName, endpointType)
if err != nil {
return "", httperrors.NewBadRequestError("invalid service %s: %s", serviceName, err)
}

View File

@@ -22,6 +22,7 @@ import (
"mime/multipart"
"net/http"
"strconv"
"strings"
"time"
"yunion.io/x/jsonutils"
@@ -121,13 +122,23 @@ func imageUploadHandler(ctx context.Context, w http.ResponseWriter, r *http.Requ
return
}
properties := map[string]string{}
prefix := "properties."
// add all other params
for k, v := range p {
if k == "name" || k == "image_size" {
continue
}
if strings.HasPrefix(k, prefix) {
properties[strings.TrimPrefix(k, prefix)] = v
continue
}
params.Add(jsonutils.NewString(v), k)
}
if len(properties) > 0 {
params.Set("properties", jsonutils.Marshal(properties))
}
token := AppContextToken(ctx)
s := auth.GetSession(ctx, token, FetchRegion(r))

View File

@@ -108,6 +108,8 @@ func (h *MiscHandler) Bind(app *appsrv.Application) {
// syslog webservice handlers
app.AddHandler(POST, prefix+"syslog/token", handleSyslogWebServiceToken)
app.AddHandler(POST, prefix+"syslog/message", handleSyslogWebServiceMessage)
// service settings
app.AddHandler(GET, prefix+"service_settings", h.getServiceSettings)
}
func UploadHandlerInfo(method, prefix string, handler func(context.Context, http.ResponseWriter, *http.Request)) *appsrv.SHandlerInfo {

View File

@@ -69,7 +69,7 @@ func fetchReverseEndpoint(serviceName string) *proxy.SEndpointFactory {
f := func(ctx context.Context, r *http.Request) (string, error) {
endpointType := "internalURL"
session := auth.GetAdminSession(ctx, FetchRegion(r))
ep, err := session.GetServiceURL(serviceName, endpointType, "")
ep, err := session.GetServiceURL(serviceName, endpointType)
if err != nil {
return "", err
}

View File

@@ -0,0 +1,81 @@
// 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 handler
import (
"context"
"net/http"
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/appsrv"
"yunion.io/x/onecloud/pkg/httperrors"
"yunion.io/x/onecloud/pkg/mcclient/auth"
"yunion.io/x/onecloud/pkg/mcclient/modules/identity"
)
var settingNames = map[string][]string{
"identity": []string{"no_action_logout_seconds"},
"yunionapi": []string{"enable_organization"},
"image": []string{"enable_pending_delete"},
"compute_v2": []string{"enable_pending_delete"},
"meter": []string{"cost_conversion_available", "enable_prediction", "share_resource_type"},
"common": []string{"api_server", "enable_quota_check", "enable_watermark", "enable_cloud_shell"},
}
func (mh *MiscHandler) getServiceSettings(ctx context.Context, w http.ResponseWriter, req *http.Request) {
s := auth.GetAdminSession(ctx, FetchRegion(req))
types := []string{}
for typ := range settingNames {
types = append(types, typ)
}
params := map[string]interface{}{
"limit": 20,
"scope": "system",
"type": types,
}
resp, err := identity.ServicesV3.List(s, jsonutils.Marshal(params))
if err != nil {
e := httperrors.NewInternalServerError(err.Error())
httperrors.JsonClientError(ctx, w, e)
return
}
services := []struct {
Id string
Type string
}{}
err = jsonutils.Update(&services, resp.Data)
if err != nil {
e := httperrors.NewInternalServerError(err.Error())
httperrors.JsonClientError(ctx, w, e)
return
}
result := map[string]map[string]interface{}{}
for _, service := range services {
result[service.Type] = map[string]interface{}{}
data, err := identity.ServicesV3.GetSpecific(s, service.Id, "config", nil)
if err != nil {
e := httperrors.NewInternalServerError(err.Error())
httperrors.JsonClientError(ctx, w, e)
return
}
names, _ := settingNames[service.Type]
for _, name := range names {
v, _ := data.Get("config", "default", name)
result[service.Type][name] = v
}
}
appsrv.SendJSON(w, jsonutils.Marshal(result))
}

View File

@@ -132,11 +132,11 @@ func handleSyslogWebServiceMessage(ctx context.Context, w http.ResponseWriter, r
httperrors.ForbiddenError(ctx, w, "syslog webservice not enabled")
return
}
resp := fetchSyslogMessage(r)
resp := fetchSyslogMessage(ctx, r)
appsrv.SendJSON(w, resp)
}
func fetchSyslogMessage(r *http.Request) jsonutils.JSONObject {
func fetchSyslogMessage(ctx context.Context, r *http.Request) jsonutils.JSONObject {
token := r.FormValue("token")
date := r.FormValue("date")
eventId := r.FormValue("eventId")
@@ -170,7 +170,7 @@ func fetchSyslogMessage(r *http.Request) jsonutils.JSONObject {
params.Add(jsonutils.NewString(moduleType), "service")
}
sess := auth.GetAdminSession(nil, "")
sess := auth.GetAdminSession(ctx, "")
logs, err := modules.Actions.List(sess, params)
if err != nil {
ret.Code = 2

View File

@@ -16,6 +16,8 @@ package report
import (
"context"
"net"
"os"
"strings"
"time"
@@ -36,33 +38,90 @@ import (
)
type sReport struct {
GenerateName string
UUID string
Version string
OsDist string
OsVersion string
QemuVersion string
CpuArchitecture string
Brands string
HostCnt int64
KvmHostCnt int64
HostCpuCnt int64
HostMemSizeMb int64
BaremetalCnt int64
BaremetalCpuCnt int64
BaremetalMemSizeMb int64
ServerCnt int64
ServerCpuCnt int64
ServerMemSizeMb int64
DiskCnt int64
DiskSizeMb int64
BucketCnt int64
RdsCnt int64
MongoDBCnt int64
KafkaCnt int64
UserCnt int64
ProjectCnt int64
DomainCnt int64
GenerateName string
UUID string
Version string
OsDist string
OsVersion string
QemuVersion string
CpuArchitecture string
Brands string
HostCnt int64
KvmHostCnt int64
VmwareHostCnt int64
HostCpuCnt int64
HostMemSizeMb int64
BaremetalCnt int64
BaremetalCpuCnt int64
BaremetalMemSizeMb int64
BaremetalStorageSizeGb int64
ServerCnt int64
ServerCpuCnt int64
ServerMemSizeMb int64
DiskCnt int64
DiskSizeMb int64
BucketCnt int64
RdsCnt int64
MongoDBCnt int64
KafkaCnt int64
UserCnt int64
ProjectCnt int64
DomainCnt int64
RunningEnv string
}
const (
RUNNING_ENV_KUBERNETES = "kubernetes"
RUNNING_ENV_DOCKER_COMPOSE = "docker-compose"
RUNNING_ENV_UNKNOWN = "unknown"
)
func isInsideDockerCompose() bool {
// hostname likes: c1577eee2aed
DOCKER_HOSTNAME_LEN := 12
hostname := os.Getenv("HOSTNAME")
if len(hostname) != DOCKER_HOSTNAME_LEN {
return false
}
// resolv mysql and keystone host
resolvTimeout := 500 * time.Millisecond
ctx, cancel := context.WithTimeout(context.Background(), resolvTimeout)
defer cancel()
var r net.Resolver
hosts := []string{"mysql", "keystone", "region"}
for _, host := range hosts {
_, err := r.LookupIPAddr(ctx, host)
if err != nil {
return false
}
}
return true
}
func isInsideKubernetes() bool {
k8sHost := os.Getenv("KUBERNETES_SERVICE_HOST")
if len(k8sHost) == 0 {
return false
}
// check /var/run/secrets/kubernetes.io/serviceaccount/ directory
k8sSecDir := "/var/run/secrets/kubernetes.io/serviceaccount/"
if _, err := os.Stat(k8sSecDir); err != nil {
return false
}
return true
}
func getRunningEnv() string {
if isInsideKubernetes() {
return RUNNING_ENV_KUBERNETES
}
if isInsideDockerCompose() {
return RUNNING_ENV_DOCKER_COMPOSE
}
return RUNNING_ENV_UNKNOWN
}
func Report(ctx context.Context, userCred mcclient.TokenCredential, isStart bool) {
@@ -83,12 +142,23 @@ func Report(ctx context.Context, userCred mcclient.TokenCredential, isStart bool
resp, err := compute.Hosts.List(s, jsonutils.Marshal(map[string]interface{}{
"scope": "system",
"hypervisor": api.HYPERVISOR_KVM,
"limit": 20,
"limit": 1,
}))
if err != nil {
return nil, errors.Wrapf(err, "Hosts.List")
}
ret.KvmHostCnt = int64(resp.Total)
resp, err = compute.Hosts.List(s, jsonutils.Marshal(map[string]interface{}{
"scope": "system",
"hypervisor": api.HYPERVISOR_ESXI,
"limit": 1,
}))
if err != nil {
return nil, errors.Wrapf(err, "Hosts.List")
}
ret.VmwareHostCnt = int64(resp.Total)
osDists, osVersions, qemuVersions, archs := []string{}, []string{}, []string{}, []string{}
hosts := []api.HostDetails{}
jsonutils.Update(&hosts, resp.Data)
@@ -147,6 +217,10 @@ func Report(ctx context.Context, userCred mcclient.TokenCredential, isStart bool
ret.RdsCnt, _ = usage.Int("all.rds")
ret.MongoDBCnt, _ = usage.Int("all.mongodb")
ret.KafkaCnt, _ = usage.Int("all.kafka")
ret.BaremetalCnt, _ = usage.Int("baremetals")
ret.BaremetalCpuCnt, _ = usage.Int("baremetals.cpu")
ret.BaremetalMemSizeMb, _ = usage.Int("baremetals.memory")
ret.BaremetalStorageSizeGb, _ = usage.Int("baremetals.storage_gb")
usage, err = identity.IdentityUsages.GetUsage(s, system)
if err != nil {
return nil, errors.Wrapf(err, "IdentityUsages.GetUsage")
@@ -154,6 +228,7 @@ func Report(ctx context.Context, userCred mcclient.TokenCredential, isStart bool
ret.UserCnt, _ = usage.Int("users")
ret.DomainCnt, _ = usage.Int("domains")
ret.ProjectCnt, _ = usage.Int("projects")
ret.RunningEnv = getRunningEnv()
return ret, nil
}
rp, err := func() (*sReport, error) {

View File

@@ -19,11 +19,15 @@ import (
"sync"
"time"
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
api "yunion.io/x/onecloud/pkg/apis/notify"
"yunion.io/x/onecloud/pkg/cloudcommon/consts"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/auth"
npk "yunion.io/x/onecloud/pkg/mcclient/modules/notify"
)
const (
@@ -83,7 +87,7 @@ func (h *APIHelper) RunManually(ctx context.Context) {
func (h *APIHelper) run(ctx context.Context) {
changed, err := h.doSync(ctx)
if err != nil {
log.Errorln(err)
log.Errorf("doSync error: %v", err)
}
if changed {
mssCopy := h.modelSets.CopyJoined()
@@ -107,10 +111,15 @@ func (h *APIHelper) doSync(ctx context.Context) (changed bool, err error) {
mss := h.modelSets.Copy()
r, err := SyncModelSets(mss, s, h.opts)
if err != nil {
return false, err
return false, errors.Wrap(err, "SyncModelSets")
}
h.modelSets = mss
if !r.Correct {
// 发送消息通知
err := sendSyncErrNotify(s)
if err != nil {
log.Errorf("unable to EventNotify: %s", err)
}
return false, errors.Wrap(ErrSync, "incorrect")
}
changed = r.Changed
@@ -131,3 +140,14 @@ func (h *APIHelper) adminClientSession(ctx context.Context) *mcclient.ClientSess
h.mcclientSession = auth.GetAdminSession(ctx, region)
return h.mcclientSession
}
func sendSyncErrNotify(s *mcclient.ClientSession) error {
params := api.NotificationManagerEventNotifyInput{}
params.Event = api.Event.WithAction(api.ActionNetOutOfSync).WithResourceType(api.TOPIC_RESOURCE_NET).String()
params.AdvanceDays = 0
message := &jsonutils.JSONDict{}
message.Add(jsonutils.NewString(consts.GetServiceType()), "service_name")
params.ResourceDetails = message
_, err := npk.Notification.PerformClassAction(s, "event-notify", jsonutils.Marshal(params))
return err
}

View File

@@ -54,6 +54,10 @@ type IModelListParam interface {
ModelParamFilter() jsonutils.JSONObject
}
type IModelListSetParams interface {
SetModelListParams(params *jsonutils.JSONDict) *jsonutils.JSONDict
}
func SyncModelSets(mssOld IModelSets, s *mcclient.ClientSession, opt *Options) (r ModelSetsUpdateResult, err error) {
mss := mssOld.ModelSetList()
mssNews := mssOld.NewEmpty()

View File

@@ -21,6 +21,7 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/timeutils"
"yunion.io/x/onecloud/pkg/cloudcommon/db"
@@ -139,6 +140,9 @@ func GetModels(opts *GetModelsOptions) error {
filter := inter.ModelParamFilter()
params.Update(filter)
}
if inter, ok := opts.ModelSet.(IModelListSetParams); ok {
params = inter.SetModelListParams(params)
}
//XXX
//params.Set(api.LBAGENT_QUERY_ORIG_KEY, jsonutils.NewString(api.LBAGENT_QUERY_ORIG_VAL))
@@ -147,8 +151,8 @@ func GetModels(opts *GetModelsOptions) error {
var err error
listResult, err := opts.ModelManager.List(opts.ClientSession, params)
if err != nil {
return fmt.Errorf("%s: list failed with updated_at.gt('%s'): %s",
manKeyPlural, minUpdatedAt, err)
log.Errorf("%s: list failed with updated_at.gt('%s'): %s", manKeyPlural, minUpdatedAt, err)
return errors.Wrapf(err, "%s list failed with params: %s", manKeyPlural, params.QueryString())
}
entriesJson = append(entriesJson, listResult.Data...)
if listResult.Offset+len(listResult.Data) >= listResult.Total {
@@ -226,8 +230,8 @@ type ModelSetUpdateResult struct {
// ModelSetApplyUpdates applies bSet to aSet.
//
// - PendingDeleted in bSet are removed from aSet
// - Newer models in bSet are updated in aSet
// - PendingDeleted in bSet are removed from aSet
// - Newer models in bSet are updated in aSet
func ModelSetApplyUpdates(aSet, bSet IModelSet) *ModelSetUpdateResult {
r := &ModelSetUpdateResult{
Changed: false,

View File

@@ -23,11 +23,6 @@ type SIdp struct {
IsDefault bool `json:"is_default"`
}
type SCommonConfig struct {
ApiServer string `json:"api_server,allowempty"`
IsForgetLoginUser bool `json:"is_forget_login_user"`
}
type SRegionsReponse struct {
Regions []string `json:"regions,allowempty"`
Domains []string `json:"domains,allowempty"`
@@ -37,5 +32,5 @@ type SRegionsReponse struct {
EncryptPasswd bool `json:"encrypt_passwd"`
SCommonConfig
ApiServer string `json:"api_server,allowempty"`
}

View File

@@ -268,3 +268,14 @@ type ClouduserChangeOwnerInput struct {
// 本地用户Id
UserId string `json:"user_id"`
}
type ClouduserCreateAccessKeyInput struct {
Name string `json:"name"`
}
type ClouduserDeleteAccessKeyInput struct {
AccessKey string `json:"access_key"`
}
type ClouduserListAccessKeyInput struct {
}

View File

@@ -14,8 +14,6 @@
package cloudprovider
import "yunion.io/x/onecloud/pkg/cloudprovider"
// DefaultAction is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudprovider.DefaultAction.
type DefaultAction struct {
// Allow, Block, Log, Count, Alert, Detection, Prevention
@@ -30,6 +28,17 @@ type DefaultAction struct {
ResponseHeaders map[string]string `json:"response_headers"`
}
// ElasticSearchAccessInfo is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudprovider.ElasticSearchAccessInfo.
type ElasticSearchAccessInfo struct {
Domain string `json:"domain"`
PrivateDomain string `json:"private_domain"`
Vip string `json:"vip"`
Port int `json:"port"`
PrivatePort int `json:"private_port"`
KibanaUrl string `json:"kibana_url"`
KibanaPrivateUrl string `json:"kibana_private_url"`
}
// SCdnDomain is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudprovider.SCdnDomain.
type SCdnDomain struct {
// cdn加速域名
@@ -48,14 +57,22 @@ type SCdnDomain struct {
// SCdnOrigin is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudprovider.SCdnOrigin.
type SCdnOrigin struct {
Type string `json:"type"`
Origin string `json:"origin"`
// 源站类型
// domain: 域名类型, cos对象存储源站, ipIP 列表作为源站
// enmu: domain, cos, ip
// required: true
Type string `json:"type"`
// 源站地址
Origin string `json:"origin"`
// 回主源站时 Host 头部
ServerName string `json:"server_name"`
Protocol string `json:"protocol"`
Path string `json:"path"`
Port int `json:"port"`
Enabled string `json:"enabled"`
Priority int `json:"priority"`
// 回源协议
// enmu: http, follow, https
Protocol string `json:"protocol"`
Path string `json:"path"`
Port int `json:"port"`
Enabled string `json:"enabled"`
Priority int `json:"priority"`
}
// SCdnOrigins is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudprovider.SCdnOrigins.
@@ -89,6 +106,8 @@ type SGeographicInfo struct {
type SSubAccount struct {
// 若Account不为空可不传
Name string `json:"name"`
// 描述信息
Desc string `json:"desc"`
// 输入必填,若为空,需要指定子账号名称
Account string `json:"account"`
HealthStatus string `json:"health_status"`
@@ -163,7 +182,7 @@ type ServerVncOutput struct {
// SubAccounts is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudprovider.SubAccounts.
type SubAccounts struct {
// 若输出则是全量子账号列表,若输入,代表允许同步的子账号
Accounts []cloudprovider.SSubAccount `json:"accounts"`
Accounts []SSubAccount `json:"accounts"`
// 若输出是云账号查询到的区域列表,若输入,代表允许同步的区域
Cloudregions []struct {
Id string

View File

@@ -129,6 +129,10 @@ type DiskConfig struct {
// requried: false
Fs string `json:"fs"`
// 关机后自动重置磁盘
// required: false
AutoReset bool `json:"auto_reset"`
// 磁盘存储格式
// enum: qcow2, raw, docker, iso, vmdk, vmdkflatver1, vmdkflatver2, vmdkflat, vmdksparse, vmdksparsever1, vmdksparsever2, vmdksepsparse vhd
// requried: false
@@ -377,6 +381,10 @@ type ServerCreateInput struct {
// required: false
UserData string `json:"user_data"`
// swagger: ignore
// 创建测试数据,不实际创建资源
FakeCreate bool `json:"fake_create"`
// swagger:ignore
// Deprecated
Keypair string `json:"keypair" yunion-deprecated-by:"keypair_id"`
@@ -580,6 +588,8 @@ type GuestBatchMigrateRequest struct {
SkipCpuCheck bool `json:"skip_cpu_check"`
SkipKernelCheck bool `json:"skip_kernel_check"`
EnableTLS *bool `json:"enable_tls"`
MaxBandwidthMb *int64 `json:"max_bandwidth_mb"`
QuciklyFinish *bool `json:"quickly_finish"`
}
type GuestBatchMigrateParams struct {
@@ -590,6 +600,8 @@ type GuestBatchMigrateParams struct {
EnableTLS *bool
RescueMode bool
OldStatus string
MaxBandwidthMb *int64
QuciklyFinish *bool
}
type HostLoginInfo struct {

View File

@@ -80,6 +80,11 @@ type BackupStorageDetails struct {
type BackupStorageListInput struct {
apis.EnabledStatusInfrasResourceBaseListInput
// filter by server_id
ServerId string `json:"server_id"`
// filter by disk_id
DiskId string `json:"disk_id"`
}
type DiskBackupListInput struct {
@@ -107,6 +112,8 @@ type DiskBackupDetails struct {
BackupStorageName string `json:"backup_storage_name"`
// description: 是否是子备份
IsSubBackup bool `json:"is_sub_backup"`
SDiskBackup
}
type DiskBackupCreateInput struct {

View File

@@ -0,0 +1,47 @@
// 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
type BackupstorageResourceInput struct {
// 备份存储ID或Name
BackupstorageId string `json:"backupstorage_id"`
// swagger:ignore
// Deprecated
// filter by backupstorage_id
Backupstorage string `json:"backupstorage" yunion-deprecated-by:"backupstorage_id"`
}
type BackupstorageFilterListInputBase struct {
BackupstorageResourceInput
// 以备份存储名称排序
// pattern:asc|desc
OrderByBackupstorage string `json:"order_by_backupstorage"`
}
type BackupstorageResourceInfo struct {
// 备份存储名称
Backupstorage string `json:"backupstorage"`
// 备份存储类型
BackupstorageType string `json:"backupstorage_type"`
// 备份存储状态
BackupstorageStatus string `json:"backupstorage_status"`
}
type BackupstorageFilterListInput struct {
BackupstorageFilterListInputBase
}

View File

@@ -16,7 +16,6 @@ package compute
import (
"net/http"
"strings"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/regutils"
@@ -66,6 +65,7 @@ type BucketDetails struct {
func (self BucketDetails) GetMetricTags() map[string]string {
ret := map[string]string{
"id": self.Id,
"brand": self.Brand,
"cloudregion": self.Cloudregion,
"cloudregion_id": self.CloudregionId,
@@ -77,11 +77,7 @@ func (self BucketDetails) GetMetricTags() map[string]string {
"status": self.Status,
"tenant": self.Project,
"tenant_id": self.ProjectId,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
"external_id": self.ExternalId,
}
return ret
}

View File

@@ -30,6 +30,12 @@ type CachedImageManagerCacheImageInput struct {
ImageId string `json:"image_id"`
}
type CachedimageUsage struct {
// 此镜像被使用次数
// example: 0
CachedCount int `json:"cached_count"`
}
type CachedimageDetails struct {
apis.SharableVirtualResourceDetails
@@ -56,7 +62,7 @@ type CachedimageDetails struct {
// 此镜像被使用次数
// example: 0
CachedCount int `json:"cached_count"`
CachedimageUsage
}
type CachedImageSetClassMetadataInput struct {

View File

@@ -17,7 +17,6 @@ package compute
import (
"fmt"
"reflect"
"strings"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/gotypes"
@@ -133,6 +132,11 @@ type CloudaccountResourceInfo struct {
// 云账号名称
// example: google-account
Account string `json:"account,omitempty"`
// 云账号状态
AccountStatus string `json:"account_status,omitempty"`
// 云账号监控状态
AccountHealthStatus string `json:"account_health_status,omitempty"`
}
type CloudaccountCreateInput struct {
@@ -146,6 +150,9 @@ type CloudaccountCreateInput struct {
// swagger:ignore
AccountId string
// 跳过重复账号注册检查
SkipDuplicateAccountCheck bool
// 指定云平台品牌, 此参数默认和provider相同
// requried: false
//
@@ -317,21 +324,20 @@ type CloudaccountDetail struct {
ProxySetting proxyapi.SProxySetting `json:"proxy_setting"`
ProjectMappingResourceInfo
// 上次同步耗时
LastSyncCost string
}
func (self CloudaccountDetail) GetMetricTags() map[string]string {
ret := map[string]string{
"id": self.Id,
"cloudaccount_id": self.Id,
"cloudaccount_name": self.Name,
"brand": self.Brand,
"domain_id": self.DomainId,
"project_domain": self.ProjectDomain,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}
@@ -378,9 +384,9 @@ type CloudaccountPerformPrepareNetsInput struct {
type CloudaccountPerformPrepareNetsOutput struct {
CAWireNets []CAWireNet `json:"wire_networks"`
Hosts []CAGuestNet `json:"hosts"`
Guests []CAGuestNet `json:"guests"`
Wires []CAPWire `json:"wires"`
VSwitchs []VSwitch `json:"vswitchs"`
// Guests []CAGuestNet `json:"guests"`
Wires []CAPWire `json:"wires"`
VSwitchs []VSwitch `json:"vswitchs"`
}
type CloudaccountSyncVMwareNetworkInput struct {
@@ -415,10 +421,10 @@ type CAWireNet struct {
SuitableWire string `json:"suitable_wire,allowempty"`
Hosts []CAHostNet `json:"hosts"`
// description: 没有合适的已有网络,推荐的网络配置
HostSuggestedNetworks []CANetConf `json:"host_suggested_networks"`
Guests []CAGuestNet `json:"guests"`
HostSuggestedNetworks []CANetConf `json:"host_suggested_networks"`
// Guests []CAGuestNet `json:"guests"`
// description: 没有合适的已有网络,推荐的网络配置
GuestSuggestedNetworks []CANetConf `json:"guest_suggested_networks"`
// GuestSuggestedNetworks []CANetConf `json:"guest_suggested_networks"`
}
type CAWireConf struct {
@@ -513,14 +519,16 @@ type SyncRangeInput struct {
Force bool `json:"force"`
FullSync bool `json:"full_sync"`
DeepSync bool `json:"deep_sync"`
// 极速模式(差量更新)
Xor bool `json:"xor"`
Region []string `json:"region"`
Zone []string `json:"zone"`
Host []string `json:"host"`
// 按资源类型同步,可输入多个
// enmu: compute, network, loadbalancer, objectstore, rds, cache, nat, nas, waf, mongodb, es, kafka, app, container
Resources []string `json:"resources" choices:"compute|network|loadbalancer|objectstore|rds|cache|nat|nas|waf|mongodb|es|kafka|app|container|eip|tablestore"`
// enmu: project, compute, network, eip, loadbalancer, objectstore, rds, cache, event, cloudid, dnszone, public_ip, intervpcnetwork, saml_auth, quota, nat, nas, waf, mongodb, es, kafka, app, cdn, container, ipv6_gateway, tablestore, modelarts, vpcpeer, misc
Resources []string `json:"resources" choices:"project|compute|network|eip|loadbalancer|objectstore|rds|cache|event|cloudid|dnszone|public_ip|intervpcnetwork|saml_auth|quota|nat|nas|waf|mongodb|es|kafka|app|cdn|container|ipv6_gateway|tablestore|modelarts|vpcpeer|misc"`
}
type SAccountPermission struct {

View File

@@ -141,6 +141,9 @@ type CloudproviderDetails struct {
ReadOnly bool `json:"read_only"`
ProjectMappingResourceInfo
// 上次同步耗时
LastSyncCost string
}
// 云订阅输入参数

View File

@@ -38,6 +38,9 @@ type CloudproviderregionDetails struct {
// 支持服务列表
Capabilities []string `json:"capabilities"`
// 上次同步耗时
LastSyncCost string `json:"last_sync_cost"`
}
type CloudproviderregionListInput struct {

View File

@@ -103,11 +103,12 @@ const (
// 印度
CITY_DELHI = "Delhi" // 德里
CITY_MUMBAI = "Mumbai" //孟买
CITY_KANCHIPURAM = "Kanchipuram" //甘吉布勒姆
CITY_MAHARASHTRA = "Maharashtra" //马哈拉施特拉邦
CITY_JAMNAGAR = "Jamnagar" //贾姆讷格尔
CITY_NAGPUR = "Nagpur" //那格浦尔
CITY_MUMBAI = "Mumbai" // 孟买
CITY_KANCHIPURAM = "Kanchipuram" // 甘吉布勒姆
CITY_MAHARASHTRA = "Maharashtra" // 马哈拉施特拉邦
CITY_JAMNAGAR = "Jamnagar" // 贾姆讷格尔
CITY_NAGPUR = "Nagpur" // 那格浦尔
CITY_HYDERABAD = "Hyderabad" // 海得拉巴
// 美国
CITY_VIRGINIA = "Virginia" //弗吉尼亚
@@ -128,6 +129,8 @@ const (
CITY_SALT_LAKE_CITY = "Salt Lake City" //盐湖城
CITY_LAS_VEGAS = "Las Vegas" //拉斯维加斯
CITY_PHOENIX = "Phoenix" //菲尼克斯
CITY_DALLAS = "Dallas" //达拉斯
CITY_COLUMBUS = "Columbus" //哥伦布
// 英国
CITY_LONDON = "London" //伦敦
@@ -135,7 +138,8 @@ const (
CITY_WEST_SUSSEX = "West Sussex" //西苏塞克斯
// 阿拉伯联合酋长国
CITY_DUBAI = "Dubai" //迪拜
CITY_DUBAI = "Dubai" //迪拜
CITY_ABU_DHABI = "Abu Dhabi" // 阿布扎比
// 德国
CITY_FRANKFURT = "Frankfurt" // 法兰克福
@@ -199,6 +203,15 @@ const (
// 越南
CITY_HO_CHI_MINH = "Ho Chi Minh" //???
// 以色列
CITY_TEL_AVIV = "Tel Aviv" // 拉斯维夫
// 意大利
CITY_MILAN = "Milan" // 米兰
// 西班牙
CITY_MADRID = "Madrid" // 马德里
COUNTRY_CODE_CN = "CN" //中国
COUNTRY_CODE_JP = "JP" //日本
COUNTRY_CODE_SG = "SG" //新加坡
@@ -230,4 +243,7 @@ const (
COUNTRY_CODE_PL = "PL" //波兰
COUNTRY_CODE_FI = "FI" //芬兰
COUNTRY_CODE_BE = "BE" //比利时
COUNTRY_CODE_IL = "IL" //以色列
COUNTRY_CODE_IT = "IT" //意大利
COUNTRY_CODE_ES = "ES" //西班牙
)

View File

@@ -324,6 +324,7 @@ type DBInstanceDetails struct {
func (self DBInstanceDetails) GetMetricTags() map[string]string {
ret := map[string]string{
"id": self.Id,
"rds_id": self.Id,
"rds_name": self.Name,
"zone": self.Zone1Name,
@@ -339,15 +340,11 @@ func (self DBInstanceDetails) GetMetricTags() map[string]string {
"brand": self.Brand,
"domain_id": self.DomainId,
"project_domain": self.ProjectDomain,
"external_id": self.ExternalId,
}
if len(self.IpAddrs) > 0 {
ret["rds_ip"] = strings.ReplaceAll(self.IpAddrs, ",", "|")
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}

View File

@@ -230,11 +230,6 @@ type DiskDetails struct {
// 自动快照策略
Snapshotpolicies []SimpleSnapshotPolicy `json:"snapshotpolicies"`
// 手动快照数量
ManualSnapshotCount int `json:"manual_snapshot_count"`
// 最多可创建手动快照数量
MaxManualSnapshotCount int `json:"max_manual_snapshot_count"`
}
type DiskResourceInfoBase struct {
@@ -259,6 +254,8 @@ type DiskUpdateInput struct {
// 磁盘类型
DiskType string `json:"disk_type"`
// 关机自动重置
AutoReset *bool `json:"auto_reset"`
}
type DiskSaveInput struct {
@@ -317,5 +314,6 @@ type DiskAllocateFromBackupInput struct {
}
type DiskDeleteInput struct {
SkipRecycle *bool
SkipRecycle *bool
EsxiFlatFilePath string
}

View File

@@ -64,7 +64,10 @@ const (
DISK_EXIST = "exist"
)
const DISK_META_EXISTING_PATH = "disk_existing_path"
const (
DISK_META_EXISTING_PATH = "disk_existing_path"
DISK_META_LAST_ATTACHED_HOST = "__disk_last_attached_host"
)
const (
DISK_DRIVER_VIRTIO = "virtio"

View File

@@ -65,6 +65,8 @@ type DnsRecordSetDetails struct {
SDnsRecordSet
TrafficPolicies []DnsRecordPolicy
DnsZone string `json:"dns_zone"`
}
type DnsRecordSetListInput struct {

View File

@@ -15,7 +15,6 @@
package compute
import (
"strings"
"time"
"yunion.io/x/onecloud/pkg/apis"
@@ -40,6 +39,7 @@ type ElasticcacheDetails struct {
func (self ElasticcacheDetails) GetMetricTags() map[string]string {
ret := map[string]string{
"id": self.Id,
"redis_id": self.Id,
"redis_ip": self.PrivateIpAddr,
"redis_name": self.Name,
@@ -55,11 +55,7 @@ func (self ElasticcacheDetails) GetMetricTags() map[string]string {
"brand": self.Brand,
"domain_id": self.DomainId,
"project_domain": self.ProjectDomain,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
"external_id": self.ExternalId,
}
return ret
}

View File

@@ -43,7 +43,9 @@ const (
VM_DETACH_DISK = "detach_disk"
VM_BACKUP_STARTING = "backup_starting"
VM_BACKUP_STOPING = "backup_stopping"
VM_BACKUP_CREATING = "backup_creating"
VM_BACKUP_START_FAILED = "backup_start_failed"
VM_BACKUP_CREATE_FAILED = "backup_create_fail"
VM_DEPLOYING_BACKUP = "deploying_backup"
VM_DEPLOYING_BACKUP_FAILED = "deploging_backup_fail"
@@ -71,6 +73,7 @@ const (
VM_START_MIGRATE = "start_migrate"
VM_MIGRATING = "migrating"
VM_LIVE_MIGRATING = "live_migrating"
VM_MIGRATE_FAILED = "migrate_failed"
VM_CHANGE_FLAVOR = "change_flavor"
@@ -157,6 +160,9 @@ const (
VM_QGA_SET_PASSWORD = "qga_set_password"
VM_QGA_COMMAND_EXECUTING = "qga_command_executing"
VM_QGA_SET_NETWORK = "qga_set_network"
VM_QGA_SET_NETWORK_FAILED = "qga_set_network_failed"
SHUTDOWN_STOP = "stop"
SHUTDOWN_TERMINATE = "terminate"
@@ -330,18 +336,19 @@ const (
VM_AZURE_DEFAULT_LOGIN_USER = "azureuser"
VM_ZSTACK_DEFAULT_LOGIN_USER = "root"
VM_METADATA_APP_TAGS = "app_tags"
VM_METADATA_CREATE_PARAMS = "create_params"
VM_METADATA_LOGIN_ACCOUNT = "login_account"
VM_METADATA_LOGIN_KEY = "login_key"
VM_METADATA_LAST_LOGIN_KEY = "last_login_key"
VM_METADATA_LOGIN_KEY_TIMESTAMP = "login_key_timestamp"
VM_METADATA_OS_ARCH = "os_arch"
VM_METADATA_OS_DISTRO = "os_distribution"
VM_METADATA_OS_NAME = "os_name"
VM_METADATA_OS_VERSION = "os_version"
VM_METADATA_CGROUP_CPUSET = "cgroup_cpuset"
VM_METADATA_ENABLE_MEMCLEAN = "enable_memclean"
VM_METADATA_APP_TAGS = "app_tags"
VM_METADATA_CREATE_PARAMS = "create_params"
VM_METADATA_LOGIN_ACCOUNT = "login_account"
VM_METADATA_LOGIN_KEY = "login_key"
VM_METADATA_LAST_LOGIN_KEY = "last_login_key"
VM_METADATA_LOGIN_KEY_TIMESTAMP = "login_key_timestamp"
VM_METADATA_OS_ARCH = "os_arch"
VM_METADATA_OS_DISTRO = "os_distribution"
VM_METADATA_OS_NAME = "os_name"
VM_METADATA_OS_VERSION = "os_version"
VM_METADATA_CGROUP_CPUSET = "cgroup_cpuset"
VM_METADATA_ENABLE_MEMCLEAN = "enable_memclean"
VM_METADATA_DISABLE_AUTO_MERGE_SNAPSHOT = "disable_auto_merge_snapshot"
)
func Hypervisors2HostTypes(hypervisors []string) []string {

View File

@@ -34,6 +34,8 @@ type GuestDiskDetails struct {
// 磁盘类型
// example: data
DiskType string `json:"disk_type"`
// 关机自动重置
AutoReset bool `json:"auto_reset"`
// 介质类型
// example: ssd
MediumType string `json:"medium_type"`
@@ -90,6 +92,7 @@ type GuestdiskJsonDesc struct {
Dev string `json:"dev"`
IsSSD bool `json:"is_ssd"`
NumQueues uint8 `json:"num_queues"`
AutoReset bool `json:"auto_reset"`
// esxi
ImageInfo struct {

View File

@@ -14,14 +14,16 @@
package compute
type sPair struct {
ID string
type SSubImage struct {
Id string
Name string
MinDiskMB int32
DiskFormat string
}
type SImagesInGuest struct {
RootImage sPair
DataImages []sPair
Id string
Name string
RootImage SSubImage
DataImages []SSubImage
}

View File

@@ -15,9 +15,11 @@
package compute
const (
MIRROR_JOB = "__mirror_job_status"
MIRROR_JOB_READY = "ready"
MIRROR_JOB_FAILED = "failed"
MIRROR_JOB = "__mirror_job_status"
MIRROR_JOB_READY = "ready"
MIRROR_JOB_FAILED = "failed"
MIRROR_JOB_INPROGRESS = "inprogress"
QUORUM_CHILD_INDEX = "__quorum_child_index"
DISK_CLONE_TASK_ID = "__disk_clone_task_id"

View File

@@ -24,6 +24,7 @@ import (
"yunion.io/x/onecloud/pkg/apis"
"yunion.io/x/onecloud/pkg/apis/billing"
"yunion.io/x/onecloud/pkg/apis/cloudcommon/db"
imageapi "yunion.io/x/onecloud/pkg/apis/image"
"yunion.io/x/onecloud/pkg/httperrors"
)
@@ -59,7 +60,7 @@ type ServerListInput struct {
// 列出管理安全组为指定安全组的主机
AdminSecgroup string `json:"admin_security"`
// 列出Hypervisor为指定值的主机
// enum: kvm,esxi,baremetal,aliyun,azure,aws,huawei,ucloud,zstack,openstack,google,ctyun"`
// enum: kvm,esxi,baremetal,aliyun,azure,aws,huawei,ucloud,zstack,openstack,google,ctyun,cloudpods,ecloud,jdcloud,remotefile`
Hypervisor []string `json:"hypervisor"`
// 列出绑定了弹性IPEIP的主机
WithEip *bool `json:"with_eip"`
@@ -77,7 +78,9 @@ type ServerListInput struct {
OrderByIp string `json:"order_by_ip"`
// 根据ip查找机器
IpAddr string `json:"ip_addr"`
IpAddr string `json:"ip_addr" yunion-deprecated-by:"ip_addrs"`
// 根据多个ip查找机器
IpAddrs []string `json:"ip_addrs"`
// 列出可以挂载指定EIP的主机
UsableServerForEip string `json:"usable_server_for_eip"`
@@ -143,6 +146,7 @@ type ServerRebuildRootInput struct {
Password string `json:"password"`
AutoStart *bool `json:"auto_start"`
AllDisks *bool `json:"all_disks"`
LoginAccount string `json:"login_account"`
}
type ServerResumeInput struct {
@@ -185,6 +189,8 @@ type ServerDetails struct {
BackupHostName string `json:"backup_host_name"`
// 备份主机所在宿主机状态
BackupHostStatus string `json:"backup_host_status"`
// 主备机同步状态
BackupGuestSyncStatus string `json:"backup_guest_sync_status"`
// 是否可以回收
CanRecycle bool `json:"can_recycle"`
@@ -244,10 +250,14 @@ type ServerDetails struct {
// 伸缩组id
ScalingGroupId string `json:"scaling_group_id"`
// 监控上报URL
MonitorUrl string `json:"monitor_url"`
}
func (self ServerDetails) GetMetricTags() map[string]string {
ret := map[string]string{
"id": self.Id,
"res_type": "guest",
"is_vm": "true",
"paltform": self.Hypervisor,
@@ -271,9 +281,13 @@ func (self ServerDetails) GetMetricTags() map[string]string {
"project_domain": self.ProjectDomain,
"account": self.Account,
"account_id": self.AccountId,
"external_id": self.ExternalId,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
if strings.HasPrefix(k, db.USER_TAG_PREFIX) {
if strings.Contains(k, "login_key") || strings.Contains(v, "=") {
continue
}
ret[k] = v
}
}
@@ -301,6 +315,7 @@ type GuestDiskInfo struct {
Driver string `json:"driver"`
CacheMode string `json:"cache_mode"`
AioMode string `json:"aio_mode"`
AutoReset bool `json:"auto_reset"`
MediumType string `json:"medium_type"`
StorageType string `json:"storage_type"`
Iops int `json:"iops"`
@@ -425,20 +440,30 @@ type GuestSyncFixNicsInput struct {
}
type GuestMigrateInput struct {
PreferHost string `json:"prefer_host"`
// swagger: ignore
PreferHost string `json:"prefer_host" yunion-deprecated-by:"prefer_host_id"`
PreferHostId string `json:"prefer_host_id"`
AutoStart bool `json:"auto_start"`
IsRescueMode bool `json:"rescue_mode"`
}
type GuestLiveMigrateInput struct {
// swagger: ignore
PreferHost string `json:"prefer_host" yunion-deprecated-by:"prefer_host_id"`
// 指定期望的迁移目标宿主机
PreferHost string `json:"prefer_host"`
PreferHostId string `json:"prefer_host_id"`
// 是否跳过CPU检查默认要做CPU检查
SkipCpuCheck *bool `json:"skip_cpu_check"`
// 是否跳过kernel检查
SkipKernelCheck *bool `json:"skip_kernel_check"`
// 是否启用 tls
EnableTLS *bool `json:"enable_tls"`
// 迁移带宽限制
MaxBandwidthMb *int64 `json:"max_bandwidth_mb"`
// 快速完成,内存同步一定周期后调整 downtime
QuicklyFinish *bool `json:"quickly_finish"`
KeepDestGuestOnFailed *bool `json:"keep_dest_guest_on_failed"`
}
type GuestSetSecgroupInput struct {
@@ -618,6 +643,7 @@ type ServerMigrateForecastInput struct {
LiveMigrate bool `json:"live_migrate"`
SkipCpuCheck bool `json:"skip_cpu_check"`
SkipKernelCheck bool `json:"skip_kernel_check"`
IsRescueMode bool `json:"is_rescue_mode"`
}
type ServerResizeDiskInput struct {
@@ -657,6 +683,9 @@ type ServerDeployInput struct {
// 若虚拟机重置密码后需要重启生效并且当前虚拟机状态为running, 此参数默认为true
// 若虚拟机状态为ready, 指定此参数后,部署完成后,虚拟机会自动启动
AutoStart bool `json:"auto_start"`
// swagger: ignore
LoginAccount string `json:"login_account"`
// swagger: ignore
Restart bool `json:"restart"`
@@ -704,6 +733,8 @@ type ServerChangeConfigInput struct {
type ServerUpdateInput struct {
apis.VirtualResourceBaseUpdateInput
HostnameInput
// 删除保护开关
DisableDelete *bool `json:"disable_delete"`
// 启动顺序
@@ -725,22 +756,23 @@ type ServerUpdateInput struct {
}
type GuestJsonDesc struct {
Name string `json:"name"`
Hostname string `json:"hostname"`
Description string `json:"description"`
UUID string `json:"uuid"`
Mem int `json:"mem"`
Cpu int `json:"cpu"`
Vga string `json:"vga"`
Vdi string `json:"vdi"`
Machine string `json:"machine"`
Bios string `json:"bios"`
BootOrder string `json:"boot_order"`
SrcIpCheck bool `json:"src_ip_check"`
SrcMacCheck bool `json:"src_mac_check"`
IsMaster *bool `json:"is_master"`
IsSlave *bool `json:"is_slave"`
HostId string `json:"host_id"`
Name string `json:"name"`
Hostname string `json:"hostname"`
Description string `json:"description"`
UUID string `json:"uuid"`
Mem int `json:"mem"`
Cpu int `json:"cpu"`
Vga string `json:"vga"`
Vdi string `json:"vdi"`
Machine string `json:"machine"`
Bios string `json:"bios"`
BootOrder string `json:"boot_order"`
SrcIpCheck bool `json:"src_ip_check"`
SrcMacCheck bool `json:"src_mac_check"`
IsMaster *bool `json:"is_master"`
IsSlave *bool `json:"is_slave"`
IsVolatileHost bool `json:"is_volatile_host"`
HostId string `json:"host_id"`
IsolatedDevices []*IsolatedDeviceJsonDesc `json:"isolated_devices"`
@@ -778,7 +810,7 @@ type GuestJsonDesc struct {
UserData string `json:"user_data"`
PendingDeleted bool `json:"pending_deleted"`
ScallingGroupId string `json:"scalling_group_id"`
ScalingGroupId string `json:"scaling_group_id"`
// baremetal
DiskConfig jsonutils.JSONObject `json:"disk_config"`
@@ -795,6 +827,17 @@ type GuestJsonDesc struct {
IsDaemon bool `json:"is_daemon"`
}
type ServerChangeStorageInput struct {
TargetStorageId string `json:"target_storage_id"`
KeepOriginDisk bool `json:"keep_origin_disk"`
}
type ServerChangeStorageInternalInput struct {
ServerChangeStorageInput
Disks []string `json:"disks"`
GuestRunning bool `json:"guest_running"`
}
type ServerChangeDiskStorageInput struct {
DiskId string `json:"disk_id"`
TargetStorageId string `json:"target_storage_id"`
@@ -803,10 +846,16 @@ type ServerChangeDiskStorageInput struct {
type ServerChangeDiskStorageInternalInput struct {
ServerChangeDiskStorageInput
StorageId string `json:"storage_id"`
TargetDiskId string `json:"target_disk_id"`
DiskFormat string `json:"disk_format"`
GuestRunning bool `josn:"guest_running"`
StorageId string `json:"storage_id"`
TargetDiskId string `json:"target_disk_id"`
DiskFormat string `json:"disk_format"`
GuestRunning bool `json:"guest_running"`
TargetDiskDesc *GuestdiskJsonDesc `json:"target_disk_desc"`
}
type ServerCopyDiskToStorageInput struct {
KeepOriginDisk bool `json:"keep_origin_disk"`
GuestRunning bool `json:"guest_running"`
}
type ServerSetExtraOptionInput struct {
@@ -887,17 +936,63 @@ type ServerGetCPUSetCoresResp struct {
HostUsedCores []int `json:"host_used_cores"`
}
type ServerMonitorInput struct {
COMMAND string
QMP bool
}
type ServerQemuInfo struct {
Version string `json:"version"`
Cmdline string `json:"cmdline"`
}
type IPAddress struct {
IPAddress string `json:"ip-address"`
IPAddressType string `json:"ip-address-type"`
Prefix int `json:"prefix"`
}
type IfnameDetail struct {
HardwareAddress string `json:"hardware-address"`
IPAddresses []IPAddress `json:"ip-addresses"`
Name string `json:"name"`
Statistics struct {
RxBytes int `json:"rx-bytes"`
RxDropped int `json:"rx-dropped"`
RxErrs int `json:"rx-errs"`
RxPackets int `json:"rx-packets"`
TxBytes int `json:"tx-bytes"`
TxDropped int `json:"tx-dropped"`
TxErrs int `json:"tx-errs"`
TxPackets int `json:"tx-packets"`
} `json:"statistics"`
}
type ServerQgaSetPasswordInput struct {
Username string
Password string
}
type ServerQgaGuestInfoTaskInput struct {
}
type ServerQgaSetNetworkInput struct {
ServerQgaTimeoutInput
Device string
Ipmask string
Gateway string
}
type ServerQgaGetNetworkInput struct {
}
type ServerQgaTimeoutInput struct {
// qga execute timeout millisecond
Timeout int
}
type ServerQgaCommandInput struct {
ServerQgaTimeoutInput
Command string
}
@@ -909,3 +1004,45 @@ type ServerSetPasswordInput struct {
ResetPassword bool
AutoStart bool
}
type ServerSetLiveMigrateParamsInput struct {
MaxBandwidthMB *int64
DowntimeLimitMS *int64
}
type ServerNicTrafficLimit struct {
Mac string `json:"mac"`
RxTrafficLimit *int64 `json:"rx_traffic_limit"`
TxTrafficLimit *int64 `json:"tx_traffic_limit"`
}
type GuestAddSubIpsInput struct {
Mac string `json:"mac"`
IpAddr string `json:"ip_addr"`
Count int `json:"count"`
SubIps []string `json:"sub_ips"`
Reserved bool `json:"reserved"`
AllocDir IPAllocationDirection `json:"alloc_dir"`
}
type NetworkAddrConf struct {
Id string `json:"id"`
Type string `json:"type"`
IpAddr string `json:"ip_addr"`
Masklen int `json:"masklen"`
Gateway string `json:"gateway"`
}
type ServerLoginInfoInput struct {
PrivateKey string `json:"private_key"`
}
type ServerLoginInfoOutput struct {
Username string `json:"username"`
Updated string `json:"updated"`
LoginKey string `json:"login_key"`
Keypair string `json:"keypair"`
Password string `json:"password"`
}

View File

@@ -15,7 +15,7 @@
package compute
import (
"strings"
"time"
"yunion.io/x/jsonutils"
@@ -69,13 +69,14 @@ type HostListInput struct {
StorageFilterListInput
UsableResourceListInput
BackupstorageFilterListInput
// filter by ResourceType
ResourceType string `json:"resource_type"`
// filter by mac of any network interface
AnyMac string `json:"any_mac"`
// filter by ip of any network interface
AnyIp string `json:"any_ip"`
AnyIp []string `json:"any_ip"`
// filter storages not attached to this host
StorageNotAttached *bool `json:"storage_not_attached"`
// filter by Hypervisor
@@ -232,6 +233,7 @@ type HostDetails struct {
func (self HostDetails) GetMetricTags() map[string]string {
ret := map[string]string{
"id": self.Id,
"host_id": self.Id,
"host_ip": self.AccessIp,
"host": self.Name,
@@ -248,11 +250,7 @@ func (self HostDetails) GetMetricTags() map[string]string {
"account": self.Account,
"res_type": "host",
"account_id": self.AccountId,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
"external_id": self.ExternalId,
}
return ret
}
@@ -279,6 +277,9 @@ type HostResourceInfo struct {
// 宿主机序列号
HostSN string `json:"host_sn"`
// 宿主是否启用
HostEnabled bool `json:"host_enabled"`
// 宿主机状态
HostStatus string `json:"host_status"`
@@ -416,6 +417,9 @@ type HostCreateInput struct {
// 新建带IPMI信息的物理机时不进行IPMI信息探测
NoProbe *bool `json:"no_probe"`
// 物理机不带 BMC 控制器
NoBMC bool `json:"no_bmc"`
// host uuid
Uuid string `json:"uuid"`
@@ -457,6 +461,7 @@ type HostUpdateInput struct {
HostAccessAttributes
HostSizeAttributes
HostIpmiAttributes
HostnameInput
// IPMI info
IpmiInfo jsonutils.JSONObject `json:"ipmi_info"`
@@ -523,3 +528,96 @@ type HostAutoMigrateInput struct {
AutoMigrateOnHostDown string `json:"auto_migrate_on_host_down"`
AutoMigrateOnHostShutdown string `json:"auto_migrate_on_host_shutdown"`
}
type HostNetifInput struct {
Mac string `json:"mac"`
VlanId int `json:"vlan_id"`
}
type HostAddNetifInput struct {
HostNetifInput
// Deprecated
Wire string `json:"wire" yunion-deprecated-by:"wire_id"`
WireId string `json:"wire_id"`
IpAddr string `json:"ip_addr"`
Rate int `json:"rate"`
NicType string `json:"nic_type"`
Index int8 `json:"index"`
LinkUp string `json:"link_up"`
Mtu int16 `json:"mtu"`
Reset *bool `json:"reset"`
Interface *string `json:"interface"`
Bridge *string `json:"bridge"`
Reserve *bool `json:"reserve"`
RequireDesignatedIp *bool `json:"require_designated_ip"`
}
type HostEnableNetifInput struct {
HostNetifInput
// Deprecated
Network string `json:"network" yunion-deprecated-by:"network_id"`
NetworkId string `json:"network_id"`
IpAddr string `json:"ip_addr"`
AllocDir string `json:"alloc_dir"`
NetType string `json:"net_type"`
Reserve *bool `json:"reserve"`
RequireDesignatedIp *bool `json:"require_designated_ip"`
}
type HostDisableNetifInput struct {
HostNetifInput
Reserve *bool `json:"reserve"`
}
type HostRemoveNetifInput struct {
HostNetifInput
Reserve *bool `json:"reserve"`
}
type HostError struct {
Type string
Id string
Name string
Content string
Time time.Time
}
type HostSyncErrorsInput struct {
HostErrors []HostError
}
type HostLoginInfoInput struct {
}
type HostLoginInfoOutput struct {
Ip string `json:"ip"`
Username string `json:"username"`
Password string `json:"password"`
}
type HostSetCommitBoundInput struct {
CpuCmtbound *float32
MemCmtbound *float32
}

View File

@@ -0,0 +1,47 @@
// 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/pkg/apis"
)
type HostBackupstorageDetails struct {
HostJointResourceDetails
SHostBackupstorage
// 存储名称
Backupstorage string `json:"backupstorage"`
// 存储大小
CapacityMb int64 `json:"capacity_mb"`
// 存储类型
// example: local
StorageType string `json:"storage_type"`
// 是否启用
Enabled bool `json:"enabled"`
}
type HostBackupstorageListInput struct {
HostJointsListInput
BackupstorageFilterListInput
}
type HostBackupstorageCreateInput struct {
apis.JoinResourceBaseCreateInput
BackupstorageId string `json:"backupstorage_id"`
HostId string `json:"host_id"`
}

View File

@@ -27,7 +27,8 @@ type HostJointResourceDetailsBase struct {
type HostJointResourceDetails struct {
apis.JointResourceBaseDetails
HostJointResourceDetailsBase
// HostJointResourceDetailsBase
HostResourceInfo
}
type HostJointsListInput struct {

View File

@@ -53,6 +53,7 @@ type KubeClusterDetails struct {
func (self KubeClusterDetails) GetMetricTags() map[string]string {
ret := map[string]string{
"id": self.ExternalClusterId,
"res_type": "kube_cluster",
"cluster_id": self.ExternalClusterId,
"cluster_name": self.Name,
@@ -64,6 +65,7 @@ func (self KubeClusterDetails) GetMetricTags() map[string]string {
"project_domain": self.ProjectDomain,
"account": self.Account,
"account_id": self.AccountId,
"external_id": self.ExternalId,
}
return ret
}

View File

@@ -22,6 +22,8 @@ type LoadbalancerClusterDetails struct {
WireResourceInfoBase
SLoadbalancerCluster
RefCounts map[string]int
}
type LoadbalancerClusterResourceInfo struct {

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