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

@@ -302,16 +302,16 @@ class BareMetalOperations:
302
302
  if oc.get_upgrade_version() != self._upgrade_ocp_version:
303
303
  return False
304
304
 
305
- # Operator details mapping
305
+ # Operator details mapping: short_key -> (version, namespace, operator_name_prefix)
306
306
  operators_to_check = {
307
- "cnv": (cnv_version, "openshift-cnv"),
308
- "odf": (odf_version, "openshift-storage"),
309
- "lso": (lso_version, "openshift-local-storage"),
307
+ "cnv": (cnv_version, "openshift-cnv", "kubevirt-hyperconverged-operator"),
308
+ "odf": (odf_version, "openshift-storage", "odf-operator"),
309
+ "lso": (lso_version, "openshift-local-storage", "local-storage-operator"),
310
310
  }
311
311
 
312
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()
313
+ oc.wait_for_operator_installation(operator_name=operator_name, version=ver, namespace=ns)
314
+ for _, (ver, ns, operator_name) in operators_to_check.items()
315
315
  if ver # only include if a version was specified
316
316
  ]
317
317
 
@@ -154,34 +154,39 @@ class OC(SSH):
154
154
  """
155
155
  return self.run(f"{self._cli} get clusterversion version -o jsonpath='{{.status.conditions[?(@.type==\"Progressing\")].message}}'")
156
156
 
157
- def get_operator_version(self, namespace):
157
+ def get_operator_version(self, namespace: str, operator_name: str = None):
158
158
  """
159
159
  This method returns the operator version from the specified namespace.
160
160
  @param namespace: str - The namespace to search for the operator version.
161
+ @param operator_name: str - The name of the operator to search for.
161
162
  @return: major version
162
163
  """
163
- version = self.run(f"{self._cli} get csv -n {namespace} -o jsonpath='{{.items[0].spec.version}}'")
164
+ cmd = (
165
+ f"""{self._cli} get csv -n {namespace} -o json | """
166
+ f"""jq -r '.items[] | select(.metadata.name | startswith("{operator_name}")) | .spec.version'"""
167
+ )
168
+ version = self.run(cmd)
164
169
  return '.'.join(version.split('.')[:2])
165
170
 
166
- def wait_for_operator_installation(self, operator: str, version: str, namespace: str, timeout: int = SHORT_TIMEOUT):
171
+ def wait_for_operator_installation(self, operator_name: str, version: str, namespace: str, timeout: int = SHORT_TIMEOUT):
167
172
  """
168
173
  This method waits till operator version is installed successfully
169
- @param operator:
174
+ @param operator_name:
170
175
  @param version:
171
176
  @param timeout:
172
177
  @param namespace:
173
178
  @return:
174
179
  """
175
180
  current_wait_time = 0
176
- while timeout <= 0 or current_wait_time <= timeout and not self.get_operator_version(namespace) == version:
181
+ while timeout <= 0 or current_wait_time <= timeout and not self.get_operator_version(namespace, operator_name) == version:
177
182
  # sleep for x seconds
178
183
  time.sleep(OC.SLEEP_TIME)
179
184
  current_wait_time += OC.SLEEP_TIME
180
- if self.get_operator_version(namespace) == version:
181
- logger.info(f'{operator} operator version: {version} in namespace: {namespace} has been installed successfully')
185
+ if self.get_operator_version(namespace, operator_name) == version:
186
+ logger.info(f'{operator_name} operator version: {version} in namespace: {namespace} has been installed successfully')
182
187
  return True
183
188
  else:
184
- raise OperatorInstallationTimeout(operator=operator, version=version, namespace=namespace)
189
+ raise OperatorInstallationTimeout(operator=operator_name, version=version, namespace=namespace)
185
190
 
186
191
  def healthcheck(self, action: str):
187
192
  """
