benchmark-runner 1.0.827__py3-none-any.whl → 1.0.828__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/common/clouds/BareMetal/bare_metal_operations.py +3 -2
- benchmark_runner/common/oc/oc.py +16 -3
- {benchmark_runner-1.0.827.dist-info → benchmark_runner-1.0.828.dist-info}/METADATA +1 -1
- {benchmark_runner-1.0.827.dist-info → benchmark_runner-1.0.828.dist-info}/RECORD +7 -7
- {benchmark_runner-1.0.827.dist-info → benchmark_runner-1.0.828.dist-info}/WHEEL +0 -0
- {benchmark_runner-1.0.827.dist-info → benchmark_runner-1.0.828.dist-info}/licenses/LICENSE +0 -0
- {benchmark_runner-1.0.827.dist-info → benchmark_runner-1.0.828.dist-info}/top_level.txt +0 -0
|
@@ -107,12 +107,13 @@ class BareMetalOperations:
|
|
|
107
107
|
current_wait_time = 0
|
|
108
108
|
logger.info(f'Waiting until the upgrade to version {self._upgrade_ocp_version} starts...')
|
|
109
109
|
oc.wait_for_ocp_upgrade_start(upgrade_version=self._upgrade_ocp_version)
|
|
110
|
-
while self._timeout <= 0 or current_wait_time <= self._timeout and oc.upgrade_in_progress():
|
|
110
|
+
while (self._timeout <= 0 or current_wait_time <= self._timeout) and oc.upgrade_in_progress():
|
|
111
111
|
logger.info(f'Waiting till OCP upgrade complete, waiting {int(current_wait_time / 60)} minutes')
|
|
112
112
|
# sleep for x seconds
|
|
113
113
|
time.sleep(sleep_time)
|
|
114
114
|
current_wait_time += sleep_time
|
|
115
|
-
if
|
|
115
|
+
if oc.get_upgrade_version() == self._upgrade_ocp_version:
|
|
116
|
+
logger.info(f"OCP successfully upgraded to {oc.get_upgrade_version()}")
|
|
116
117
|
return True
|
|
117
118
|
else:
|
|
118
119
|
raise OCPUpgradeFailed(status=oc.get_cluster_status())
|
benchmark_runner/common/oc/oc.py
CHANGED
|
@@ -101,11 +101,24 @@ class OC(SSH):
|
|
|
101
101
|
|
|
102
102
|
def upgrade_in_progress(self):
|
|
103
103
|
"""
|
|
104
|
-
This method returns True
|
|
104
|
+
This method returns True if an upgrade is in progress and False otherwise, with retries on transient failures.
|
|
105
105
|
@return: bool
|
|
106
106
|
"""
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
for i in range(1, self.RETRIES + 1):
|
|
108
|
+
try:
|
|
109
|
+
status = self.run(
|
|
110
|
+
f"{self._cli} get clusterversion version "
|
|
111
|
+
"-o jsonpath='{{.status.conditions[?(@.type==\"Progressing\")].status}}'"
|
|
112
|
+
).strip()
|
|
113
|
+
return status == 'True'
|
|
114
|
+
except Exception as e:
|
|
115
|
+
logger.warning(f"[upgrade_in_progress] attempt {i}/{self.RETRIES} failed: {e}")
|
|
116
|
+
time.sleep(self.DELAY)
|
|
117
|
+
# Final attempt (will bubble if it fails)
|
|
118
|
+
return self.run(
|
|
119
|
+
f"{self._cli} get clusterversion version "
|
|
120
|
+
"-o jsonpath='{{.status.conditions[?(@.type==\"Progressing\")].status}}'"
|
|
121
|
+
).strip() == 'True'
|
|
109
122
|
|
|
110
123
|
@logger_time_stamp
|
|
111
124
|
def wait_for_ocp_upgrade_start(self, upgrade_version: str, timeout: int = SHORT_TIMEOUT):
|
|
@@ -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=
|
|
26
|
+
benchmark_runner/common/clouds/BareMetal/bare_metal_operations.py,sha256=_2SdAQnKY8S6MhlCfbrS7rT6-zAfZuxymzhGVg7MIHM,18867
|
|
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=
|
|
50
|
+
benchmark_runner/common/oc/oc.py,sha256=KPszEA8DcnpMhonRUJoNlJA0-_JIzk-geekSloKW7PY,72539
|
|
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
|
|
@@ -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=8utD-uU_MNZn5JOC2r5OVq5BfCPkxlUvP3xlUP9oIGk,27160
|
|
177
|
-
benchmark_runner-1.0.
|
|
178
|
-
benchmark_runner-1.0.
|
|
179
|
-
benchmark_runner-1.0.
|
|
180
|
-
benchmark_runner-1.0.
|
|
181
|
-
benchmark_runner-1.0.
|
|
177
|
+
benchmark_runner-1.0.828.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
178
|
+
benchmark_runner-1.0.828.dist-info/METADATA,sha256=QrmThGIoLJ0JuLK0ULWGmOywPqWg2u89fffS5FXNWfI,11520
|
|
179
|
+
benchmark_runner-1.0.828.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
180
|
+
benchmark_runner-1.0.828.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
|
|
181
|
+
benchmark_runner-1.0.828.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|