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

@@ -56,6 +56,7 @@ class BareMetalOperations:
56
56
  self._ssh = SSH()
57
57
  self._cli = self._environment_variables_dict.get('cli', '')
58
58
  self._upgrade_ocp_version = self._environment_variables_dict.get('upgrade_ocp_version', '')
59
+ self._upgrade_channel = self._environment_variables_dict.get('upgrade_channel', '')
59
60
 
60
61
  def _get_kubeadmin_password(self):
61
62
  """
@@ -251,7 +252,7 @@ class BareMetalOperations:
251
252
  logger.info(f'Starting OCP upgrade, Start time: {datetime.now().strftime(datetime_format)}')
252
253
  logger.info(f'Stop OCP healthcheck')
253
254
  oc.healthcheck(action='stop')
254
- oc.upgrade_ocp(upgrade_ocp_version=self._upgrade_ocp_version)
255
+ oc.upgrade_ocp(upgrade_ocp_version=self._upgrade_ocp_version, upgrade_channel=self._upgrade_channel)
255
256
  self.verify_upgrade_complete(oc=oc)
256
257
  logger.info(f'Resume OCP healthcheck')
257
258
  oc.healthcheck(action='resume')
@@ -59,11 +59,12 @@ class OC(SSH):
59
59
  # Run the `oc` command to get the ClusterVersion history and extract the previous version
60
60
  return self.run(f"{self.__cli} get clusterversion version -o jsonpath='{{.status.history[1].version}}'")
61
61
 
62
- def upgrade_ocp(self, upgrade_ocp_version: str):
62
+ def upgrade_ocp(self, upgrade_ocp_version: str, upgrade_channel: str = 'stable'):
63
63
  """
64
64
  This method upgrades OCP version with conditional handling for specific versions.
65
65
 
66
66
  @param upgrade_ocp_version: Version to upgrade to
67
+ @param upgrade_channel: upgrade channel candidate or stable, default stable
67
68
  @return:
