File tree Expand file tree Collapse file tree 5 files changed +35
-38
lines changed
roles/container-engine/cri-o Expand file tree Collapse file tree 5 files changed +35
-38
lines changed Original file line number Diff line number Diff line change 10
10
allow_failure : true
11
11
stage : deploy-part1
12
12
image : $PIPELINE_IMAGE
13
+ variables :
14
+ ANSIBLE_STDOUT_CALLBACK : debug
13
15
needs :
14
16
- pipeline-image
15
17
script :
Original file line number Diff line number Diff line change @@ -59,5 +59,3 @@ provisioner:
59
59
timeout : 120
60
60
playbooks :
61
61
create : ../../../../../tests/cloud_playbooks/create-kubevirt.yml
62
- verifier :
63
- name : testinfra
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Get logs of crio
3
+ hosts : all
4
+ gather_facts : false
5
+ become : true
6
+ tasks :
7
+ - name : Verify CRI-O
8
+ block :
9
+ - name : Gather services facts
10
+ service_facts :
11
+
12
+ - name : Check CRI-O service state
13
+ assert :
14
+ that :
15
+ - ansible_facts['services']['crio.service']['state'] == 'running'
16
+ - ansible_facts['services']['crio.service']['status'] == 'enabled'
17
+
18
+ - name : Test runtime is crio
19
+ command : /usr/local/bin/crictl version
20
+ register : cri_version
21
+ failed_when : >
22
+ cri_version is failed or
23
+ "RuntimeName: cri-o" not in cri_version.stdout
24
+
25
+ - name : Test running a pod
26
+ command : /usr/local/bin/crictl run --with-pull --runtime crun /tmp/container.json /tmp/sandbox.json
27
+ rescue :
28
+ - name : Show journal logs for CRI-O
29
+ command : journalctl -u crio.service -e -n 300
30
+
31
+ - name : Force failure
32
+ fail :
Original file line number Diff line number Diff line change 123
123
content : |
124
124
[Service]
125
125
Slice={{ kube_reserved_cgroups_for_service_slice }}
126
- Environment=CRIO_CONFIG_OPTIONS='--pull-progress-timeout=10 '
126
+ Environment=CRIO_CONFIG_OPTIONS='--log-level=debug --log-journald '
127
127
notify : Restart crio
128
128
when :
129
129
- kube_reserved is defined and kube_reserved is true
You can’t perform that action at this time.
0 commit comments