Skip to content

Commit 245e107

Browse files
committed
CRI-O: bump cgroupv2 jobs to f97ec69
Update the cgroupv2 jobs to match the latest CRI-O commit. This contains SELinux changes to the image volume work which should be tested upstream. Signed-off-by: Sascha Grunert <[email protected]>
1 parent f2411e4 commit 245e107

File tree

4 files changed

+132
-4
lines changed

4 files changed

+132
-4
lines changed

jobs/e2e_node/crio/crio_cgroupv2.ign

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"name": "selinux-install.service"
6969
},
7070
{
71-
"contents": "[Unit]\nDescription=Download and install crio binaries and configurations.\nAfter=selinux-install.service\n\n[Service]\nType=oneshot\nEnvironment=\"SCRIPT_COMMIT=52aa3c2a31ccc9623962e9e338b6585267d6f3f4\"\nEnvironment=\"CRIO_COMMIT=1c04ca9768e535cf22017da6e6cee620bb3a6431\"\n\nExecStartPre=mount /tmp /tmp -o remount,exec,suid\nExecStartPre=mount -o remount,rw /dev/sda4 /usr\nExecStartPre=bash -c '\\\n curl --fail --retry 5 --retry-delay 3 --silent --show-error \\\n https://raw.githubusercontent.com/cri-o/packaging/$SCRIPT_COMMIT/get |\\\n bash -s -- -t $CRIO_COMMIT'\nExecStartPre=rm -f /etc/cni/net.d/87-podman-bridge.conflist\nExecStartPre=rm -f /etc/crio/crio.conf.d/10-crio.conf\nExecStart=systemctl enable --now crio.service\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\n",
71+
"contents": "[Unit]\nDescription=Download and install crio binaries and configurations.\nAfter=selinux-install.service\n\n[Service]\nType=oneshot\nEnvironment=\"SCRIPT_COMMIT=e8c1f1f9493bef6ecc069d573891f7ef3dda5882\"\nEnvironment=\"CRIO_COMMIT=f97ec692ad1c28ab0fe787b0407b023a90bd2869\"\n\nExecStartPre=mount /tmp /tmp -o remount,exec,suid\nExecStartPre=mount -o remount,rw /dev/sda4 /usr\nExecStartPre=bash -c '\\\n curl --fail --retry 5 --retry-delay 3 --silent --show-error \\\n https://raw.githubusercontent.com/cri-o/packaging/$SCRIPT_COMMIT/get |\\\n bash -s -- -t $CRIO_COMMIT'\nExecStartPre=rm -f /etc/cni/net.d/87-podman-bridge.conflist\nExecStartPre=rm -f /etc/crio/crio.conf.d/10-crio.conf\nExecStart=systemctl enable --now crio.service\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\n",
7272
"enabled": true,
7373
"name": "crio-install.service"
7474
},
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
---
2+
variant: fcos
3+
version: 1.4.0
4+
kernel_arguments:
5+
should_not_exist:
6+
- mitigations=auto,nosmt
7+
storage:
8+
files:
9+
- path: /etc/zincati/config.d/90-disable-auto-updates.toml
10+
contents:
11+
local: 90-disable-auto-updates.toml
12+
mode: 0644
13+
- path: /root/kubelet-e2e.te
14+
contents:
15+
local: kubelet-e2e.te
16+
mode: 0644
17+
- path: /etc/crio/crio.conf.d/20-crio.conf
18+
contents:
19+
local: 20-crio.conf
20+
mode: 0644
21+
- path: /etc/sysctl.d/99-e2e-sysctl.conf
22+
contents:
23+
local: 99-e2e-sysctl.conf
24+
mode: 0644
25+
- path: /etc/ssh-key-secret/ssh-public
26+
contents:
27+
# base64 encoded "GCE_SSH_PUBLIC_KEY_FILE_CONTENT"
28+
source: data:text/plain;base64,R0NFX1NTSF9QVUJMSUNfS0VZX0ZJTEVfQ09OVEVOVA==
29+
mode: 0644
30+
systemd:
31+
units:
32+
- name: configure-sysctl.service
33+
enabled: true
34+
contents: |
35+
[Unit]
36+
Description=Configure required sysctls.
37+
38+
[Service]
39+
Type=oneshot
40+
ExecStart=/usr/lib/systemd/systemd-sysctl
41+
42+
[Install]
43+
WantedBy=multi-user.target
44+
45+
- name: tools-install.service
46+
enabled: true
47+
contents: |
48+
[Unit]
49+
Description=Download and install required tools.
50+
Before=crio-install.service
51+
After=NetworkManager-wait-online.service
52+
53+
[Service]
54+
Type=oneshot
55+
ExecStart=rpm-ostree install \
56+
-y \
57+
--apply-live \
58+
--allow-inactive \
59+
dbus-tools \
60+
checkpolicy
61+
62+
[Install]
63+
WantedBy=multi-user.target
64+
65+
- name: selinux-install.service
66+
enabled: true
67+
contents: |
68+
[Unit]
69+
Description=Setup SELinux policy
70+
After=tools-install.service
71+
72+
[Service]
73+
Type=oneshot
74+
ExecStartPre=setenforce 1
75+
ExecStartPre=checkmodule -M -m -o /root/kubelet-e2e.mod /root/kubelet-e2e.te
76+
ExecStartPre=semodule_package -o /root/kubelet-e2e.pp -m /root/kubelet-e2e.mod
77+
ExecStartPre=semodule -i /root/kubelet-e2e.pp
78+
ExecStartPre=mkdir -p /var/lib/kubelet
79+
ExecStart=chcon -R -u system_u -r object_r -t var_lib_t /var/lib/kubelet
80+
81+
[Install]
82+
WantedBy=multi-user.target
83+
84+
- name: crio-install.service
85+
enabled: true
86+
contents: |
87+
[Unit]
88+
Description=Download and install crio binaries and configurations.
89+
After=selinux-install.service
90+
91+
[Service]
92+
Type=oneshot
93+
Environment="SCRIPT_COMMIT=e8c1f1f9493bef6ecc069d573891f7ef3dda5882"
94+
Environment="CRIO_COMMIT=f97ec692ad1c28ab0fe787b0407b023a90bd2869"
95+
96+
ExecStartPre=mount /tmp /tmp -o remount,exec,suid
97+
ExecStartPre=mount -o remount,rw /dev/sda4 /usr
98+
ExecStartPre=bash -c '\
99+
curl --fail --retry 5 --retry-delay 3 --silent --show-error \
100+
https://raw.githubusercontent.com/cri-o/packaging/$SCRIPT_COMMIT/get |\
101+
bash -s -- -t $CRIO_COMMIT'
102+
ExecStartPre=rm -f /etc/cni/net.d/87-podman-bridge.conflist
103+
ExecStartPre=rm -f /etc/crio/crio.conf.d/10-crio.conf
104+
ExecStart=systemctl enable --now crio.service
105+
Restart=on-failure
106+
107+
[Install]
108+
WantedBy=multi-user.target
109+
110+
- name: authorized-key.service
111+
enabled: true
112+
contents: |
113+
[Unit]
114+
Description=Copy authorized keys
115+
Before=crio-install.service
116+
After=NetworkManager-wait-online.service
117+
118+
[Service]
119+
Type=oneshot
120+
ExecStart=/bin/sh -c '\
121+
/usr/bin/mkdir -m 0700 -p /home/core/.ssh && \
122+
/usr/bin/cat /etc/ssh-key-secret/ssh-public \
123+
>> /home/core/.ssh/authorized_keys && \
124+
/usr/bin/chown -R core:core /home/core/.ssh && \
125+
/usr/bin/chmod 0600 /home/core/.ssh/authorized_keys'
126+
127+
[Install]
128+
WantedBy=multi-user.target

