Compare commits

...

442 Commits

Author SHA1 Message Date
Zexi Li
b205b930ce Merge pull request #16250 from swordqiu/automated-cherry-pick-of-#16249-upstream-release-3.10
Automated cherry pick of #16249: fix(region): not sync update netinterface wire_id when merge wires
2023-03-20 10:13:33 +08:00
Zexi Li
7da424a525 Merge pull request #16256 from wanyaoqi/automated-cherry-pick-of-#16255-upstream-release-3.10
Automated cherry pick of #16255: fix(region): get catalog data by region id
2023-03-20 10:12:03 +08:00
Zexi Li
80f2fa16e8 Merge pull request #16259 from wanyaoqi/automated-cherry-pick-of-#16258-upstream-release-3.10
Automated cherry pick of #16258: fix(vpcagent): import ovn package in vpcagent service.go
2023-03-20 10:11:23 +08:00
wanyaoqi
f029eccbf9 fix(vpcagent): import ovn package in vpcagent service.go
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-20 10:00:28 +08:00
wanyaoqi
38bcbd8a53 fix(region): get catalog data by region id
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-19 21:53:46 +08:00
Qiu Jian
fd4f83a8b5 fix(region): not sync update netinterface wire_id when merge wires 2023-03-17 22:23:45 +08:00
Jian Qiu
fa82d0643a fix: avoid dup sync table revisit (#16247)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-16 22:22:51 +08:00
wanyaoqi
230a914f5d fix(host): kvm detect and iommu probe (#16244)
- 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:36 +08:00
Zexi Li
20e6a62397 Merge pull request #16239 from zexi/automated-cherry-pick-of-#16238-upstream-release-3.10
Automated cherry pick of #16238: fix(monitor): set wrong resType when query
2023-03-16 16:03:50 +08:00
Zexi Li
b62e098d93 fix(monitor): set wrong resType when query 2023-03-15 20:26:56 +08:00
Zexi Li
2e6a3b75fa Merge pull request #16236 from gouqi11/automated-cherry-pick-of-#16235-upstream-release-3.10
Automated cherry pick of #16235: fix(notify): fixEmailQueueBug
2023-03-15 16:38:31 +08:00
mhf
8b6eccf56a fix(notify): fixEmailQueueBug 2023-03-15 16:36:26 +08:00
Zexi Li
2196d27835 Merge pull request #16221 from bingocmp/automated-cherry-pick-of-#16220-upstream-release-3.10
Automated cherry pick of #16220: feat:support for setting custom resource-id
2023-03-15 10:25:42 +08:00
Zexi Li
7c7a7787dd Merge pull request #16226 from swordqiu/automated-cherry-pick-of-#16225-upstream-release-3.10
Automated cherry pick of #16225: fix: fail to create vm with guest_image
2023-03-15 10:12:41 +08:00
Zexi Li
ca203fffe3 Merge pull request #16232 from wanyaoqi/automated-cherry-pick-of-#16231-upstream-release-3.10
Automated cherry pick of #16231: fix(host): download sparse file truncate first
2023-03-15 10:11:58 +08:00
屈轩
e50290b3c5 fix(region): vender update (#16229) 2023-03-14 21:56:23 +08:00
wanyaoqi
59567c3b15 fix(host-health): simplify host health main.go (#16223)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-14 21:53:35 +08:00
wanyaoqi
a803ee1e75 fix(host): download sparse file truncate first
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-14 20:56:21 +08:00
Qiu Jian
b3b9ea2b3f fix: fail to create vm with guest_image 2023-03-14 20:16:25 +08:00
Zexi Li
90673698e9 Merge pull request #16217 from wanyaoqi/automated-cherry-pick-of-#16189-upstream-release-3.10
Automated cherry pick of #16189: fix(region,host): host health misc fix
2023-03-14 12:33:45 +08:00
李锐
3c5a26c7a2 feat:support for setting custom resource-id 2023-03-14 11:21:56 +08:00
Zexi Li
5495489ab0 Merge pull request #16218 from gouqi11/automated-cherry-pick-of-#16216-upstream-release-3.10
Automated cherry pick of #16216: fix(notify): aliyunSmsdriver
2023-03-13 17:51:14 +08:00
mhf
28d9bb77ad fix(notify): aliyunSmsdriver 2023-03-13 17:41:16 +08:00
wanyaoqi
8d18ede79d fix(region,host): host health misc fix
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-13 17:28:32 +08:00
Zexi Li
82391fba04 Merge pull request #16210 from ioito/automated-cherry-pick-of-#16209-upstream-release-3.10
Automated cherry pick of #16209: fix(region): aws dns zone name
2023-03-13 14:55:21 +08:00
Zexi Li
99c08dae39 Merge pull request #16213 from swordqiu/automated-cherry-pick-of-#16212-upstream-release-3.10
Automated cherry pick of #16212: fix: minor fixes 20230313
2023-03-13 14:54:16 +08:00
Qiu Jian
08f76f5320 fix: minor fixes 20230313 2023-03-13 12:48:02 +08:00
ioito
06e07f6a18 fix(region): aws dns zone name 2023-03-13 11:26:31 +08:00
Jian Qiu
d1e6b14778 fix: add vm integrity check notify (#16206)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-13 09:59:44 +08:00
Jian Qiu
8d3e3e970b fix: prevent duplicate table sync (#16203)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-13 09:08:11 +08:00
Zexi Li
84d851be11 Merge pull request #16201 from wanyaoqi/automated-cherry-pick-of-#16200-upstream-release-3.10
Automated cherry pick of #16200: fix(host): set medium type on storage create
2023-03-12 23:21:45 +08:00
Zexi Li
152189283c Merge pull request #16191 from swordqiu/automated-cherry-pick-of-#16190-upstream-release-3.10
Automated cherry pick of #16190: fix: storecli missing lv device name
2023-03-12 23:20:51 +08:00
Zexi Li
72e950284f Merge pull request #16194 from swordqiu/automated-cherry-pick-of-#16193-upstream-release-3.10
Automated cherry pick of #16193: fix: refine dashboard policy
2023-03-12 23:20:00 +08:00
Zexi Li
507b1486a0 Merge pull request #16197 from swordqiu/automated-cherry-pick-of-#16196-upstream-release-3.10
Automated cherry pick of #16196: feature: compose guest image with existing images
2023-03-12 23:19:12 +08:00
wanyaoqi
75ad656f9d fix(host): set medium type on storage create
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-12 22:47:29 +08:00
Qiu Jian
639f197ceb fix: refine dashboard policy 2023-03-12 15:54:58 +08:00
Qiu Jian
45ce33b553 feature: compose guest image with existing images 2023-03-12 15:28:59 +08:00
Qiu Jian
ab17488711 fix: storecli missing lv device name 2023-03-11 08:43:50 +08:00
Zexi Li
cd07ea1541 Merge pull request #16187 from ioito/automated-cherry-pick-of-#16186-upstream-release-3.10
Automated cherry pick of #16186: fix(region): add h3c
2023-03-10 13:40:02 +08:00
ioito
fb39f6e2fc fix(region): add h3c 2023-03-09 15:49:16 +08:00
Zexi Li
bf68f83c6e Merge pull request #16185 from gouqi11/automated-cherry-pick-of-#16183-upstream-release-3.10
Automated cherry pick of #16183: fix(cloudmon): hcso monitor make mod
2023-03-09 14:54:40 +08:00
Zexi Li
4c1b53f087 Merge pull request #16182 from gouqi11/automated-cherry-pick-of-#16169-upstream-release-3.10
Automated cherry pick of #16169: fix(nofiy): mobileAndEmailBug
2023-03-09 14:54:12 +08:00
mhf
d67a496203 fix(cloudmon): hcso monitor make mod 2023-03-09 14:52:02 +08:00
mhf
f35abb4d7b fix(nofiy): mobileAndEmailBug 2023-03-09 12:01:28 +08:00
Jian Qiu
773cac165c feature: allow network update wire_id (#16125)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-09 11:08:22 +08:00
Zexi Li
b18544a4b2 Merge pull request #16159 from ioito/automated-cherry-pick-of-#16158-upstream-release-3.10
Automated cherry pick of #16158: fix(region): apsara projects sync
2023-03-09 00:08:55 +08:00
Zexi Li
883b8687eb Merge pull request #16176 from ioito/automated-cherry-pick-of-#16175-upstream-release-3.10
Automated cherry pick of #16175: fix(notify): attachment name
2023-03-08 13:13:05 +08:00
Zexi Li
b39235140d Merge pull request #16177 from zexi/sched-forecast-reason
fix(scheduler): storage failed reason isn't showed in forecast result
2023-03-08 13:06:09 +08:00
Zexi Li
41125025db fix(scheduler): storage failed reason isn't showed in forecast result 2023-03-08 13:01:25 +08:00
ioito
3af8d74d92 fix(notify): attachment name 2023-03-08 11:58:49 +08:00
Zexi Li
601b56da74 Merge pull request #16130 from swordqiu/automated-cherry-pick-of-#16129-upstream-release-3.10
Automated cherry pick of #16129: fix: logclient request add service name context
2023-03-08 11:16:05 +08:00
Zexi Li
af644e548e Merge pull request #16168 from ioito/automated-cherry-pick-of-#16167-upstream-release-3.10
Automated cherry pick of #16167: fix(region): lb project id
2023-03-08 11:15:39 +08:00
Zexi Li
d80f855a86 Merge pull request #16163 from zexi/automated-cherry-pick-of-#16161-upstream-release-3.10
Automated cherry pick of #16161: fix(baremetal): not update hypervisor host's status
2023-03-08 11:14:56 +08:00
Jian Qiu
91bc94ac34 fix: zero clean disk add logs (#16172)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-08 09:41:22 +08:00
wanyaoqi
314d2d18d7 fix(host): tls live migrate disable mulitfd (#16156)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-08 04:37:01 +08:00
ioito
045f95cf80 fix(region): lb project id 2023-03-07 17:55:28 +08:00
Zexi Li
67ae249c0d fix(baremetal): not update hypervisor host's status 2023-03-07 16:30:59 +08:00
ioito
0503097df4 fix(region): apsara projects sync 2023-03-07 14:47:43 +08:00
Zexi Li
a04d29983f Merge pull request #16153 from zexi/automated-cherry-pick-of-#16152-upstream-release-3.10
Automated cherry pick of #16152: fix(monitor): balancer pair ignored error
2023-03-07 14:05:08 +08:00
Zexi Li
9251140e17 fix(monitor): balancer pair ignored error 2023-03-07 13:48:52 +08:00
Zexi Li
0d2ff98dd8 Merge pull request #16148 from wanyaoqi/automated-cherry-pick-of-#16147-upstream-release-3.10
Automated cherry pick of #16147: chore: update host and lbagent base image
2023-03-07 10:23:39 +08:00
Zexi Li
3d9afec64a Merge pull request #16146 from gouqi11/automated-cherry-pick-of-#16144-upstream-release-3.10
Automated cherry pick of #16144: fix(cloudmon): add HCSO base monitor
2023-03-07 10:22:37 +08:00
Zexi Li
c70dbd8261 Merge pull request #16150 from wanyaoqi/automated-cherry-pick-of-#16149-upstream-release-3.10
Automated cherry pick of #16149: chore: update ovsdb go mod vendor
2023-03-07 10:22:04 +08:00
wanyaoqi
350a6e8681 chore: update ovsdb go mod vendor
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-07 10:11:37 +08:00
wanyaoqi
d6e7851e7a chore: update host and lbagent base image
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-06 21:35:44 +08:00
mhf
f08db366d5 fix(cloudmon): add HCSO base monitor 2023-03-06 20:02:08 +08:00
Zexi Li
fdd708afad Merge pull request #16133 from ioito/automated-cherry-pick-of-#16132-upstream-release-3.10
Automated cherry pick of #16132: fix(keystone): support user filter by role project
2023-03-06 16:41:01 +08:00
Zexi Li
5bd9a0331a Merge pull request #16135 from gouqi11/automated-cherry-pick-of-#16134-upstream-release-3.10
Automated cherry pick of #16134: fix(notify): alert notification
2023-03-06 16:40:31 +08:00
Zexi Li
e990f0cf03 Merge pull request #16138 from zexi/automated-cherry-pick-of-#16136-upstream-release-3.10
Automated cherry pick of #16136: fix(mcclient): add FetchKeypairBySession method
2023-03-06 16:26:37 +08:00
Zexi Li
b49188e065 fix(mcclient): add FetchKeypairBySession method 2023-03-06 16:25:14 +08:00
mhf
45a1303595 fix(notify): alert notification 2023-03-06 10:57:58 +08:00
ioito
533e6d1d18 fix(keystone): support user filter by role project 2023-03-06 10:30:59 +08:00
QIU Jian
c3f94b60ec fix: logclient request add service name context 2023-03-05 02:42:38 +08:00
Jian Qiu
bb5c1b06c2 fix: hostman StartService() (#16127)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-04 01:44:36 +08:00
Zexi Li
71fd37a7ad Merge pull request #16123 from wanyaoqi/automated-cherry-pick-of-#16122-upstream-release-3.10
Automated cherry pick of #16122: fix(region): set disk default cache mode none
2023-03-03 17:16:42 +08:00
Zexi Li
f17aa2c5be Merge pull request #16120 from ioito/automated-cherry-pick-of-#16118-upstream-release-3.10
Automated cherry pick of #16118: fix(cloudmon): support collect history metric
2023-03-03 17:16:03 +08:00
wanyaoqi
f647e10a6b fix(region): set disk default cache mode none
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-03 15:56:48 +08:00
ioito
89737bc808 fix(cloudmon): support collect history metric 2023-03-03 14:54:55 +08:00
Zexi Li
435d6b7d5a Merge pull request #16097 from ioito/automated-cherry-pick-of-#16096-upstream-release-3.10
Automated cherry pick of #16096: fix(region): openstack compute api version
2023-03-03 10:49:06 +08:00
Zexi Li
17998f248f Merge pull request #16094 from wanyaoqi/automated-cherry-pick-of-#16093-upstream-release-3.10
Automated cherry pick of #16093: fix(host): check shared file storage mount point
2023-03-03 10:44:45 +08:00
Zexi Li
b63d9a5077 Merge pull request #16102 from wanyaoqi/automated-cherry-pick-of-#16101-upstream-release-3.10
Automated cherry pick of #16101: fix(host): dest guest load pci addresses on live migrate
2023-03-03 10:43:33 +08:00
Zexi Li
9891fa1df8 Merge pull request #16111 from wanyaoqi/automated-cherry-pick-of-#16103-upstream-release-3.10
Automated cherry pick of #16103: fix(host): load existing guests desc
2023-03-03 10:42:56 +08:00
Zexi Li
bb0ecb1d61 Merge pull request #16109 from ioito/automated-cherry-pick-of-#16108-upstream-release-3.10
Automated cherry pick of #16108: fix(keystone): filter users by role assignment domain
2023-03-03 10:30:23 +08:00
Zexi Li
069b94c004 Merge pull request #16113 from wanyaoqi/automated-cherry-pick-of-#16112-upstream-release-3.10
Automated cherry pick of #16112: fix(host): start daemon guest on guest not running
2023-03-03 10:30:01 +08:00
Zexi Li
aa05145df1 Merge pull request #16115 from gouqi11/automated-cherry-pick-of-#16114-upstream-release-3.10
Automated cherry pick of #16114: fix(notify):fixInitSubscriberData
2023-03-03 10:29:27 +08:00
mhf
918a6c75b6 fix(notify):fixInitSubscriberData 2023-03-02 20:08:06 +08:00
wanyaoqi
557e576865 fix(host): start daemon guest on guest not running
Check guest status on Start daemon server.
StartGuest on guest status running will restart guest.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-02 17:53:28 +08:00
wanyaoqi
e0eb120670 fix(host): load existing guests desc
init device desc after load pci infos

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-02 16:07:35 +08:00
ioito
5c44a3586e fix(keystone): filter users by role assignment domain 2023-03-02 14:33:50 +08:00
ioito
ef207237d0 fix(region): openstack compute api version 2023-03-02 11:01:43 +08:00
Jian Qiu
412a5cba64 fix: three member policy system violation check (#16105)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-03-02 08:58:23 +08:00
wanyaoqi
4ba0c694ff fix(host): dest guest load pci addresses on live migrate
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-01 23:21:54 +08:00
wanyaoqi
84d0a0f122 fix(host): check shared file storage mount point
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-01 17:39:06 +08:00
Zexi Li
2b433e7a0a Merge pull request #16088 from zexi/monitor-query-page
fix(monitor): rewrite slimit and soffset logic
2023-03-01 17:36:07 +08:00
Zexi Li
5bde56fae6 fix(monitor): rewrite slimit and soffset logic 2023-03-01 17:23:00 +08:00
Zexi Li
58935a0789 Merge pull request #16082 from gouqi11/automated-cherry-pick-of-#16081-upstream-release-3.10
Automated cherry pick of #16081: fix(notify): addMissingActionTranslate
2023-03-01 16:32:02 +08:00
Zexi Li
9f13bbb62c Merge pull request #16080 from gouqi11/automated-cherry-pick-of-#16062-upstream-release-3.10
Automated cherry pick of #16062: fix(notify): bugFix
2023-03-01 16:30:58 +08:00
Zexi Li
999aa1c53b Merge pull request #16086 from zexi/automated-cherry-pick-of-#16085-upstream-release-3.10
Automated cherry pick of #16085: fix(monitor): skip check series options
2023-03-01 16:02:44 +08:00
Zexi Li
1bc52997aa fix(monitor): skip check series options 2023-03-01 15:51:33 +08:00
mhf
fdd23693b7 fix(notify): addMissingActionTranslate 2023-03-01 14:58:31 +08:00
Zexi Li
3fbc48b2d5 Merge pull request #16078 from swordqiu/automated-cherry-pick-of-#16077-upstream-release-3.10
Automated cherry pick of #16077: fix: better prompt info for user failed auth due to invalid idp status
2023-03-01 10:12:08 +08:00
mhf
8a51904875 fix(notify): bugFix 2023-03-01 10:10:40 +08:00
Zexi Li
6a1741baab Merge pull request #16076 from swordqiu/automated-cherry-pick-of-#16075-upstream-release-3.10
Automated cherry pick of #16075: fix: allow add esxi as onecloud lb backend
2023-03-01 10:10:32 +08:00
Qiu Jian
7f165e84a8 fix: better prompt info for user failed auth due to invalid idp status 2023-03-01 01:42:24 +08:00
Qiu Jian
635b0f292c fix: allow add esxi as onecloud lb backend 2023-03-01 00:42:45 +08:00
Zexi Li
e1375a0a10 fix(monitor): query resources according by listing region resources (#16073) 2023-03-01 00:03:44 +08:00
Zexi Li
6b58717024 Merge pull request #16067 from ioito/automated-cherry-pick-of-#16066-upstream-release-3.10
Automated cherry pick of #16066: fix(region): vmware template image size
2023-02-28 23:45:04 +08:00
Zexi Li
f91eb3bdc7 Merge pull request #16064 from wanyaoqi/automated-cherry-pick-of-#16063-upstream-release-3.10
Automated cherry pick of #16063: feat(region): vga gpus
2023-02-28 23:44:27 +08:00
Zexi Li
3fe01318d6 Merge pull request #16070 from wanyaoqi/automated-cherry-pick-of-#16069-upstream-release-3.10
Automated cherry pick of #16069: fix(region): guest change storage
2023-02-28 23:43:23 +08:00
wanyaoqi
36d871aaf9 fix(region): guest change storage
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-28 21:44:51 +08:00
ioito
61d5f7301a fix(region): vmware template image size 2023-02-28 19:49:10 +08:00
wanyaoqi
db2b860a55 feat(region): vga gpus
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-28 18:17:02 +08:00
Zexi Li
0a43a363bf Merge pull request #16060 from gouqi11/automated-cherry-pick-of-#16059-upstream-release-3.10
Automated cherry pick of #16059: fix(notify):fix topic of ChecksumTestFailed Result
2023-02-28 15:18:51 +08:00
mhf
f0e14646e7 fix(notify):fix topic of ChecksumTestFailed Result 2023-02-28 15:13:49 +08:00
屈轩
2542b7a328 fix(region): azure rebuild root error (#16050) 2023-02-27 22:30:08 +08:00
Zexi Li
c0b93022ca fix(climc): add list monitorresource cmd (#16047) 2023-02-27 22:00:56 +08:00
Jian Qiu
595ff8ee5b fix: monitor delete resource panic (#16053)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-02-27 21:57:24 +08:00
wanyaoqi
7a85e55651 fix(host): resume suspend guest (#16056)
- check guest status inmigrate
- fix guest launch python script

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-27 21:56:15 +08:00
Zexi Li
c3e359d957 Merge pull request #16036 from gouqi11/automated-cherry-pick-of-#15577-upstream-release-3.10
Automated cherry pick of #15577: fix(notify): refactor notify
2023-02-27 14:37:41 +08:00
Zexi Li
d0d14e5b7a Merge pull request #16038 from swordqiu/automated-cherry-pick-of-#16037-upstream-release-3.10
Automated cherry pick of #16037: fix: climc lbagent create params
2023-02-27 13:46:23 +08:00
Zexi Li
41dc84e987 Merge pull request #16040 from swordqiu/automated-cherry-pick-of-#16039-upstream-release-3.10
Automated cherry pick of #16039: fix: apihelper sync ignore instancegroups without guets
2023-02-27 13:45:43 +08:00
Zexi Li
76806a4b2d Merge pull request #16043 from swordqiu/automated-cherry-pick-of-#16042-upstream-release-3.10
Automated cherry pick of #16042: fix: set eipid after successful eip association
2023-02-27 13:44:38 +08:00
Qiu Jian
b0589bac8c fix: set eipid after successful eip association 2023-02-26 09:15:04 +08:00
Qiu Jian
3436fd52b3 fix: apihelper sync ignore instancegroups without guets 2023-02-26 01:08:58 +08:00
QIU Jian
0ad5158c68 fix: climc lbagent create params 2023-02-24 21:25:35 +08:00
mhf
027f449720 fix notify 2023-02-24 18:39:00 +08:00
Zexi Li
38df9418de Merge pull request #16033 from ioito/automated-cherry-pick-of-#16032-upstream-release-3.10
Automated cherry pick of #16032: fix(region): vm bill type sync
2023-02-24 16:44:55 +08:00
Zexi Li
a070c7d83f Merge pull request #16031 from wanyaoqi/automated-cherry-pick-of-#16030-upstream-release-3.10
Automated cherry pick of #16030: fix(host): disable floppy on machine type isn't pc
2023-02-24 16:44:28 +08:00
ioito
8a20e93a78 fix(region): vm bill type sync 2023-02-24 11:53:01 +08:00
wanyaoqi
9410829f99 fix(host): disable floppy on machine type isn't pc
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-23 22:53:24 +08:00
Zexi Li
2635787341 Merge pull request #15993 from ioito/automated-cherry-pick-of-#15839-upstream-release-3.10
Automated cherry pick of #15839: Feature/implement bingocloud
2023-02-23 19:53:43 +08:00
Jian Qiu
e340e00dad fix: ovn options missing eip and brmapped (#16029)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-23 17:14:10 +08:00
Zexi Li
5e3813845d Merge pull request #16026 from ioito/automated-cherry-pick-of-#16025-upstream-release-3.10
Automated cherry pick of #16025: fix(region): aliyun lb tag sync
2023-02-23 00:37:18 +08:00
ioito
81af43cbdf fix(region): aliyun lb tag sync 2023-02-22 16:48:14 +08:00
Zexi Li
47c5fcf021 Merge pull request #16022 from swordqiu/automated-cherry-pick-of-#16021-upstream-release-3.10
Automated cherry pick of #16021: fix: add disable_local_vpc option and auto config ovn for lbagent and host
2023-02-22 15:09:05 +08:00
Qiu Jian
f0a6f56c08 fix: add disable_local_vpc option and auto config ovn for lbagent and host 2023-02-22 14:43:39 +08:00
Zexi Li
f389ef10a0 fix(baremetal): update baremetal base image to support ice module (#16017) 2023-02-21 19:03:48 +08:00
Zexi Li
317ca7db32 Merge pull request #16014 from swordqiu/automated-cherry-pick-of-#16012-upstream-release-3.10
Automated cherry pick of #16012: fix: gen policy extra override policy
2023-02-21 11:25:21 +08:00
Qiu Jian
32f7423dcc fix: gen policy extra override policy 2023-02-20 23:15:31 +08:00
Zexi Li
90b46cb2e1 Merge pull request #16010 from wanyaoqi/automated-cherry-pick-of-#16009-upstream-release-3.10
Automated cherry pick of #16009: fix(esxi-agent): disk temp files recycle
2023-02-20 19:35:04 +08:00
Zexi Li
5f9394956b Merge pull request #16007 from ioito/automated-cherry-pick-of-#16006-upstream-release-3.10
Automated cherry pick of #16006: fix(cloudmon): apsara monitor
2023-02-20 19:33:56 +08:00
Zexi Li
a793ab90fb Merge pull request #16004 from wanyaoqi/automated-cherry-pick-of-#16003-upstream-release-3.10
Automated cherry pick of #16003: fix(region): esxi to kvm nic driver fix
2023-02-20 19:31:33 +08:00
wanyaoqi
bc8b7010ce fix(esxi-agent): disk temp files recycle
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-20 18:34:19 +08:00
ioito
fcefdb8cea fix(cloudmon): apsara monitor 2023-02-20 18:16:53 +08:00
wanyaoqi
6ced09166b fix(region): esxi to kvm nic driver fix
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-20 18:00:24 +08:00
Jian Qiu
b730fb4752 fix: sms login not verify captchar (#15996)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-18 18:27:35 +08:00
Jian Qiu
85d784b71e build(deps): bump golang.org/x/net from 0.1.0 to 0.7.0 (#15994)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.1.0...v0.7.0)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 17:54:33 +08:00
Jian Qiu
15c2413aa6 fix: 1. allow remove current user from current project. 2. reset recovery-questions when resetting MFA (#15986)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-18 13:04:49 +08:00
Jian Qiu
5ff1ba7517 build(deps): bump github.com/apache/thrift from 0.12.0 to 0.13.0 (#15992)
Bumps [github.com/apache/thrift](https://github.com/apache/thrift) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/apache/thrift/releases)
- [Changelog](https://github.com/apache/thrift/blob/master/CHANGES.md)
- [Commits](https://github.com/apache/thrift/compare/v0.12.0...v0.13.0)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 13:03:30 +08:00
Jian Qiu
e7ee4ff4d8 build(deps): bump github.com/Masterminds/goutils from 1.1.0 to 1.1.1 (#15990)
Bumps [github.com/Masterminds/goutils](https://github.com/Masterminds/goutils) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/Masterminds/goutils/releases)
- [Changelog](https://github.com/Masterminds/goutils/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Masterminds/goutils/compare/v1.1.0...v1.1.1)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 13:03:01 +08:00
李锐
39277c5235 feat(bingocloud):changed some abilities of bingocloud 2023-02-18 12:17:56 +08:00
Jian Qiu
04ab4afd70 fix: hostman setup tuned-adm profile virtual-host (#15989)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-18 08:53:56 +08:00
屈轩
86b0106e75 fix(region): vender update for gcp storage (#15981) 2023-02-18 08:51:40 +08:00
屈轩
6be6000183 fix(region): clean storage db (#15946) 2023-02-18 08:49:06 +08:00
wanyaoqi
3821e42484 feat(region,host): support ovs offload. (#15924)
Cloudpods Ovs offload implemention base on SR-IOV support.
IsolatedDevices add field `OvsOffloadInterface`.

Host config add `ovs_offload_nics` to specify which nic enable ovs
offload, and removed flag `disable_sriov_nics` add flag `sriov_nics` to
configure sriov nics.

Tested Hardware: Mellanox ConnectX-5 NICs
2023-02-18 08:48:27 +08:00
Zexi Li
b27dd48214 Merge pull request #15977 from wanyaoqi/automated-cherry-pick-of-#15976-upstream-release-3.10
Automated cherry pick of #15976: fix(region): esxi to kvm clean sched desc disk.storage
2023-02-17 11:56:25 +08:00
wanyaoqi
16c56641b1 fix(region): esxi to kvm clean sched desc disk.storage
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-17 10:04:04 +08:00
Zexi Li
aa8f682998 feat(monitor): add DisableQuerySignatureCheck option (#15975) 2023-02-16 23:57:47 +08:00
Zexi Li
fecf8a340f Merge pull request #15952 from zexi/bm-status-probe
fix(baremetal): only do status probe job when host_type is hypervisor
2023-02-16 22:47:22 +08:00
Zexi Li
9d41757e30 Merge pull request #15957 from zexi/automated-cherry-pick-of-#15955-upstream-release-3.10
Automated cherry pick of #15955: fix(climc): add measurements and databases api of unifiedmonitor
2023-02-16 22:46:44 +08:00
Zexi Li
18933f4db4 Merge pull request #15969 from gouqi11/automated-cherry-pick-of-#15961-upstream-release-3.10
Automated cherry pick of #15961: fix(notify): 添加消息来源
2023-02-16 22:45:45 +08:00
Zexi Li
504deb4728 Merge pull request #15971 from ioito/automated-cherry-pick-of-#15970-upstream-release-3.10
Automated cherry pick of #15970: fix(region): gcp image sync
2023-02-16 18:12:53 +08:00
ioito
9555d1ddf0 fix(region): gcp image sync 2023-02-16 17:18:52 +08:00
mhf
e2a39fe87d fix(notify): 添加消息来源 2023-02-16 15:24:48 +08:00
Zexi Li
119ffcd626 Merge pull request #15967 from zexi/automated-cherry-pick-of-#15966-upstream-release-3.10
Automated cherry pick of #15966: feat(mcclient): allow set default authenticate source
2023-02-16 14:53:15 +08:00
Zexi Li
c2f8cd5bbf feat(mcclient): allow set default authenticate source 2023-02-16 14:38:14 +08:00
Zexi Li
6cde822071 Merge pull request #15959 from wanyaoqi/automated-cherry-pick-of-#15958-upstream-release-3.10
Automated cherry pick of #15958: fix(region): kvm convert to esxi
2023-02-16 13:58:35 +08:00
Zexi Li
db41bf8687 Merge pull request #15963 from wanyaoqi/automated-cherry-pick-of-#15962-upstream-release-3.10
Automated cherry pick of #15962: fix(region): guest change disk storage
2023-02-16 13:57:31 +08:00
wanyaoqi
93d10c4083 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:48:16 +08:00
wanyaoqi
cc99df4d51 fix(region): kvm convert to esxi
complete kvm guest meta info

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-16 11:11:15 +08:00
Zexi Li
d168c059a8 fix(climc): add measurements and databases api of unifiedmonitor 2023-02-15 17:09:11 +08:00
Zexi Li
c5c1f10c36 fix(baremetal): only do status probe job when host_type is hypervisor 2023-02-15 12:44:29 +08:00
Zexi Li
6b2f5f8d0d Merge pull request #15934 from swordqiu/automated-cherry-pick-of-#15933-upstream-release-3.10
Automated cherry pick of #15933: fix: usage filter by policy tags revisit2
2023-02-15 10:09:11 +08:00
Zexi Li
8cfb123fd7 Merge pull request #15949 from wanyaoqi/automated-cherry-pick-of-#15948-upstream-release-3.10
Automated cherry pick of #15948: fix(host-deployer): revert linux efi check
2023-02-15 10:07:45 +08:00
wanyaoqi
1278f76e14 fix(host-deployer): revert linux efi check
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-14 23:21:40 +08:00
Zexi Li
bd2fe6a7f9 Merge pull request #15943 from ioito/automated-cherry-pick-of-#15942-upstream-release-3.10
Automated cherry pick of #15942: fix(region): aws s3 upload failed
2023-02-14 18:03:53 +08:00
ioito
1209a3f38a fix(region): aws s3 upload failed 2023-02-14 17:19:58 +08:00
Zexi Li
da033cf581 Merge pull request #15940 from ioito/automated-cherry-pick-of-#15939-upstream-release-3.10
Automated cherry pick of #15939: fix(cloudmon): huawei read only check
2023-02-14 12:22:30 +08:00
Zexi Li
58fe80e9ee Merge pull request #15937 from zexi/automated-cherry-pick-of-#15936-upstream-release-3.10
Automated cherry pick of #15936: fix(baremetal): duplicate argument task-worker-count
2023-02-14 12:20:14 +08:00
ioito
38c5e67c87 fix(cloudmon): huawei read only check 2023-02-14 12:04:14 +08:00
Zexi Li
b27ba68a8f fix(baremetal): duplicate argument task-worker-count 2023-02-14 11:56:55 +08:00
Qiu Jian
1626e4038c fix: usage filter by policy tags revisit2 2023-02-14 09:32:57 +08:00
Zexi Li
986abb1c4c fix(region): start LoadBalancerBackendSyncTask when needed (#15931) 2023-02-14 01:40:11 +08:00
Zexi Li
f645e89bf9 fix(region): start LoadBalancerBackendSyncTask when needed (#15930) 2023-02-14 01:39:41 +08:00
Zexi Li
df3ae2dc86 Merge pull request #15929 from zexi/automated-cherry-pick-of-#15928-upstream-release-3.10
Automated cherry pick of #15928: fix(build): lbagent-base image
2023-02-13 21:56:03 +08:00
Zexi Li
052fb80ad2 fix(build): lbagent-base image 2023-02-13 21:50:29 +08:00
Zexi Li
671984ece2 Merge pull request #15926 from wanyaoqi/automated-cherry-pick-of-#15925-upstream-release-3.10
Automated cherry pick of #15925: fix(host,baremetal): deploy content action not marshaled
2023-02-13 15:36:53 +08:00
Zexi Li
b8d02146f9 Merge pull request #15923 from ioito/automated-cherry-pick-of-#15922-upstream-release-3.10
Automated cherry pick of #15922: fix(region): change cdn to virtual resource
2023-02-13 15:35:53 +08:00
wanyaoqi
4bf597c338 fix(host,baremetal): deploy content action not marshaled
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-02-13 12:13:52 +08:00
ioito
c7ae577618 fix(region): change cdn to virtual resource 2023-02-13 10:31:30 +08:00
Zexi Li
18e12ccea0 Merge pull request #15921 from swordqiu/automated-cherry-pick-of-#15920-upstream-release-3.10
Automated cherry pick of #15920: feature: project admin user
2023-02-13 10:01:38 +08:00
Qiu Jian
2577c4faf4 feature: project admin user 2023-02-13 03:44:15 +08:00
Jian Qiu
6475a653d1 fix: tablespec add sync method (#15914)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-02-09 22:39:16 +08:00
Zexi Li
537ce1e524 Merge pull request #15912 from zexi/automated-cherry-pick-of-#15909-upstream-release-3.10
Automated cherry pick of #15909: fix(region): update kube cluster to kubeserver
2023-02-08 14:02:08 +08:00
Zexi Li
683e2d0faf fix(region): update kube cluster to kubeserver 2023-02-08 13:51:24 +08:00
Zexi Li
ee19e764ee Merge pull request #15908 from swordqiu/automated-cherry-pick-of-#15907-upstream-release-3.10
Automated cherry pick of #15907: fix: lbagent containerize issues
2023-02-08 11:03:16 +08:00
Qiu Jian
9ea346f38a fix: lbagent containerize issues 2023-02-08 10:52:20 +08:00
Zexi Li
fdfc330145 Merge pull request #15903 from ioito/automated-cherry-pick-of-#15902-upstream-release-3.10
Automated cherry pick of #15902: fix(region): cdn domain config
2023-02-06 23:40:03 +08:00
ioito
aecd28db8e fix(region): cdn domain config 2023-02-06 14:03:00 +08:00
wanyaoqi
d06fe13c34 fix(host-metrics): bytes sent overflow (#15900)
bytes_sent recount unexpected, discard the count before new round.

Signed-off-by: wanyaoqi <wanyaoqi@yunion.cn>
2023-02-05 21:53:29 +08:00
屈轩
1cb2c04aa7 fix(region): fake server generate (#15897) 2023-02-03 23:26:24 +08:00
Jian Qiu
65b9b9624e feature: lbagent register (#15895)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-02-03 23:25:56 +08:00
Zexi Li
42579c3681 Merge pull request #15892 from ioito/automated-cherry-pick-of-#15891-upstream-release-3.10
Automated cherry pick of #15891: fix(region): usage with policy tags
2023-02-02 17:14:13 +08:00
Zexi Li
49ea410829 Merge pull request #15886 from ioito/automated-cherry-pick-of-#15885-upstream-release-3.10
Automated cherry pick of #15885: fix(region): dns recordset details
2023-02-02 17:13:23 +08:00
Zexi Li
09a29873d3 Merge pull request #15882 from ioito/automated-cherry-pick-of-#15881-upstream-release-3.10
Automated cherry pick of #15881: fix(cloudmon): project tags for metric
2023-02-02 17:12:10 +08:00
Zexi Li
316c13388b Merge pull request #15880 from ioito/automated-cherry-pick-of-#15879-upstream-release-3.10
Automated cherry pick of #15879: fix(region): lb listener
2023-02-02 17:11:15 +08:00
ioito
54fd5d14dc fix(region): usage with policy tags 2023-02-02 16:36:15 +08:00
ioito
61619fd0b5 fix(region): dns recordset details 2023-02-02 10:56:19 +08:00
ioito
9399a32117 fix(cloudmon): project tags for metric 2023-02-01 19:46:44 +08:00
Zexi Li
49c3027100 optimized(scheduler): reduce sql query of mysql (#15877) 2023-01-31 19:30:37 +08:00
ioito
9cabeb8130 fix(region): lb listener 2023-01-31 18:04:22 +08:00
Zexi Li
b403cd2bf7 Merge pull request #15863 from ioito/automated-cherry-pick-of-#15862-upstream-release-3.10
Automated cherry pick of #15862: fix(region): 避免创建相同配置时使用当前实例的hostname
2023-01-30 22:12:43 +08:00
Zexi Li
d4e42456df Merge pull request #15875 from swordqiu/automated-cherry-pick-of-#15874-upstream-release-3.10
Automated cherry pick of #15874: fix: usage filter by policy tags
2023-01-30 22:12:05 +08:00
Qiu Jian
ce43e74087 fix: usage filter by policy tags 2023-01-30 21:54:13 +08:00
Jian Qiu
58e24266cb fix: climc logs-splitable support monitor notify (#15869)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-01-30 17:44:55 +08:00
Jian Qiu
ec166b6b39 fix: vmemsize error prompt (#15866)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2023-01-30 16:24:23 +08:00
rex zhasm
b218b9626b feat(build,test): 新增 dry_run 模式以便夜间测试 (#15861)
Co-authored-by: Zhang Dongliang <zhangdongliang@yunion.cn>
2023-01-30 16:23:35 +08:00
屈轩
ba599353e1 fix(cloudevent): default disable cloudevent sync (#15852) 2023-01-30 16:09:48 +08:00
ioito
3b726f007f fix(region): 避免创建相同配置时使用当前实例的hostname 2023-01-30 15:22:42 +08:00
Zexi Li
52cad64576 Merge pull request #15858 from zexi/automated-cherry-pick-of-#15857-upstream-release-3.10
Automated cherry pick of #15857: fix(codegen): update apis generated by models
2023-01-30 12:23:08 +08:00
Zexi Li
ad48807686 fix(codegen): update apis generated by models 2023-01-30 11:31:11 +08:00
Zexi Li
fcdb8c6077 Merge pull request #15853 from wanyaoqi/fix/host-metrics-panic
fix(host): panic on report diskio
2023-01-30 11:23:53 +08:00
Zexi Li
09baf69847 Merge pull request #15856 from ioito/automated-cherry-pick-of-#15855-upstream-release-3.10
Automated cherry pick of #15855: fix(region): codegen
2023-01-30 11:23:29 +08:00
ioito
9e9b0c9d62 fix(region): codegen 2023-01-30 09:42:22 +08:00
wanyaoqi
0e4ada7e74 fix(host): panic on report diskio
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-29 23:20:35 +08:00
Zexi Li
1c1551aaba Merge pull request #15849 from ioito/automated-cherry-pick-of-#15848-upstream-release-3.10
Automated cherry pick of #15848: fix(region): vm created with public ip
2023-01-29 18:32:11 +08:00
ioito
6797aa58b8 fix(region): vm created with public ip 2023-01-29 16:04:44 +08:00
Jian Qiu
bd03d1647c fix: cloudmon/lbagent api request with app name (#15845)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-29 01:45:12 +08:00
屈轩
85b4aa3492 fix(region): clirc with region (#15843) 2023-01-29 01:40:51 +08:00
wanyaoqi
7ffefdef8f fix(host): structure guest metrics (#15846)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-29 01:39:55 +08:00
Jian Qiu
4d162294c9 fix: disable metadata server monitor for SR-IOV (#15838)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-29 01:36:12 +08:00
Jian Qiu
47f5d4cd58 fix: webconsole ssh user/pass prompt backspace hanlding (#15835)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-29 01:35:25 +08:00
Jian Qiu
7ccd57bd6a fix: prepare esxi host network revisit (#15833)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-29 01:34:39 +08:00
Jian Qiu
64b0dcdc3e fix: parameter get or create rpc (#15831)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-28 22:31:45 +08:00
Zexi Li
4287c3cd95 feat(climc): add action of k8s-cluster-deploy (#15821) 2023-01-18 23:59:57 +08:00
Jian Qiu
999c30dccb fix: clean pending usage when dry run validate_create_data (#15823)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-18 23:37:24 +08:00
屈轩
1ef85f209e fix(esxi): rebuild root by template (#15827) 2023-01-18 23:36:05 +08:00
gouqi11
469b99bc58 fix(notify): add server_panic topic (#15828) 2023-01-18 23:34:32 +08:00
Zexi Li
ea4bf2f79b Merge pull request #15801 from ioito/automated-cherry-pick-of-#15800-upstream-release-3.10
Automated cherry pick of #15800: fix(mcclient): 避免休眠后再次启动后admin token失效, 导致用户登录失败
2023-01-17 17:51:10 +08:00
Zexi Li
07743d7457 Merge pull request #15812 from gouqi11/automated-cherry-pick-of-#15811-upstream-release-3.10
Automated cherry pick of #15811: fix(keystone): serviceAbnormal token fix
2023-01-17 15:07:15 +08:00
Zexi Li
006b5f1a9d Merge pull request #15817 from gouqi11/automated-cherry-pick-of-#15816-upstream-release-3.10
Automated cherry pick of #15816: fix(notify): fix topic enable bug
2023-01-17 15:06:43 +08:00
mhf
429d43d8a6 fix(notify): fix topic enable bug 2023-01-17 14:40:56 +08:00
Zexi Li
51123c531a Merge pull request #15814 from ioito/automated-cherry-pick-of-#15811-upstream-release-3.10
Automated cherry pick of #15811: fix(keystone): serviceAbnormal token fix
2023-01-17 10:46:42 +08:00
mhf
796f3ecf6d fix(keystone): serviceAbnormal token fix 2023-01-17 10:31:02 +08:00
Zexi Li
78fe9fbe08 Merge pull request #15798 from swordqiu/automated-cherry-pick-of-#15797-upstream-release-3.10
Automated cherry pick of #15797: fix: notify sync receivers from keystone
2023-01-16 16:56:16 +08:00
Zexi Li
cd4ae93455 Merge pull request #15806 from ioito/automated-cherry-pick-of-#15805-upstream-release-3.10
Automated cherry pick of #15805: fix(region): vmware migrate vnc
2023-01-16 16:55:04 +08:00
Zexi Li
94e52c7d85 Merge pull request #15777 from gouqi11/automated-cherry-pick-of-#15770-upstream-release-3.10
Automated cherry pick of #15770: fix(notify): 对所有通知默认加入系统管理员接收人
2023-01-16 16:53:21 +08:00
mhf
0914791bba fix(keystone): serviceAbnormal token fix 2023-01-16 16:45:56 +08:00
Zexi Li
aea2ea174c Merge pull request #15808 from gouqi11/automated-cherry-pick-of-#15799-upstream-release-3.10
Automated cherry pick of #15799: fix(notify): 对服务异常添加消息通知
2023-01-16 16:02:20 +08:00
mhf
0ed048a2df fix(notify): 对服务异常添加消息通知 2023-01-16 15:51:05 +08:00
ioito
27128949b5 fix(region): vmware migrate vnc 2023-01-16 15:11:56 +08:00
ioito
93ed1c408c fix(mcclient): 避免休眠后再次启动后admin token失效, 导致用户登录失败 2023-01-16 14:28:59 +08:00
Qiu Jian
866063a7ed fix: notify sync receivers from keystone 2023-01-15 23:08:36 +08:00
屈轩
9a24dd5191 fix(region): unified name sync options (#15741) 2023-01-15 14:50:40 +08:00
wanyaoqi
80332a6e23 fix(region): update guest status on backup guest start complete (#15795)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-15 13:50:48 +08:00
屈轩
3948f6915d fix(notify): send msg with custom brand (#15792) 2023-01-15 13:48:51 +08:00
屈轩
ae78af3a3e fix(region): optimized capability (#15788) 2023-01-15 13:47:22 +08:00
Zexi Li
b1ba088ba6 Merge pull request #15785 from gouqi11/automated-cherry-pick-of-#15780-upstream-release-3.10
Automated cherry pick of #15780: fix(notify): Add topic result
2023-01-14 17:03:20 +08:00
Zexi Li
af2f2ab6a0 Merge pull request #15784 from ioito/automated-cherry-pick-of-#15783-upstream-release-3.10
Automated cherry pick of #15783: fix(region): vender update for vmware timeout
2023-01-14 16:57:25 +08:00
Zexi Li
05d7823d3f Merge pull request #15776 from wanyaoqi/automated-cherry-pick-of-#15773-upstream-release-3.10
Automated cherry pick of #15773: fix(region): qga set password status on failed
2023-01-14 16:56:36 +08:00
mhf
fb89651888 fix(notify): fix server/create bug 2023-01-14 16:23:37 +08:00
ioito
5e78857c9c fix(region): vender update for vmware timeout 2023-01-14 16:23:23 +08:00
Zexi Li
0a0ec6ba5a Merge pull request #15772 from ioito/automated-cherry-pick-of-#15771-upstream-release-3.10
Automated cherry pick of #15771: fix(common): service exception
2023-01-14 11:55:49 +08:00
ioito
0fac7dfebe fix(common): service exception 2023-01-14 10:23:37 +08:00
mhf
e8e125c4b7 fix(notify): 对所有通知默认加入系统管理员接收人 2023-01-13 16:26:08 +08:00
Zexi Li
b8f12b7541 Merge pull request #15775 from ioito/automated-cherry-pick-of-#15774-upstream-release-3.10
Automated cherry pick of #15774: fix(cloudmon): cloudpods load
2023-01-13 15:29:42 +08:00
wanyaoqi
75d7f518a7 fix(region): qga set password status 2023-01-13 15:28:15 +08:00
ioito
89dee93ff3 fix(cloudmon): cloudpods load 2023-01-13 15:24:26 +08:00
Zexi Li
b63858e555 Merge pull request #15769 from ioito/automated-cherry-pick-of-#15768-upstream-release-3.10
Automated cherry pick of #15768: fix(region): vender update for qcloud lb listener
2023-01-13 10:27:53 +08:00
ioito
ea5054eb5b fix(region): vender update for qcloud lb listener 2023-01-12 18:31:55 +08:00
Zexi Li
19da84ad05 Merge pull request #15754 from wanyaoqi/fix/isolated-device-hot-plgu
fix(host): isolated_deivce hotplug check addr
2023-01-12 18:05:54 +08:00
Zexi Li
74160bfce8 Merge pull request #15757 from wanyaoqi/automated-cherry-pick-of-#15756-upstream-release-3.10
Automated cherry pick of #15756: fix(region): network_ip_macs allow update ip and mac
2023-01-12 18:05:34 +08:00
Zexi Li
c6265114d8 Merge pull request #15760 from wanyaoqi/automated-cherry-pick-of-#15759-upstream-release-3.10
Automated cherry pick of #15759: fix(region): auto switch to backup on host down
2023-01-12 18:04:50 +08:00
Zexi Li
701db10083 Merge pull request #15765 from wanyaoqi/automated-cherry-pick-of-#15763-upstream-release-3.10
Automated cherry pick of #15763: fix(region): network_ip_mac update check
2023-01-12 18:02:09 +08:00
wanyaoqi
51762b856e fix(region): network_ip_macs rbac and guestnetwork assign
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-12 17:53:45 +08:00
wanyaoqi
d36f6200ed fix(region): network_ip_mac update 2023-01-12 11:53:29 +08:00
wanyaoqi
2db88dada9 fix(region): auto switch to backup on host down 2023-01-11 21:42:42 +08:00
wanyaoqi
dc6ba455f5 fix(region): network_ip_macs allow update ip and mac
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-11 19:50:49 +08:00
wanyaoqi
946a9fe064 fix(host): isolated_deivce hotplug check addr
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-11 18:02:03 +08:00
Zexi Li
d8ce42f34c Merge pull request #15748 from ioito/automated-cherry-pick-of-#15747-upstream-release-3.10
Automated cherry pick of #15747: fix(region): qcloud lb backend create
2023-01-11 10:37:19 +08:00
Zexi Li
6eee398d0b Merge pull request #15751 from ioito/automated-cherry-pick-of-#15750-upstream-release-3.10
Automated cherry pick of #15750: fix(region): vender update
2023-01-11 10:36:37 +08:00
Zexi Li
c82571930d Merge pull request #15753 from wanyaoqi/automated-cherry-pick-of-#15749-upstream-release-3.10
Automated cherry pick of #15749: feat(region): bind network ip macs
2023-01-11 10:36:07 +08:00
ioito
0ec59d847f fix(region): vender update 2023-01-10 19:03:44 +08:00
wanyaoqi
15dd695506 feat(region): bind network ip macs
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-10 18:16:39 +08:00
ioito
285399afb3 fix(region): qcloud lb backend create 2023-01-10 14:32:29 +08:00
Zexi Li
5822275000 Merge pull request #15738 from ioito/automated-cherry-pick-of-#15737-upstream-release-3.10
Automated cherry pick of #15737: fix(region): hostname validate
2023-01-09 14:31:44 +08:00
Zexi Li
db530f7e42 Merge pull request #15743 from wanyaoqi/automated-cherry-pick-of-#15742-upstream-release-3.10
Automated cherry pick of #15742: fix(host-deployer): windows 2008 Out-File IOException
2023-01-09 14:30:57 +08:00
wanyaoqi
5cb759276d fix(host-deployer): windows 2008 Out-File IOException
debug log cause windows 2008 IOException, multi process open log file.
2023-01-09 14:03:14 +08:00
ioito
b6cdd0fd9e fix(region): hostname validate 2023-01-09 11:17:17 +08:00
Jian Qiu
676c385b94 fix: simplify and accelerate query of notification (#15735)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-08 09:30:02 +08:00
wanyaoqi
4173c51796 feat(host): kvm vcpus bind cpuset on numa nodes and cpu dies (#15733)
- alloc cpuset on guest startup, try to alloc on one numa or cpu die
- fix guest startup task not clean
- fix cgrup tasks not clean
2023-01-08 09:29:25 +08:00
gouqi11
e5b0dad51e add excelutils func (#15736) 2023-01-08 09:28:39 +08:00
屈轩
15865f8d54 fix(region): optimzed zone-list speed (#15730) 2023-01-07 20:56:33 +08:00
Zexi Li
0dde5e7d61 Merge pull request #15726 from ioito/automated-cherry-pick-of-#15725-upstream-release-3.10
Automated cherry pick of #15725: fix(region): vmware migrate
2023-01-06 17:55:58 +08:00
ioito
84d18a0610 fix(region): vmware migrate 2023-01-06 17:45:39 +08:00
Zexi Li
a333e39197 Merge pull request #15722 from ioito/automated-cherry-pick-of-#15721-upstream-release-3.10
Automated cherry pick of #15721: fix(region): vender update
2023-01-06 15:32:12 +08:00
Zexi Li
abd3ce39a4 Merge pull request #15719 from ioito/automated-cherry-pick-of-#15709-upstream-release-3.10
Automated cherry pick of #15709: fix(region): account sync status
2023-01-06 15:31:32 +08:00
ioito
8034d2bc2e fix(region): vender update 2023-01-06 11:21:04 +08:00
ioito
9316432c65 fix(region): account sync status 2023-01-06 10:31:26 +08:00
Jian Qiu
edd4695dbd fix: need more args in CustomizedTotalCount (#15718)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-06 03:33:53 +08:00
wanyaoqi
e11a1a83b3 fix(worker): policy and task worker count configurable (#15714) 2023-01-05 22:58:32 +08:00
Zexi Li
0708093356 Merge pull request #15711 from swordqiu/automated-cherry-pick-of-#15710-upstream-release-3.10
Automated cherry pick of #15710: fix: init shceduler schedinfo project and domain
2023-01-05 17:04:32 +08:00
Qiu Jian
d6b7050991 fix: init shceduler schedinfo project and domain 2023-01-05 16:06:08 +08:00
Zexi Li
0404b5195a fix(notify): update MYSQL_OUT_OF_SYNC template (#15706) 2023-01-05 15:39:05 +08:00
wanyaoqi
9d2697c69a Automated cherry pick of #15690: feat(host): sriov nic monitor (#15691)
* feat(host): sriov nic monitor

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

* fix(host): host metrics check int64 value overflow

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

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-04 22:09:56 +08:00
Zexi Li
90c540354c Merge pull request #15702 from ioito/automated-cherry-pick-of-#15701-upstream-release-3.10
Automated cherry pick of #15701: fix(region): vender update
2023-01-04 20:01:48 +08:00
ioito
0f66e4bc78 fix(region): vender update 2023-01-04 19:47:54 +08:00
Zexi Li
355b65a631 Merge pull request #15700 from ioito/automated-cherry-pick-of-#15699-upstream-release-3.10
Automated cherry pick of #15699: fix(keystone): avoid panic
2023-01-04 15:44:31 +08:00
Zexi Li
954b7c2803 Merge pull request #15689 from ioito/automated-cherry-pick-of-#15688-upstream-release-3.10
Automated cherry pick of #15688: fix(region): redis sync error optimized
2023-01-04 15:14:13 +08:00
ioito
4e87d4004d fix(keystone): avoid panic 2023-01-04 15:05:36 +08:00
Zexi Li
18be93628a Merge pull request #15693 from ioito/automated-cherry-pick-of-#15692-upstream-release-3.10
Automated cherry pick of #15692: fix(region): aws lb optimized
2023-01-03 23:37:40 +08:00
屈轩
12c02e2b25 fix(keystone): project-show by name with not found error (#15698) 2023-01-03 21:26:23 +08:00
Zexi Li
3900a91bfc Merge pull request #15695 from zexi/automated-cherry-pick-of-#15694-upstream-release-3.10
Automated cherry pick of #15694: fix(scheduler): do migrate checking when hypervisor is not esxi
2023-01-03 18:35:41 +08:00
Zexi Li
1e77fc5617 fix(scheduler): do migrate checking when hypervisor is not esxi 2023-01-03 18:17:09 +08:00
ioito
f08bedbd31 fix(region): aws lb optimized 2023-01-03 18:05:44 +08:00
ioito
05eec11c90 fix(region): redis sync error optimized 2023-01-03 11:36:11 +08:00
Jian Qiu
6a4d0a8624 fix: get user ids by role ids in scope (#15687)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-02 23:45:23 +08:00
Jian Qiu
98c1b5e7db fix: make cloudaccount options visbile in list (#15685)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-02 23:45:12 +08:00
Jian Qiu
89e05503fd feature: list results carry extra total stats (#15683)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-02 14:39:00 +08:00
gouqi11
edee04fcc7 fix(notify): add some template and notification (#15669) 2023-01-02 12:00:39 +08:00
wanyaoqi
732db665d1 Automated cherry pick of #15618: fix(host): use drive backup sync backup disks (#15664)
* 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:56 +08:00
wanyaoqi
7577705b60 fix(region): sriov vfio-pci driver manual deploy nic (#15679)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-01-02 11:59:13 +08:00
Zexi Li
af7c4f5e23 Merge pull request #15677 from ioito/automated-cherry-pick-of-#15676-upstream-release-3.10
Automated cherry pick of #15676: fix(region): system disk storage type
2022-12-30 16:18:37 +08:00
ioito
08b43deb3b fix(region): system disk storage type 2022-12-30 16:06:15 +08:00
Zexi Li
e4f6722621 Merge pull request #15672 from wanyaoqi/automated-cherry-pick-of-#15671-upstream-release-3.10
Automated cherry pick of #15671: fix(host): detect qemu caps
2022-12-30 15:02:44 +08:00
Zexi Li
c6e2f99691 Merge pull request #15641 from silence934/automated-cherry-pick-of-#15639-upstream-release-3.10
Automated cherry pick of #15639 upstream release 3.10
2022-12-30 15:01:42 +08:00
Zexi Li
e16d51a773 Merge pull request #15674 from zexi/automated-cherry-pick-of-#15673-upstream-release-3.10
Automated cherry pick of #15673: fix(scheduler): reduce calculation of storage's free_capacity
2022-12-30 14:52:56 +08:00
Zexi Li
5d22a4584d fix(scheduler): reduce calculation of storage's free_capacity 2022-12-30 12:40:26 +08:00
wanyaoqi
9e98750429 fix(host): detect qemu caps
ingnore pmemclean output on qemu version 2.12.1

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-12-30 12:06:29 +08:00
Jian Qiu
d92ad0b358 fix: project duplicate fix2 (#15667)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2022-12-30 00:27:26 +08:00
Jian Qiu
edc700ccb3 fix: project duplciate name (#15663)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2022-12-29 23:36:41 +08:00
屈轩
1aa3f63b6c fix(region): duplicate project sync (#15661) 2022-12-29 23:19:50 +08:00
屈轩
85670ce5f6 fix(region): hostname sync (#15658) 2022-12-29 23:19:26 +08:00
屈轩
5918d17f7b fix(region): qcloud cdn create (#15656) 2022-12-29 23:18:53 +08:00
Zexi Li
8dc56273b4 Merge pull request #15650 from ioito/automated-cherry-pick-of-#15649-upstream-release-3.10
Automated cherry pick of #15649: fix(region): aliyun redis create
2022-12-29 16:26:28 +08:00
Zexi Li
00cd582502 Merge pull request #15652 from zexi/automated-cherry-pick-of-#15651-upstream-release-3.10
Automated cherry pick of #15651: fix(webconsole): not get pod info when fetchK8sEnv
2022-12-29 16:06:56 +08:00
Zexi Li
bad38b83b9 fix(webconsole): not get pod info when fetchK8sEnv 2022-12-29 15:47:59 +08:00
ioito
b5291d3b2a fix(region): aliyun redis create 2022-12-29 15:32:03 +08:00
屈轩
a801882077 fix(region): external project sync (#15648) 2022-12-29 14:57:19 +08:00
Jian Qiu
db3363a356 fix: climc panic 20221228 (#15645)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-29 11:35:36 +08:00
Zexi Li
d33903571a Merge pull request #15637 from swordqiu/automated-cherry-pick-of-#15635-upstream-release-3.10
Automated cherry pick of #15635: fix: limit roles that a user join a project
2022-12-29 10:45:17 +08:00
silence
517647dda3 feat(region):sync kafka tag
fmt
2022-12-28 17:51:20 +08:00
silence
ae0de28ae1 feat(region): sync resource tag 2022-12-28 17:51:20 +08:00
屈轩
89dfa83dda fix(region): vender update (#15634) 2022-12-28 15:37:28 +08:00
Qiu Jian
fbd34228fe fix: limit roles that a user join a project 2022-12-28 15:20:25 +08:00
Zexi Li
06d294b441 Merge pull request #15632 from ioito/automated-cherry-pick-of-#15631-upstream-release-3.10
Automated cherry pick of #15631: fix(region): remove migrate check
2022-12-27 21:01:13 +08:00
Zexi Li
8f81e74900 Merge pull request #15626 from ioito/automated-cherry-pick-of-#15625-upstream-release-3.10
Automated cherry pick of #15625: fix(region): external project sync
2022-12-27 21:00:47 +08:00
Zexi Li
33f51662ea Merge pull request #15628 from ioito/automated-cherry-pick-of-#15627-upstream-release-3.10
Automated cherry pick of #15627: fix(region): lb cert sync
2022-12-27 21:00:07 +08:00
ioito
2b1daa4362 fix(region): remove migrate check 2022-12-27 17:27:26 +08:00
wanyaoqi
ad99d8657a fix(region,host): migrate use source desc file. (#15629) 2022-12-27 16:50:56 +08:00
ioito
ddcc5fa3d0 fix(region): lb cert sync 2022-12-27 15:44:26 +08:00
ioito
448b788f54 fix(region): external project sync 2022-12-27 15:16:51 +08:00
Jian Qiu
38e7b60e06 Automated cherry pick of #15621: fix: remove mutual dependency of cloudmux on onecloud (#15622)
* fix: remove mutual dependency of cloudmux on onecloud

* update vendor

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 08:26:25 +08:00
屈轩
ae78a0bb6c fix(region): usage for host storage (#15620) 2022-12-27 01:20:53 +08:00
Jian Qiu
1ce4462ed1 fix: remove dependency of appctx on i18n (#15616)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-23 23:45:02 +08:00
Jian Qiu
2b550a8532 fix: guests short desc add status (#15613)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-23 19:23:13 +08:00
wanyaoqi
6ffa3de191 fix(region): sriov typo (#15610) 2022-12-23 00:58:13 +08:00
屈轩
edf0b00020 fix(region): tags for project mapping (#15606) 2022-12-22 18:42:21 +08:00
Zexi Li
019145df89 Merge pull request #15565 from wanyaoqi/automated-cherry-pick-of-#15473-upstream-release-3.10
Automated cherry pick of #15473: fix(region,host): backup guest
2022-12-22 10:17:29 +08:00
Zexi Li
60bea8872a Merge pull request #15603 from gouqi11/automated-cherry-pick-of-#15602-upstream-release-3.10
Automated cherry pick of #15602: fix(region): fixModelartsCidrDiffBetweenHuaweiAndHCSO
2022-12-21 17:40:39 +08:00
mhf
53fc76a72f fix(region): fixModelartsCidrDiffBetweenHuaweiAndHCSO 2022-12-21 16:46:53 +08:00
Zexi Li
321fb8208e optimize(scheduler): reduce calculation of network free address (#15596)
- only calculate non-emulated host's network on building
- calculate emulated host's network on scheduling
2022-12-20 20:54:42 +08:00
Zexi Li
17f646d742 fix(baremetal): update base image to v0.3.9 (#15599)
ref: https://github.com/yunionio/yunionos/pull/27
2022-12-20 20:40:27 +08:00
wanyaoqi
9c767d97ef fix(host): don't hide kvm cpu feature on nested virt (#15579) 2022-12-20 20:38:57 +08:00
Jian Qiu
fe80cc2f45 fix: prefer id over name when fetching owner id (#15591)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-20 20:37:10 +08:00
Zexi Li
89efac5644 Merge pull request #15584 from ioito/automated-cherry-pick-of-#15583-upstream-release-3.10
Automated cherry pick of #15583: fix(cloudmon): ignore empty metric error
2022-12-20 12:59:29 +08:00
Zexi Li
36cfd67119 Merge pull request #15581 from ioito/automated-cherry-pick-of-#15580-upstream-release-3.10
Automated cherry pick of #15580: fix(region): vender update
2022-12-20 12:58:38 +08:00
ioito
e780547c13 fix(cloudmon): ignore empty metric error 2022-12-19 17:12:20 +08:00
ioito
b3420191dc fix(region): vender update 2022-12-19 14:48:17 +08:00
屈轩
d417aee230 fix(region): vender update (#15560) 2022-12-17 17:27:10 +08:00
屈轩
5888dc6f88 fix(region): sync vm hostname with ascii (#15563) 2022-12-16 16:07:09 +08:00
Zexi Li
5d8b9f86bd Merge pull request #15558 from silence934/automated-cherry-pick-of-#15557-upstream-release-3.10
Automated cherry pick of #15557: fix(cloudmon): collectStatsMetrics ret is nil
2022-12-15 17:02:08 +08:00
Zexi Li
ff9fbbb2ce Merge pull request #15572 from zexi/automated-cherry-pick-of-#15569-upstream-release-3.10
Automated cherry pick of #15569: fix(baremetal): mac address of BMC not found
2022-12-15 16:54:15 +08:00
Zexi Li
965bab1588 Merge pull request #15575 from gouqi11/automated-cherry-pick-of-#15574-upstream-release-3.10
Automated cherry pick of #15574: fix(region): fix sync project bug and add climc choices
2022-12-15 16:50:30 +08:00
mhf
9d3f29a0d7 fix(region): fix sync project bug and add climc choices 2022-12-15 15:25:19 +08:00
Zexi Li
43a885c172 Merge pull request #15570 from gouqi11/automated-cherry-pick-of-#15568-upstream-release-3.10
Automated cherry pick of #15568: fix(cloudmon): remotefile metrice bugfix
2022-12-15 11:48:15 +08:00
Zexi Li
4b39ae2386 fix(baremetal): mac address of BMC not found 2022-12-15 11:32:56 +08:00
mhf
0da3d8b8eb fix(cloudmon): remotefile metrice bugfix 2022-12-15 11:28:52 +08:00
wanyaoqi
b9565408e1 fix(region,host): backup guest refactor 2022-12-14 23:56:49 +08:00
silence
29d6490ff8 fix(cloudmon): collectStatsMetrics ret is nil 2022-12-14 15:40:24 +08:00
Zexi Li
50f6e6d687 Merge pull request #15551 from swordqiu/automated-cherry-pick-of-#15550-upstream-release-3.10
Automated cherry pick of #15550: fix: usb tablet not function for windows 10 guest
2022-12-14 15:33:27 +08:00
Zexi Li
2551bc9e2c Merge pull request #15555 from ioito/automated-cherry-pick-of-#15545-upstream-release-3.10
Automated cherry pick of #15545: fix(region): vender update
2022-12-14 15:31:25 +08:00
ioito
1cf4c3441f fix(region): vender update 2022-12-14 15:01:43 +08:00
Qiu Jian
94b7cdcc2b fix: usb tablet not function for windows 10 guest 2022-12-14 12:08:46 +08:00
wanyaoqi
65295e5bec fix(region): use qcow2 format on raw disk cache image (#15548) 2022-12-13 18:32:39 +08:00
Zexi Li
c17edd7829 Merge pull request #15524 from gouqi11/automated-cherry-pick-of-#15514-upstream-release-3.10
Automated cherry pick of #15514: fix(cloudmon):add cloudpods metric GetDelayDuration
2022-12-12 14:50:33 +08:00
Zexi Li
7d26409efc Merge pull request #15543 from gouqi11/automated-cherry-pick-of-#15541-upstream-release-3.10
Automated cherry pick of #15541: fix(climc): add server option cloudpods
2022-12-12 14:48:36 +08:00
mhf
10e9692ab8 fix(climc): add server option cloudpods 2022-12-12 14:07:05 +08:00
Zexi Li
392118a7ba Merge pull request #15539 from swordqiu/automated-cherry-pick-of-#15537-upstream-release-3.10
Automated cherry pick of #15537: fix: host init before auth
2022-12-12 09:41:57 +08:00
屈轩
fbe892a424 fix(common): optimized metadata list (#15530) 2022-12-11 18:10:29 +08:00
Qiu Jian
9d1996e544 fix: host init before auth 2022-12-11 17:47:30 +08:00
Zexi Li
5d18eded05 Merge pull request #15518 from wanyaoqi/automated-cherry-pick-of-#15509-upstream-release-3.10
Automated cherry pick of #15509: fix(region,host): fix some bugs of server disk change storage
2022-12-09 11:45:26 +08:00
Zexi Li
335fe5d7aa Merge pull request #15527 from ioito/automated-cherry-pick-of-#15526-upstream-release-3.10
Automated cherry pick of #15526: fix(common): limit request
2022-12-09 11:44:06 +08:00
Zexi Li
be5ff80381 Merge pull request #15533 from ioito/automated-cherry-pick-of-#15532-upstream-release-3.10
Automated cherry pick of #15532: fix(cloudmon): storage metric
2022-12-09 11:42:13 +08:00
ioito
5dfe1ae004 fix(cloudmon): storage metric 2022-12-09 11:28:12 +08:00
ioito
79e348688a fix(common): limit request 2022-12-08 15:54:47 +08:00
wanyaoqi
5323898ee1 fix(host): convert migrate set downtime value to float64 (#15475)
* 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 15:40:44 +08:00
wanyaoqi
8d5ceb0b73 Automated cherry pick of #15475: fix(host): convert migrate set downtime value to float64 (#15476)
* 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:45:53 +08:00
wanyaoqi
5c15d23c5e fix(host): don't set ovs interface external id on migrating (#15498)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-12-08 14:43:32 +08:00
屈轩
24d369a7d2 fix(cloudid): support custom saml user name (#15512) 2022-12-08 14:42:09 +08:00
wanyaoqi
dbd5e03406 fix(host): ceph util timeout (#15516) 2022-12-08 14:41:09 +08:00
wanyaoqi
37966f32e1 fix(region,host): fix some bugs of server disk change storage 2022-12-08 12:07:10 +08:00
Zexi Li
8bd34fda3d Merge pull request #15510 from ioito/automated-cherry-pick-of-#15508-upstream-release-3.10
Automated cherry pick of #15508: feat(region): support hcsop
2022-12-08 10:53:49 +08:00
ioito
55f7404d36 feat(region): support hcsop 2022-12-08 10:44:14 +08:00
Zexi Li
13e2749eb0 Merge pull request #15506 from ioito/automated-cherry-pick-of-#15505-upstream-release-3.10
Automated cherry pick of #15505: fix(cloudid): huawei saml user name
2022-12-07 22:35:48 +08:00
ioito
4f9e08d988 fix(cloudid): huawei saml user name 2022-12-07 11:22:31 +08:00
wanyaoqi
bcbcbdf867 fix(host): update host wire with mac addr (#15501) 2022-12-07 02:20:52 +08:00
Zexi Li
c241dec916 Merge pull request #15495 from ioito/automated-cherry-pick-of-#15494-upstream-release-3.10
Automated cherry pick of #15494: fix(cloudid): vender update
2022-12-07 00:12:55 +08:00
ioito
0d16a97748 fix(cloudid): vender update 2022-12-06 18:28:30 +08:00
Jian Qiu
5fe3ffbf94 fix: notify send email with duplicate attachments (#15493)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-06 15:20:31 +08:00
Zexi Li
4c5ed8b537 Merge pull request #15484 from swordqiu/automated-cherry-pick-of-#15483-upstream-release-3.10
Automated cherry pick of #15483: fix: trigger vpcagent update when starting guest
2022-12-06 01:46:42 +08:00
Jian Qiu
7794cedd1c fix: allow baremetal to specify external tftp server and file (#15490)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-05 23:41:14 +08:00
Zexi Li
600dc0bb9e Merge pull request #15481 from swordqiu/automated-cherry-pick-of-#15480-upstream-release-3.10
Automated cherry pick of #15480: fix: host disable gso for specific nics
2022-12-05 18:19:25 +08:00
Zexi Li
fccccb3c79 Merge pull request #15486 from swordqiu/automated-cherry-pick-of-#15485-upstream-release-3.10
Automated cherry pick of #15485: feature: allow update hostname
2022-12-05 18:16:45 +08:00
Qiu Jian
ad2a12eb31 feature: allow update hostname 2022-12-05 16:16:31 +08:00
Qiu Jian
7fa8c24fb1 fix: trigger vpcagent update when starting guest 2022-12-04 03:00:05 +08:00
Qiu Jian
553c987069 fix: host disable gso for specific nics 2022-12-04 00:55:55 +08:00
屈轩
750818041f fix(region): hcs vpc emulated (#15479) 2022-12-02 10:09:21 +08:00
Jian Qiu
c774bd2ca3 fix: lbagent switch to backup (#15466)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-01 01:23:51 +08:00
屈轩
37196c0f3d fix(common): http request timeout (#15467) 2022-12-01 01:23:22 +08:00
Zexi Li
58201ccf85 fix(scheduler): consider storage backend and mediumType size (#15470) 2022-12-01 01:22:23 +08:00
屈轩
eb6322cd4f fix(cloudmon): hcs metric (#15472) 2022-12-01 01:21:56 +08:00
Zexi Li
803f3648fb Merge pull request #15463 from swordqiu/automated-cherry-pick-of-#15462-upstream-release-3.10
Automated cherry pick of #15462: fix: aws sync os_arch
2022-11-30 17:53:50 +08:00
Qiu Jian
16430d8ef7 fix: aws sync os_arch 2022-11-30 01:36:32 +08:00
Zexi Li
f72b903533 Merge pull request #15461 from ioito/automated-cherry-pick-of-#15460-upstream-release-3.10
Automated cherry pick of #15460: fix(region): vender update
2022-11-29 19:37:53 +08:00
ioito
94e3dbad41 fix(region): vender update 2022-11-29 18:43:21 +08:00
gouqi11
e10434ff77 fix(region): fix modelarts create task setStatus (#15456) 2022-11-28 23:58:30 +08:00
gouqi11
1365007ed1 fix(region): add guest power states (#15454) 2022-11-28 23:57:43 +08:00
Zexi Li
5f48c736f8 Merge pull request #15448 from swordqiu/automated-cherry-pick-of-#15439-upstream-release-3.10
Automated cherry pick of #15439: Feature/qj vpcagent sync handler
2022-11-28 19:16:54 +08:00
Zexi Li
2026943c36 Merge pull request #15446 from swordqiu/automated-cherry-pick-of-#15445-upstream-release-3.10
Automated cherry pick of #15445: fix: vmware convert to kvm need check network configuration
2022-11-28 19:16:08 +08:00
Jian Qiu
18d341ea15 fix: lbagent master fixes (#15449)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-28 13:09:23 +08:00
Qiu Jian
f8ddb4a211 feature: vpcagent sync handler 2022-11-28 02:28:28 +08:00
Qiu Jian
f8e596fdd6 fix: vmware convert to kvm need check network configuration 2022-11-28 02:20:50 +08:00
Zexi Li
7d4ca95df4 Merge pull request #15443 from gouqi11/automated-cherry-pick-of-#15438-upstream-release-3.10
Automated cherry pick of #15438: fix(region): delete modelart Sku purgeAll.managerId
2022-11-25 20:38:21 +08:00
mhf
40eb0075ec fix(region): delete modelart Sku purgeAll.managerId 2022-11-25 20:33:30 +08:00
Zexi Li
59a1b03d97 Merge pull request #15441 from gouqi11/automated-cherry-pick-of-#15440-upstream-release-3.10
Automated cherry pick of #15440: fix(region): add modelarts sku policy
2022-11-25 15:49:48 +08:00
mhf
06470f23e7 fix(region): add modelarts sku policy 2022-11-25 15:39:47 +08:00
Jian Qiu
c2812f4a5e fix: keep schedtask_label table name (#15435)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-11-25 15:38:44 +08:00
Zexi Li
aae19e7563 Merge pull request #15431 from ioito/automated-cherry-pick-of-#15430-upstream-release-3.10
Automated cherry pick of #15430: fix(region): hcs image import
2022-11-24 10:43:36 +08:00
ioito
1cfb56b087 fix(region): hcs image import 2022-11-24 10:16:59 +08:00
Zexi Li
774b14fbbe Merge pull request #15429 from ioito/automated-cherry-pick-of-#15428-upstream-release-3.10
Automated cherry pick of #15428: fix(region): hcs misc fix
2022-11-23 16:20:08 +08:00
ioito
0c2b5a48aa fix(region): hcs misc fix 2022-11-23 16:05:55 +08:00
1769 changed files with 58588 additions and 34267 deletions

View File

@@ -282,12 +282,12 @@ dep:
@echo "$$depDeprecated"
@$(MAKE) mod
RELEASE_BRANCH:=master
RELEASE_BRANCH:=release/3.10
GOPROXY ?= direct
mod:
GOPROXY=$(GOPROXY) go get -d yunion.io/x/cloudmux@$(RELEASE_BRANCH)
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' | grep -v '/cloudmux$$'))
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d yunion.io/x/cloudmux@$(RELEASE_BRANCH)
GOPROXY=$(GOPROXY) GONOSUMDB=yunion.io/x go get -d $(patsubst %,%@master,$(shell GO111MODULE=on go mod edit -print | sed -n -e 's|.*\(yunion.io/x/[a-z].*\) v.*|\1|p' | grep -v '/cloudmux$$'))
go mod tidy
go mod vendor -v

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-base:v0.4.0
FROM registry.cn-beijing.aliyuncs.com/yunionio/host-base:v0.5.0
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"

View File

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

View File

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

View File

@@ -0,0 +1,35 @@
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.12.4-2
MAINTAINER "Jian QIU <qiujian@yunion.cn>"
ENV TZ UTC
ENV GOPATH=/root/go
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN set -x \
&& apk update \
&& apk upgrade \
&& apk add --no-cache bash haproxy keepalived iptables \
&& apk add --no-cache --virtual .build-deps \
build-base \
make \
go \
git \
gcc \
libc-dev \
libgcc \
linux-headers
RUN set -x \
&& mkdir -p $GOPATH/src/github.com/yyyar $GOPATH/bin \
&& cd $GOPATH/src/github.com/yyyar \
&& git clone --depth 1 https://github.com/yyyar/gobetween.git \
&& cd gobetween \
&& make deps \
&& make build \
&& cp bin/gobetween /bin/gobetween \
&& rm -fr $GOPATH \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*

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 .
@@ -60,3 +60,7 @@ host-image:
docker manifest annotate $(HOST_IMAGE_NAME) $(HOST_IMAGE_NAME)-amd64 --arch amd64
docker manifest annotate $(HOST_IMAGE_NAME) $(HOST_IMAGE_NAME)-arm64 --arch arm64
docker manifest push $(HOST_IMAGE_NAME)
LBAGENT_BASE_VERSION = v0.0.3
lbagent-base:
$(DOCKER_BUILDX)/lbagent-base:$(LBAGENT_BASE_VERSION) -f ./Dockerfile.lbagent-base .

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,2 @@
{{- $d := .resource_details -}}
您在{{ $d.project }}项目的虚拟机{{ $d.name }}崩溃了

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,2 @@
{{- $d := .resource_details -}}
The server {{ $d.name }} in project {{ $d.project }} panicked.

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.project }}项目的虚拟机{{ $d.name }}崩溃了

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 -}}
The server {{ $d.name }} in project {{ $d.project }}panicked.

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

@@ -33,13 +33,13 @@ import (
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/httputils"
"yunion.io/x/pkg/util/version"
"yunion.io/x/structarg"
"yunion.io/x/onecloud/cmd/climc/promputils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/util/httputils"
)
type BaseOptions struct {

View File

@@ -15,8 +15,9 @@
package ansible
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -15,8 +15,9 @@
package cloudevent
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -15,8 +15,9 @@
package cloudid
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -15,8 +15,9 @@
package cloudnet
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -42,7 +42,7 @@ func init() {
if len(args.Network) > 0 {
params.Add(jsonutils.NewString(args.Network), "network_id")
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Host) > 0 {
result, err = modules.Baremetalnetworks.ListDescendent(s, args.Host, params)

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -38,7 +38,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Host) > 0 {
result, err = modules.Baremetalstorages.ListDescendent(s, args.Host, params)

View File

@@ -21,10 +21,10 @@ import (
"yunion.io/x/cloudmux/pkg/multicloud/objectstore"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
api "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -142,7 +142,7 @@ func init() {
return err
}
listResult := modulebase.ListResult{}
listResult := printutils.ListResult{}
err = result.Unmarshal(&listResult)
if err != nil {
return err

View File

@@ -27,7 +27,7 @@ func init() {
cmd.Show(&options.SCloudAccountIdOptions{})
cmd.Delete(&options.SCloudAccountIdOptions{})
cmd.Update(&options.SCloudAccountUpdateBaseOptions{})
cmd.PerformClassWithKeyword("preparenets-vmware", "prepare-nets", &options.SVMwareCloudAccountPrepareNetsOptions{})
// cmd.PerformClassWithKeyword("preparenets-vmware", "prepare-nets", &options.SVMwareCloudAccountPrepareNetsOptions{})
cmd.CreateWithKeyword("create-vmware", &options.SVMwareCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-aliyun", &options.SAliyunCloudAccountCreateOptions{})
@@ -39,6 +39,7 @@ func init() {
cmd.CreateWithKeyword("create-huawei", &options.SHuaweiCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-hcso", &options.SHCSOAccountCreateOptions{})
cmd.CreateWithKeyword("create-hcs", &options.SHCSAccountCreateOptions{})
cmd.CreateWithKeyword("create-hcsop", &options.SHcsOpCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-ucloud", &options.SUcloudCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-zstack", &options.SZStackCloudAccountCreateOptions{})
cmd.CreateWithKeyword("create-s3", &options.SS3CloudAccountCreateOptions{})
@@ -64,7 +65,7 @@ func init() {
cmd.UpdateWithKeyword("update-openstack", &options.SOpenStackCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-huawei", &options.SHuaweiCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-hcso", &options.SHCSOAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-hcs", &options.SHCSOAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-hcs", &options.SHCSAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-ucloud", &options.SUcloudCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-zstack", &options.SZStackCloudAccountUpdateOptions{})
cmd.UpdateWithKeyword("update-s3", &options.SS3CloudAccountUpdateOptions{})

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -40,7 +40,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Manager) > 0 {
result, err = modules.CloudproviderregionManager.ListDescendent(s, args.Manager, params)

View File

@@ -18,10 +18,10 @@ import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -104,7 +104,7 @@ func init() {
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult := printutils.ListResult{}
listResult.Data, err = results.GetArray()
if err != nil {
return err
@@ -122,7 +122,7 @@ func init() {
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult := printutils.ListResult{}
listResult.Data, err = results.GetArray()
if err != nil {
return err
@@ -140,7 +140,7 @@ func init() {
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult := printutils.ListResult{}
listResult.Data, err = results.GetArray()
if err != nil {
return err

View File

@@ -15,8 +15,9 @@
package compute
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -15,9 +15,10 @@
package compute
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
@@ -55,7 +56,7 @@ func init() {
return err
}
var result *modulebase.ListResult
var result *printutils.ListResult
if len(opts.DBInstance) > 0 {
result, err = modules.DBInstanceNetworks.ListDescendent(s, opts.DBInstance, params)
} else if len(opts.Network) > 0 {

View File

@@ -29,13 +29,13 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/httputils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
compute_options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
"yunion.io/x/onecloud/pkg/util/httputils"
"yunion.io/x/onecloud/pkg/util/sparsefile"
)
@@ -410,6 +410,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

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -39,7 +39,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Host) > 0 {
result, err = modules.Hostcachedimages.ListDescendent(s, args.Host, params)

View File

@@ -22,6 +22,7 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/httputils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
@@ -29,7 +30,6 @@ import (
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/mcclient/options/compute"
"yunion.io/x/onecloud/pkg/util/fileutils2"
"yunion.io/x/onecloud/pkg/util/httputils"
"yunion.io/x/onecloud/pkg/util/ssh"
)
@@ -174,6 +174,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()

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -39,7 +39,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
// if len(args.Storage) > 0 {
// params.Add(jsonutils.NewString(args.Storage), "storage")

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -39,7 +39,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Host) > 0 {
result, err = modules.Hostwires.ListDescendent(s, args.Host, params)

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
baseoptions "yunion.io/x/onecloud/pkg/mcclient/options"
options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
@@ -53,7 +53,7 @@ func init() {
}
printObject(jd)
}
printLbAclList := func(list *modulebase.ListResult, columns []string) {
printLbAclList := func(list *printutils.ListResult, columns []string) {
data := list.Data
for _, jsonObj := range data {
jd := jsonObj.(*jsonutils.JSONDict)

View File

@@ -132,7 +132,7 @@ func init() {
printLbagent(lbagent)
return nil
})
R(&options.LoadbalancerAgentActionDeployOptions{}, "lbagent-deploy", "Deploy lbagent", func(s *mcclient.ClientSession, opts *options.LoadbalancerAgentActionDeployOptions) error {
/*R(&options.LoadbalancerAgentActionDeployOptions{}, "lbagent-deploy", "Deploy lbagent", func(s *mcclient.ClientSession, opts *options.LoadbalancerAgentActionDeployOptions) error {
params, err := opts.Params()
if err != nil {
return err
@@ -151,5 +151,23 @@ func init() {
}
printLbagent(lbagent)
return nil
})*/
R(&options.LoadbalancerAgentJoinClusterOptions{}, "lbagent-join-cluster", "Agent join cluster", func(s *mcclient.ClientSession, opts *options.LoadbalancerAgentJoinClusterOptions) error {
params, _ := opts.Params()
lbagent, err := modules.LoadbalancerAgents.PerformAction(s, opts.ID, "join-cluster", params)
if err != nil {
return err
}
printLbagent(lbagent)
return nil
})
R(&options.LoadbalancerAgentLeaveClusterOptions{}, "lbagent-leave-cluster", "Agent leave cluster", func(s *mcclient.ClientSession, opts *options.LoadbalancerAgentLeaveClusterOptions) error {
params, _ := opts.Params()
lbagent, err := modules.LoadbalancerAgents.PerformAction(s, opts.ID, "leave-cluster", params)
if err != nil {
return err
}
printLbagent(lbagent)
return nil
})
}

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
@@ -52,7 +52,7 @@ func init() {
}
printObject(jd)
}
printLbAclList := func(list *modulebase.ListResult, columns []string) {
printLbAclList := func(list *printutils.ListResult, columns []string) {
data := list.Data
for _, jsonObj := range data {
jd := jsonObj.(*jsonutils.JSONDict)

View File

@@ -18,9 +18,9 @@ import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
@@ -34,7 +34,7 @@ func printLbBackendStatus(backendStatus jsonutils.JSONObject) error {
if err != nil {
return err
}
listResult := &modulebase.ListResult{
listResult := &printutils.ListResult{
Data: objList,
}
columns := []string{

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -43,7 +43,7 @@ func init() {
if len(args.Ip) > 0 {
params.Add(jsonutils.NewString(args.Ip), "ip_addr")
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Loadbalancer) > 0 {
result, err = modules.Loadbalancernetworks.ListDescendent(s, args.Loadbalancer, params)

View File

@@ -15,6 +15,8 @@
package compute
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
@@ -55,7 +57,7 @@ func init() {
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult := printutils.ListResult{}
err = result.Unmarshal(&listResult)
if err != nil {
return err

View File

@@ -0,0 +1,33 @@
package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
compute_options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.NetworkIpMacs)
cmd.List(&compute_options.NetworkIpMacListOptions{})
cmd.Update(&compute_options.NetworkIpMacUpdateOptions{})
cmd.Show(&compute_options.NetworkIpMacIdOptions{})
cmd.Delete(&compute_options.NetworkIpMacIdOptions{})
cmd.Create(&compute_options.NetworkIpMacCreateOptions{})
type NetworkIpMacBatchCreateOptions struct {
NETWORK string `help:"network id" json:"network_id"`
IpMac map[string]string `help:"ip mac map" json:"ip_mac"`
}
R(&NetworkIpMacBatchCreateOptions{},
"network-ip-mac-batch-create",
"Network ip mac bind batch create",
func(s *mcclient.ClientSession, args *NetworkIpMacBatchCreateOptions) error {
params := jsonutils.Marshal(args)
_, err := modules.NetworkIpMacs.PerformClassAction(s, "batch-create", params)
return err
},
)
}

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
)
@@ -30,7 +30,7 @@ func init() {
}
R(&NetworkinterfaceNetworkListOptions{}, "networkinterface-network-list", "List server network pairs", func(s *mcclient.ClientSession, args *NetworkinterfaceNetworkListOptions) error {
params := jsonutils.NewDict()
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Networkinterface) > 0 {
result, err = modules.Networkinterfacenetworks.ListDescendent(s, args.Networkinterface, params)

View File

@@ -18,29 +18,31 @@ import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
api "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
compute_options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&modules.Networks).WithContextManager(&modules.Wires)
cmd.List(&options.NetworkListOptions{})
cmd.Update(&options.NetworkUpdateOptions{})
cmd.Show(&options.NetworkIdOptions{})
cmd.Delete(&options.NetworkIdOptions{})
cmd.GetMetadata(&options.NetworkIdOptions{})
cmd.Perform("private", &options.NetworkIdOptions{})
cmd.Perform("syncstatus", &options.NetworkIdOptions{})
cmd.Perform("sync", &options.NetworkIdOptions{})
cmd.Perform("purge", &options.NetworkIdOptions{})
cmd.Get("change-owner-candidate-domains", &options.NetworkIdOptions{})
cmd.List(&compute_options.NetworkListOptions{})
cmd.Update(&compute_options.NetworkUpdateOptions{})
cmd.Show(&compute_options.NetworkIdOptions{})
cmd.Delete(&compute_options.NetworkIdOptions{})
cmd.GetMetadata(&compute_options.NetworkIdOptions{})
cmd.Perform("private", &compute_options.NetworkIdOptions{})
cmd.Perform("syncstatus", &compute_options.NetworkIdOptions{})
cmd.Perform("sync", &compute_options.NetworkIdOptions{})
cmd.Perform("purge", &compute_options.NetworkIdOptions{})
cmd.Get("change-owner-candidate-domains", &compute_options.NetworkIdOptions{})
cmd.Perform("set-class-metadata", &options.ResourceMetadataOptions{})
cmd.Perform("switch-wire", &compute_options.NetworkSwitchWireOptions{})
type NetworkShareOptions struct {
ID string `help:"ID or Name of the zone to show"`
@@ -226,7 +228,7 @@ func init() {
fmt.Println("no result")
return nil
}
listResult := modulebase.ListResult{Data: addrList}
listResult := printutils.ListResult{Data: addrList}
printList(&listResult, nil)
return nil
})

View File

@@ -17,6 +17,8 @@ package compute
import (
"fmt"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
@@ -54,7 +56,7 @@ func (h *schedtagModelHelper) list(slave modulebase.Manager, kw string) {
if err != nil {
return err
}
var result *modulebase.ListResult
var result *printutils.ListResult
if len(args.Schedtag) > 0 {
result, err = mod.ListDescendent(s, args.Schedtag, params)
} else {

View File

@@ -18,9 +18,9 @@ import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -45,7 +45,7 @@ func init() {
if args.Index >= 0 {
params.Add(jsonutils.NewInt(args.Index), "index")
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Server) > 0 {
result, err = modules.Serverdisks.ListDescendent(s, args.Server, params)

View File

@@ -19,12 +19,12 @@ import (
"strconv"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/pkg/util/regutils"
"yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/cloudcommon/cmdline"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -53,7 +53,7 @@ func init() {
if len(args.Ip) > 0 {
params.Add(jsonutils.NewString(args.Ip), "ip_addr")
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Server) > 0 {
result, err = modules.Servernetworks.ListDescendent(s, args.Server, params)

View File

@@ -27,6 +27,7 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/apis/compute"
@@ -55,7 +56,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))
@@ -98,6 +100,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{})
@@ -161,7 +164,7 @@ func init() {
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult := printutils.ListResult{}
listResult.Data = tasks
printList(&listResult, nil)
return nil
@@ -620,7 +623,7 @@ func init() {
if err != nil {
return err
}
listResult := modulebase.ListResult{}
listResult := printutils.ListResult{}
listResult.Data, _ = result.GetArray()
printList(&listResult, nil)
return nil

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -39,7 +39,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Server) > 0 {
result, err = modules.Serversecgroups.ListDescendent(s, args.Server, params)

View File

@@ -18,9 +18,9 @@ import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -130,7 +130,7 @@ func init() {
if err != nil {
return err
}
data := &modulebase.ListResult{Data: hosts, Total: len(hosts)}
data := &printutils.ListResult{Data: hosts, Total: len(hosts)}
printList(data, []string{"ID", "Name", "Mem", "CPU", "Storage_Info"})
return nil
})
@@ -168,7 +168,7 @@ func init() {
if err != nil {
return err
}
data := &modulebase.ListResult{Data: devs, Total: len(devs)}
data := &printutils.ListResult{Data: devs, Total: len(devs)}
printList(data, []string{"ID", "Addr", "Dev_Type", "Model", "Vendor_Device_Id"})
return nil
})

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -39,7 +39,7 @@ func init() {
}
}
var result *modulebase.ListResult
var result *printutils.ListResult
var err error
if len(args.Storagecache) > 0 {
result, err = modules.Storagecachedimages.ListDescendent(s, args.Storagecache, params)

View File

@@ -16,9 +16,9 @@ package compute
import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -36,7 +36,7 @@ func init() {
if err != nil {
return err
}
var result *modulebase.ListResult
var result *printutils.ListResult
if len(args.Region) > 0 {
result, err = modules.Zones.ListInContext(s, params, &modules.Cloudregions, args.Region)
} else {

View File

@@ -15,8 +15,9 @@
package devtool
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -19,9 +19,9 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules/ansible"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/devtool"
"yunion.io/x/onecloud/pkg/mcclient/options"
@@ -55,7 +55,7 @@ func init() {
if err != nil {
return err
}
var result *modulebase.ListResult
var result *printutils.ListResult
result, err = modules.DevToolCronjobs.List(s, params)
printList(result, modules.DevToolCronjobs.GetColumns(s))
return nil

View File

@@ -17,9 +17,9 @@ package devtool
import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/devtool"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
@@ -48,7 +48,7 @@ func init() {
if err != nil {
return err
}
var result *modulebase.ListResult
var result *printutils.ListResult
result, err = modules.DevToolTemplates.List(s, params)
printList(result, modules.DevToolTemplates.GetColumns(s))
return nil

View File

@@ -15,10 +15,11 @@
package etcd
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/etcd"
"yunion.io/x/onecloud/pkg/util/printutils"
)
func init() {

View File

@@ -15,8 +15,9 @@
package events
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -20,11 +20,11 @@ import (
"strings"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/pkg/utils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/util/printutils"
)
type ResourceCmd struct {
@@ -142,7 +142,7 @@ func (cmd ResourceCmd) List(args IListOpt) {
if err != nil {
return err
}
var result *modulebase.ListResult
var result *printutils.ListResult
contextId := args.GetContextId()
if cmd.contextManager != nil && len(contextId) > 0 {
result, err = man.(modulebase.Manager).ListInContext(s, params, cmd.contextManager.(modulebase.Manager), contextId)
@@ -242,7 +242,7 @@ func (cmd ResourceCmd) GetProperty(args IPropertyOpt) {
}
if _, ok := ret.(*jsonutils.JSONArray); ok {
data, _ := ret.GetArray()
PrintList(&modulebase.ListResult{
PrintList(&printutils.ListResult{
Data: data,
}, nil)
} else {
@@ -634,7 +634,7 @@ func (cmd JointCmd) List(args IJointListOpt) {
if err != nil {
return err
}
var result *modulebase.ListResult
var result *printutils.ListResult
if len(args.GetMasterOpt()) > 0 {
result, err = man.ListDescendent(s, args.GetMasterOpt(), params)
} else if len(args.GetSlaveOpt()) > 0 {

View File

@@ -15,8 +15,9 @@
package identity
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -18,9 +18,9 @@ import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/identity"
)
@@ -65,7 +65,7 @@ func init() {
if err != nil {
return err
}
result := modulebase.ListResult{}
result := printutils.ListResult{}
result.Data = make([]jsonutils.JSONObject, len(secrets))
for i := range secrets {
result.Data[i] = secrets[i].Marshal()

View File

@@ -19,9 +19,9 @@ import (
"time"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/identity"
)
@@ -207,7 +207,7 @@ func init() {
if err != nil {
return err
}
result := modulebase.ListResult{}
result := printutils.ListResult{}
result.Data = make([]jsonutils.JSONObject, len(secrets))
for i := range secrets {
result.Data[i] = jsonutils.Marshal(secrets[i])
@@ -294,7 +294,7 @@ func init() {
if err != nil {
return err
}
result := modulebase.ListResult{}
result := printutils.ListResult{}
result.Data = make([]jsonutils.JSONObject, len(secrets))
for i := range secrets {
result.Data[i] = jsonutils.Marshal(secrets[i])

View File

@@ -19,6 +19,7 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/shellutils"
api "yunion.io/x/onecloud/pkg/apis/identity"
"yunion.io/x/onecloud/pkg/httperrors"
@@ -26,7 +27,6 @@ import (
modules "yunion.io/x/onecloud/pkg/mcclient/modules/identity"
"yunion.io/x/onecloud/pkg/mcclient/options"
"yunion.io/x/onecloud/pkg/util/fileutils2"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func init() {

View File

@@ -23,6 +23,8 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/util/rbacscope"
"yunion.io/x/pkg/util/shellutils"
"yunion.io/x/onecloud/cmd/climc/shell"
api "yunion.io/x/onecloud/pkg/apis/identity"
@@ -35,7 +37,6 @@ import (
options "yunion.io/x/onecloud/pkg/mcclient/options/identity"
"yunion.io/x/onecloud/pkg/util/fileutils2"
"yunion.io/x/onecloud/pkg/util/rbacutils"
"yunion.io/x/onecloud/pkg/util/shellutils"
"yunion.io/x/onecloud/pkg/util/tagutils"
)
@@ -402,7 +403,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 {
@@ -420,12 +421,12 @@ func init() {
fmt.Println("Token", token)
for _, scope := range []rbacutils.TRbacScope{
rbacutils.ScopeSystem,
rbacutils.ScopeDomain,
rbacutils.ScopeProject,
rbacutils.ScopeUser,
rbacutils.ScopeNone,
for _, scope := range []rbacscope.TRbacScope{
rbacscope.ScopeSystem,
rbacscope.ScopeDomain,
rbacscope.ScopeProject,
rbacscope.ScopeUser,
rbacscope.ScopeNone,
} {
fmt.Printf("%s: ", scope)
capable := policy.PolicyManager.IsScopeCapable(token, scope)
@@ -456,7 +457,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

@@ -19,11 +19,11 @@ import (
"strings"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/shellutils"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/identity"
"yunion.io/x/onecloud/pkg/util/fileutils2"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func init() {

View File

@@ -27,11 +27,13 @@ import (
func init() {
type UserListOptions struct {
options.BaseListOptions
Name string `help:"Filter by name"`
OrderByDomain string `help:"order by domain name" choices:"asc|desc"`
Role string `help:"Filter by role"`
IdpId string `help:"filter by idp_id"`
IdpEntityId string `help:"filter by idp_entity_id"`
Name string `help:"Filter by name"`
OrderByDomain string `help:"order by domain name" choices:"asc|desc"`
Role string `help:"Filter by role"`
RoleAssignmentDomainId string `help:"filter role assignment domain"`
RoleAssignmentProjectId string `help:"filter role assignment project"`
IdpId string `help:"filter by idp_id"`
IdpEntityId string `help:"filter by idp_entity_id"`
}
R(&UserListOptions{}, "user-list", "List users", func(s *mcclient.ClientSession, args *UserListOptions) error {
params, err := options.ListStructToParams(args)

View File

@@ -15,8 +15,9 @@
package image
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

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

@@ -23,10 +23,10 @@ import (
"github.com/cheggaaa/pb/v3"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules/identity"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/image"
"yunion.io/x/onecloud/pkg/mcclient/options"
@@ -412,7 +412,7 @@ func init() {
continue
}
arrays, _ := result.(*jsonutils.JSONArray).GetArray()
listResult := modulebase.ListResult{Data: arrays}
listResult := printutils.ListResult{Data: arrays}
printList(&listResult, []string{})
}
return nil

View File

@@ -23,12 +23,12 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/shellutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
o "yunion.io/x/onecloud/pkg/mcclient/options/k8s"
"yunion.io/x/onecloud/pkg/util/shellutils"
)
func initKubeCluster() {

View File

@@ -18,12 +18,12 @@ import (
"fmt"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
o "yunion.io/x/onecloud/pkg/mcclient/options/k8s"
"yunion.io/x/onecloud/pkg/util/printutils"
)
func init() {

View File

@@ -23,9 +23,9 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules/k8s"
)
@@ -56,7 +56,7 @@ func getPrinterRowValues(printer k8s.ListPrinter, obj jsonutils.JSONObject, cols
return ret
}
func ListerTable(res *modulebase.ListResult, printer k8s.ListPrinter, s *mcclient.ClientSession) *uitable.Table {
func ListerTable(res *printutils.ListResult, printer k8s.ListPrinter, s *mcclient.ClientSession) *uitable.Table {
min := func(x, y int) int {
if x < y {
return x
@@ -78,7 +78,7 @@ func ListerTable(res *modulebase.ListResult, printer k8s.ListPrinter, s *mcclien
return table
}
func PrintListResultTable(res *modulebase.ListResult, printer k8s.ListPrinter, s *mcclient.ClientSession) {
func PrintListResultTable(res *printutils.ListResult, printer k8s.ListPrinter, s *mcclient.ClientSession) {
fmt.Println(ListerTable(res, printer, s))
table := uitable.New()

View File

@@ -15,8 +15,9 @@
package logger
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

@@ -15,8 +15,9 @@
package misc
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

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

View File

@@ -20,6 +20,7 @@ import (
"yunion.io/x/cloudmux/pkg/cloudprovider"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/pkg/utils"
"yunion.io/x/onecloud/pkg/mcclient"
@@ -67,7 +68,7 @@ func init() {
return err
}
data, _ := body.GetArray("workers")
printList(&modulebase.ListResult{Data: data}, nil)
printList(&printutils.ListResult{Data: data}, nil)
return nil
})

View File

@@ -0,0 +1,32 @@
// 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 misc
import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules/vpcagent"
)
func init() {
type VpcAgentSyncOptions struct {
}
R(&VpcAgentSyncOptions{}, "vpcagent-sync", "Invoke sync of vpcagent", func(s *mcclient.ClientSession, args *VpcAgentSyncOptions) error {
err := vpcagent.VpcAgent.DoSync(s)
if err != nil {
return err
}
return nil
})
}

View File

@@ -15,9 +15,10 @@
package monitor
import (
"yunion.io/x/pkg/util/printutils"
monitorapi "yunion.io/x/onecloud/pkg/apis/monitor"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/mcclient/modules/monitor"
options "yunion.io/x/onecloud/pkg/mcclient/options/monitor"
)
@@ -34,7 +35,7 @@ func initAlertNotification() {
if err != nil {
return err
}
var result *modulebase.ListResult
var result *printutils.ListResult
if len(args.Alert) > 0 {
result, err = monitor.Alertnotification.ListDescendent(s, args.Alert, params)
} else if len(args.Notification) > 0 {

View File

@@ -15,9 +15,10 @@
package monitor
import (
"yunion.io/x/pkg/util/printutils"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
"yunion.io/x/onecloud/pkg/util/printutils"
)
var (

View File

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

View File

@@ -21,6 +21,8 @@ import (
)
func init() {
cmd := shell.NewResourceCmd(monitor.UnifiedMonitorManager).WithKeyword("monitor")
cmd := shell.NewResourceCmd(monitor.UnifiedMonitorManager).SetPrefix("monitor")
cmd.Show(&options.SimpleQueryOptions{})
cmd.GetProperty(&options.MeasurementsQueryOptions{})
cmd.GetProperty(&options.DatabasesQueryOptions{})
}

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