File tree 20 files changed +47
-44
lines changed
20 files changed +47
-44
lines changed Original file line number Diff line number Diff line change 1
- FROM quay.io/operator-framework/ansible-operator:v1.9 .0
1
+ FROM quay.io/operator-framework/ansible-operator:v1.32 .0
2
2
USER root
3
3
4
4
COPY requirements.yml ${HOME}/requirements.yml
5
+ RUN python3 -m pip install jmespath
6
+ RUN ansible-galaxy collection install community.general
7
+ RUN ansible-galaxy collection list
5
8
RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \
6
9
&& chmod -R ug+rwx ${HOME}/.ansible
7
10
Original file line number Diff line number Diff line change 22
22
when : workload.args.drop_cache_kernel is defined
23
23
24
24
- name : Capture operator information
25
- k8s_facts :
25
+ k8s_info :
26
26
kind : Pod
27
27
api_version : v1
28
28
namespace : " {{ operator_namespace }}"
Original file line number Diff line number Diff line change 1
1
---
2
2
collections :
3
3
- name : community.kubernetes
4
- version : " 1.2 .1"
4
+ version : " 2.0 .1"
5
5
- name : operator_sdk.util
6
- version : " 0.2 .0"
6
+ version : " 0.5 .0"
Original file line number Diff line number Diff line change 10
10
when : benchmark_state.resources[0].status.state is not defined
11
11
12
12
- name : Get benchmark state
13
- k8s_facts :
13
+ k8s_info :
14
14
api_version : ripsaw.cloudbulldozer.io/v1alpha1
15
15
kind : Benchmark
16
16
name : " {{ ansible_operator_meta.name }}"
17
17
namespace : " {{ operator_namespace }}"
18
18
register : benchmark_state
19
19
20
20
- name : Get DaemonSet state
21
- k8s_facts :
21
+ k8s_info :
22
22
api_version : apps/v1
23
23
kind : DaemonSet
24
24
name : " backpack-{{ trunc_uuid }}"
36
36
definition : " {{ lookup('template', 'backpack.yml') | from_yaml }}"
37
37
38
38
- name : Get DaemonSet Status
39
- k8s_facts :
39
+ k8s_info :
40
40
api_version : apps/v1
41
41
kind : DaemonSet
42
42
name : " backpack-{{ trunc_uuid }}"
52
52
- block :
53
53
54
54
- name : Get initial pod list
55
- k8s_facts :
55
+ k8s_info :
56
56
kind : Pod
57
57
namespace : " {{ operator_namespace }}"
58
58
label_selectors :
82
82
when : workload.name != "backpack"
83
83
84
84
- name : Get benchmark state
85
- k8s_facts :
85
+ k8s_info :
86
86
api_version : ripsaw.cloudbulldozer.io/v1alpha1
87
87
kind : Benchmark
88
88
name : " {{ ansible_operator_meta.name }}"
Original file line number Diff line number Diff line change 1
1
# common tasks across multiple roles go here
2
2
- block :
3
3
- name : Get Network Policy
4
- k8s_facts :
4
+ k8s_info :
5
5
kind : NetworkPolicy
6
6
api_version : networking.k8s.io/v1
7
7
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 152
152
153
153
- block :
154
154
- name : wait for db creation job to finish
155
- k8s_facts :
155
+ k8s_info :
156
156
kind : Job
157
157
api_version : batch/v1
158
158
name : ' fio-prefill-{{ trunc_uuid }}'
Original file line number Diff line number Diff line change 196
196
- block :
197
197
- block :
198
198
- name : wait for db creation job to finish
199
- k8s_facts :
199
+ k8s_info :
200
200
kind : Job
201
201
api_version : batch/v1
202
202
name : ' {{ ansible_operator_meta.name }}-creator-{{ trunc_uuid }}'
Original file line number Diff line number Diff line change 10
10
shell : " python3 /opt/ansible/roles/kernel_cache_drop/wait_for_daemonset.py 30 {{ operator_namespace }} kernel-cache-dropper"
11
11
12
12
- name : get kernel cache dropper pods
13
- k8s_facts :
13
+ k8s_info :
14
14
kind : Pod
15
15
label_selectors :
16
16
- name = kernel-cache-dropper
Original file line number Diff line number Diff line change 26
26
- block :
27
27
28
28
- name : Get server pods
29
- k8s_facts :
29
+ k8s_info :
30
30
kind : Pod
31
31
api_version : v1
32
32
namespace : ' {{ operator_namespace }}'
46
46
- block :
47
47
48
48
- name : Get server pod info
49
- k8s_facts :
49
+ k8s_info :
50
50
kind : Pod
51
51
api_version : v1
52
52
namespace : ' {{ operator_namespace }}'
55
55
register : server_pods
56
56
57
57
- name : Get route info
58
- k8s_facts :
58
+ k8s_info :
59
59
kind : Route
60
60
api_version : route.openshift.io/v1
61
61
namespace : ' {{ operator_namespace }}'
86
86
87
87
- block :
88
88
- name : Get client pod status
89
- k8s_facts :
89
+ k8s_info :
90
90
kind : Pod
91
91
api_version : v1
92
92
namespace : ' {{ operator_namespace }}'
129
129
- block :
130
130
- block :
131
131
- name : Waiting for pods to complete....
132
- k8s_facts :
132
+ k8s_info :
133
133
kind : pod
134
134
api_version : v1
135
135
namespace : ' {{ operator_namespace }}'
157
157
158
158
- block :
159
159
- name : Get Server Jobs
160
- k8s_facts :
160
+ k8s_info :
161
161
kind : Job
162
162
api_version : v1
163
163
namespace : ' {{ operator_namespace }}'
166
166
register : server_jobs
167
167
168
168
- name : Get Server Pods
169
- k8s_facts :
169
+ k8s_info :
170
170
kind : Pod
171
171
api_version : v1
172
172
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 3
3
command : " redis-cli set pgb_start true"
4
4
5
5
- name : Check for pods to complete
6
- k8s_facts :
6
+ k8s_info :
7
7
kind : pod
8
8
api_version : v1
9
9
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 36
36
- block :
37
37
38
38
- name : Wait for pods to be running....
39
- k8s_facts :
39
+ k8s_info :
40
40
kind : Pod
41
41
api_version : v1
42
42
namespace : ' {{ operator_namespace }}'
65
65
66
66
- block :
67
67
- name : Get TestPMD pod info
68
- k8s_facts :
68
+ k8s_info :
69
69
kind : Pod
70
70
api_version : v1
71
71
namespace : ' {{ operator_namespace }}'
89
89
- block :
90
90
91
91
- name : Wait for pods to be running....
92
- k8s_facts :
92
+ k8s_info :
93
93
kind : Pod
94
94
api_version : v1
95
95
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 4
4
# ## <POD> kind
5
5
# Cleanup servers, but leave clients around mostly for further examining of results.
6
6
- name : Get Server Jobs
7
- k8s_facts :
7
+ k8s_info :
8
8
kind : Job
9
9
api_version : v1
10
10
namespace : ' {{ operator_namespace }}'
13
13
register : server_jobs
14
14
15
15
- name : Get Server Pods
16
- k8s_facts :
16
+ k8s_info :
17
17
kind : Pod
18
18
api_version : v1
19
19
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 69
69
num_server_pods : " {{ (node_hi_idx|int+1) * (pod_hi_idx|int+1) }}"
70
70
71
71
- name : Capture ServiceIP
72
- k8s_facts :
72
+ k8s_info :
73
73
kind : Service
74
74
api_version : v1
75
75
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Get pod info
4
- k8s_facts :
4
+ k8s_info :
5
5
kind : Pod
6
6
api_version : v1
7
7
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 39
39
# to derive its affinity according the 'colocate' variable
40
40
#
41
41
- name : Wait for pods to be running....
42
- k8s_facts :
42
+ k8s_info :
43
43
kind : Pod
44
44
api_version : v1
45
45
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 2
2
- block :
3
3
# ## <POD> kind
4
4
- name : Waiting for pods to complete....
5
- k8s_facts :
5
+ k8s_info :
6
6
kind : pod
7
7
api_version : v1
8
8
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 4
4
# ## <POD> kind
5
5
6
6
- name : Get client pod status
7
- k8s_facts :
7
+ k8s_info :
8
8
kind : Pod
9
9
api_version : v1
10
10
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 3
3
# ## <POD> kind
4
4
5
5
- name : Get server pods
6
- k8s_facts :
6
+ k8s_info :
7
7
kind : Pod
8
8
api_version : v1
9
9
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Capture ServiceIP
4
- k8s_facts :
4
+ k8s_info :
5
5
kind : Service
6
6
api_version : v1
7
7
namespace : ' {{ operator_namespace }}'
62
62
- block :
63
63
64
64
- name : Get server pods
65
- k8s_facts :
65
+ k8s_info :
66
66
kind : Pod
67
67
api_version : v1
68
68
namespace : ' {{ operator_namespace }}'
83
83
- block :
84
84
85
85
- name : Wait for vms to be running....
86
- k8s_facts :
86
+ k8s_info :
87
87
kind : VirtualMachineInstance
88
88
api_version : kubevirt.io/v1alpha3
89
89
namespace : ' {{ operator_namespace }}'
108
108
- block :
109
109
110
110
- name : Get pod info
111
- k8s_facts :
111
+ k8s_info :
112
112
kind : Pod
113
113
api_version : v1
114
114
namespace : ' {{ operator_namespace }}'
153
153
- block :
154
154
155
155
- name : Wait for vms to be running....
156
- k8s_facts :
156
+ k8s_info :
157
157
kind : VirtualMachineInstance
158
158
api_version : kubevirt.io/v1alpha3
159
159
namespace : ' {{ operator_namespace }}'
187
187
188
188
- block :
189
189
- name : Get client pod status
190
- k8s_facts :
190
+ k8s_info :
191
191
kind : Pod
192
192
api_version : v1
193
193
namespace : ' {{ operator_namespace }}'
218
218
command : " redis-cli set complete-{{ trunc_uuid }} false"
219
219
220
220
- name : Get client vm status
221
- k8s_facts :
221
+ k8s_info :
222
222
kind : VirtualMachineInstance
223
223
api_version : kubevirt.io/v1alpha3
224
224
namespace : ' {{ operator_namespace }}'
253
253
- block :
254
254
- block :
255
255
- name : Waiting for pods to complete....
256
- k8s_facts :
256
+ k8s_info :
257
257
kind : pod
258
258
api_version : v1
259
259
namespace : ' {{ operator_namespace }}'
295
295
296
296
- block :
297
297
- name : Get Server Jobs
298
- k8s_facts :
298
+ k8s_info :
299
299
kind : Job
300
300
api_version : v1
301
301
namespace : ' {{ operator_namespace }}'
304
304
register : server_jobs
305
305
306
306
- name : Get Server Pods
307
- k8s_facts :
307
+ k8s_info :
308
308
kind : Pod
309
309
api_version : v1
310
310
namespace : ' {{ operator_namespace }}'
Original file line number Diff line number Diff line change 37
37
ycsb_workload_load : " workloada"
38
38
39
39
- name : Wait for Load Job to Succeed...
40
- k8s_facts :
40
+ k8s_info :
41
41
kind : Job
42
42
api_version : batch/v1
43
43
name : ' ycsb-data-load-job-{{ ycsb_workload_load }}-{{ trunc_uuid }}'
108
108
ycsb_workload : " {{ workload_args.workloads[wrkload.stdout|int] }}"
109
109
110
110
- name : Wait for YCSB Workload Job to Succeed...
111
- k8s_facts :
111
+ k8s_info :
112
112
kind : Job
113
113
api_version : batch/v1
114
114
name : ' ycsb-bench-job-{{ ycsb_workload }}-{{ trunc_uuid }}'
You can’t perform that action at this time.
0 commit comments