benchmark-runner 1.0.858__py3-none-any.whl → 1.0.859__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/ocp_resources/create_nhc_far.py +16 -7
- {benchmark_runner-1.0.858.dist-info → benchmark_runner-1.0.859.dist-info}/METADATA +1 -1
- {benchmark_runner-1.0.858.dist-info → benchmark_runner-1.0.859.dist-info}/RECORD +6 -6
- {benchmark_runner-1.0.858.dist-info → benchmark_runner-1.0.859.dist-info}/WHEEL +0 -0
- {benchmark_runner-1.0.858.dist-info → benchmark_runner-1.0.859.dist-info}/licenses/LICENSE +0 -0
- {benchmark_runner-1.0.858.dist-info → benchmark_runner-1.0.859.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
import os
|
|
3
2
|
|
|
4
3
|
from benchmark_runner.common.oc.oc import OC
|
|
@@ -10,6 +9,7 @@ class CreateNHCFAR(CreateOCPResourceOperations):
|
|
|
10
9
|
"""
|
|
11
10
|
This class is created node-health-check and fence-agents-remediation operators
|
|
12
11
|
"""
|
|
12
|
+
|
|
13
13
|
def __init__(self, oc: OC, path: str, resource_list: list):
|
|
14
14
|
super().__init__(oc)
|
|
15
15
|
self.__oc = oc
|
|
@@ -28,15 +28,24 @@ class CreateNHCFAR(CreateOCPResourceOperations):
|
|
|
28
28
|
|
|
29
29
|
if '03_nhc_subscription.yaml' in resource:
|
|
30
30
|
self.wait_for_ocp_resource_create(operator='nhc',
|
|
31
|
-
verify_cmd="oc get csv -n openshift-workload-availability -o
|
|
31
|
+
verify_cmd=f"oc get csv -n openshift-workload-availability -o json | jq -r '.items[] | select(.metadata.name | startswith(\"node-healthcheck-operator\")) | .status.phase'",
|
|
32
32
|
status='Succeeded')
|
|
33
33
|
if '04_far_subscription.yaml' in resource:
|
|
34
34
|
self.wait_for_ocp_resource_create(operator='far',
|
|
35
|
-
verify_cmd="oc get csv -n openshift-workload-availability -o
|
|
35
|
+
verify_cmd=f"oc get csv -n openshift-workload-availability -o json | jq -r '.items[] | select(.metadata.name | startswith(\"fence-agents-remediation\")) | .status.phase'",
|
|
36
36
|
status='Succeeded')
|
|
37
37
|
if '05_nhc_far.yaml' in resource:
|
|
38
|
-
#
|
|
39
|
-
self.
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
# Wait for NHC to be enabled using a retries mechanism
|
|
39
|
+
for _ in range(self.__oc.RETRIES):
|
|
40
|
+
try:
|
|
41
|
+
self.wait_for_ocp_resource_create(
|
|
42
|
+
operator='nhc_far',
|
|
43
|
+
verify_cmd="oc get nhc -A -o jsonpath='{range .items[*]}{.status.phase}{\"\\n\"}{end}'",
|
|
44
|
+
status='Enabled',
|
|
45
|
+
timeout=600
|
|
46
|
+
)
|
|
47
|
+
break
|
|
48
|
+
except:
|
|
49
|
+
# rerun latest resource creation, if nhc is not enabled
|
|
50
|
+
self.__oc.create_async(yaml=os.path.join(self.__path, resource))
|
|
42
51
|
return True
|
|
@@ -55,7 +55,7 @@ benchmark_runner/common/ocp_resources/create_cnv.py,sha256=AXsyR8_g_RIFHz2rkyHzz
|
|
|
55
55
|
benchmark_runner/common/ocp_resources/create_custom.py,sha256=rthm96yDzI-Hke54hLWTs0O3gDtpQPR6n184ehaEevo,1029
|
|
56
56
|
benchmark_runner/common/ocp_resources/create_kata.py,sha256=IhfnDHj0lLUVENA-Nh9BucSAt0BqL8mtqT6QloMzIDg,3721
|
|
57
57
|
benchmark_runner/common/ocp_resources/create_lso.py,sha256=uzhYTUK-645_2L45Q2sbDOuvSLeGnN-UdbdrkYR5PqQ,1634
|
|
58
|
-
benchmark_runner/common/ocp_resources/create_nhc_far.py,sha256=
|
|
58
|
+
benchmark_runner/common/ocp_resources/create_nhc_far.py,sha256=WGNDMLZfODy6FImmkgQjxg3Z4Gsnpxwa5lJCOShmxe8,2541
|
|
59
59
|
benchmark_runner/common/ocp_resources/create_ocp_resource.py,sha256=0iMbpOuG4Y19J9YjMO8AdlwJke1UgKMSX4eA-AnIUck,5478
|
|
60
60
|
benchmark_runner/common/ocp_resources/create_ocp_resource_exceptions.py,sha256=hthowyHAeg66IZHYPe1FWU3dnhwXcQtPBrOQSO1RZMU,941
|
|
61
61
|
benchmark_runner/common/ocp_resources/create_ocp_resource_operations.py,sha256=47SyVjtv5e9vKuRQFlC-VfGKXBLEl46rut4XVeZRsMo,6834
|
|
@@ -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=Z7cT5rrLmz_SEIbtxbxyniaA0dQ07s8nK1I2EWcoBqM,27378
|
|
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.859.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
178
|
+
benchmark_runner-1.0.859.dist-info/METADATA,sha256=9IMbZh6H4nYRpz8DtigZ6zAvqnooy7ZWgcAlAUaUbTI,11582
|
|
179
|
+
benchmark_runner-1.0.859.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
180
|
+
benchmark_runner-1.0.859.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
|
|
181
|
+
benchmark_runner-1.0.859.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|