@@ -14,7 +14,7 @@ class CreateOCPResourceOperations:
14
14
  """
15
15
  # Expected CSVs List names
16
16
  EXPECTED_ODF_CSV = ['mcg-operator', 'ocs-operator', 'odf-csi-addons-operator', 'odf-operator']
17
- SLEEP_TIME = 60
17
+ SLEEP_TIME = 30
18
18
 
19
19
  def __init__(self, oc: OC):
20
20
  self._environment_variables_dict = environment_variables.environment_variables_dict
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: benchmark-runner
3
- Version: 1.0.856
3
+ Version: 1.0.857
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=FSQ5WWEc1MnvSou643R_kNFwVA6pjOtKaEUNBXLT6q8,19462
26
+ benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py,sha256=17lTO7myBiqOcvDx8fxypDNosmnQVoeX95B7vAkcXH8,19627
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
@@ -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=bfOgUBFi5h0KkYeSPfTKFrUFums7-rCOFsH-mHtGY8o,74467
50
+ benchmark_runner/common/oc/oc.py,sha256=EctUDa4KrmqjURaxCVcc0i8EQ1CnYTv0mpIo4yTEBoA,74750
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
@@ -58,7 +58,7 @@ benchmark_runner/common/ocp_resources/create_lso.py,sha256=uzhYTUK-645_2L45Q2sbD
58
58
  benchmark_runner/common/ocp_resources/create_nhc_far.py,sha256=y_iOoSTgIzQIVBK7a8u7UJNpBMVaR3t741AjQd0L1kI,2001
59
59
  benchmark_runner/common/ocp_resources/create_ocp_resource.py,sha256=0iMbpOuG4Y19J9YjMO8AdlwJke1UgKMSX4eA-AnIUck,5478
60
60
  benchmark_runner/common/ocp_resources/create_ocp_resource_exceptions.py,sha256=hthowyHAeg66IZHYPe1FWU3dnhwXcQtPBrOQSO1RZMU,941
61
- benchmark_runner/common/ocp_resources/create_ocp_resource_operations.py,sha256=FnXQfw0kbwS2RsnmuNMU1I2atJCQUbuxTAsZRDt9VXA,6834
61
+ benchmark_runner/common/ocp_resources/create_ocp_resource_operations.py,sha256=47SyVjtv5e9vKuRQFlC-VfGKXBLEl46rut4XVeZRsMo,6834
62
62
  benchmark_runner/common/ocp_resources/create_odf.py,sha256=Frtx4EOYILHROeSzX3sO9b28zzDUt4waN92RwSPzr4c,4421
63
63
  benchmark_runner/common/ocp_resources/migrate_infra.py,sha256=R9iPk8oXv8_w6uz0q-nebe25C1KbQXN-l-d6_AWK4gA,1295
64
64
  benchmark_runner/common/ocp_resources/cnv/template/01_operator_template.yaml,sha256=Ba7RYN1hPknLXBKHsgdXwGSnQETTUWHqgxEDYnx8GSU,764
@@ -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=Z7cT5rrLmz_SEIbtxbxyniaA0dQ07s8nK1I2EWcoBqM,27378
177
- benchmark_runner-1.0.856.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
178
- benchmark_runner-1.0.856.dist-info/METADATA,sha256=Cl7JPiCtr6tfkC8FJat7lDKiVp0AAcOG42TsPJQ3ZJs,11582
179
- benchmark_runner-1.0.856.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
180
- benchmark_runner-1.0.856.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
181
- benchmark_runner-1.0.856.dist-info/RECORD,,
177
+ benchmark_runner-1.0.857.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
178
+ benchmark_runner-1.0.857.dist-info/METADATA,sha256=rYnxFFz_XXcStmOtPpxc3w0ncGtXa76W7Hnyk2i-BwU,11582
179
+ benchmark_runner-1.0.857.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
180
+ benchmark_runner-1.0.857.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
181
+ benchmark_runner-1.0.857.dist-info/RECORD,,