benchmark-runner 1.0.865__py3-none-any.whl → 1.0.867__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of benchmark-runner might be problematic. Click here for more details.
- benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py +1 -1
- benchmark_runner/common/oc/oc.py +16 -1
- benchmark_runner/workloads/bootstorm_vm.py +1 -3
- {benchmark_runner-1.0.865.dist-info → benchmark_runner-1.0.867.dist-info}/METADATA +1 -1
- {benchmark_runner-1.0.865.dist-info → benchmark_runner-1.0.867.dist-info}/RECORD +8 -8
- {benchmark_runner-1.0.865.dist-info → benchmark_runner-1.0.867.dist-info}/WHEEL +0 -0
- {benchmark_runner-1.0.865.dist-info → benchmark_runner-1.0.867.dist-info}/licenses/LICENSE +0 -0
- {benchmark_runner-1.0.865.dist-info → benchmark_runner-1.0.867.dist-info}/top_level.txt +0 -0
|
@@ -119,7 +119,7 @@ class BareMetalOperations:
|
|
|
119
119
|
return True
|
|
120
120
|
else:
|
|
121
121
|
if self._must_gather_log:
|
|
122
|
-
oc.
|
|
122
|
+
oc.generate_ocp_must_gather(destination_path=self._run_artifacts_path)
|
|
123
123
|
raise OCPUpgradeFailed(status=oc.get_cluster_status())
|
|
124
124
|
|
|
125
125
|
def _install_ocp_cmd(self):
|
benchmark_runner/common/oc/oc.py
CHANGED
|
@@ -52,6 +52,10 @@ class OC(SSH):
|
|
|
52
52
|
else:
|
|
53
53
|
self._kubeadmin_password = self.__environment_variables_dict.get('kubeadmin_password', '')
|
|
54
54
|
self._kubeconfig_path = self.__environment_variables_dict.get('kubeconfig_path', '')
|
|
55
|
+
self._must_gather_log = self.__environment_variables_dict.get('must_gather_log', '')
|
|
56
|
+
self._run_artifacts_path = self.__environment_variables_dict.get('run_artifacts_path', '')
|
|
57
|
+
self._cnv_version = self.__environment_variables_dict.get('cnv_version', '')
|
|
58
|
+
self._odf_version = self.__environment_variables_dict.get('odf_version', '')
|
|
55
59
|
# Singleton Login class
|
|
56
60
|
SingletonOCLogin(self)
|
|
57
61
|
|
|
@@ -548,6 +552,9 @@ class OC(SSH):
|
|
|
548
552
|
time.sleep(wait_time)
|
|
549
553
|
current_wait_time += wait_time
|
|
550
554
|
logger.info(f"oc get nodes:\n{self.run('oc get nodes')}")
|
|
555
|
+
if self._must_gather_log:
|
|
556
|
+
self.generate_must_gather(run_artifacts_path=self._run_artifacts_path, cnv_version=self._cnv_version,
|
|
557
|
+
odf_version=self._odf_version)
|
|
551
558
|
raise NodeNotReady(nodes_status=nodes_status)
|
|
552
559
|
|
|
553
560
|
@typechecked
|
|
@@ -1554,7 +1561,7 @@ class OC(SSH):
|
|
|
1554
1561
|
|
|
1555
1562
|
@typechecked
|
|
1556
1563
|
@logger_time_stamp
|
|
1557
|
-
def
|
|
1564
|
+
def generate_ocp_must_gather(self, destination_path: str = '/tmp'):
|
|
1558
1565
|
"""
|
|
1559
1566
|
Generates OpenShift must-gather and stores it in the destination path.
|
|
1560
1567
|
|
|
@@ -1636,6 +1643,14 @@ class OC(SSH):
|
|
|
1636
1643
|
raise RuntimeError(f"Failed to remove folder {folder_path}: {remove_error}")
|
|
1637
1644
|
raise RuntimeError(f"Failed to generate CNV must-gather logs for version {cnv_version}: {e}")
|
|
1638
1645
|
|
|
1646
|
+
def generate_must_gather(self, run_artifacts_path, cnv_version, odf_version):
|
|
1647
|
+
"""
|
|
1648
|
+
This method generates must gather and saves it in the run artifacts path
|
|
1649
|
+
"""
|
|
1650
|
+
self.generate_ocp_must_gather(destination_path=run_artifacts_path)
|
|
1651
|
+
self.generate_cnv_must_gather(destination_path=run_artifacts_path, cnv_version=cnv_version)
|
|
1652
|
+
self.generate_odf_must_gather(destination_path=run_artifacts_path, odf_version=odf_version)
|
|
1653
|
+
|
|
1639
1654
|
def save_to_yaml(self, vm_name, vm_access, output_dir='/tmp', namespace: str = environment_variables.environment_variables_dict['namespace']):
|
|
1640
1655
|
"""
|
|
1641
1656
|
This method save pod and vm into yaml per namespace
|
|
@@ -304,9 +304,7 @@ class BootstormVM(WorkloadsOperations):
|
|
|
304
304
|
|
|
305
305
|
if failure_vms:
|
|
306
306
|
if self._must_gather_log:
|
|
307
|
-
self._oc.generate_must_gather(destination_path=self._run_artifacts_path)
|
|
308
|
-
self._oc.generate_cnv_must_gather(destination_path=self._run_artifacts_path, cnv_version=self._cnv_version)
|
|
309
|
-
self._oc.generate_odf_must_gather(destination_path=self._run_artifacts_path, odf_version=self._odf_version)
|
|
307
|
+
self._oc.generate_must_gather(destination_path=self._run_artifacts_path, cnv_version=self._cnv_version, odf_version=self._odf_version)
|
|
310
308
|
# Error log with details of failed VM, for catching all vm errors
|
|
311
309
|
logger.error(f"Failed to verify virtctl SSH login for the following VMs: {', '.join(failure_vms)}")
|
|
312
310
|
# Upload artifacts in validation
|
|
@@ -23,7 +23,7 @@ benchmark_runner/common/clouds/Azure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeu
|
|
|
23
23
|
benchmark_runner/common/clouds/Azure/azure_operations.py,sha256=Ok3l0rxCAqZd2_yzuOuUO6Zs3KjvYC85p2VQf7uyMnM,4735
|
|
24
24
|
benchmark_runner/common/clouds/BareMetal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
benchmark_runner/common/clouds/BareMetal/bare_metal_exceptions.py,sha256=d-aeCfsfGpZ3e1Bho1M8pYlN0D8R-ffjwPm9YwGHvhU,1552
|
|
26
|
-
benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py,sha256=
|
|
26
|
+
benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py,sha256=rvw818kc3r1bcE4T1g8IppdKgA732yaCuN5cUQ9uYMY,19631
|
|
27
27
|
benchmark_runner/common/clouds/IBM/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
benchmark_runner/common/clouds/IBM/ibm_exceptions.py,sha256=psqHgqEBRbfFRWD1blwaWGad-QpThgOl8Puq76VIP80,417
|
|
29
29
|
benchmark_runner/common/clouds/IBM/ibm_operations.py,sha256=ZpF3Vnu2YKqAEYVf7ofBg_kOavMaLCXYCt0CdX8dKd4,3419
|
|
@@ -47,7 +47,7 @@ benchmark_runner/common/logger/init_logger.py,sha256=ERa-gNqrl2pZybj7v3csvmao7Mv
|
|
|
47
47
|
benchmark_runner/common/logger/logger_exceptions.py,sha256=rivdlRm_jIsKQ53rP_-HX8emdtOmQNO4JuIkg8fnBoc,454
|
|
48
48
|
benchmark_runner/common/logger/logger_time_stamp.py,sha256=2JgugN9LpXF4Ijx0wPRzz3DAGJB8eJpM5g1qPvbWbV8,1479
|
|
49
49
|
benchmark_runner/common/oc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
|
-
benchmark_runner/common/oc/oc.py,sha256=
|
|
50
|
+
benchmark_runner/common/oc/oc.py,sha256=UAHEo6L5oFeTNguiFVuHtMXuGOE9W9ox5We8NetSiLk,75806
|
|
51
51
|
benchmark_runner/common/oc/oc_exceptions.py,sha256=XfKUzeK3Ors_Y2csQEoGqrlsZlYvq6OXLkFh9s_mQRM,6311
|
|
52
52
|
benchmark_runner/common/oc/singleton_oc_login.py,sha256=OISe7GxN-povQBk1GYVwkdcuEvIbDQP5QImYbNvhX5Y,2395
|
|
53
53
|
benchmark_runner/common/ocp_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -167,15 +167,15 @@ benchmark_runner/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZ
|
|
|
167
167
|
benchmark_runner/main/main.py,sha256=A744O550wQh37hhk10H0HlT28LZ_2EOaRlJyWG6Pras,14083
|
|
168
168
|
benchmark_runner/main/temporary_environment_variables.py,sha256=ODSHkfhgvdr_b2e3XyvykW21MVjSdyqimREyMc2klRE,957
|
|
169
169
|
benchmark_runner/workloads/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
170
|
-
benchmark_runner/workloads/bootstorm_vm.py,sha256=
|
|
170
|
+
benchmark_runner/workloads/bootstorm_vm.py,sha256=GsypprQm_PVEr5lvFnhfNzKEjbsTniQY8DdlDmxQbfs,21564
|
|
171
171
|
benchmark_runner/workloads/vdbench_pod.py,sha256=feu3lvNumfBCD-An6__xS5Kt9nA50A_-0FmqTXuU9iw,10011
|
|
172
172
|
benchmark_runner/workloads/vdbench_vm.py,sha256=4rRbE-jAbmNrhP-k8F_OREkJ59VfQ7wLrfRQPwDneJg,9786
|
|
173
173
|
benchmark_runner/workloads/windows_vm.py,sha256=qFVD3qBFMnVpYXnrpam-7H5-0Yzvx6qtaEEZx4T-ex4,2415
|
|
174
174
|
benchmark_runner/workloads/workloads.py,sha256=F9fnk4h715tq7ANSCbDH0jktB8fpr_u3YG61Kdi5_os,1422
|
|
175
175
|
benchmark_runner/workloads/workloads_exceptions.py,sha256=u7VII95iPRF_YhfpGH1U1RmgiIYESMOtbSF1dz7_ToE,1858
|
|
176
176
|
benchmark_runner/workloads/workloads_operations.py,sha256=Z7cT5rrLmz_SEIbtxbxyniaA0dQ07s8nK1I2EWcoBqM,27378
|
|
177
|
-
benchmark_runner-1.0.
|
|
178
|
-
benchmark_runner-1.0.
|
|
179
|
-
benchmark_runner-1.0.
|
|
180
|
-
benchmark_runner-1.0.
|
|
181
|
-
benchmark_runner-1.0.
|
|
177
|
+
benchmark_runner-1.0.867.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
178
|
+
benchmark_runner-1.0.867.dist-info/METADATA,sha256=2WpJISMhOQVo76BFBnDvovBe6nNoDBywdtJt25hxjQU,11582
|
|
179
|
+
benchmark_runner-1.0.867.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
180
|
+
benchmark_runner-1.0.867.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
|
|
181
|
+
benchmark_runner-1.0.867.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|