68
69
  """
69
70
  ocp_channel = '.'.join(upgrade_ocp_version.split('.')[:2])
@@ -72,8 +73,8 @@ class OC(SSH):
72
73
  if ocp_channel == "4.16":
73
74
  patch_command = f"{self.__cli} -n openshift-config patch cm admin-acks --patch '{{\"data\":{{\"ack-4.15-kube-1.29-api-removals-in-4.16\":\"true\"}}}}' --type=merge"
74
75
  self.run(patch_command)
75
-
76
- upgrade_command = f"{self.__cli} adm upgrade ; sleep 10; {self.__cli} adm upgrade channel stable-{ocp_channel}; sleep 10; {self.__cli} adm upgrade --to={upgrade_ocp_version};"
76
+ upgrade_command = f"{self.__cli} adm upgrade ; sleep 10; {self.__cli} adm upgrade channel {upgrade_channel}-{ocp_channel}; sleep 10; {self.__cli} adm upgrade --to={upgrade_ocp_version};"
77
+ logger.info(upgrade_command)
77
78
  self.run(upgrade_command)
78
79
 
79
80
  def upgrade_in_progress(self):
@@ -26,16 +26,15 @@ class CreateNHCSNR(CreateOCPResourceOperations):
26
26
  logger.info(f'run {resource}')
27
27
  self.__oc.create_async(yaml=os.path.join(self.__path, resource))
28
28
 
29
- if '03_subscription.yaml' in resource:
30
- # verify once after create all resource files
29
+ if '03_nhc_subscription.yaml' in resource:
31
30
  self.wait_for_ocp_resource_create(operator='nhc',
32
31
  verify_cmd="oc get csv -n openshift-workload-availability -o jsonpath='{.items[0].status.phase}'",
33
32
  status='Succeeded')
33
+ if '04_snr_subscription.yaml' in resource:
34
34
  self.wait_for_ocp_resource_create(operator='snr',
35
35
  verify_cmd="oc get csv -n openshift-workload-availability -o jsonpath='{.items[1].status.phase}'",
36
36
  status='Succeeded')
37
- # SNR is automatically enabled when NHC is enabled
38
- if '04_nhc_snr.yaml' in resource:
37
+ if '05_nhc_snr.yaml' in resource:
39
38
  # Verify NHC is enabled
40
39
  self.wait_for_ocp_resource_create(operator='nhc',
41
40
  verify_cmd="oc get nhc -A -o jsonpath='{range .items[*]}{.status.phase}{\"\\n\"}{end}'",
@@ -0,0 +1,11 @@
1
+ apiVersion: operators.coreos.com/v1alpha1
2
+ kind: Subscription
3
+ metadata:
4
+ name: self-node-remediation-operator
5
+ namespace: openshift-workload-availability
6
+ spec:
7
+ channel: stable
8
+ installPlanApproval: Automatic
9
+ name: self-node-remediation
10
+ source: redhat-operators
11
+ sourceNamespace: openshift-marketplace
@@ -92,6 +92,8 @@ class EnvironmentVariables:
92
92
  self._environment_variables_dict['verification_only'] = EnvironmentVariables.get_boolean_from_environment('VERIFICATION_ONLY', False)
93
93
  # Verification while upgrade, e.g. 4.15.23
94
94
  self._environment_variables_dict['wait_for_upgrade_version'] = EnvironmentVariables.get_env('WAIT_FOR_UPGRADE_VERSION', '')
95
+ # candidate/ stable (default)
96
+ self._environment_variables_dict['upgrade_channel'] = EnvironmentVariables.get_env('UPGRADE_CHANNEL', '')
95
97
 
96
98
  # default parameter - change only if needed
97
99
  # Parameters below related to 'run_workload()'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: benchmark-runner
3
- Version: 1.0.729
3
+ Version: 1.0.731
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=S9_ZI0ESASUNWIpQ1WeekjrKBVtVWZDdFoIL0qEC35s,4758
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=KJrdjPmAidyiLWtqkl2pg7Jo1-ID1tN0feEz1zmT2TM,17590
26
+ benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py,sha256=a9nZZrPxh01N6fY2aadrHW3_p8L4p5av3SnX9uCYCmU,17721
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
@@ -46,14 +46,14 @@ benchmark_runner/common/logger/init_logger.py,sha256=ERa-gNqrl2pZybj7v3csvmao7Mv
46
46
  benchmark_runner/common/logger/logger_exceptions.py,sha256=rivdlRm_jIsKQ53rP_-HX8emdtOmQNO4JuIkg8fnBoc,454
47
47
  benchmark_runner/common/logger/logger_time_stamp.py,sha256=2JgugN9LpXF4Ijx0wPRzz3DAGJB8eJpM5g1qPvbWbV8,1479
48
48
  benchmark_runner/common/oc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
- benchmark_runner/common/oc/oc.py,sha256=eMmMOMCzcipDaOqClQDaC9fLQMK2UfCr0XXg9yjtBDE,67578
49
+ benchmark_runner/common/oc/oc.py,sha256=-ta6Z9H4D0GMX2mNt83M_j6Lr3u_7CgeBB2I_PyQcDs,67742
50
50
  benchmark_runner/common/oc/oc_exceptions.py,sha256=4JDebyFqe6yIN6Y70E-oscWnme0t7Ggg_CJBBoOuFPs,6336
51
51
  benchmark_runner/common/ocp_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  benchmark_runner/common/ocp_resources/create_cnv.py,sha256=AXsyR8_g_RIFHz2rkyHzzvvUDIiGdOi9rZWJPhiPzDQ,3511
53
53
  benchmark_runner/common/ocp_resources/create_custom.py,sha256=rthm96yDzI-Hke54hLWTs0O3gDtpQPR6n184ehaEevo,1029
54
54
  benchmark_runner/common/ocp_resources/create_kata.py,sha256=IhfnDHj0lLUVENA-Nh9BucSAt0BqL8mtqT6QloMzIDg,3721
55
55
  benchmark_runner/common/ocp_resources/create_lso.py,sha256=anrLu2NymdxE7LkJ9fytqmhkysq7hVLOYBVxjfFlmVE,1634
56
- benchmark_runner/common/ocp_resources/create_nhc_snr.py,sha256=pTyx6Y5BNfXvRtJcbfLtUlqdEb1eB7ypCFv9-kBEIuU,2057
56
+ benchmark_runner/common/ocp_resources/create_nhc_snr.py,sha256=ejbX-KhkvqU9SCEX1-tA7xiZRXe5bsSAQoyyjMC15IU,1991
57
57
  benchmark_runner/common/ocp_resources/create_ocp_resource.py,sha256=ik0lotwiuECRDCbPYfDpi2Q_qjhtc2XDCR9zbY_Z9V0,5504
58
58
  benchmark_runner/common/ocp_resources/create_ocp_resource_exceptions.py,sha256=hthowyHAeg66IZHYPe1FWU3dnhwXcQtPBrOQSO1RZMU,941
59
59
  benchmark_runner/common/ocp_resources/create_ocp_resource_operations.py,sha256=47SyVjtv5e9vKuRQFlC-VfGKXBLEl46rut4XVeZRsMo,6834
@@ -73,8 +73,9 @@ benchmark_runner/common/ocp_resources/lso/template/03_catalogsource_template.yam
73
73
  benchmark_runner/common/ocp_resources/lso/template/04_subscription_template.yaml,sha256=n3D8CYQBNOIzdjwuSFXVxWuuR_HW5uvA0oP69ORHLIM,413
74
74
  benchmark_runner/common/ocp_resources/nhc_snr/template/01_namespace_template.yaml,sha256=nOhhszaaJ0FAS8ke8DgGHXaa-hPqDoWRFyK1fSJkUVA,81
75
75
  benchmark_runner/common/ocp_resources/nhc_snr/template/02_operator_group_template.yaml,sha256=WM4DWIcADQ7QhRSGMOG58GDo7bWBwFKDMFqKhv3oPWE,156
76
- benchmark_runner/common/ocp_resources/nhc_snr/template/03_subscription_template.yaml,sha256=fPBon9WfLYbRMZKC4DIBrnaDxAT1GwDvzvbiHhoSJn0,314
77
- benchmark_runner/common/ocp_resources/nhc_snr/template/04_nhc_snr_template.yaml,sha256=Z7_yCYvo0S40MykQp5ygUrZ8MkZooyfTPgo_9TdTZlQ,1069
76
+ benchmark_runner/common/ocp_resources/nhc_snr/template/03_nhc_subscription_template.yaml,sha256=fPBon9WfLYbRMZKC4DIBrnaDxAT1GwDvzvbiHhoSJn0,314
77
+ benchmark_runner/common/ocp_resources/nhc_snr/template/04_snr_subscription_template.yaml,sha256=gpcEbR7msWnYwzENiBs-Raw7Yf3QGrVPrfPLkVqcoPw,310
78
+ benchmark_runner/common/ocp_resources/nhc_snr/template/05_nhc_snr_template.yaml,sha256=Z7_yCYvo0S40MykQp5ygUrZ8MkZooyfTPgo_9TdTZlQ,1069
78
79
  benchmark_runner/common/ocp_resources/odf/template/01_delete_disks_template.sh,sha256=NaPyYa8777IGa6SPvWSw_gCKBIt6yTHLEFWS-Yo3EJk,174
79
80
  benchmark_runner/common/ocp_resources/odf/template/02_label_nodes_template.sh,sha256=P4O_3zud56UuVbYgBRGlm4nh9m4Ju9jfZ2YIoKloaEE,206
80
81
  benchmark_runner/common/ocp_resources/odf/template/03_local_volume_discovery_template.yaml,sha256=WjZekDSj-1x8xpL85EY-6dUUCW-nkmb9GP6NyePIhBU,347
@@ -159,7 +160,7 @@ benchmark_runner/krkn_hub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
159
160
  benchmark_runner/krkn_hub/krknhub_exceptions.py,sha256=Hk7Co6zZ0u2RSmBmS4ZAi21ffZaQ2ITTfl6tGLtiAdY,180
160
161
  benchmark_runner/krkn_hub/krknhub_workloads.py,sha256=qNRZA-FBQZiT6h013WbP6zBRINh3c6YMnnlksN9fssA,2851
161
162
  benchmark_runner/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
162
- benchmark_runner/main/environment_variables.py,sha256=-4ZJCC6lHmv777xXp_0W4X7KAbZZ183N9qwoFyBVhCQ,27974
163
+ benchmark_runner/main/environment_variables.py,sha256=0qXRMe4ZkIle1mf-C4B30V0ey5JC9R5M1Aa-Jbagpqg,28126
163
164
  benchmark_runner/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZdJRlRq8ZUTt0h8jFvUtrnP4m4AIY,437
164
165
  benchmark_runner/main/main.py,sha256=SB-rD4U_978gP8ojGUtIsYzhSsmzeEDsUfOiJQJdz9c,14097
165
166
  benchmark_runner/main/temporary_environment_variables.py,sha256=ODSHkfhgvdr_b2e3XyvykW21MVjSdyqimREyMc2klRE,957
@@ -171,8 +172,8 @@ benchmark_runner/workloads/windows_vm.py,sha256=eHK79ueAkSlNC1uamz19o7CO20wzJi-U
171
172
  benchmark_runner/workloads/workloads.py,sha256=F9fnk4h715tq7ANSCbDH0jktB8fpr_u3YG61Kdi5_os,1422
172
173
  benchmark_runner/workloads/workloads_exceptions.py,sha256=u7VII95iPRF_YhfpGH1U1RmgiIYESMOtbSF1dz7_ToE,1858
173
174
  benchmark_runner/workloads/workloads_operations.py,sha256=zhMAL-Zc2JtdI-LG4kxGwbGwHaLY2DfklpzM4bBG-eo,25261
174
- benchmark_runner-1.0.729.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
175
- benchmark_runner-1.0.729.dist-info/METADATA,sha256=GmfTAJ6wee6umRsDvFvrGwj-6sBmX9LcwkPgGJxGsxY,11498
176
- benchmark_runner-1.0.729.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
177
- benchmark_runner-1.0.729.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
178
- benchmark_runner-1.0.729.dist-info/RECORD,,
175
+ benchmark_runner-1.0.731.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
176
+ benchmark_runner-1.0.731.dist-info/METADATA,sha256=TMeuBTt4K0VZYgVYSe1PmeXgb6CjoVlTAcexDM8RcTA,11498
177
+ benchmark_runner-1.0.731.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
178
+ benchmark_runner-1.0.731.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
179
+ benchmark_runner-1.0.731.dist-info/RECORD,,