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

@@ -203,15 +203,19 @@ class OC(SSH):
203
203
 
204
204
  def get_free_disk_id(self, node: str = None):
205
205
  """
206
- This method returns free disk per node [workers disk ids - workers pv disk ids]
206
+ This method returns a free disk ID for a given node (or all nodes if no node is specified).
207
+ It identifies the disk by comparing workers' disk IDs with PV disk IDs.
207
208
  """
208
209
  workers_disk_ids = self.get_worker_disk_ids(node)
209
210
  workers_pv_disk_ids = self.get_pv_disk_ids()
210
- free_disk_id = f'{self.__worker_disk_prefix}{[disk_id for disk_id in workers_disk_ids if disk_id not in workers_pv_disk_ids][0]}'
211
- if free_disk_id:
212
- return free_disk_id
211
+
212
+ # Find free disk IDs
213
+ free_disks = [disk_id for disk_id in workers_disk_ids if disk_id not in workers_pv_disk_ids]
214
+
215
+ if free_disks:
216
+ return f'{self.__worker_disk_prefix}{free_disks[0]}'
213
217
  else:
214
- raise ValueError('Missing free disk id')
218
+ raise ValueError('No free disk IDs available. All worker disks are already in use.')
215
219
 
216
220
  @typechecked
217
221
  def run_debug_node(self, node: str, cmd: str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: benchmark-runner
3
- Version: 1.0.718
3
+ Version: 1.0.719
4
4
  Summary: Benchmark Runner Tool
5
5
  Home-page: https://github.com/redhat-performance/benchmark-runner
6
6
  Author: Red Hat
@@ -46,7 +46,7 @@ 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=ou17i6kBKyrQQ9TmnytBDxwu1M8z1gqeIF3CkqwpIog,66918
49
+ benchmark_runner/common/oc/oc.py,sha256=wJq0SCEBz2wGY0ZgMjfa48v9vd9ln3p-2-TZiPv1CbY,67078
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
@@ -170,8 +170,8 @@ benchmark_runner/workloads/windows_vm.py,sha256=eHK79ueAkSlNC1uamz19o7CO20wzJi-U
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.718.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
174
- benchmark_runner-1.0.718.dist-info/METADATA,sha256=WVnvJ7P6eJr0KgEZUC1GuKob9VRcYgXckisrcAls3l4,11498
175
- benchmark_runner-1.0.718.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
176
- benchmark_runner-1.0.718.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
177
- benchmark_runner-1.0.718.dist-info/RECORD,,
173
+ benchmark_runner-1.0.719.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
174
+ benchmark_runner-1.0.719.dist-info/METADATA,sha256=WfhT1ccW7tSRmTN7zcYMDon3G3_MoeQehWnJxSaDSMU,11498
175
+ benchmark_runner-1.0.719.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
176
+ benchmark_runner-1.0.719.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
177
+ benchmark_runner-1.0.719.dist-info/RECORD,,