benchmark-runner 1.0.794__py3-none-any.whl → 1.0.796__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/oc/oc.py +14 -0
- benchmark_runner/workloads/bootstorm_vm.py +24 -19
- {benchmark_runner-1.0.794.dist-info → benchmark_runner-1.0.796.dist-info}/METADATA +1 -1
- {benchmark_runner-1.0.794.dist-info → benchmark_runner-1.0.796.dist-info}/RECORD +7 -7
- {benchmark_runner-1.0.794.dist-info → benchmark_runner-1.0.796.dist-info}/WHEEL +1 -1
- {benchmark_runner-1.0.794.dist-info → benchmark_runner-1.0.796.dist-info}/licenses/LICENSE +0 -0
- {benchmark_runner-1.0.794.dist-info → benchmark_runner-1.0.796.dist-info}/top_level.txt +0 -0
benchmark_runner/common/oc/oc.py
CHANGED
|
@@ -1559,3 +1559,17 @@ class OC(SSH):
|
|
|
1559
1559
|
except Exception as remove_error:
|
|
1560
1560
|
raise RuntimeError(f"Failed to remove folder {folder_path}: {remove_error}")
|
|
1561
1561
|
raise RuntimeError(f"Failed to generate CNV must-gather logs for version {cnv_version}: {e}")
|
|
1562
|
+
|
|
1563
|
+
def save_to_yaml(self, vm_name, output_dir='/tmp', namespace: str = environment_variables.environment_variables_dict['namespace']):
|
|
1564
|
+
"""
|
|
1565
|
+
This method save pod and vm into yaml per namespace
|
|
1566
|
+
:param vm_name:
|
|
1567
|
+
:param namespace:
|
|
1568
|
+
:param output_dir:
|
|
1569
|
+
:return:
|
|
1570
|
+
"""
|
|
1571
|
+
self.run(f"oc get vmi {vm_name} -n {namespace} -o yaml > '{output_dir}/{vm_name}.yaml'")
|
|
1572
|
+
pod_name = self.run(
|
|
1573
|
+
f'oc get pod -n {namespace} -o jsonpath="{{.items[?(@.metadata.generateName==\'virt-launcher-{vm_name}-\')].metadata.name}}"'
|
|
1574
|
+
)
|
|
1575
|
+
self.run(f"oc get pod {pod_name} -n {namespace} -o yaml > '{output_dir}/{pod_name}.yaml'")
|
|
@@ -123,15 +123,15 @@ class BootstormVM(WorkloadsOperations):
|
|
|
123
123
|
self._data_dict.update(self._prometheus_result)
|
|
124
124
|
total_run_time = self._get_bootstorm_vm_total_run_time()
|
|
125
125
|
self._data_dict.update({'total_run_time': total_run_time})
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
126
|
+
# Google drive run_artifacts_url folder path
|
|
127
|
+
if self._google_drive_path and self.get_run_artifacts_google_drive():
|
|
128
|
+
self._data_dict.update({'run_artifacts_url': self.get_run_artifacts_google_drive()})
|
|
129
|
+
if self._es_host:
|
|
130
|
+
# upload several run results
|
|
131
|
+
self._upload_to_elasticsearch(index=self._es_index, kind=self._kind, status=self._status,
|
|
132
|
+
result=self._data_dict)
|
|
133
|
+
# verify that data upload to elastic search according to unique uuid
|
|
134
|
+
self._verify_elasticsearch_data_uploaded(index=self._es_index, uuid=self._uuid)
|
|
135
135
|
|
|
136
136
|
def _run_vm(self):
|
|
137
137
|
"""
|
|
@@ -218,6 +218,7 @@ class BootstormVM(WorkloadsOperations):
|
|
|
218
218
|
:param return_dict:
|
|
219
219
|
:return:
|
|
220
220
|
"""
|
|
221
|
+
self._oc.save_to_yaml(vm_name, output_dir=self._run_artifacts_path)
|
|
221
222
|
status = self._verify_single_vm(vm_name)
|
|
222
223
|
return_dict[vm_name] = status
|
|
223
224
|
|
|
@@ -289,17 +290,21 @@ class BootstormVM(WorkloadsOperations):
|
|
|
289
290
|
cnv_version=self._cnv_version)
|
|
290
291
|
self._oc.generate_odf_must_gather(destination_path=self._run_artifacts_path,
|
|
291
292
|
odf_version=self._odf_version)
|
|
292
|
-
# Upload artifacts
|
|
293
|
-
if self._google_drive_shared_drive_id:
|
|
294
|
-
self.upload_run_artifacts_to_google_drive()
|
|
295
|
-
elif self._endpoint_url and not self._google_drive_shared_drive_id:
|
|
296
|
-
self.upload_run_artifacts_to_s3()
|
|
297
|
-
else:
|
|
298
|
-
self._save_artifacts_local = True
|
|
299
|
-
|
|
300
293
|
# Error log with details of failed VM, for catching all vm errors
|
|
301
|
-
logger.error(
|
|
302
|
-
|
|
294
|
+
logger.error(f"Failed to verify virtctl SSH login for the following VMs: {', '.join(failure_vms)}")
|
|
295
|
+
# Upload artifacts
|
|
296
|
+
if self._google_drive_shared_drive_id:
|
|
297
|
+
self.upload_run_artifacts_to_google_drive()
|
|
298
|
+
elif self._endpoint_url and not self._google_drive_shared_drive_id:
|
|
299
|
+
self.upload_run_artifacts_to_s3()
|
|
300
|
+
else:
|
|
301
|
+
self._save_artifacts_local = True
|
|
302
|
+
if self._es_host:
|
|
303
|
+
self._data_dict.update({'run_artifacts_url': self.get_run_artifacts_google_drive()})
|
|
304
|
+
# upload several run results
|
|
305
|
+
self._upload_to_elasticsearch(index=self._es_index, kind=self._kind, status=self._status,result=self._data_dict)
|
|
306
|
+
# verify that data upload to elastic search according to unique uuid
|
|
307
|
+
self._verify_elasticsearch_data_uploaded(index=self._es_index, uuid=self._uuid)
|
|
303
308
|
|
|
304
309
|
except Exception as err:
|
|
305
310
|
# Save run artifacts logs
|
|
@@ -46,7 +46,7 @@ benchmark_runner/common/logger/init_logger.py,sha256=ERa-gNqrl2pZybj7v3csvmao7Mv
|
|
|
46
46
|
benchmark_runner/common/logger/logger_exceptions.py,sha256=rivdlRm_jIsKQ53rP_-HX8emdtOmQNO4JuIkg8fnBoc,454
|
|
47
47
|
benchmark_runner/common/logger/logger_time_stamp.py,sha256=2JgugN9LpXF4Ijx0wPRzz3DAGJB8eJpM5g1qPvbWbV8,1479
|
|
48
48
|
benchmark_runner/common/oc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
|
-
benchmark_runner/common/oc/oc.py,sha256=
|
|
49
|
+
benchmark_runner/common/oc/oc.py,sha256=m0fUSau6RhZlKLT8HY2D-RpH1Q2GVFzuXsMNW98AjTI,69552
|
|
50
50
|
benchmark_runner/common/oc/oc_exceptions.py,sha256=XfKUzeK3Ors_Y2csQEoGqrlsZlYvq6OXLkFh9s_mQRM,6311
|
|
51
51
|
benchmark_runner/common/oc/singleton_oc_login.py,sha256=OISe7GxN-povQBk1GYVwkdcuEvIbDQP5QImYbNvhX5Y,2395
|
|
52
52
|
benchmark_runner/common/ocp_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -166,15 +166,15 @@ benchmark_runner/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZ
|
|
|
166
166
|
benchmark_runner/main/main.py,sha256=A744O550wQh37hhk10H0HlT28LZ_2EOaRlJyWG6Pras,14083
|
|
167
167
|
benchmark_runner/main/temporary_environment_variables.py,sha256=ODSHkfhgvdr_b2e3XyvykW21MVjSdyqimREyMc2klRE,957
|
|
168
168
|
benchmark_runner/workloads/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
169
|
-
benchmark_runner/workloads/bootstorm_vm.py,sha256=
|
|
169
|
+
benchmark_runner/workloads/bootstorm_vm.py,sha256=B30o-9ZHGR5qZT_xhPTNAbF6GDXmlHnL8GBqjisNJks,20652
|
|
170
170
|
benchmark_runner/workloads/vdbench_pod.py,sha256=feu3lvNumfBCD-An6__xS5Kt9nA50A_-0FmqTXuU9iw,10011
|
|
171
171
|
benchmark_runner/workloads/vdbench_vm.py,sha256=4rRbE-jAbmNrhP-k8F_OREkJ59VfQ7wLrfRQPwDneJg,9786
|
|
172
172
|
benchmark_runner/workloads/windows_vm.py,sha256=qFVD3qBFMnVpYXnrpam-7H5-0Yzvx6qtaEEZx4T-ex4,2415
|
|
173
173
|
benchmark_runner/workloads/workloads.py,sha256=F9fnk4h715tq7ANSCbDH0jktB8fpr_u3YG61Kdi5_os,1422
|
|
174
174
|
benchmark_runner/workloads/workloads_exceptions.py,sha256=u7VII95iPRF_YhfpGH1U1RmgiIYESMOtbSF1dz7_ToE,1858
|
|
175
175
|
benchmark_runner/workloads/workloads_operations.py,sha256=TDUcCClR6P1h7fuyIpelMx5-vmruHzRd9c6Nb0Ggj7s,25369
|
|
176
|
-
benchmark_runner-1.0.
|
|
177
|
-
benchmark_runner-1.0.
|
|
178
|
-
benchmark_runner-1.0.
|
|
179
|
-
benchmark_runner-1.0.
|
|
180
|
-
benchmark_runner-1.0.
|
|
176
|
+
benchmark_runner-1.0.796.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
177
|
+
benchmark_runner-1.0.796.dist-info/METADATA,sha256=JkBuK1bexRqOm-5en0DLGi8LyxlQOcfWHbeqGIGOXyo,11520
|
|
178
|
+
benchmark_runner-1.0.796.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
179
|
+
benchmark_runner-1.0.796.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
|
|
180
|
+
benchmark_runner-1.0.796.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|