How to use cinder method in tempest

Best Python code snippet using tempest_python

version.py

Source:version.py Github

copy

Full Screen

1#!/usr/bin/env python32# coding: utf-83# kubernetes 版本管理4def version_mg(vs):5 v = {6 'v1.18.4': v1_18_4,7 'v1.18.6' : v1_18_6,8 'v1.18.8': v1_18_8,9 'v1.18.10': v1_18_10,10 'v1.18.12': v1_18_12,11 'v1.18.14': v1_18_14,12 'v1.18.15': v1_18_15,13 'v1.18.18': v1_18_18,14 'v1.18.20': v1_18_20,15 'v1.20.4': v1_20_4,16 'v1.20.6': v1_20_6,17 'v1.20.8': v1_20_8,18 'v1.20.10': v1_20_10,19 'v1.20.12': v1_20_12,20 'v1.20.14': v1_20_14,21 'v1.22.6': v1_22_6,22 'v1.22.8': v1_22_8,23 'v1.22.10': v1_22_10,24 'v1.22.12': v1_22_12,25 }26 return v.get(vs,'none version')27v1_18_4 = {28 'pause_version': '3.2',29 'busybox_version': '1.28',30 'crictl_version': 'v1.18.0',31 'npd_version': 'v0.8.1',32 'kube_bench_version': 'v0.6.8',33 'runc_version': 'v1.1',34 'cni_version': 'v0.8.6',35 # 存储类镜像版本设置36 'rbd_provisioner_version': 'v2.1.1-k8s1.11',37 'cephfs_provisioner_version': "v2.1.0-k8s1.11",38 'nfs_provisioner_version': 'v3.1.0-k8s1.11',39 'vsphere_csi_version': 'v2.5.1',40 'govc_version': 'v0.23.0',41 'rook_ceph_version': 'v1.9.0',42 'ceph_version': 'v16.2.7',43 'huawei_csi_driver_version': '2.2.9',44 'cinder_csi_version': 'v1.20.0',45 # rook csi46 'rook_csi_ceph_version': 'v3.6.0',47 'rook_csi_resizer_version': 'v1.4.0',48 'rook_csi_snapshotter_version': 'v5.0.1',49 'rook_csi_attacher_version': 'v3.4.0',50 'rook_csi_provisioner_version': 'v3.1.0',51 'rook_csi_node_driver_registrar_version': 'v2.5.0',52 # huawei csi53 'huawei_csi_attacher_version': 'v1.2.1',54 'huawei_csi_provisioner_version': 'v1.4.0',55 'huawei_csi_node_driver_registrar_version': 'v1.2.0',56 # vsphere csi57 'vsphere_csi_livenessprobe_version': 'v2.6.0',58 'vsphere_csi_attacher_version': 'v3.4.0',59 'vsphere_csi_provisioner_version': 'v3.1.0',60 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',61 'vsphere_csi_resizer_version': "v1.4.0",62 'vsphere_csi_snapshotter_version': "v5.0.1",63 # cinder csi64 'cinder_csi_attacher_version': 'v3.1.0',65 'cinder_csi_provisioner_version': 'v2.1.1',66 'cinder_csi_snapshotter_version': 'v2.1.3',67 'cinder_csi_resizer_version': 'v1.1.0',68 'cinder_csi_livenessprobe_version': 'v2.1.0',69 'cinder_csi_node_driver_registrar_version': 'v1.3.0',70 # etcd版本71 'etcd_version':'v3.4.9',72 # docker版本73 'docker_version':'19.03.9',74 # containerd版本75 'containerd_version':'1.3.6',76 # flannel版本77 'flannel_version':'v0.12.0',78 # calico版本79 'calico_version':'v3.14.1',80 # cilium版本81 'cilium_version':'v1.9.5',82 # coredns版本83 'coredns_version':'1.6.7',84 # dns-cache版本85 'dns_cache_version':'1.17.0',86 # helm v2 版本87 'helm_v2_version':'v2.16.9',88 # helm v3 版本89 'helm_v3_version':'v3.2.4',90 # nginx-ingress版本91 'nginx_ingress_version':'0.33.0',92 # traefik-ingress版本93 'traefik_ingress_version':'v2.2.1',94 # metrics-server版本95 'metrics_server_version':'v0.5.0',96 # istio版本97 'istio_version': '1.11.8',98 # opa gatekeeper版本99 'gatekeeper_version': 'v3.7.0'100}101v1_18_6 = {102 'pause_version': '3.2',103 'busybox_version': '1.28',104 'crictl_version': 'v1.18.0',105 'npd_version': 'v0.8.1',106 'kube_bench_version': 'v0.6.8',107 '': 'v1.0.0-rc91',108 'cni_version': 'v0.8.6',109 # 存储类镜像版本设置110 'rbd_provisioner_version': 'v2.1.1-k8s1.11',111 'cephfs_provisioner_version': "v2.1.0-k8s1.11",112 'nfs_provisioner_version': 'v3.1.0-k8s1.11',113 'vsphere_csi_version': 'v2.5.1',114 'govc_version': 'v0.23.0',115 'rook_ceph_version': 'v1.9.0',116 'ceph_version': 'v16.2.7',117 'huawei_csi_driver_version': '2.2.9',118 'cinder_csi_version': 'v1.20.0',119 # rook csi120 'rook_csi_ceph_version': 'v3.6.0',121 'rook_csi_resizer_version': 'v1.4.0',122 'rook_csi_snapshotter_version': 'v5.0.1',123 'rook_csi_attacher_version': 'v3.4.0',124 'rook_csi_provisioner_version': 'v3.1.0',125 'rook_csi_node_driver_registrar_version': 'v2.5.0',126 # huawei csi127 'huawei_csi_attacher_version': 'v1.2.1',128 'huawei_csi_provisioner_version': 'v1.4.0',129 'huawei_csi_node_driver_registrar_version': 'v1.2.0',130 # vsphere csi131 'vsphere_csi_livenessprobe_version': 'v2.6.0',132 'vsphere_csi_attacher_version': 'v3.4.0',133 'vsphere_csi_provisioner_version': 'v3.1.0',134 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',135 'vsphere_csi_resizer_version': "v1.4.0",136 'vsphere_csi_snapshotter_version': "v5.0.1",137 # cinder csi138 'cinder_csi_attacher_version': 'v3.1.0',139 'cinder_csi_provisioner_version': 'v2.1.1',140 'cinder_csi_snapshotter_version': 'v2.1.3',141 'cinder_csi_resizer_version': 'v1.1.0',142 'cinder_csi_livenessprobe_version': 'v2.1.0',143 'cinder_csi_node_driver_registrar_version': 'v1.3.0',144 # etcd版本145 'etcd_version':'v3.4.9',146 # docker版本147 'docker_version':'19.03.9',148 # containerd版本149 'containerd_version':'1.3.6',150 # flannel版本151 'flannel_version':'v0.12.0',152 # calico版本153 'calico_version':'v3.14.1',154 # cilium版本155 'cilium_version':'v1.9.5',156 # coredns版本157 'coredns_version':'1.6.7',158 # dns-cache版本159 'dns_cache_version':'1.17.0',160 # helm v2 版本161 'helm_v2_version':'v2.16.9',162 # helm v3 版本163 'helm_v3_version':'v3.2.4',164 # nginx-ingress版本165 'nginx_ingress_version':'0.33.0',166 # traefik-ingress版本167 'traefik_ingress_version':'v2.2.1',168 # metrics-server版本169 'metrics_server_version':'v0.5.0',170 # istio版本171 'istio_version': '1.11.8',172 # opa gatekeeper版本173 'gatekeeper_version': 'v3.7.0'174}175v1_18_8 = {176 'pause_version': '3.2',177 'busybox_version': '1.28',178 'crictl_version': 'v1.18.0',179 'npd_version': 'v0.8.1',180 'kube_bench_version': 'v0.6.8',181 'runc_version': 'v1.1',182 'cni_version': 'v0.8.6',183 # 存储类镜像版本设置184 'rbd_provisioner_version': 'v2.1.1-k8s1.11',185 'cephfs_provisioner_version': "v2.1.0-k8s1.11",186 'nfs_provisioner_version': 'v3.1.0-k8s1.11',187 'vsphere_csi_version': 'v2.5.1',188 'govc_version': 'v0.23.0',189 'rook_ceph_version': 'v1.9.0',190 'ceph_version': 'v16.2.7',191 'huawei_csi_driver_version': '2.2.9',192 'cinder_csi_version': 'v1.20.0',193 # rook csi194 'rook_csi_ceph_version': 'v3.6.0',195 'rook_csi_resizer_version': 'v1.4.0',196 'rook_csi_snapshotter_version': 'v5.0.1',197 'rook_csi_attacher_version': 'v3.4.0',198 'rook_csi_provisioner_version': 'v3.1.0',199 'rook_csi_node_driver_registrar_version': 'v2.5.0',200 # huawei csi201 'huawei_csi_attacher_version': 'v1.2.1',202 'huawei_csi_provisioner_version': 'v1.4.0',203 'huawei_csi_node_driver_registrar_version': 'v1.2.0',204 # vsphere csi205 'vsphere_csi_livenessprobe_version': 'v2.6.0',206 'vsphere_csi_attacher_version': 'v3.4.0',207 'vsphere_csi_provisioner_version': 'v3.1.0',208 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',209 'vsphere_csi_resizer_version': "v1.4.0",210 'vsphere_csi_snapshotter_version': "v5.0.1",211 # cinder csi212 'cinder_csi_attacher_version': 'v3.1.0',213 'cinder_csi_provisioner_version': 'v2.1.1',214 'cinder_csi_snapshotter_version': 'v2.1.3',215 'cinder_csi_resizer_version': 'v1.1.0',216 'cinder_csi_livenessprobe_version': 'v2.1.0',217 'cinder_csi_node_driver_registrar_version': 'v1.3.0',218 # etcd版本219 'etcd_version':'v3.4.9',220 # docker版本221 'docker_version':'19.03.9',222 # containerd版本223 'containerd_version':'1.3.6',224 # flannel版本225 'flannel_version':'v0.12.0',226 # calico版本227 'calico_version':'v3.14.1',228 # cilium版本229 'cilium_version':'v1.9.5',230 # coredns版本231 'coredns_version':'1.6.7',232 # dns-cache版本233 'dns_cache_version':'1.17.0',234 # helm v2 版本235 'helm_v2_version':'v2.16.9',236 # helm v3 版本237 'helm_v3_version':'v3.2.4',238 # nginx-ingress版本239 'nginx_ingress_version':'0.33.0',240 # traefik-ingress版本241 'traefik_ingress_version':'v2.2.1',242 # metrics-server版本243 'metrics_server_version':'v0.5.0',244 # istio版本245 'istio_version': '1.11.8',246 # opa gatekeeper版本247 'gatekeeper_version': 'v3.7.0'248}249v1_18_10 = {250 'pause_version': '3.2',251 'busybox_version': '1.28',252 'crictl_version': 'v1.18.0',253 'npd_version': 'v0.8.1',254 'kube_bench_version': 'v0.6.8',255 'runc_version': 'v1.1',256 'cni_version': 'v0.8.6',257 # 存储类镜像版本设置258 'rbd_provisioner_version': 'v2.1.1-k8s1.11',259 'cephfs_provisioner_version': "v2.1.0-k8s1.11",260 'nfs_provisioner_version': 'v3.1.0-k8s1.11',261 'vsphere_csi_version': 'v2.5.1',262 'govc_version': 'v0.23.0',263 'rook_ceph_version': 'v1.9.0',264 'ceph_version': 'v16.2.7',265 'huawei_csi_driver_version': '2.2.9',266 'cinder_csi_version': 'v1.20.0',267 # rook csi268 'rook_csi_ceph_version': 'v3.6.0',269 'rook_csi_resizer_version': 'v1.4.0',270 'rook_csi_snapshotter_version': 'v5.0.1',271 'rook_csi_attacher_version': 'v3.4.0',272 'rook_csi_provisioner_version': 'v3.1.0',273 'rook_csi_node_driver_registrar_version': 'v2.5.0',274 # huawei csi275 'huawei_csi_attacher_version': 'v1.2.1',276 'huawei_csi_provisioner_version': 'v1.4.0',277 'huawei_csi_node_driver_registrar_version': 'v1.2.0',278 # vsphere csi279 'vsphere_csi_livenessprobe_version': 'v2.6.0',280 'vsphere_csi_attacher_version': 'v3.4.0',281 'vsphere_csi_provisioner_version': 'v3.1.0',282 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',283 'vsphere_csi_resizer_version': "v1.4.0",284 'vsphere_csi_snapshotter_version': "v5.0.1",285 # cinder csi286 'cinder_csi_attacher_version': 'v3.1.0',287 'cinder_csi_provisioner_version': 'v2.1.1',288 'cinder_csi_snapshotter_version': 'v2.1.3',289 'cinder_csi_resizer_version': 'v1.1.0',290 'cinder_csi_livenessprobe_version': 'v2.1.0',291 'cinder_csi_node_driver_registrar_version': 'v1.3.0',292 # etcd版本293 'etcd_version':'v3.4.9',294 # docker版本295 'docker_version':'19.03.9',296 # containerd版本297 'containerd_version':'1.3.6',298 # flannel版本299 'flannel_version':'v0.12.0',300 # calico版本301 'calico_version':'v3.14.1',302 # cilium版本303 'cilium_version':'v1.9.5',304 # coredns版本305 'coredns_version':'1.6.7',306 # dns-cache版本307 'dns_cache_version':'1.17.0',308 # helm v2 版本309 'helm_v2_version':'v2.16.9',310 # helm v3 版本311 'helm_v3_version':'v3.2.4',312 # nginx-ingress版本313 'nginx_ingress_version':'0.33.0',314 # traefik-ingress版本315 'traefik_ingress_version':'v2.2.1',316 # metrics-server版本317 'metrics_server_version':'v0.5.0',318 # istio版本319 'istio_version': '1.11.8',320 # opa gatekeeper版本321 'gatekeeper_version': 'v3.7.0'322}323v1_18_12 = {324 'pause_version': '3.2',325 'busybox_version': '1.28',326 'crictl_version': 'v1.18.0',327 'npd_version': 'v0.8.1',328 'kube_bench_version': 'v0.6.8',329 'runc_version': 'v1.1',330 'cni_version': 'v0.8.6',331 # 存储类镜像版本设置332 'rbd_provisioner_version': 'v2.1.1-k8s1.11',333 'cephfs_provisioner_version': "v2.1.0-k8s1.11",334 'nfs_provisioner_version': 'v3.1.0-k8s1.11',335 'vsphere_csi_version': 'v2.5.1',336 'govc_version': 'v0.23.0',337 'rook_ceph_version': 'v1.9.0',338 'ceph_version': 'v16.2.7',339 'huawei_csi_driver_version': '2.2.9',340 'cinder_csi_version': 'v1.20.0',341 # rook csi342 'rook_csi_ceph_version': 'v3.6.0',343 'rook_csi_resizer_version': 'v1.4.0',344 'rook_csi_snapshotter_version': 'v5.0.1',345 'rook_csi_attacher_version': 'v3.4.0',346 'rook_csi_provisioner_version': 'v3.1.0',347 'rook_csi_node_driver_registrar_version': 'v2.5.0',348 # huawei csi349 'huawei_csi_attacher_version': 'v1.2.1',350 'huawei_csi_provisioner_version': 'v1.4.0',351 'huawei_csi_node_driver_registrar_version': 'v1.2.0',352 # vsphere csi353 'vsphere_csi_livenessprobe_version': 'v2.6.0',354 'vsphere_csi_attacher_version': 'v3.4.0',355 'vsphere_csi_provisioner_version': 'v3.1.0',356 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',357 'vsphere_csi_resizer_version': "v1.4.0",358 'vsphere_csi_snapshotter_version': "v5.0.1",359 # cinder csi360 'cinder_csi_attacher_version': 'v3.1.0',361 'cinder_csi_provisioner_version': 'v2.1.1',362 'cinder_csi_snapshotter_version': 'v2.1.3',363 'cinder_csi_resizer_version': 'v1.1.0',364 'cinder_csi_livenessprobe_version': 'v2.1.0',365 'cinder_csi_node_driver_registrar_version': 'v1.3.0',366 # etcd版本367 'etcd_version':'v3.4.9',368 # docker版本369 'docker_version':'19.03.9',370 # containerd版本371 'containerd_version':'1.4.1',372 # flannel版本373 'flannel_version':'v0.13.0',374 # calico版本375 'calico_version':'v3.16.5',376 # cilium版本377 'cilium_version':'v1.9.5',378 # coredns版本379 'coredns_version':'1.6.7',380 # dns-cache版本381 'dns_cache_version':'1.17.0',382 # helm v2 版本383 'helm_v2_version':'v2.17.0',384 # helm v3 版本385 'helm_v3_version':'v3.4.1',386 # nginx-ingress版本387 'nginx_ingress_version':'0.33.0',388 # traefik-ingress版本389 'traefik_ingress_version':'v2.2.1',390 # metrics-server版本391 'metrics_server_version':'v0.5.0',392 # istio版本393 'istio_version': '1.11.8',394 # opa gatekeeper版本395 'gatekeeper_version': 'v3.7.0'396}397v1_18_14 = {398 'pause_version': '3.2',399 'busybox_version': '1.28',400 'crictl_version': 'v1.18.0',401 'npd_version': 'v0.8.1',402 'kube_bench_version': 'v0.6.8',403 'runc_version': 'v1.1',404 'cni_version': 'v0.8.6',405 # 存储类镜像版本设置406 'rbd_provisioner_version': 'v2.1.1-k8s1.11',407 'cephfs_provisioner_version': "v2.1.0-k8s1.11",408 'nfs_provisioner_version': 'v3.1.0-k8s1.11',409 'vsphere_csi_version': 'v2.5.1',410 'govc_version': 'v0.23.0',411 'rook_ceph_version': 'v1.9.0',412 'ceph_version': 'v16.2.7',413 'huawei_csi_driver_version': '2.2.9',414 'cinder_csi_version': 'v1.20.0',415 # rook csi416 'rook_csi_ceph_version': 'v3.6.0',417 'rook_csi_resizer_version': 'v1.4.0',418 'rook_csi_snapshotter_version': 'v5.0.1',419 'rook_csi_attacher_version': 'v3.4.0',420 'rook_csi_provisioner_version': 'v3.1.0',421 'rook_csi_node_driver_registrar_version': 'v2.5.0',422 # huawei csi423 'huawei_csi_attacher_version': 'v1.2.1',424 'huawei_csi_provisioner_version': 'v1.4.0',425 'huawei_csi_node_driver_registrar_version': 'v1.2.0',426 # vsphere csi427 'vsphere_csi_livenessprobe_version': 'v2.6.0',428 'vsphere_csi_attacher_version': 'v3.4.0',429 'vsphere_csi_provisioner_version': 'v3.1.0',430 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',431 'vsphere_csi_resizer_version': "v1.4.0",432 'vsphere_csi_snapshotter_version': "v5.0.1",433 # cinder csi434 'cinder_csi_attacher_version': 'v3.1.0',435 'cinder_csi_provisioner_version': 'v2.1.1',436 'cinder_csi_snapshotter_version': 'v2.1.3',437 'cinder_csi_resizer_version': 'v1.1.0',438 'cinder_csi_livenessprobe_version': 'v2.1.0',439 'cinder_csi_node_driver_registrar_version': 'v1.3.0',440 # etcd版本441 'etcd_version':'v3.4.14',442 # docker版本443 'docker_version':'19.03.9',444 # containerd版本445 'containerd_version':'1.4.3',446 # flannel版本447 'flannel_version':'v0.13.0',448 # calico版本449 'calico_version':'v3.16.5',450 # cilium版本451 'cilium_version':'v1.9.5',452 # coredns版本453 'coredns_version':'1.6.7',454 # dns-cache版本455 'dns_cache_version':'1.17.0',456 # helm v2 版本457 'helm_v2_version':'v2.17.0',458 # helm v3 版本459 'helm_v3_version':'v3.4.1',460 # nginx-ingress版本461 'nginx_ingress_version':'0.33.0',462 # traefik-ingress版本463 'traefik_ingress_version':'v2.2.1',464 # metrics-server版本465 'metrics_server_version':'v0.5.0',466 # istio版本467 'istio_version': '1.11.8',468 # opa gatekeeper版本469 'gatekeeper_version': 'v3.7.0'470}471v1_18_15 = {472 'pause_version': '3.2',473 'busybox_version': '1.28',474 'crictl_version': 'v1.18.0',475 'npd_version': 'v0.8.1',476 'kube_bench_version': 'v0.6.8',477 'runc_version': 'v1.1',478 'cni_version': 'v0.8.6',479 # 存储类镜像版本设置480 'rbd_provisioner_version': 'v2.1.1-k8s1.11',481 'cephfs_provisioner_version': "v2.1.0-k8s1.11",482 'nfs_provisioner_version': 'v3.1.0-k8s1.11',483 'vsphere_csi_version': 'v2.5.1',484 'govc_version': 'v0.23.0',485 'rook_ceph_version': 'v1.9.0',486 'ceph_version': 'v16.2.7',487 'huawei_csi_driver_version': '2.2.9',488 'cinder_csi_version': 'v1.20.0',489 # rook csi490 'rook_csi_ceph_version': 'v3.6.0',491 'rook_csi_resizer_version': 'v1.4.0',492 'rook_csi_snapshotter_version': 'v5.0.1',493 'rook_csi_attacher_version': 'v3.4.0',494 'rook_csi_provisioner_version': 'v3.1.0',495 'rook_csi_node_driver_registrar_version': 'v2.5.0',496 # huawei csi497 'huawei_csi_attacher_version': 'v1.2.1',498 'huawei_csi_provisioner_version': 'v1.4.0',499 'huawei_csi_node_driver_registrar_version': 'v1.2.0',500 # vsphere csi501 'vsphere_csi_livenessprobe_version': 'v2.6.0',502 'vsphere_csi_attacher_version': 'v3.4.0',503 'vsphere_csi_provisioner_version': 'v3.1.0',504 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',505 'vsphere_csi_resizer_version': "v1.4.0",506 'vsphere_csi_snapshotter_version': "v5.0.1",507 # cinder csi508 'cinder_csi_attacher_version': 'v3.1.0',509 'cinder_csi_provisioner_version': 'v2.1.1',510 'cinder_csi_snapshotter_version': 'v2.1.3',511 'cinder_csi_resizer_version': 'v1.1.0',512 'cinder_csi_livenessprobe_version': 'v2.1.0',513 'cinder_csi_node_driver_registrar_version': 'v1.3.0',514 # etcd版本515 'etcd_version':'v3.4.14',516 # docker版本517 'docker_version':'19.03.9',518 # containerd版本519 'containerd_version':'1.4.3',520 # flannel版本521 'flannel_version':'v0.13.0',522 # calico版本523 'calico_version':'v3.16.5',524 # cilium版本525 'cilium_version':'v1.9.5',526 # coredns版本527 'coredns_version':'1.6.7',528 # dns-cache版本529 'dns_cache_version':'1.17.0',530 # helm v2 版本531 'helm_v2_version':'v2.17.0',532 # helm v3 版本533 'helm_v3_version':'v3.4.1',534 # nginx-ingress版本535 'nginx_ingress_version':'0.33.0',536 # traefik-ingress版本537 'traefik_ingress_version':'v2.2.1',538 # metrics-server版本539 'metrics_server_version':'v0.5.0',540 # istio版本541 'istio_version': '1.11.8',542 # opa gatekeeper版本543 'gatekeeper_version': 'v3.7.0'544}545v1_18_18 = {546 'pause_version': '3.2',547 'busybox_version': '1.28',548 'crictl_version': 'v1.18.0',549 'npd_version': 'v0.8.1',550 'kube_bench_version': 'v0.6.8',551 'runc_version': 'v1.1',552 'cni_version': 'v0.8.6',553 # 存储类镜像版本设置554 'rbd_provisioner_version': 'v2.1.1-k8s1.11',555 'cephfs_provisioner_version': "v2.1.0-k8s1.11",556 'nfs_provisioner_version': 'v3.1.0-k8s1.11',557 'vsphere_csi_version': 'v2.5.1',558 'govc_version': 'v0.23.0',559 'rook_ceph_version': 'v1.9.0',560 'ceph_version': 'v16.2.7',561 'huawei_csi_driver_version': '2.2.9',562 'cinder_csi_version': 'v1.20.0',563 # rook csi564 'rook_csi_ceph_version': 'v3.6.0',565 'rook_csi_resizer_version': 'v1.4.0',566 'rook_csi_snapshotter_version': 'v5.0.1',567 'rook_csi_attacher_version': 'v3.4.0',568 'rook_csi_provisioner_version': 'v3.1.0',569 'rook_csi_node_driver_registrar_version': 'v2.5.0',570 # huawei csi571 'huawei_csi_attacher_version': 'v1.2.1',572 'huawei_csi_provisioner_version': 'v1.4.0',573 'huawei_csi_node_driver_registrar_version': 'v1.2.0',574 # vsphere csi575 'vsphere_csi_livenessprobe_version': 'v2.6.0',576 'vsphere_csi_attacher_version': 'v3.4.0',577 'vsphere_csi_provisioner_version': 'v3.1.0',578 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',579 'vsphere_csi_resizer_version': "v1.4.0",580 'vsphere_csi_snapshotter_version': "v5.0.1",581 # cinder csi582 'cinder_csi_attacher_version': 'v3.1.0',583 'cinder_csi_provisioner_version': 'v2.1.1',584 'cinder_csi_snapshotter_version': 'v2.1.3',585 'cinder_csi_resizer_version': 'v1.1.0',586 'cinder_csi_livenessprobe_version': 'v2.1.0',587 'cinder_csi_node_driver_registrar_version': 'v1.3.0',588 # etcd版本589 'etcd_version':'v3.4.14',590 # docker版本591 'docker_version':'19.03.15',592 # containerd版本593 'containerd_version':'1.4.3',594 # flannel版本595 'flannel_version':'v0.13.0',596 # calico版本597 'calico_version':'v3.16.5',598 # cilium版本599 'cilium_version':'v1.9.5',600 # coredns版本601 'coredns_version':'1.6.7',602 # dns-cache版本603 'dns_cache_version':'1.17.0',604 # helm v2 版本605 'helm_v2_version':'v2.17.0',606 # helm v3 版本607 'helm_v3_version':'v3.4.1',608 # nginx-ingress版本609 'nginx_ingress_version':'0.33.0',610 # traefik-ingress版本611 'traefik_ingress_version':'v2.2.1',612 # metrics-server版本613 'metrics_server_version':'v0.5.0',614 # istio版本615 'istio_version': '1.11.8',616 # opa gatekeeper版本617 'gatekeeper_version': 'v3.7.0'618}619v1_18_20 = {620 'pause_version': '3.2',621 'busybox_version': '1.28',622 'crictl_version': 'v1.18.0',623 'npd_version': 'v0.8.1',624 'kube_bench_version': 'v0.6.8',625 'runc_version': 'v1.1',626 'cni_version': 'v0.8.6',627 # 存储类镜像版本设置628 'rbd_provisioner_version': 'v2.1.1-k8s1.11',629 'cephfs_provisioner_version': "v2.1.0-k8s1.11",630 'nfs_provisioner_version': 'v3.1.0-k8s1.11',631 'vsphere_csi_version': 'v2.5.1',632 'govc_version': 'v0.23.0',633 'rook_ceph_version': 'v1.9.0',634 'ceph_version': 'v16.2.7',635 'huawei_csi_driver_version': '2.2.9',636 'cinder_csi_version': 'v1.20.0',637 # rook csi638 'rook_csi_ceph_version': 'v3.6.0',639 'rook_csi_resizer_version': 'v1.4.0',640 'rook_csi_snapshotter_version': 'v5.0.1',641 'rook_csi_attacher_version': 'v3.4.0',642 'rook_csi_provisioner_version': 'v3.1.0',643 'rook_csi_node_driver_registrar_version': 'v2.5.0',644 # huawei csi645 'huawei_csi_attacher_version': 'v1.2.1',646 'huawei_csi_provisioner_version': 'v1.4.0',647 'huawei_csi_node_driver_registrar_version': 'v1.2.0',648 # vsphere csi649 'vsphere_csi_livenessprobe_version': 'v2.6.0',650 'vsphere_csi_attacher_version': 'v3.4.0',651 'vsphere_csi_provisioner_version': 'v3.1.0',652 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',653 'vsphere_csi_resizer_version': "v1.4.0",654 'vsphere_csi_snapshotter_version': "v5.0.1",655 # cinder csi656 'cinder_csi_attacher_version': 'v3.1.0',657 'cinder_csi_provisioner_version': 'v2.1.1',658 'cinder_csi_snapshotter_version': 'v2.1.3',659 'cinder_csi_resizer_version': 'v1.1.0',660 'cinder_csi_livenessprobe_version': 'v2.1.0',661 'cinder_csi_node_driver_registrar_version': 'v1.3.0',662 # etcd版本663 'etcd_version':'v3.4.14',664 # docker版本665 'docker_version':'20.10.7',666 # containerd版本667 'containerd_version':'1.4.3',668 # flannel版本669 'flannel_version':'v0.13.0',670 # calico版本671 'calico_version':'v3.18.4',672 # cilium版本673 'cilium_version':'v1.9.5',674 # coredns版本675 'coredns_version':'1.6.7',676 # dns-cache版本677 'dns_cache_version':'1.17.0',678 # helm v2 版本679 'helm_v2_version':'v2.17.0',680 # helm v3 版本681 'helm_v3_version':'v3.6.0',682 # nginx-ingress版本683 'nginx_ingress_version':'0.33.0',684 # traefik-ingress版本685 'traefik_ingress_version':'v2.4.8',686 # metrics-server版本687 'metrics_server_version':'v0.5.0',688 # istio版本689 'istio_version': '1.11.8',690 # opa gatekeeper版本691 'gatekeeper_version': 'v3.7.0'692}693v1_20_4 = {694 'pause_version': '3.2',695 'busybox_version': '1.28',696 'crictl_version': 'v1.18.0',697 'npd_version': 'v0.8.1',698 'kube_bench_version': 'v0.6.8',699 'runc_version': 'v1.1',700 'cni_version': 'v0.8.6',701 # 存储类镜像版本设置702 'rbd_provisioner_version': 'v2.1.1-k8s1.11',703 'cephfs_provisioner_version': "v2.1.0-k8s1.11",704 'nfs_provisioner_version': 'v3.1.0-k8s1.11',705 'vsphere_csi_version': 'v2.5.1',706 'govc_version': 'v0.23.0',707 'rook_ceph_version': 'v1.9.0',708 'ceph_version': 'v16.2.7',709 'huawei_csi_driver_version': '2.2.9',710 'cinder_csi_version': 'v1.20.0',711 # rook csi712 'rook_csi_ceph_version': 'v3.6.0',713 'rook_csi_resizer_version': 'v1.4.0',714 'rook_csi_snapshotter_version': 'v5.0.1',715 'rook_csi_attacher_version': 'v3.4.0',716 'rook_csi_provisioner_version': 'v3.1.0',717 'rook_csi_node_driver_registrar_version': 'v2.5.0',718 # huawei csi719 'huawei_csi_attacher_version': 'v1.2.1',720 'huawei_csi_provisioner_version': 'v1.4.0',721 'huawei_csi_node_driver_registrar_version': 'v1.2.0',722 # vsphere csi723 'vsphere_csi_livenessprobe_version': 'v2.6.0',724 'vsphere_csi_attacher_version': 'v3.4.0',725 'vsphere_csi_provisioner_version': 'v3.1.0',726 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',727 'vsphere_csi_resizer_version': "v1.4.0",728 'vsphere_csi_snapshotter_version': "v5.0.1",729 # cinder csi730 'cinder_csi_attacher_version': 'v3.1.0',731 'cinder_csi_provisioner_version': 'v2.1.1',732 'cinder_csi_snapshotter_version': 'v2.1.3',733 'cinder_csi_resizer_version': 'v1.1.0',734 'cinder_csi_livenessprobe_version': 'v2.1.0',735 'cinder_csi_node_driver_registrar_version': 'v1.3.0',736 # etcd版本737 'etcd_version':'v3.4.14',738 # docker版本739 'docker_version':'19.03.9',740 # containerd版本741 'containerd_version':'1.4.3',742 # flannel版本743 'flannel_version':'v0.13.0',744 # calico版本745 'calico_version':'v3.16.5',746 # cilium版本747 'cilium_version':'v1.9.5',748 # coredns版本749 'coredns_version':'1.7.0',750 # dns-cache版本751 'dns_cache_version':'1.17.0',752 # helm v2 版本753 'helm_v2_version':'v2.17.0',754 # helm v3 版本755 'helm_v3_version':'v3.4.1',756 # nginx-ingress版本757 'nginx_ingress_version':'0.33.0',758 # traefik-ingress版本759 'traefik_ingress_version':'v2.2.1',760 # metrics-server版本761 'metrics_server_version':'v0.5.0',762 # istio版本763 'istio_version': '1.11.8',764 # opa gatekeeper版本765 'gatekeeper_version': 'v3.7.0'766}767v1_20_6 = {768 'pause_version': '3.2',769 'busybox_version': '1.28',770 'crictl_version': 'v1.18.0',771 'npd_version': 'v0.8.1',772 'kube_bench_version': 'v0.6.8',773 'runc_version': 'v1.1',774 'cni_version': 'v0.8.6',775 # 存储类镜像版本设置776 'rbd_provisioner_version': 'v2.1.1-k8s1.11',777 'cephfs_provisioner_version': "v2.1.0-k8s1.11",778 'nfs_provisioner_version': 'v3.1.0-k8s1.11',779 'vsphere_csi_version': 'v2.5.1',780 'govc_version': 'v0.23.0',781 'rook_ceph_version': 'v1.9.0',782 'ceph_version': 'v16.2.7',783 'huawei_csi_driver_version': '2.2.9',784 'cinder_csi_version': 'v1.20.0',785 # rook csi786 'rook_csi_ceph_version': 'v3.6.0',787 'rook_csi_resizer_version': 'v1.4.0',788 'rook_csi_snapshotter_version': 'v5.0.1',789 'rook_csi_attacher_version': 'v3.4.0',790 'rook_csi_provisioner_version': 'v3.1.0',791 'rook_csi_node_driver_registrar_version': 'v2.5.0',792 # huawei csi793 'huawei_csi_attacher_version': 'v1.2.1',794 'huawei_csi_provisioner_version': 'v1.4.0',795 'huawei_csi_node_driver_registrar_version': 'v1.2.0',796 # vsphere csi797 'vsphere_csi_livenessprobe_version': 'v2.6.0',798 'vsphere_csi_attacher_version': 'v3.4.0',799 'vsphere_csi_provisioner_version': 'v3.1.0',800 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',801 'vsphere_csi_resizer_version': "v1.4.0",802 'vsphere_csi_snapshotter_version': "v5.0.1",803 # cinder csi804 'cinder_csi_attacher_version': 'v3.1.0',805 'cinder_csi_provisioner_version': 'v2.1.1',806 'cinder_csi_snapshotter_version': 'v2.1.3',807 'cinder_csi_resizer_version': 'v1.1.0',808 'cinder_csi_livenessprobe_version': 'v2.1.0',809 'cinder_csi_node_driver_registrar_version': 'v1.3.0',810 # etcd版本811 'etcd_version':'v3.4.14',812 # docker版本813 'docker_version':'19.03.15',814 # containerd版本815 'containerd_version':'1.4.3',816 # flannel版本817 'flannel_version':'v0.13.0',818 # calico版本819 'calico_version':'v3.18.4',820 # cilium版本821 'cilium_version':'v1.9.5',822 # coredns版本823 'coredns_version':'1.7.0',824 # dns-cache版本825 'dns_cache_version':'1.17.0',826 # helm v2 版本827 'helm_v2_version':'v2.17.0',828 # helm v3 版本829 'helm_v3_version':'v3.6.0',830 # nginx-ingress版本831 'nginx_ingress_version':'0.33.0',832 # traefik-ingress版本833 'traefik_ingress_version':'v2.4.8',834 # metrics-server版本835 'metrics_server_version':'v0.5.0',836 # istio版本837 'istio_version': '1.11.8',838 # opa gatekeeper版本839 'gatekeeper_version': 'v3.7.0'840}841v1_20_8 = {842 'pause_version': '3.2',843 'busybox_version': '1.28',844 'crictl_version': 'v1.18.0',845 'npd_version': 'v0.8.1',846 'kube_bench_version': 'v0.6.8',847 'runc_version': 'v1.1',848 'cni_version': 'v0.8.6',849 # 存储类镜像版本设置850 'rbd_provisioner_version': 'v2.1.1-k8s1.11',851 'cephfs_provisioner_version': "v2.1.0-k8s1.11",852 'nfs_provisioner_version': 'v3.1.0-k8s1.11',853 'vsphere_csi_version': 'v2.5.1',854 'govc_version': 'v0.23.0',855 'rook_ceph_version': 'v1.9.0',856 'ceph_version': 'v16.2.7',857 'huawei_csi_driver_version': '2.2.9',858 'cinder_csi_version': 'v1.20.0',859 # rook csi860 'rook_csi_ceph_version': 'v3.6.0',861 'rook_csi_resizer_version': 'v1.4.0',862 'rook_csi_snapshotter_version': 'v5.0.1',863 'rook_csi_attacher_version': 'v3.4.0',864 'rook_csi_provisioner_version': 'v3.1.0',865 'rook_csi_node_driver_registrar_version': 'v2.5.0',866 # huawei csi867 'huawei_csi_attacher_version': 'v1.2.1',868 'huawei_csi_provisioner_version': 'v1.4.0',869 'huawei_csi_node_driver_registrar_version': 'v1.2.0',870 # vsphere csi871 'vsphere_csi_livenessprobe_version': 'v2.6.0',872 'vsphere_csi_attacher_version': 'v3.4.0',873 'vsphere_csi_provisioner_version': 'v3.1.0',874 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',875 'vsphere_csi_resizer_version': "v1.4.0",876 'vsphere_csi_snapshotter_version': "v5.0.1",877 # cinder csi878 'cinder_csi_attacher_version': 'v3.1.0',879 'cinder_csi_provisioner_version': 'v2.1.1',880 'cinder_csi_snapshotter_version': 'v2.1.3',881 'cinder_csi_resizer_version': 'v1.1.0',882 'cinder_csi_livenessprobe_version': 'v2.1.0',883 'cinder_csi_node_driver_registrar_version': 'v1.3.0',884 # etcd版本885 'etcd_version':'v3.4.14',886 # docker版本887 'docker_version':'20.10.7',888 # containerd版本889 'containerd_version':'1.4.3',890 # flannel版本891 'flannel_version':'v0.13.0',892 # calico版本893 'calico_version':'v3.18.4',894 # cilium版本895 'cilium_version':'v1.9.5',896 # coredns版本897 'coredns_version':'1.7.0',898 # dns-cache版本899 'dns_cache_version':'1.17.0',900 # helm v2 版本901 'helm_v2_version':'v2.17.0',902 # helm v3 版本903 'helm_v3_version':'v3.6.0',904 # nginx-ingress版本905 'nginx_ingress_version':'0.33.0',906 # traefik-ingress版本907 'traefik_ingress_version':'v2.4.8',908 # metrics-server版本909 'metrics_server_version':'v0.5.0',910 # istio版本911 'istio_version': '1.11.8',912 # opa gatekeeper版本913 'gatekeeper_version': 'v3.7.0'914}915v1_20_10 = {916 'pause_version': '3.2',917 'busybox_version': '1.28',918 'crictl_version': 'v1.18.0',919 'npd_version': 'v0.8.1',920 'kube_bench_version': 'v0.6.8',921 'runc_version': 'v1.1',922 'cni_version': 'v0.8.6',923 # 存储类镜像版本设置924 'rbd_provisioner_version': 'v2.1.1-k8s1.11',925 'cephfs_provisioner_version': "v2.1.0-k8s1.11",926 'nfs_provisioner_version': 'v3.1.0-k8s1.11',927 'vsphere_csi_version': 'v2.5.1',928 'govc_version': 'v0.23.0',929 'rook_ceph_version': 'v1.9.0',930 'ceph_version': 'v16.2.7',931 'huawei_csi_driver_version': '2.2.9',932 'cinder_csi_version': 'v1.20.0',933 # rook csi934 'rook_csi_ceph_version': 'v3.6.0',935 'rook_csi_resizer_version': 'v1.4.0',936 'rook_csi_snapshotter_version': 'v5.0.1',937 'rook_csi_attacher_version': 'v3.4.0',938 'rook_csi_provisioner_version': 'v3.1.0',939 'rook_csi_node_driver_registrar_version': 'v2.5.0',940 # huawei csi941 'huawei_csi_attacher_version': 'v1.2.1',942 'huawei_csi_provisioner_version': 'v1.4.0',943 'huawei_csi_node_driver_registrar_version': 'v1.2.0',944 # vsphere csi945 'vsphere_csi_livenessprobe_version': 'v2.6.0',946 'vsphere_csi_attacher_version': 'v3.4.0',947 'vsphere_csi_provisioner_version': 'v3.1.0',948 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',949 'vsphere_csi_resizer_version': "v1.4.0",950 'vsphere_csi_snapshotter_version': "v5.0.1",951 # cinder csi952 'cinder_csi_attacher_version': 'v3.1.0',953 'cinder_csi_provisioner_version': 'v2.1.1',954 'cinder_csi_snapshotter_version': 'v2.1.3',955 'cinder_csi_resizer_version': 'v1.1.0',956 'cinder_csi_livenessprobe_version': 'v2.1.0',957 'cinder_csi_node_driver_registrar_version': 'v1.3.0',958 # etcd版本959 'etcd_version':'v3.4.14',960 # docker版本961 'docker_version':'20.10.7',962 # containerd版本963 'containerd_version':'1.4.3',964 # flannel版本965 'flannel_version':'v0.13.0',966 # calico版本967 'calico_version':'v3.18.4',968 # cilium版本969 'cilium_version':'v1.9.5',970 # coredns版本971 'coredns_version':'1.7.0',972 # dns-cache版本973 'dns_cache_version':'1.17.0',974 # helm v2 版本975 'helm_v2_version':'v2.17.0',976 # helm v3 版本977 'helm_v3_version':'v3.6.0',978 # nginx-ingress版本979 'nginx_ingress_version':'0.33.0',980 # traefik-ingress版本981 'traefik_ingress_version':'v2.4.8',982 # metrics-server版本983 'metrics_server_version':'v0.5.0',984 # istio版本985 'istio_version': '1.11.8',986 # opa gatekeeper版本987 'gatekeeper_version': 'v3.7.0'988}989v1_20_12 = {990 'pause_version': '3.2',991 'busybox_version': '1.28',992 'crictl_version': 'v1.18.0',993 'npd_version': 'v0.8.1',994 'kube_bench_version': 'v0.6.8',995 'runc_version': 'v1.1',996 'cni_version': 'v0.8.6',997 # 存储类镜像版本设置998 'rbd_provisioner_version': 'v2.1.1-k8s1.11',999 'cephfs_provisioner_version': "v2.1.0-k8s1.11",1000 'nfs_provisioner_version': 'v3.1.0-k8s1.11',1001 'vsphere_csi_version': 'v2.5.1',1002 'govc_version': 'v0.23.0',1003 'rook_ceph_version': 'v1.9.0',1004 'ceph_version': 'v16.2.7',1005 'huawei_csi_driver_version': '2.2.9',1006 'cinder_csi_version': 'v1.20.0',1007 # rook csi1008 'rook_csi_ceph_version': 'v3.6.0',1009 'rook_csi_resizer_version': 'v1.4.0',1010 'rook_csi_snapshotter_version': 'v5.0.1',1011 'rook_csi_attacher_version': 'v3.4.0',1012 'rook_csi_provisioner_version': 'v3.1.0',1013 'rook_csi_node_driver_registrar_version': 'v2.5.0',1014 # huawei csi1015 'huawei_csi_attacher_version': 'v1.2.1',1016 'huawei_csi_provisioner_version': 'v1.4.0',1017 'huawei_csi_node_driver_registrar_version': 'v1.2.0',1018 # vsphere csi1019 'vsphere_csi_livenessprobe_version': 'v2.6.0',1020 'vsphere_csi_attacher_version': 'v3.4.0',1021 'vsphere_csi_provisioner_version': 'v3.1.0',1022 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',1023 'vsphere_csi_resizer_version': "v1.4.0",1024 'vsphere_csi_snapshotter_version': "v5.0.1",1025 # cinder csi1026 'cinder_csi_attacher_version': 'v3.1.0',1027 'cinder_csi_provisioner_version': 'v2.1.1',1028 'cinder_csi_snapshotter_version': 'v2.1.3',1029 'cinder_csi_resizer_version': 'v1.1.0',1030 'cinder_csi_livenessprobe_version': 'v2.1.0',1031 'cinder_csi_node_driver_registrar_version': 'v1.3.0',1032 # etcd版本1033 'etcd_version':'v3.4.14',1034 # docker版本1035 'docker_version':'20.10.7',1036 # containerd版本1037 'containerd_version':'1.4.3',1038 # flannel版本1039 'flannel_version':'v0.13.0',1040 # calico版本1041 'calico_version':'v3.18.4',1042 # cilium版本1043 'cilium_version':'v1.9.5',1044 # coredns版本1045 'coredns_version':'1.7.0',1046 # dns-cache版本1047 'dns_cache_version':'1.17.0',1048 # helm v2 版本1049 'helm_v2_version':'v2.17.0',1050 # helm v3 版本1051 'helm_v3_version':'v3.6.0',1052 # nginx-ingress版本1053 'nginx_ingress_version':'0.33.0',1054 # traefik-ingress版本1055 'traefik_ingress_version':'v2.4.8',1056 # metrics-server版本1057 'metrics_server_version':'v0.5.0',1058 # istio版本1059 'istio_version': '1.11.8',1060 # opa gatekeeper版本1061 'gatekeeper_version': 'v3.7.0'1062}1063v1_20_14 = {1064 'pause_version': '3.2',1065 'busybox_version': '1.28',1066 'crictl_version': 'v1.18.0',1067 'npd_version': 'v0.8.1',1068 'kube_bench_version': 'v0.6.8',1069 'runc_version': 'v1.1',1070 'cni_version': 'v0.8.6',1071 # 存储类镜像版本设置1072 'rbd_provisioner_version': 'v2.1.1-k8s1.11',1073 'cephfs_provisioner_version': "v2.1.0-k8s1.11",1074 'nfs_provisioner_version': 'v3.1.0-k8s1.11',1075 'vsphere_csi_version': 'v2.5.1',1076 'govc_version': 'v0.23.0',1077 'rook_ceph_version': 'v1.9.0',1078 'ceph_version': 'v16.2.7',1079 'huawei_csi_driver_version': '2.2.9',1080 'cinder_csi_version': 'v1.20.0',1081 # rook csi1082 'rook_csi_ceph_version': 'v3.6.0',1083 'rook_csi_resizer_version': 'v1.4.0',1084 'rook_csi_snapshotter_version': 'v5.0.1',1085 'rook_csi_attacher_version': 'v3.4.0',1086 'rook_csi_provisioner_version': 'v3.1.0',1087 'rook_csi_node_driver_registrar_version': 'v2.5.0',1088 # huawei csi1089 'huawei_csi_attacher_version': 'v1.2.1',1090 'huawei_csi_provisioner_version': 'v1.4.0',1091 'huawei_csi_node_driver_registrar_version': 'v1.2.0',1092 # vsphere csi1093 'vsphere_csi_livenessprobe_version': 'v2.6.0',1094 'vsphere_csi_attacher_version': 'v3.4.0',1095 'vsphere_csi_provisioner_version': 'v3.1.0',1096 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',1097 'vsphere_csi_resizer_version': "v1.4.0",1098 'vsphere_csi_snapshotter_version': "v5.0.1",1099 # cinder csi1100 'cinder_csi_attacher_version': 'v3.1.0',1101 'cinder_csi_provisioner_version': 'v2.1.1',1102 'cinder_csi_snapshotter_version': 'v2.1.3',1103 'cinder_csi_resizer_version': 'v1.1.0',1104 'cinder_csi_livenessprobe_version': 'v2.1.0',1105 'cinder_csi_node_driver_registrar_version': 'v1.3.0',1106 # etcd版本1107 'etcd_version':'v3.4.14',1108 # docker版本1109 'docker_version':'20.10.7',1110 # containerd版本1111 'containerd_version':'1.4.3',1112 # flannel版本1113 'flannel_version':'v0.13.0',1114 # calico版本1115 'calico_version':'v3.18.4',1116 # cilium版本1117 'cilium_version':'v1.9.5',1118 # coredns版本1119 'coredns_version':'1.7.0',1120 # dns-cache版本1121 'dns_cache_version':'1.17.0',1122 # helm v2 版本1123 'helm_v2_version':'v2.17.0',1124 # helm v3 版本1125 'helm_v3_version':'v3.6.0',1126 # nginx-ingress版本1127 'nginx_ingress_version':'0.33.0',1128 # traefik-ingress版本1129 'traefik_ingress_version':'v2.4.8',1130 # metrics-server版本1131 'metrics_server_version':'v0.5.0',1132 # istio版本1133 'istio_version': '1.11.8',1134 # opa gatekeeper版本1135 'gatekeeper_version': 'v3.7.0'1136}1137v1_22_6 = {1138 'pause_version': '3.5',1139 'busybox_version': '1.28',1140 'crictl_version': 'v1.23.0',1141 'npd_version': 'v0.8.1',1142 'kube_bench_version': 'v0.6.8',1143 'runc_version': 'v1.1',1144 'cni_version': 'v0.8.6',1145 # 存储类镜像版本设置1146 'rbd_provisioner_version': 'v2.1.1-k8s1.11',1147 'cephfs_provisioner_version': "v2.1.0-k8s1.11",1148 'nfs_provisioner_version': 'v3.1.0-k8s1.11',1149 'vsphere_csi_version': 'v2.5.1',1150 'govc_version': 'v0.23.0',1151 'rook_ceph_version': 'v1.9.0',1152 'ceph_version': 'v16.2.7',1153 'huawei_csi_driver_version': '2.2.9',1154 'cinder_csi_version': 'v1.20.0',1155 # rook csi1156 'rook_csi_ceph_version': 'v3.6.0',1157 'rook_csi_resizer_version': 'v1.4.0',1158 'rook_csi_snapshotter_version': 'v5.0.1',1159 'rook_csi_attacher_version': 'v3.4.0',1160 'rook_csi_provisioner_version': 'v3.1.0',1161 'rook_csi_node_driver_registrar_version': 'v2.5.0',1162 # huawei csi1163 'huawei_csi_attacher_version': 'v1.2.1',1164 'huawei_csi_provisioner_version': 'v1.4.0',1165 'huawei_csi_node_driver_registrar_version': 'v1.2.0',1166 # vsphere csi1167 'vsphere_csi_livenessprobe_version': 'v2.6.0',1168 'vsphere_csi_attacher_version': 'v3.4.0',1169 'vsphere_csi_provisioner_version': 'v3.1.0',1170 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',1171 'vsphere_csi_resizer_version': "v1.4.0",1172 'vsphere_csi_snapshotter_version': "v5.0.1",1173 # cinder csi1174 'cinder_csi_attacher_version': 'v3.1.0',1175 'cinder_csi_provisioner_version': 'v2.1.1',1176 'cinder_csi_snapshotter_version': 'v2.1.3',1177 'cinder_csi_resizer_version': 'v1.1.0',1178 'cinder_csi_livenessprobe_version': 'v2.1.0',1179 'cinder_csi_node_driver_registrar_version': 'v1.3.0',1180 # etcd版本1181 'etcd_version':'v3.5.2',1182 # docker版本1183 'docker_version':'20.10.12',1184 # containerd版本1185 'containerd_version':'1.6.0',1186 # flannel版本1187 'flannel_version':'v0.15.1',1188 # calico版本1189 'calico_version':'v3.21.4',1190 # cilium版本1191 'cilium_version':'v1.9.5',1192 # coredns版本1193 'coredns_version':'1.8.4',1194 # dns-cache版本1195 'dns_cache_version':'1.17.0',1196 # helm v2 版本1197 'helm_v2_version':'v2.17.0',1198 # helm v3 版本1199 'helm_v3_version':'v3.8.0',1200 # nginx-ingress版本1201 'nginx_ingress_version':'v1.2.1',1202 # traefik-ingress版本1203 'traefik_ingress_version':'v2.6.1',1204 # metrics-server版本1205 'metrics_server_version':'v0.5.0',1206 # istio版本1207 'istio_version': '1.11.8',1208 # opa gatekeeper版本1209 'gatekeeper_version': 'v3.7.0'1210}1211v1_22_8 = {1212 'pause_version': '3.5',1213 'busybox_version': '1.28',1214 'crictl_version': 'v1.23.0',1215 'npd_version': 'v0.8.1',1216 'kube_bench_version': 'v0.6.8',1217 'runc_version': 'v1.1',1218 'cni_version': 'v0.8.6',1219 # 存储类镜像版本设置1220 'rbd_provisioner_version': 'v2.1.1-k8s1.11',1221 'cephfs_provisioner_version': "v2.1.0-k8s1.11",1222 'nfs_provisioner_version': 'v3.1.0-k8s1.11',1223 'vsphere_csi_version': 'v2.5.1',1224 'govc_version': 'v0.23.0',1225 'rook_ceph_version': 'v1.9.0',1226 'ceph_version': 'v16.2.7',1227 'huawei_csi_driver_version': '2.2.9',1228 'cinder_csi_version': 'v1.20.0',1229 # rook csi1230 'rook_csi_ceph_version': 'v3.6.0',1231 'rook_csi_resizer_version': 'v1.4.0',1232 'rook_csi_snapshotter_version': 'v5.0.1',1233 'rook_csi_attacher_version': 'v3.4.0',1234 'rook_csi_provisioner_version': 'v3.1.0',1235 'rook_csi_node_driver_registrar_version': 'v2.5.0',1236 # huawei csi1237 'huawei_csi_attacher_version': 'v1.2.1',1238 'huawei_csi_provisioner_version': 'v1.4.0',1239 'huawei_csi_node_driver_registrar_version': 'v1.2.0',1240 # vsphere csi1241 'vsphere_csi_livenessprobe_version': 'v2.6.0',1242 'vsphere_csi_attacher_version': 'v3.4.0',1243 'vsphere_csi_provisioner_version': 'v3.1.0',1244 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',1245 'vsphere_csi_resizer_version': "v1.4.0",1246 'vsphere_csi_snapshotter_version': "v5.0.1",1247 # cinder csi1248 'cinder_csi_attacher_version': 'v3.1.0',1249 'cinder_csi_provisioner_version': 'v2.1.1',1250 'cinder_csi_snapshotter_version': 'v2.1.3',1251 'cinder_csi_resizer_version': 'v1.1.0',1252 'cinder_csi_livenessprobe_version': 'v2.1.0',1253 'cinder_csi_node_driver_registrar_version': 'v1.3.0',1254 # etcd版本1255 'etcd_version':'v3.5.2',1256 # docker版本1257 'docker_version':'20.10.12',1258 # containerd版本1259 'containerd_version':'1.6.0',1260 # flannel版本1261 'flannel_version':'v0.15.1',1262 # calico版本1263 'calico_version':'v3.21.4',1264 # cilium版本1265 'cilium_version':'v1.9.5',1266 # coredns版本1267 'coredns_version':'1.8.4',1268 # dns-cache版本1269 'dns_cache_version':'1.17.0',1270 # helm v2 版本1271 'helm_v2_version':'v2.17.0',1272 # helm v3 版本1273 'helm_v3_version':'v3.8.0',1274 # nginx-ingress版本1275 'nginx_ingress_version':'v1.2.1',1276 # traefik-ingress版本1277 'traefik_ingress_version':'v2.6.1',1278 # metrics-server版本1279 'metrics_server_version':'v0.5.0',1280 # istio版本1281 'istio_version': '1.11.8',1282 # opa gatekeeper版本1283 'gatekeeper_version': 'v3.7.0'1284}1285v1_22_10 = {1286 'pause_version': '3.5',1287 'busybox_version': '1.28',1288 'crictl_version': 'v1.23.0',1289 'npd_version': 'v0.8.1',1290 'kube_bench_version': 'v0.6.8',1291 'runc_version': 'v1.1',1292 'cni_version': 'v0.8.6',1293 # 存储类镜像版本设置1294 'rbd_provisioner_version': 'v2.1.1-k8s1.11',1295 'cephfs_provisioner_version': "v2.1.0-k8s1.11",1296 'nfs_provisioner_version': 'v3.1.0-k8s1.11',1297 'vsphere_csi_version': 'v2.5.1',1298 'govc_version': 'v0.23.0',1299 'rook_ceph_version': 'v1.9.0',1300 'ceph_version': 'v16.2.7',1301 'huawei_csi_driver_version': '2.2.9',1302 'cinder_csi_version': 'v1.20.0',1303 # rook csi1304 'rook_csi_ceph_version': 'v3.6.0',1305 'rook_csi_resizer_version': 'v1.4.0',1306 'rook_csi_snapshotter_version': 'v5.0.1',1307 'rook_csi_attacher_version': 'v3.4.0',1308 'rook_csi_provisioner_version': 'v3.1.0',1309 'rook_csi_node_driver_registrar_version': 'v2.5.0',1310 # huawei csi1311 'huawei_csi_attacher_version': 'v1.2.1',1312 'huawei_csi_provisioner_version': 'v1.4.0',1313 'huawei_csi_node_driver_registrar_version': 'v1.2.0',1314 # vsphere csi1315 'vsphere_csi_livenessprobe_version': 'v2.6.0',1316 'vsphere_csi_attacher_version': 'v3.4.0',1317 'vsphere_csi_provisioner_version': 'v3.1.0',1318 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',1319 'vsphere_csi_resizer_version': "v1.4.0",1320 'vsphere_csi_snapshotter_version': "v5.0.1",1321 # cinder csi1322 'cinder_csi_attacher_version': 'v3.1.0',1323 'cinder_csi_provisioner_version': 'v2.1.1',1324 'cinder_csi_snapshotter_version': 'v2.1.3',1325 'cinder_csi_resizer_version': 'v1.1.0',1326 'cinder_csi_livenessprobe_version': 'v2.1.0',1327 'cinder_csi_node_driver_registrar_version': 'v1.3.0',1328 # etcd版本1329 'etcd_version':'v3.5.2',1330 # docker版本1331 'docker_version':'20.10.12',1332 # containerd版本1333 'containerd_version':'1.6.0',1334 # flannel版本1335 'flannel_version':'v0.15.1',1336 # calico版本1337 'calico_version':'v3.21.4',1338 # cilium版本1339 'cilium_version':'v1.9.5',1340 # coredns版本1341 'coredns_version':'1.8.4',1342 # dns-cache版本1343 'dns_cache_version':'1.17.0',1344 # helm v2 版本1345 'helm_v2_version':'v2.17.0',1346 # helm v3 版本1347 'helm_v3_version':'v3.8.0',1348 # nginx-ingress版本1349 'nginx_ingress_version':'v1.2.1',1350 # traefik-ingress版本1351 'traefik_ingress_version':'v2.6.1',1352 # metrics-server版本1353 'metrics_server_version':'v0.5.0',1354 # istio版本1355 'istio_version': '1.11.8',1356 # opa gatekeeper版本1357 'gatekeeper_version': 'v3.7.0'1358}1359v1_22_12 = {1360 'pause_version': '3.5',1361 'busybox_version': '1.28',1362 'crictl_version': 'v1.23.0',1363 'npd_version': 'v0.8.1',1364 'kube_bench_version': 'v0.6.8',1365 'runc_version': 'v1.1',1366 'cni_version': 'v0.8.6',1367 # 存储类镜像版本设置1368 'rbd_provisioner_version': 'v2.1.1-k8s1.11',1369 'cephfs_provisioner_version': "v2.1.0-k8s1.11",1370 'nfs_provisioner_version': 'v3.1.0-k8s1.11',1371 'vsphere_csi_version': 'v2.5.1',1372 'govc_version': 'v0.23.0',1373 'rook_ceph_version': 'v1.9.0',1374 'ceph_version': 'v16.2.7',1375 'huawei_csi_driver_version': '2.2.9',1376 'cinder_csi_version': 'v1.20.0',1377 # rook csi1378 'rook_csi_ceph_version': 'v3.6.0',1379 'rook_csi_resizer_version': 'v1.4.0',1380 'rook_csi_snapshotter_version': 'v5.0.1',1381 'rook_csi_attacher_version': 'v3.4.0',1382 'rook_csi_provisioner_version': 'v3.1.0',1383 'rook_csi_node_driver_registrar_version': 'v2.5.0',1384 # huawei csi1385 'huawei_csi_attacher_version': 'v1.2.1',1386 'huawei_csi_provisioner_version': 'v1.4.0',1387 'huawei_csi_node_driver_registrar_version': 'v1.2.0',1388 # vsphere csi1389 'vsphere_csi_livenessprobe_version': 'v2.6.0',1390 'vsphere_csi_attacher_version': 'v3.4.0',1391 'vsphere_csi_provisioner_version': 'v3.1.0',1392 'vsphere_csi_node_driver_registrar_version': 'v2.5.0',1393 'vsphere_csi_resizer_version': "v1.4.0",1394 'vsphere_csi_snapshotter_version': "v5.0.1",1395 # cinder csi1396 'cinder_csi_attacher_version': 'v3.1.0',1397 'cinder_csi_provisioner_version': 'v2.1.1',1398 'cinder_csi_snapshotter_version': 'v2.1.3',1399 'cinder_csi_resizer_version': 'v1.1.0',1400 'cinder_csi_livenessprobe_version': 'v2.1.0',1401 'cinder_csi_node_driver_registrar_version': 'v1.3.0',1402 # etcd版本1403 'etcd_version':'v3.5.2',1404 # docker版本1405 'docker_version':'20.10.12',1406 # containerd版本1407 'containerd_version':'1.6.0',1408 # flannel版本1409 'flannel_version':'v0.15.1',1410 # calico版本1411 'calico_version':'v3.21.4',1412 # cilium版本1413 'cilium_version':'v1.9.5',1414 # coredns版本1415 'coredns_version':'1.8.4',1416 # dns-cache版本1417 'dns_cache_version':'1.17.0',1418 # helm v2 版本1419 'helm_v2_version':'v2.17.0',1420 # helm v3 版本1421 'helm_v3_version':'v3.8.0',1422 # nginx-ingress版本1423 'nginx_ingress_version':'v1.2.1',1424 # traefik-ingress版本1425 'traefik_ingress_version':'v2.6.1',1426 # metrics-server版本1427 'metrics_server_version':'v0.5.0',1428 # istio版本1429 'istio_version': '1.11.8',1430 # opa gatekeeper版本1431 'gatekeeper_version': 'v3.7.0'...

