benchmark-runner 1.0.736__py3-none-any.whl → 1.0.737__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/main/environment_variables.py +2 -4
- benchmark_runner/workloads/bootstorm_vm.py +6 -6
- benchmark_runner/workloads/workloads_operations.py +0 -1
- {benchmark_runner-1.0.736.dist-info → benchmark_runner-1.0.737.dist-info}/METADATA +1 -1
- {benchmark_runner-1.0.736.dist-info → benchmark_runner-1.0.737.dist-info}/RECORD +8 -8
- {benchmark_runner-1.0.736.dist-info → benchmark_runner-1.0.737.dist-info}/LICENSE +0 -0
- {benchmark_runner-1.0.736.dist-info → benchmark_runner-1.0.737.dist-info}/WHEEL +0 -0
- {benchmark_runner-1.0.736.dist-info → benchmark_runner-1.0.737.dist-info}/top_level.txt +0 -0
|
@@ -90,10 +90,6 @@ class EnvironmentVariables:
|
|
|
90
90
|
self._environment_variables_dict['run_strategy'] = EnvironmentVariables.get_boolean_from_environment('RUN_STRATEGY', False)
|
|
91
91
|
# Verification only, without running or deleting any resources, default False
|
|
92
92
|
self._environment_variables_dict['verification_only'] = EnvironmentVariables.get_boolean_from_environment('VERIFICATION_ONLY', False)
|
|
93
|
-
# Verification while upgrade, e.g. 4.15.23
|
|
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', '')
|
|
97
93
|
|
|
98
94
|
# default parameter - change only if needed
|
|
99
95
|
# Parameters below related to 'run_workload()'
|
|
@@ -233,6 +229,8 @@ class EnvironmentVariables:
|
|
|
233
229
|
self._environment_variables_dict['upgrade_ocp_version'] = EnvironmentVariables.get_env('UPGRADE_OCP_VERSION','')
|
|
234
230
|
# There are 2 options: run_bare_metal_ocp_upgrade/ verify_bare_metal_upgrade_complete
|
|
235
231
|
self._environment_variables_dict['upgrade_step'] = EnvironmentVariables.get_env('UPGRADE_STEP', '')
|
|
232
|
+
# candidate/ stable (default)
|
|
233
|
+
self._environment_variables_dict['upgrade_channel'] = EnvironmentVariables.get_env('UPGRADE_CHANNEL', '')
|
|
236
234
|
|
|
237
235
|
# SNO or empty for regular
|
|
238
236
|
self._environment_variables_dict['cluster_type'] = EnvironmentVariables.get_env('CLUSTER_TYPE', '')
|
|
@@ -216,8 +216,8 @@ class BootstormVM(WorkloadsOperations):
|
|
|
216
216
|
failure = False
|
|
217
217
|
failure_vms = [] # List to store failed VM names
|
|
218
218
|
|
|
219
|
-
if self.
|
|
220
|
-
upgrade_done = self._oc.get_cluster_status() == f'Cluster version is {self.
|
|
219
|
+
if self._upgrade_ocp_version:
|
|
220
|
+
upgrade_done = self._oc.get_cluster_status() == f'Cluster version is {self._upgrade_ocp_version}'
|
|
221
221
|
current_wait_time = 0
|
|
222
222
|
|
|
223
223
|
while (self._timeout <= 0 or current_wait_time <= self._timeout) and not upgrade_done:
|
|
@@ -227,13 +227,13 @@ class BootstormVM(WorkloadsOperations):
|
|
|
227
227
|
failure = True
|
|
228
228
|
if vm_name not in failure_vms:
|
|
229
229
|
failure_vms.append(vm_name)
|
|
230
|
-
upgrade_done = self._oc.get_cluster_status() == f'Cluster version is {self.
|
|
230
|
+
upgrade_done = self._oc.get_cluster_status() == f'Cluster version is {self._upgrade_ocp_version}'
|
|
231
231
|
|
|
232
232
|
# Sleep 1 sec between each cycle
|
|
233
233
|
time.sleep(1)
|
|
234
234
|
current_wait_time += 1 # Increment the wait time
|
|
235
235
|
else:
|
|
236
|
-
# If
|
|
236
|
+
# If _upgrade_ocp_version is empty, verify VM SSH without waiting for upgrade
|
|
237
237
|
for vm_name in vm_names:
|
|
238
238
|
virtctl_status = self._verify_single_vm(vm_name)
|
|
239
239
|
if virtctl_status != 'True':
|
|
@@ -241,8 +241,8 @@ class BootstormVM(WorkloadsOperations):
|
|
|
241
241
|
if vm_name not in failure_vms:
|
|
242
242
|
failure_vms.append(vm_name)
|
|
243
243
|
|
|
244
|
-
if self.
|
|
245
|
-
logger.info(f'Cluster is upgraded to: {self.
|
|
244
|
+
if self._upgrade_ocp_version:
|
|
245
|
+
logger.info(f'Cluster is upgraded to: {self._upgrade_ocp_version}')
|
|
246
246
|
|
|
247
247
|
if failure:
|
|
248
248
|
self._oc.generate_cnv_must_gather(destination_path=self._run_artifacts_path,
|
|
@@ -104,7 +104,6 @@ class WorkloadsOperations:
|
|
|
104
104
|
self._windows_url = self._environment_variables_dict.get('windows_url', '')
|
|
105
105
|
self._delete_all = self._environment_variables_dict.get('delete_all', '')
|
|
106
106
|
self._verification_only = self._environment_variables_dict.get('verification_only', '')
|
|
107
|
-
self._wait_for_upgrade_version = self._environment_variables_dict.get('wait_for_upgrade_version', '')
|
|
108
107
|
if self._windows_url:
|
|
109
108
|
file_name = os.path.basename(self._windows_url)
|
|
110
109
|
self._windows_os = os.path.splitext(file_name)[0]
|
|
@@ -160,20 +160,20 @@ benchmark_runner/krkn_hub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
|
160
160
|
benchmark_runner/krkn_hub/krknhub_exceptions.py,sha256=Hk7Co6zZ0u2RSmBmS4ZAi21ffZaQ2ITTfl6tGLtiAdY,180
|
|
161
161
|
benchmark_runner/krkn_hub/krknhub_workloads.py,sha256=qNRZA-FBQZiT6h013WbP6zBRINh3c6YMnnlksN9fssA,2851
|
|
162
162
|
benchmark_runner/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
163
|
-
benchmark_runner/main/environment_variables.py,sha256=
|
|
163
|
+
benchmark_runner/main/environment_variables.py,sha256=v5otuj0Pdz5rViHbqD4ezh32JQAIiu5-pN9LQkzuMs8,27943
|
|
164
164
|
benchmark_runner/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZdJRlRq8ZUTt0h8jFvUtrnP4m4AIY,437
|
|
165
165
|
benchmark_runner/main/main.py,sha256=SB-rD4U_978gP8ojGUtIsYzhSsmzeEDsUfOiJQJdz9c,14097
|
|
166
166
|
benchmark_runner/main/temporary_environment_variables.py,sha256=ODSHkfhgvdr_b2e3XyvykW21MVjSdyqimREyMc2klRE,957
|
|
167
167
|
benchmark_runner/workloads/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
168
|
-
benchmark_runner/workloads/bootstorm_vm.py,sha256=
|
|
168
|
+
benchmark_runner/workloads/bootstorm_vm.py,sha256=EVECP0sfu43ievbyU4DDlkb2iMqE_Tym5LhaI_ahevI,18481
|
|
169
169
|
benchmark_runner/workloads/vdbench_pod.py,sha256=OcmxVr5QlbkhAgY37wsZ7xJUjs9HI-qMVDex1HdL2P0,9778
|
|
170
170
|
benchmark_runner/workloads/vdbench_vm.py,sha256=Yhoz-GbvZwA8q6qGIeSUsYhEIERj8SmJB1yjetwsGow,9449
|
|
171
171
|
benchmark_runner/workloads/windows_vm.py,sha256=eHK79ueAkSlNC1uamz19o7CO20wzJi-UIqRuTByTVxg,2373
|
|
172
172
|
benchmark_runner/workloads/workloads.py,sha256=F9fnk4h715tq7ANSCbDH0jktB8fpr_u3YG61Kdi5_os,1422
|
|
173
173
|
benchmark_runner/workloads/workloads_exceptions.py,sha256=u7VII95iPRF_YhfpGH1U1RmgiIYESMOtbSF1dz7_ToE,1858
|
|
174
|
-
benchmark_runner/workloads/workloads_operations.py,sha256=
|
|
175
|
-
benchmark_runner-1.0.
|
|
176
|
-
benchmark_runner-1.0.
|
|
177
|
-
benchmark_runner-1.0.
|
|
178
|
-
benchmark_runner-1.0.
|
|
179
|
-
benchmark_runner-1.0.
|
|
174
|
+
benchmark_runner/workloads/workloads_operations.py,sha256=O2iJItJ73G6l_uA3trCvXhcxvY1SPf4dvYg4RLXbhUA,25151
|
|
175
|
+
benchmark_runner-1.0.737.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
176
|
+
benchmark_runner-1.0.737.dist-info/METADATA,sha256=SfE8S-F9OQTHZJZF5u6hPQNjGt4FFu7zsAPaL5CiCrY,11498
|
|
177
|
+
benchmark_runner-1.0.737.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
178
|
+
benchmark_runner-1.0.737.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
|
|
179
|
+
benchmark_runner-1.0.737.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|