benchmark-runner 1.0.837__py3-none-any.whl → 1.0.839__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.

@@ -288,24 +288,34 @@ class BareMetalOperations:
288
288
  else:
289
289
  return True
290
290
 
291
- def is_cluster_upgraded(self, oc: OC, cnv_version: str, odf_version: str, lso_version: str):
291
+ def is_cluster_upgraded(self, oc: OC, cnv_version: str = None, odf_version: str = None,
292
+ lso_version: str = None) -> bool:
292
293
  """
293
- This method checks if cluster/operators upgraded successfully
294
- @param oc:
295
- @param cnv_version:
296
- @param odf_version:
297
- @param lso_version:
298
- @return:
294
+ Checks if the cluster and the specified operators were successfully upgraded.
295
+
296
+ :param oc: OC client instance
297
+ :param cnv_version: (Optional) Target CNV operator version
298
+ :param odf_version: (Optional) Target ODF operator version
299
+ :param lso_version: (Optional) Target LSO operator version
300
+ :return: True if the upgrade (cluster + specified operators) is successful, otherwise False
299
301
  """
300
- # check cluster version upgrade
301
- if oc.get_upgrade_version() == self._upgrade_ocp_version:
302
- lso_upgraded = oc.wait_for_operator_installation(operator='lso', version=lso_version, namespace='openshift-local-storage')
303
- odf_upgraded = oc.wait_for_operator_installation(operator='odf', version=odf_version, namespace='openshift-storage')
304
- cnv_upgraded = oc.wait_for_operator_installation(operator='cnv', version=cnv_version, namespace='openshift-cnv')
305
- # check operators versions upgrade
306
- if cnv_upgraded and lso_upgraded and odf_upgraded:
307
- return True
308
- return False
302
+ if oc.get_upgrade_version() != self._upgrade_ocp_version:
303
+ return False
304
+
305
+ # Operator details mapping
306
+ operators_to_check = {
307
+ "cnv": (cnv_version, "openshift-cnv"),
308
+ "odf": (odf_version, "openshift-storage"),
309
+ "lso": (lso_version, "openshift-local-storage"),
310
+ }
311
+
312
+ upgrade_checks = [
313
+ oc.wait_for_operator_installation(operator=op, version=ver, namespace=ns)
314
+ for op, (ver, ns) in operators_to_check.items()
315
+ if ver # only include if a version was specified
316
+ ]
317
+
318
+ return all(upgrade_checks) if upgrade_checks else True
309
319
 
310
320
  @logger_time_stamp
311
321
  def verify_upgrade_complete(self, oc: OC):
@@ -88,8 +88,10 @@ class EnvironmentVariables:
88
88
  self._environment_variables_dict['windows_url'] = EnvironmentVariables.get_env('WINDOWS_URL', '')
89
89
  # Delete all resources before and after the run, default True
90
90
  self._environment_variables_dict['delete_all'] = EnvironmentVariables.get_boolean_from_environment('DELETE_ALL', True)
91
- # Run RunStrategy: Always can be set to True or False (default: False). Set it to True for VMs that need to start in a running state
91
+ # RunStrategy: Always can be set to True or False, default: False. Set it to True for VMs that need to start in a running state
92
92
  self._environment_variables_dict['run_strategy'] = EnvironmentVariables.get_boolean_from_environment('RUN_STRATEGY', False)
93
+ # Creating VMs only without deletion, default False (when True: configure RUN_STRATEGY: True/ DELETE_ALL: False)
94
+ self._environment_variables_dict['create_vms_only'] = EnvironmentVariables.get_boolean_from_environment('CREATE_VMS_ONLY', False)
93
95
  # Verification only, without running or deleting any resources, default False
94
96
  self._environment_variables_dict['verification_only'] = EnvironmentVariables.get_boolean_from_environment('VERIFICATION_ONLY', False)
95
97
  # Collect CNV/ODF must-gather logs in case of VM verification failure (default: False).
@@ -422,8 +422,11 @@ class BootstormVM(WorkloadsOperations):
422
422
  # scale
423
423
  else:
424
424
  first_run_time_updated = False
