benchmark-runner 1.0.711__py3-none-any.whl → 1.0.713__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.
@@ -53,7 +53,7 @@ spec:
53
53
  sockets: {{ sockets }}
54
54
  cores: {{ cores }}
55
55
  threads: 1
56
- image: quay.io/kubevirt/fedora-container-disk-images:34
56
+ image: quay.io/ebattat/fedora37-container-disk:latest
57
57
  limits:
58
58
  memory: {{ limits_memory }}
59
59
  requests:
@@ -71,7 +71,7 @@ spec:
71
71
  sockets: {{ sockets }}
72
72
  cores: {{ cores }}
73
73
  threads: 1
74
- image: quay.io/kubevirt/fedora-container-disk-images:34
74
+ image: quay.io/ebattat/fedora37-container-disk:latest
75
75
  limits:
76
76
  memory: {{ limits_memory }}
77
77
  requests:
@@ -205,15 +205,17 @@ class BootstormVM(WorkloadsOperations):
205
205
  def _verify_virtctl_vm(self):
206
206
  """
207
207
  This method verifies the virtctl SSH login for each VM, either during the upgrade or once for each VM.
208
- It prepares the data for ElasticSearch, generates a must-gather in case of an error, and uploads it to Google Drive
208
+ It prepares the data for ElasticSearch, generates a must-gather in case of an error, and uploads it to Google Drive.
209
209
  """
210
210
  try:
211
211
  vm_names = self._oc._get_all_vm_names()
212
212
  if not vm_names:
213
- raise MissingVMs
213
+ raise MissingVMs("No VM names were retrieved from the cluster.")
214
214
 
215
215
  upgrade_done = True
216
216
  failure = False
217
+ failure_vms = [] # List to store failed VM names
218
+
217
219
  if self._wait_for_upgrade_version:
218
220
  upgrade_done = self._oc.get_cluster_status() == f'Cluster version is {self._wait_for_upgrade_version}'
219
221
  current_wait_time = 0
@@ -221,9 +223,11 @@ class BootstormVM(WorkloadsOperations):
221
223
  while (self._timeout <= 0 or current_wait_time <= self._timeout) and not upgrade_done:
222
224
  for vm_name in vm_names:
223
225
  virtctl_status = self._verify_single_vm(vm_name)
224
- if virtctl_status!='True':
226
+ if virtctl_status != 'True':
225
227
  failure = True
226
- upgrade_done = self._oc.get_cluster_status() == f'Cluster version is {self._wait_for_upgrade_version}'
228
+ if vm_name not in failure_vms:
229
+ failure_vms.append(vm_name)
230
+ upgrade_done = self._oc.get_cluster_status() == f'Cluster version is {self._wait_for_upgrade_version}'
227
231
 
228
232
  # Sleep 1 sec between each cycle
229
233
  time.sleep(1)
@@ -232,24 +236,31 @@ class BootstormVM(WorkloadsOperations):
232
236
  # If _wait_for_upgrade_version is empty, verify VM SSH without waiting for upgrade
233
237
  for vm_name in vm_names:
234
238
  virtctl_status = self._verify_single_vm(vm_name)
235
- if virtctl_status!='True':
239
+ if virtctl_status != 'True':
236
240
  failure = True
241
+ if vm_name not in failure_vms:
242
+ failure_vms.append(vm_name)
237
243
 
238
244
  if self._wait_for_upgrade_version:
239
245
  logger.info(f'Cluster is upgraded to: {self._wait_for_upgrade_version}')
246
+
240
247
  if failure:
241
- self._oc.generate_cnv_must_gather(destination_path=self._run_artifacts_path, cnv_version=self._cnv_version)
242
- self._oc.generate_odf_must_gather(destination_path=self._run_artifacts_path, odf_version=self._odf_version)
243
- # google drive
248
+ self._oc.generate_cnv_must_gather(destination_path=self._run_artifacts_path,
249
+ cnv_version=self._cnv_version)
250
+ self._oc.generate_odf_must_gather(destination_path=self._run_artifacts_path,
251
+ odf_version=self._odf_version)
252
+ # Upload artifacts
244
253
  if self._google_drive_shared_drive_id:
245
254
  self.upload_run_artifacts_to_google_drive()
246
- # s3
247
255
  elif self._endpoint_url and not self._google_drive_shared_drive_id:
248
256
  self.upload_run_artifacts_to_s3()
249
- # local
250
257
  else:
251
258
  self._save_artifacts_local = True
252
259
 
260
+ # Raise an error with details of failed VMs
261
+ raise RuntimeError(
262
+ f"Failed to verify virtctl SSH login for the following VMs: {', '.join(failure_vms)}")
263
+
253
264
  except Exception as err:
254
265
  # Save run artifacts logs
255
266
  self.save_error_logs()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: benchmark-runner
3
- Version: 1.0.711
3
+ Version: 1.0.713
4
4
  Summary: Benchmark Runner Tool
