Skip to content

Commit

Permalink
Merge pull request #34256 from haircommander/bump-crio-2
Browse files Browse the repository at this point in the history
crio: bump v2 job to latest main
  • Loading branch information
k8s-ci-robot authored Feb 3, 2025
2 parents dccfdb8 + 21a5d76 commit a9292e5
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jobs/e2e_node/crio/crio_cgroupv2.ign
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"name": "selinux-install.service"
},
{
"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",
"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=1c8917d362261d1793b7db27fa8d97f2ca826f43\"\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",
"enabled": true,
"name": "crio-install.service"
},
Expand Down
129 changes: 129 additions & 0 deletions jobs/e2e_node/crio/templates/base/root-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
---
variant: fcos
version: 1.4.0
kernel_arguments:
should_not_exist:
- mitigations=auto,nosmt
storage:
files:
- path: /etc/zincati/config.d/90-disable-auto-updates.toml
contents:
local: 90-disable-auto-updates.toml
mode: 0644
- path: /root/kubelet-e2e.te
contents:
local: kubelet-e2e.te
mode: 0644
- path: /etc/crio/crio.conf.d/20-crio.conf
contents:
local: 20-crio.conf
mode: 0644
- path: /etc/sysctl.d/99-e2e-sysctl.conf
contents:
local: 99-e2e-sysctl.conf
mode: 0644
- path: /etc/ssh-key-secret/ssh-public
contents:
# base64 encoded "GCE_SSH_PUBLIC_KEY_FILE_CONTENT"
source: data:text/plain;base64,R0NFX1NTSF9QVUJMSUNfS0VZX0ZJTEVfQ09OVEVOVA==
mode: 0644
systemd:
units:
- name: configure-sysctl.service
enabled: true
contents: |
[Unit]
Description=Configure required sysctls.
[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/systemd-sysctl
[Install]
WantedBy=multi-user.target
- name: tools-install.service
enabled: true
contents: |
[Unit]
Description=Download and install required tools.
Before=crio-install.service
After=NetworkManager-wait-online.service
[Service]
Type=oneshot
ExecStart=rpm-ostree install \
-y \
--apply-live \
--allow-inactive \
dbus-tools \
checkpolicy
[Install]
WantedBy=multi-user.target
- name: selinux-install.service
enabled: true
contents: |
[Unit]
Description=Setup SELinux policy
After=tools-install.service
[Service]
Type=oneshot
ExecStartPre=setenforce 1
ExecStartPre=checkmodule -M -m -o /root/kubelet-e2e.mod /root/kubelet-e2e.te
ExecStartPre=semodule_package -o /root/kubelet-e2e.pp -m /root/kubelet-e2e.mod
ExecStartPre=semodule -i /root/kubelet-e2e.pp
ExecStartPre=mkdir -p /var/lib/kubelet
ExecStart=chcon -R -u system_u -r object_r -t var_lib_t /var/lib/kubelet
[Install]
WantedBy=multi-user.target
- name: crio-install.service
enabled: true
contents: |
[Unit]
Description=Download and install crio binaries and configurations.
After=selinux-install.service
[Service]
Type=oneshot
Environment="SCRIPT_COMMIT=e8c1f1f9493bef6ecc069d573891f7ef3dda5882"
Environment="CRIO_COMMIT=1c8917d362261d1793b7db27fa8d97f2ca826f43"
ExecStartPre=mount /tmp /tmp -o remount,exec,suid
ExecStartPre=mount -o remount,rw /dev/sda4 /usr
ExecStartPre=bash -c '\
curl --fail --retry 5 --retry-delay 3 --silent --show-error \
https://raw.githubusercontent.com/cri-o/packaging/$SCRIPT_COMMIT/get |\
bash -s -- -t $CRIO_COMMIT'
ExecStartPre=rm -f /etc/cni/net.d/87-podman-bridge.conflist
ExecStartPre=rm -f /etc/crio/crio.conf.d/10-crio.conf
ExecStart=systemctl enable --now crio.service
Restart=on-failure
[Install]
WantedBy=multi-user.target
- name: authorized-key.service
enabled: true
contents: |
[Unit]
Description=Copy authorized keys
Before=crio-install.service
After=NetworkManager-wait-online.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c '\
/usr/bin/mkdir -m 0700 -p /home/core/.ssh && \
/usr/bin/cat /etc/ssh-key-secret/ssh-public \
>> /home/core/.ssh/authorized_keys && \
/usr/bin/chown -R core:core /home/core/.ssh && \
/usr/bin/chmod 0600 /home/core/.ssh/authorized_keys'
[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion jobs/e2e_node/crio/templates/crio_cgroupv2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ systemd:
[Service]
Type=oneshot
Environment="SCRIPT_COMMIT=e8c1f1f9493bef6ecc069d573891f7ef3dda5882"
Environment="CRIO_COMMIT=f97ec692ad1c28ab0fe787b0407b023a90bd2869"
Environment="CRIO_COMMIT=1c8917d362261d1793b7db27fa8d97f2ca826f43"
ExecStartPre=mount /tmp /tmp -o remount,exec,suid
ExecStartPre=mount -o remount,rw /dev/sda4 /usr
Expand Down
2 changes: 1 addition & 1 deletion jobs/e2e_node/crio/templates/generate
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ declare -A CONFIGURATIONS=(
["crio_cgroupv1"]="root cgroupv1 criu-enabled"
["crio_cgroupv1_eventedpleg"]="root cgroupv1 eventedpleg"
["crio_cgroupv1_hugepages"]="root cgroupv1 hugepages"
["crio_cgroupv2"]="root"
["crio_cgroupv2"]="root-v2"
["crio_cgroupv2_drop_infra_ctr"]="drop-infra-ctr"
["crio_cgroupv2_swap1g"]="root swap-1G"
["crio_cgroupv2_imagefs"]="root imagefs"
Expand Down

0 comments on commit a9292e5

Please sign in to comment.