425
- # Run VMs only
426
- if not self._delete_all:
425
+ # Create VMs
426
+ if self._create_vms_only:
427
+ steps = (self._create_vm_scale, )
428
+ # Run VMs without deleting
429
+ elif not self._delete_all:
427
430
  steps = (self._create_vm_scale, self._run_vm_scale)
428
431
  else:
429
432
  steps = (self._create_vm_scale, self._run_vm_scale, self._stop_vm_scale,
@@ -102,6 +102,7 @@ class WorkloadsOperations:
102
102
  self._prometheus_snap_interval = self._environment_variables_dict.get('prometheus_snap_interval', '')
103
103
  self._prometheus_metrics_operation = PrometheusMetricsOperation()
104
104
  self._windows_url = self._environment_variables_dict.get('windows_url', '')
105
+ self._create_vms_only = self._environment_variables_dict.get('create_vms_only', '')
105
106
  self._delete_all = self._environment_variables_dict.get('delete_all', '')
106
107
  self._verification_only = self._environment_variables_dict.get('verification_only', '')
107
108
  self._must_gather_log = self._environment_variables_dict.get('must_gather_log', '')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: benchmark-runner
3
- Version: 1.0.837
3
+ Version: 1.0.839
4
4
  Summary: Benchmark Runner Tool
5
5
  Home-page: https://github.com/redhat-performance/benchmark-runner
6
6
  Author: Red Hat
@@ -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=lNkiRDbOFdNCcwD-jrO1E3pdggElIVC2sufcjd2Jc-s,19178
26
+ benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py,sha256=FSQ5WWEc1MnvSou643R_kNFwVA6pjOtKaEUNBXLT6q8,19462
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
@@ -162,20 +162,20 @@ benchmark_runner/krkn_hub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
162
162
  benchmark_runner/krkn_hub/krknhub_exceptions.py,sha256=Hk7Co6zZ0u2RSmBmS4ZAi21ffZaQ2ITTfl6tGLtiAdY,180
163
163
  benchmark_runner/krkn_hub/krknhub_workloads.py,sha256=l25JBmOV8Rq6SMLEKma7IIsx0Q6GJJ9TKS-OHoOuFxw,3275
164
164
  benchmark_runner/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
165
- benchmark_runner/main/environment_variables.py,sha256=YZf60XLWsTrxuBXSQARgjl5DMEGVjZlPgtarZCGIKsE,29321
165
+ benchmark_runner/main/environment_variables.py,sha256=RuR5hQleF4kkUu1T0BVuOdRHm4ROiKleEJmkKaAvt4o,29575
166
166
  benchmark_runner/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZdJRlRq8ZUTt0h8jFvUtrnP4m4AIY,437
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=H55cOHeEIPsb2kxxiXhO0Wuu5wHV0u_61dHbAsvy9VY,21619
170
+ benchmark_runner/workloads/bootstorm_vm.py,sha256=mVEn8ZDdfZ8deyCA2YEwL0K-oZA5CJIfF5mrpbDDjLo,21758
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
- benchmark_runner/workloads/workloads_operations.py,sha256=8utD-uU_MNZn5JOC2r5OVq5BfCPkxlUvP3xlUP9oIGk,27160
177
- benchmark_runner-1.0.837.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
178
- benchmark_runner-1.0.837.dist-info/METADATA,sha256=SJUoi7m87dRJAxvOOBKJWoOPeYRSzAPlc8X7NuP3gg0,11582
179
- benchmark_runner-1.0.837.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
180
- benchmark_runner-1.0.837.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
181
- benchmark_runner-1.0.837.dist-info/RECORD,,
176
+ benchmark_runner/workloads/workloads_operations.py,sha256=jqNsq7yRkfI0TGyypz0TnGhIu8tHAQOrvrRHCvGA240,27252
177
+ benchmark_runner-1.0.839.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
178
+ benchmark_runner-1.0.839.dist-info/METADATA,sha256=NaXFt3Anmy4dWlTCmEroZV4Hlv3XgY-DY8kSgFAFO8o,11582
179
+ benchmark_runner-1.0.839.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
180
+ benchmark_runner-1.0.839.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
181
+ benchmark_runner-1.0.839.dist-info/RECORD,,