benchmark-runner 1.0.823__py3-none-any.whl → 1.0.824__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 +13 -11
- benchmark_runner/workloads/bootstorm_vm.py +4 -3
- {benchmark_runner-1.0.823.dist-info → benchmark_runner-1.0.824.dist-info}/METADATA +1 -1
- {benchmark_runner-1.0.823.dist-info → benchmark_runner-1.0.824.dist-info}/RECORD +7 -7
- {benchmark_runner-1.0.823.dist-info → benchmark_runner-1.0.824.dist-info}/WHEEL +0 -0
- {benchmark_runner-1.0.823.dist-info → benchmark_runner-1.0.824.dist-info}/licenses/LICENSE +0 -0
- {benchmark_runner-1.0.823.dist-info → benchmark_runner-1.0.824.dist-info}/top_level.txt +0 -0
benchmark_runner/common/oc/oc.py
CHANGED
|
@@ -1582,21 +1582,24 @@ class OC(SSH):
|
|
|
1582
1582
|
raise RuntimeError(f"Failed to remove folder {folder_path}: {remove_error}")
|
|
1583
1583
|
raise RuntimeError(f"Failed to generate CNV must-gather logs for version {cnv_version}: {e}")
|
|
1584
1584
|
|
|
1585
|
-
def save_to_yaml(self, vm_name, output_dir='/tmp', namespace: str = environment_variables.environment_variables_dict['namespace']):
|
|
1585
|
+
def save_to_yaml(self, vm_name, vm_access, output_dir='/tmp', namespace: str = environment_variables.environment_variables_dict['namespace']):
|
|
1586
1586
|
"""
|
|
1587
1587
|
This method save pod and vm into yaml per namespace
|
|
1588
1588
|
:param vm_name:
|
|
1589
|
+
:param vm_access: True is vm accessible, if not there is no pod launcher
|
|
1589
1590
|
:param namespace:
|
|
1590
1591
|
:param output_dir:
|
|
1591
1592
|
:return:
|
|
1592
1593
|
"""
|
|
1593
|
-
self.run(f"oc get
|
|
1594
|
-
|
|
1595
|
-
f"oc get
|
|
1596
|
-
|
|
1597
|
-
|
|
1594
|
+
self.run(f"oc get vm '{vm_name}' -n '{namespace}' -o yaml > '{output_dir}/vm-{vm_name}.yaml'")
|
|
1595
|
+
if vm_access:
|
|
1596
|
+
self.run(f"oc get vmi '{vm_name}' -n '{namespace}' -o yaml > '{output_dir}/vmi-{vm_name}.yaml'")
|
|
1597
|
+
pod_name = self.run(
|
|
1598
|
+
f"oc get pod -n '{namespace}' -o jsonpath=\"{{.items[?(@.metadata.generateName=='virt-launcher-{vm_name}-')].metadata.name}}\""
|
|
1599
|
+
)
|
|
1600
|
+
self.run(f"oc get pod '{pod_name}' -n '{namespace}' -o yaml > '{output_dir}/{pod_name}.yaml'")
|
|
1598
1601
|
|
|
1599
|
-
def
|
|
1602
|
+
def save_describe_yaml(self, vm_name, vm_access, output_dir='/tmp', namespace: str = environment_variables.environment_variables_dict['namespace']):
|
|
1600
1603
|
"""
|
|
1601
1604
|
This method save pod and vm into yaml per namespace
|
|
1602
1605
|
:param vm_name:
|
|
@@ -1605,11 +1608,10 @@ class OC(SSH):
|
|
|
1605
1608
|
:param output_dir:
|
|
1606
1609
|
:return:
|
|
1607
1610
|
"""
|
|
1611
|
+
self.run(f"oc describe vm '{vm_name}' -n '{namespace}' > '{output_dir}/describe-vm-{vm_name}.yaml'")
|
|
1608
1612
|
if vm_access:
|
|
1609
|
-
self.run(f"oc describe vmi '{vm_name}' -n '{namespace}' > '{output_dir}/
|
|
1613
|
+
self.run(f"oc describe vmi '{vm_name}' -n '{namespace}' > '{output_dir}/describe-vmi-{vm_name}.yaml'")
|
|
1610
1614
|
pod_name = self.run(
|
|
1611
1615
|
f'oc get pod -n {namespace} -o jsonpath="{{.items[?(@.metadata.generateName==\'virt-launcher-{vm_name}-\')].metadata.name}}"'
|
|
1612
1616
|
)
|
|
1613
|
-
self.run(f"oc describe pod '{pod_name}' -n '{namespace}' > '{output_dir}/
|
|
1614
|
-
else:
|
|
1615
|
-
self.run(f"oc describe vm '{vm_name}' -n '{namespace}' > '{output_dir}/describe_vm_{vm_name}.yaml'")
|
|
1617
|
+
self.run(f"oc describe pod '{pod_name}' -n '{namespace}' > '{output_dir}/describe-pod-{pod_name}.yaml'")
|
|
@@ -166,7 +166,7 @@ class BootstormVM(WorkloadsOperations):
|
|
|
166
166
|
|
|
167
167
|
def _verify_single_vm_access(self, vm_name, retries=5, delay=10):
|
|
168
168
|
"""
|
|
169
|
-
This method verifies single
|
|
169
|
+
This method verifies access to a single VM using a retry mechanism, and saves the error and YAML file in case of failure
|
|
170
170
|
:param vm_name: The name of the VM to verify.
|
|
171
171
|
:param retries: Number of retry attempts.
|
|
172
172
|
:param delay: Time to wait (in seconds) between retries.
|
|
@@ -214,8 +214,11 @@ class BootstormVM(WorkloadsOperations):
|
|
|
214
214
|
status_message = self._data_dict.get('access_status') or "No status available"
|
|
215
215
|
|
|
216
216
|
try:
|
|
217
|
+
self._oc.save_to_yaml(vm_name, str(access_status).lower() == 'true', output_dir=self._run_artifacts_path)
|
|
218
|
+
self._oc.save_describe_yaml(vm_name, str(access_status).lower() == 'true', output_dir=self._run_artifacts_path)
|
|
217
219
|
with open(error_log_path, "w") as error_log_file:
|
|
218
220
|
error_log_file.write(self._oc.get_vm_status(vm_name=vm_name) + "\n")
|
|
221
|
+
error_log_file.write("VM Status: " + access_status + "\n")
|
|
219
222
|
error_log_file.write("Running node: " + self._oc.get_vm_node(vm_name=vm_name) + "\n\n")
|
|
220
223
|
error_log_file.write(str(status_message) + "\n")
|
|
221
224
|
except Exception as write_err:
|
|
@@ -231,9 +234,7 @@ class BootstormVM(WorkloadsOperations):
|
|
|
231
234
|
:param return_dict:
|
|
232
235
|
:return:
|
|
233
236
|
"""
|
|
234
|
-
self._oc.save_to_yaml(vm_name, output_dir=self._run_artifacts_path)
|
|
235
237
|
vm_access = self._verify_single_vm_access(vm_name)
|
|
236
|
-
self._oc.save_describe_yml(vm_name, str(vm_access).lower() == 'true', output_dir=self._run_artifacts_path)
|
|
237
238
|
return_dict[vm_name] = vm_access
|
|
238
239
|
|
|
239
240
|
def _verify_vms_access_in_parallel(self, vm_names: list):
|
|
@@ -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=ht1FpW5QCdFxJkEemwBXzrymIrHDw0RQoEpm5z51MNg,71949
|
|
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=yA6xuBQJSFz1a8YgwLgUlt6BcxjopGURLG-Z0KYWkp8,21476
|
|
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=DUwvmswAgOXEbrVrV8OTRhrX4K18jnCwedHo9-W5z2s,27068
|
|
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.824.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
178
|
+
benchmark_runner-1.0.824.dist-info/METADATA,sha256=EtPVAffE9Wtn5SmHq11C5oSsWZpZgzfX6Bsd6JAHATg,11520
|
|
179
|
+
benchmark_runner-1.0.824.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
180
|
+
benchmark_runner-1.0.824.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
|
|
181
|
+
benchmark_runner-1.0.824.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|