benchmark-runner 1.0.837__py3-none-any.whl → 1.0.838__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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: benchmark-runner
3
- Version: 1.0.837
3
+ Version: 1.0.838
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
@@ -174,8 +174,8 @@ benchmark_runner/workloads/windows_vm.py,sha256=qFVD3qBFMnVpYXnrpam-7H5-0Yzvx6qt
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=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,,
177
+ benchmark_runner-1.0.838.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
178
+ benchmark_runner-1.0.838.dist-info/METADATA,sha256=78oDkfvkRDTgur6tUghpqCHcqPSJGoEoBCothjWkRpU,11582
179
+ benchmark_runner-1.0.838.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
180
+ benchmark_runner-1.0.838.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
181
+ benchmark_runner-1.0.838.dist-info/RECORD,,