Full Screen

Full Screen

openstack_cinder.py

Source:openstack_cinder.py Github

copy

Full Screen

1# Copyright (C) 2009 Red Hat, Inc., Joey Boggs <jboggs@redhat.com>2# Copyright (C) 2012 Rackspace US, Inc.,3# Justin Shepherd <jshepher@rackspace.com>4# Copyright (C) 2013 Red Hat, Inc., Flavio Percoco <fpercoco@redhat.com>5# Copyright (C) 2013 Red Hat, Inc., Jeremy Agee <jagee@redhat.com>6# This file is part of the sos project: https://github.com/sosreport/sos7#8# This copyrighted material is made available to anyone wishing to use,9# modify, copy, or redistribute it subject to the terms and conditions of10# version 2 of the GNU General Public License.11#12# See the LICENSE file in the source distribution for further information.13from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin14class OpenStackCinder(Plugin):15 short_desc = 'OpenStack cinder'16 plugin_name = "openstack_cinder"17 profiles = ('openstack', 'openstack_controller')18 containers = ('.*cinder_api',)19 var_puppet_gen = "/var/lib/config-data/puppet-generated/cinder"20 def setup(self):21 self.add_forbidden_path('/etc/cinder/volumes')22 cinder_config = ""23 cinder_config_opt = "--config-dir %s/etc/cinder/"24 # check if either standalone (cinder-api) or httpd wsgi (cinder_wsgi)25 # is up and running26 cinder_process = ["cinder_wsgi", "cinder-wsgi", "cinder-api"]27 in_ps = False28 for process in cinder_process:29 in_ps = self.check_process_by_name(process)30 if in_ps:31 break32 in_container = self.container_exists('.*cinder_api')33 if in_container:34 cinder_config = cinder_config_opt % self.var_puppet_gen35 # collect commands output if the standalone, wsgi or container is up36 if in_ps or in_container:37 self.add_cmd_output(38 "cinder-manage " + cinder_config + " db version",39 suggest_filename="cinder_db_version"40 )41 self.add_forbidden_path('/etc/cinder/volumes')42 self.add_copy_spec([43 "/etc/cinder/",44 self.var_puppet_gen + "/etc/cinder/",45 self.var_puppet_gen + "/etc/httpd/conf/",46 self.var_puppet_gen + "/etc/httpd/conf.d/",47 self.var_puppet_gen + "/etc/httpd/conf.modules.d/*.conf",48 self.var_puppet_gen + "/etc/my.cnf.d/tripleo.cnf",49 self.var_puppet_gen + "/etc/sysconfig/",50 ])51 if self.get_option("all_logs"):52 self.add_copy_spec([53 "/var/log/cinder/",54 "/var/log/httpd/cinder*",55 ])56 else:57 self.add_copy_spec([58 "/var/log/cinder/*.log",59 "/var/log/httpd/cinder*.log",60 ])61 def apply_regex_sub(self, regexp, subst):62 self.do_path_regex_sub("/etc/cinder/*", regexp, subst)63 self.do_path_regex_sub(64 self.var_puppet_gen + "/etc/cinder/*",65 regexp, subst66 )67 def postproc(self):68 protect_keys = [69 "admin_password", "backup_tsm_password", "chap_password",70 "nas_password", "cisco_fc_fabric_password", "coraid_password",71 "eqlx_chap_password", "fc_fabric_password",72 "hitachi_auth_password", "hitachi_horcm_password",73 "hp3par_password", "hplefthand_password", "memcache_secret_key",74 "netapp_password", "netapp_sa_password", "nexenta_password",75 "password", "qpid_password", "rabbit_password", "san_password",76 "ssl_key_password", "vmware_host_password", "zadara_password",77 "zfssa_initiator_password", "hmac_keys", "zfssa_target_password",78 "os_privileged_user_password", "transport_url"79 ]80 connection_keys = ["connection"]81 self.apply_regex_sub(82 r"((?m)^\s*(%s)\s*=\s*)(.*)" % "|".join(protect_keys),83 r"\1*********"84 )85 self.apply_regex_sub(86 r"((?m)^\s*(%s)\s*=\s*(.*)://(\w*):)(.*)(@(.*))" %87 "|".join(connection_keys),88 r"\1*********\6"89 )90class DebianCinder(OpenStackCinder, DebianPlugin, UbuntuPlugin):91 cinder = False92 packages = (93 'cinder-api',94 'cinder-backup',95 'cinder-common',96 'cinder-scheduler',97 'cinder-volume',98 'python-cinder',99 'python-cinderclient'100 )101 def setup(self):102 super(DebianCinder, self).setup()103 if self.get_option("all_logs"):104 self.add_copy_spec([105 "/var/log/apache/cinder*",106 ])107 else:108 self.add_copy_spec([109 "/var/log/apache/cinder*.log",110 ])111class RedHatCinder(OpenStackCinder, RedHatPlugin):112 cinder = False113 packages = ('openstack-selinux',)114 def setup(self):115 super(RedHatCinder, self).setup()116 self.add_copy_spec(["/etc/sudoers.d/cinder"])...