5
5
  Home-page: https://github.com/redhat-performance/benchmark-runner
6
6
  Author: Red Hat
@@ -116,7 +116,7 @@ benchmark_runner/common/template_operations/templates/stressng/internal_data/str
116
116
  benchmark_runner/common/template_operations/templates/stressng/internal_data/stressng_vm_template.yaml,sha256=36HnlJ0tEUDmk5rOR-1JKyBiPiEZp018kkoiv0WBP1I,1793
117
117
  benchmark_runner/common/template_operations/templates/uperf/uperf_data_template.yaml,sha256=0Sd1gCa4YoFt89gjfazjJrOca_1JqfdQ6Pk1T0kxORk,1150
118
118
  benchmark_runner/common/template_operations/templates/uperf/internal_data/uperf_pod_template.yaml,sha256=8ishTLES7hfnmYVR76wcAOzZjD8iClvGHG0KgPM5mk0,1733
119
- benchmark_runner/common/template_operations/templates/uperf/internal_data/uperf_vm_template.yaml,sha256=u8tLi9p3KfEFVDRa_RKSSpAapqTiE3pxCc-JcidiEyc,2607
119
+ benchmark_runner/common/template_operations/templates/uperf/internal_data/uperf_vm_template.yaml,sha256=2xeAZKeYSOvwOd7q_YMD3HM2aB63kEtpuANaXLgwUH0,2603
120
120
  benchmark_runner/common/template_operations/templates/vdbench/vdbench_data_template.yaml,sha256=_OxYkYDz8hsLori_sj11ZFn5QRgWgGAaEBkcL1JNv3I,2846
121
121
  benchmark_runner/common/template_operations/templates/vdbench/internal_data/namespace_template.yaml,sha256=oagloI3yJgaikyCJU3sGbpNezsjwbzhHCY_8Ha6ZGw0,223
122
122
  benchmark_runner/common/template_operations/templates/vdbench/internal_data/vdbench_pod_template.yaml,sha256=fotkz6whUbUQTAh8x64doGg0Kvjf5EZ_6tgofYxFdbM,5733
@@ -163,15 +163,15 @@ benchmark_runner/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZ
163
163
  benchmark_runner/main/main.py,sha256=SB-rD4U_978gP8ojGUtIsYzhSsmzeEDsUfOiJQJdz9c,14097
164
164
  benchmark_runner/main/temporary_environment_variables.py,sha256=ODSHkfhgvdr_b2e3XyvykW21MVjSdyqimREyMc2klRE,957
165
165
  benchmark_runner/workloads/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
166
- benchmark_runner/workloads/bootstorm_vm.py,sha256=QiHolgvYs4Fdibq4o_UZIM22SOQpyV8zR7MIghEtmX4,17889
166
+ benchmark_runner/workloads/bootstorm_vm.py,sha256=V2E7D95V7B88llc8tif_E0ZEmy5tJSmuH_8XHSc5Z5s,18495
167
167
  benchmark_runner/workloads/vdbench_pod.py,sha256=OcmxVr5QlbkhAgY37wsZ7xJUjs9HI-qMVDex1HdL2P0,9778
168
168
  benchmark_runner/workloads/vdbench_vm.py,sha256=Yhoz-GbvZwA8q6qGIeSUsYhEIERj8SmJB1yjetwsGow,9449
169
169
  benchmark_runner/workloads/windows_vm.py,sha256=eHK79ueAkSlNC1uamz19o7CO20wzJi-UIqRuTByTVxg,2373
170
170
  benchmark_runner/workloads/workloads.py,sha256=F9fnk4h715tq7ANSCbDH0jktB8fpr_u3YG61Kdi5_os,1422
171
171
  benchmark_runner/workloads/workloads_exceptions.py,sha256=u7VII95iPRF_YhfpGH1U1RmgiIYESMOtbSF1dz7_ToE,1858
172
172
  benchmark_runner/workloads/workloads_operations.py,sha256=zhMAL-Zc2JtdI-LG4kxGwbGwHaLY2DfklpzM4bBG-eo,25261
173
- benchmark_runner-1.0.711.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
174
- benchmark_runner-1.0.711.dist-info/METADATA,sha256=ldHSuHWuqRrZlpEFqoUFvOLdYHcd9abYYXgRHeb-7pY,11309
175
- benchmark_runner-1.0.711.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
176
- benchmark_runner-1.0.711.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
177
- benchmark_runner-1.0.711.dist-info/RECORD,,
173
+ benchmark_runner-1.0.713.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
174
+ benchmark_runner-1.0.713.dist-info/METADATA,sha256=CD5pkhOetegcIQOVY49yxsj_E1IYCkTV4D8FpJLBde0,11309
175
+ benchmark_runner-1.0.713.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
176
+ benchmark_runner-1.0.713.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
177
+ benchmark_runner-1.0.713.dist-info/RECORD,,