jobs/e2e_node/crio/templates/crio_cgroupv2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ systemd:
8787
8888
[Service]
8989
Type=oneshot
90-
Environment="SCRIPT_COMMIT=52aa3c2a31ccc9623962e9e338b6585267d6f3f4"
91-
Environment="CRIO_COMMIT=1c04ca9768e535cf22017da6e6cee620bb3a6431"
90+
Environment="SCRIPT_COMMIT=e8c1f1f9493bef6ecc069d573891f7ef3dda5882"
91+
Environment="CRIO_COMMIT=f97ec692ad1c28ab0fe787b0407b023a90bd2869"
9292
9393
ExecStartPre=mount /tmp /tmp -o remount,exec,suid
9494
ExecStartPre=mount -o remount,rw /dev/sda4 /usr

jobs/e2e_node/crio/templates/generate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare -A CONFIGURATIONS=(
2828
["crio_cgroupv1"]="root cgroupv1 criu-enabled"
2929
["crio_cgroupv1_eventedpleg"]="root cgroupv1 eventedpleg"
3030
["crio_cgroupv1_hugepages"]="root cgroupv1 hugepages"
31-
["crio_cgroupv2"]="root"
31+
["crio_cgroupv2"]="root-v2"
3232
["crio_cgroupv2_drop_infra_ctr"]="drop-infra-ctr"
3333
["crio_cgroupv2_swap1g"]="root swap-1G"
3434
["crio_cgroupv2_imagefs"]="root imagefs"

0 commit comments

Comments
 (0)