Full Screen

Full Screen

volumes.py

Source:volumes.py Github

copy

Full Screen

1from flask import request, Blueprint, jsonify2from wafec.testing.driver.openstack import commons3from wafec.testing.driver.openstack import mappers4from wafec.testing.driver.openstack import errors5from cinderclient.exceptions import BadRequest, NotFound6volumes_api = Blueprint('volumes', __name__)7@volumes_api.route('/', methods=['GET'])8def get():9 cinder = commons.cinder_client(request.args.get('key'))10 name = request.args.get('name')11 search_opts = {}12 if name:13 search_opts['name'] = name14 volumes = cinder.volumes.list(search_opts=search_opts)15 return jsonify(list(map(lambda volume: mappers.volume_to_view(volume), volumes))), 20116@volumes_api.route('/<id>', methods=['GET'])17def get_by_id(id):18 cinder = commons.cinder_client(request.args.get('key'))19 volumes = cinder.volumes.list(search_opts={'id': id})20 if volumes and len(volumes):21 print(dir(volumes[0]))22 print(volumes[0].attachments)23 return jsonify(mappers.volume_to_view(volumes[0])), 20124 else:25 return errors.http_notfound()26@volumes_api.route('/', methods=['POST'])27def post():28 cinder = commons.cinder_client(request.args.get('key'))29 volume = cinder.volumes.create(name=request.json['name'],30 size=int(request.json['size']),31 availability_zone=request.json['availability_zone'])32 return jsonify({'id': volume.id})33@volumes_api.route('/<id>', methods=['DELETE'])34def delete(id):35 cinder = commons.cinder_client(request.args.get('key'))36 volumes = cinder.volumes.list(search_opts={'id': id})37 cinder.volumes.delete(volumes[0])38 return jsonify(success=True)39@volumes_api.route('/<id>/actions/extend', methods=['POST'])40def extend(id):41 cinder = commons.cinder_client(request.args.get('key'))42 volumes = cinder.volumes.list(search_opts={'id': id})43 if not volumes or not len(volumes):44 return errors.http_notfound()45 volume = volumes[0]46 cinder.volumes.extend(volume, int(request.args.json['size']))47 return jsonify(success=True)48@volumes_api.route('/<id>/actions/attach', methods=['POST'])49def attach(id):50 cinder = commons.cinder_client(request.args.get('key'))51 volumes = cinder.volumes.list(search_opts={'id': id})52 if not volumes or not len(volumes):53 return errors.http_notfound()54 volume = volumes[0]55 cinder.volumes.attach(volume, request.json['server'], mountpoint=request.json['mountpoint'])56 return jsonify(success=True)57@volumes_api.route('/<id>/actions/detach', methods=['POST'])58def detach(id):59 cinder = commons.cinder_client(request.args.get('key'))60 volumes = cinder.volumes.list(search_opts={'id': id})61 if not volumes or not len(volumes):62 return errors.http_notfound()63 volume = volumes[0]64 cinder.volumes.detach(volume)65 return jsonify(success=True)66@volumes_api.errorhandler(NotFound)67@volumes_api.errorhandler(BadRequest)68def client_error(e):69 response = jsonify({70 'message': str(e)71 })72 if isinstance(e, NotFound):73 response.status_code = 40474 else:75 response.status_code = 400...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tempest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful