benchmark-runner 1.0.694__py3-none-any.whl → 1.0.695__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.
@@ -0,0 +1,43 @@
1
+
2
+ import os
3
+
4
+ from benchmark_runner.common.oc.oc import OC
5
+ from benchmark_runner.common.logger.logger_time_stamp import logger_time_stamp, logger
6
+ from benchmark_runner.common.ocp_resources.create_ocp_resource_operations import CreateOCPResourceOperations
7
+
8
+
9
+ class CreateNHCSNR(CreateOCPResourceOperations):
10
+ """
11
+ This class is created node-health-check and self-node-remediation operators
12
+ """
13
+ def __init__(self, oc: OC, path: str, resource_list: list):
14
+ super().__init__(oc)
15
+ self.__oc = oc
16
+ self.__path = path
17
+ self.__resource_list = resource_list
18
+
19
+ @logger_time_stamp
20
+ def create_nhc_snr(self):
21
+ """
22
+ This method creates node-health-check and self-node-remediation operators
23
+ :return:
24
+ """
25
+ for resource in self.__resource_list:
26
+ logger.info(f'run {resource}')
27
+ self.__oc.create_async(yaml=os.path.join(self.__path, resource))
28
+
29
+ if '03_subscription.yaml' in resource:
30
+ # verify once after create all resource files
31
+ self.wait_for_ocp_resource_create(operator='nhc',
32
+ verify_cmd="oc get csv -n openshift-workload-availability -o jsonpath='{.items[0].status.phase}'",
33
+ status='Succeeded')
34
+ self.wait_for_ocp_resource_create(operator='snr',
35
+ verify_cmd="oc get csv -n openshift-workload-availability -o jsonpath='{.items[1].status.phase}'",
36
+ status='Succeeded')
37
+ # SNR is automatically enabled when NHC is enabled
38
+ if '04_nhc_snr.yaml' in resource:
39
+ # Verify NHC is enabled
40
+ self.wait_for_ocp_resource_create(operator='nhc',
41
+ verify_cmd="oc get nhc -A -o jsonpath='{range .items[*]}{.status.phase}{\"\\n\"}{end}'",
42
+ status='Enabled')
43
+ return True
@@ -8,6 +8,7 @@ from benchmark_runner.common.ocp_resources.create_lso import CreateLSO
8
8
  from benchmark_runner.common.ocp_resources.create_odf import CreateODF
9
9
  from benchmark_runner.common.ocp_resources.create_kata import CreateKata
10
10
  from benchmark_runner.common.ocp_resources.create_cnv import CreateCNV
11
+ from benchmark_runner.common.ocp_resources.create_nhc_snr import CreateNHCSNR
11
12
  from benchmark_runner.common.ocp_resources.create_custom import CreateCustom
12
13
  from benchmark_runner.common.ocp_resources.migrate_infra import MigrateInfra
13
14
 
@@ -91,6 +92,9 @@ class CreateOCPResource:
91
92
  elif 'cnv' == resource:
92
93
  create_cnv = CreateCNV(self.__oc, path=os.path.join(self.__dir_path, resource), resource_list=resource_files)
93
94
  create_cnv.create_cnv()
95
+ elif 'nhc_snr' == resource:
96
+ create_nhc_snr = CreateNHCSNR(self.__oc, path=os.path.join(self.__dir_path, resource), resource_list=resource_files)
97
+ create_nhc_snr.create_nhc_snr()
94
98
  elif 'infra' == resource:
95
99
  create_infra = MigrateInfra(self.__oc, path=os.path.join(self.__dir_path, resource), resource_list=resource_files)
96
100
  create_infra.migrate_infra()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: benchmark-runner
3
- Version: 1.0.694
3
+ Version: 1.0.695
4
4
  Summary: Benchmark Runner Tool
5
5
  Home-page: https://github.com/redhat-performance/benchmark-runner
6
6
  Author: Red Hat
@@ -53,7 +53,8 @@ benchmark_runner/common/ocp_resources/create_cnv.py,sha256=AXsyR8_g_RIFHz2rkyHzz
53
53
  benchmark_runner/common/ocp_resources/create_custom.py,sha256=rthm96yDzI-Hke54hLWTs0O3gDtpQPR6n184ehaEevo,1029
54
54
  benchmark_runner/common/ocp_resources/create_kata.py,sha256=IhfnDHj0lLUVENA-Nh9BucSAt0BqL8mtqT6QloMzIDg,3721
55
55
  benchmark_runner/common/ocp_resources/create_lso.py,sha256=anrLu2NymdxE7LkJ9fytqmhkysq7hVLOYBVxjfFlmVE,1634
56
- benchmark_runner/common/ocp_resources/create_ocp_resource.py,sha256=iBiT5CfuaYuDfX5zc64IzZhQKGrGHzVSLK9eyJmjDkk,5217
56
+ benchmark_runner/common/ocp_resources/create_nhc_snr.py,sha256=pTyx6Y5BNfXvRtJcbfLtUlqdEb1eB7ypCFv9-kBEIuU,2057
57
+ benchmark_runner/common/ocp_resources/create_ocp_resource.py,sha256=ik0lotwiuECRDCbPYfDpi2Q_qjhtc2XDCR9zbY_Z9V0,5504
57
58
  benchmark_runner/common/ocp_resources/create_ocp_resource_exceptions.py,sha256=hthowyHAeg66IZHYPe1FWU3dnhwXcQtPBrOQSO1RZMU,941
58
59
  benchmark_runner/common/ocp_resources/create_ocp_resource_operations.py,sha256=47SyVjtv5e9vKuRQFlC-VfGKXBLEl46rut4XVeZRsMo,6834
59
60
  benchmark_runner/common/ocp_resources/create_odf.py,sha256=3ZwFaiLB-j062W-6SESZRzh6thUrn1dAzDQ07FISOjE,4441
@@ -165,8 +166,8 @@ benchmark_runner/workloads/windows_vm.py,sha256=eHK79ueAkSlNC1uamz19o7CO20wzJi-U
165
166
  benchmark_runner/workloads/workloads.py,sha256=F9fnk4h715tq7ANSCbDH0jktB8fpr_u3YG61Kdi5_os,1422
166
167
  benchmark_runner/workloads/workloads_exceptions.py,sha256=u7VII95iPRF_YhfpGH1U1RmgiIYESMOtbSF1dz7_ToE,1858
167
168
  benchmark_runner/workloads/workloads_operations.py,sha256=tAgvdMRMu5Ybck81UBCBE6H76PN0L2GptjNRnYoFv2M,25221
168
- benchmark_runner-1.0.694.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
169
- benchmark_runner-1.0.694.dist-info/METADATA,sha256=Hg6NRK_PqsEfb6L_FL2bBU00Dsr7NK-kl60j83ahpkc,11309
170
- benchmark_runner-1.0.694.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
171
- benchmark_runner-1.0.694.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
172
- benchmark_runner-1.0.694.dist-info/RECORD,,
169
+ benchmark_runner-1.0.695.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
170
+ benchmark_runner-1.0.695.dist-info/METADATA,sha256=1wql7Qer_yLnmASjjKhTqjNzbvG7-LB7AQ2eu3NU1cc,11309
171
+ benchmark_runner-1.0.695.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
172
+ benchmark_runner-1.0.695.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
173
+ benchmark_runner-1.0.695.dist-info/RECORD,,