benchmark-runner 1.0.816__py3-none-any.whl → 1.0.818__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/workloads/bootstorm_vm.py +17 -10
- {benchmark_runner-1.0.816.dist-info → benchmark_runner-1.0.818.dist-info}/METADATA +1 -1
- {benchmark_runner-1.0.816.dist-info → benchmark_runner-1.0.818.dist-info}/RECORD +6 -6
- {benchmark_runner-1.0.816.dist-info → benchmark_runner-1.0.818.dist-info}/WHEEL +0 -0
- {benchmark_runner-1.0.816.dist-info → benchmark_runner-1.0.818.dist-info}/licenses/LICENSE +0 -0
- {benchmark_runner-1.0.816.dist-info → benchmark_runner-1.0.818.dist-info}/top_level.txt +0 -0
|
@@ -215,7 +215,8 @@ class BootstormVM(WorkloadsOperations):
|
|
|
215
215
|
|
|
216
216
|
try:
|
|
217
217
|
with open(error_log_path, "w") as error_log_file:
|
|
218
|
-
error_log_file.write(self._oc.get_vm_status(vm_name=vm_name) + "\n
|
|
218
|
+
error_log_file.write(self._oc.get_vm_status(vm_name=vm_name) + "\n")
|
|
219
|
+
error_log_file.write("Running node: " + self._oc.get_vm_node(vm_name=vm_name) + "\n\n")
|
|
219
220
|
error_log_file.write(str(status_message) + "\n")
|
|
220
221
|
except Exception as write_err:
|
|
221
222
|
logger.error(f"Failed to write error log for {vm_name}: {write_err}")
|
|
@@ -235,12 +236,16 @@ class BootstormVM(WorkloadsOperations):
|
|
|
235
236
|
self._oc.save_describe_yml(vm_name, str(vm_access).lower() == 'true', output_dir=self._run_artifacts_path)
|
|
236
237
|
return_dict[vm_name] = vm_access
|
|
237
238
|
|
|
238
|
-
def _verify_vms_access_in_parallel(self, vm_names):
|
|
239
|
+
def _verify_vms_access_in_parallel(self, vm_names: list):
|
|
239
240
|
"""
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
:
|
|
241
|
+
Verifies access to a list of VMs in parallel using subprocesses.
|
|
242
|
+
|
|
243
|
+
:param vm_names: List of VM names to verify.
|
|
244
|
+
:return: List of VM names that failed the access verification.
|
|
243
245
|
"""
|
|
246
|
+
if not vm_names:
|
|
247
|
+
return []
|
|
248
|
+
|
|
244
249
|
failure_vms = []
|
|
245
250
|
manager = Manager()
|
|
246
251
|
return_dict = manager.dict()
|
|
@@ -264,17 +269,15 @@ class BootstormVM(WorkloadsOperations):
|
|
|
264
269
|
failure_vms.append(vm_name)
|
|
265
270
|
return failure_vms
|
|
266
271
|
|
|
267
|
-
def _verify_vms_access(self, delay=10):
|
|
272
|
+
def _verify_vms_access(self, vm_names: list, delay=10):
|
|
268
273
|
"""
|
|
269
274
|
This method verifies access for each VM
|
|
270
275
|
It prepares the data for ElasticSearch, generates a must-gather in case of an error, and uploads it to Google Drive.
|
|
271
276
|
:param delay: delay between each iteration
|
|
272
277
|
"""
|
|
273
278
|
try:
|
|
274
|
-
vm_names = self._oc._get_all_vm_names()
|
|
275
279
|
if not vm_names:
|
|
276
|
-
|
|
277
|
-
|
|
280
|
+
return []
|
|
278
281
|
upgrade_done = True
|
|
279
282
|
failure_vms = [] # List to store failed VM names
|
|
280
283
|
|
|
@@ -405,7 +408,11 @@ class BootstormVM(WorkloadsOperations):
|
|
|
405
408
|
def run_vm_workload(self):
|
|
406
409
|
# verification only w/o running or deleting any resource
|
|
407
410
|
if self._verification_only:
|
|
408
|
-
self.
|
|
411
|
+
vm_names = self._oc._get_all_vm_names()
|
|
412
|
+
if vm_names:
|
|
413
|
+
self._verify_vms_access(vm_names)
|
|
414
|
+
else:
|
|
415
|
+
logger.info("No running VMs")
|
|
409
416
|
else:
|
|
410
417
|
if not self._scale:
|
|
411
418
|
self._run_vm()
|
|
@@ -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=c3JOCwgKcejHIkVrdNW66tMtFVdK4wuqJL2OAPP8UuU,21279
|
|
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.818.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
178
|
+
benchmark_runner-1.0.818.dist-info/METADATA,sha256=mpht0clauAkrTc4OlM7zzrck5G94gP8VC11n32ZxJpY,11520
|
|
179
|
+
benchmark_runner-1.0.818.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
180
|
+
benchmark_runner-1.0.818.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
|
|
181
|
+
benchmark_runner-1.0.818.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|