Playbook #1 |
/root/kubeinit/ci/builds/6mbKNrxD/0/kubeinit/kubeinit/kubeinit-aux/kubeinit/playbook.yml |
Task result details
- Play: Run the deployment on the target infrastructure (OpenStack/libvirt hypervisors)
- Task: kubeinit.kubeinit.kubeinit_k8s : Make sure cri-o binary is reachable and the configuration is correct
- Action: ansible.builtin.shell
- Path: /root/.ansible/collections/ansible_collections/kubeinit/kubeinit/roles/kubeinit_k8s/tasks/post_configure_guest.yml:45
- Host: localhost ( task delegated to controller-03 )
- Status: changed
- Started: 31 Oct 2023 09:11:55 +0000
- Ended: 31 Oct 2023 09:11:59 +0000
- Duration: 00:00:04.32
- Tags:
- task_deploy_cluster
Field | Value |
---|---|
changed |
True |
cmd |
yum install -y jq # Make sure crio binary is reachable ln -s /usr/bin/crio /usr/local/bin/crio tmp=$(mktemp) crioconf=$(ls /etc/cni/net.d/87-crio-bridge* | xargs realpath) jq '.plugins[0].ipam.ranges[0][0].subnet = "10.244.0.0/16"' "$crioconf" > "$tmp" && mv -f "$tmp" "$crioconf" # jq '.type = "flannel"' /etc/cni/net.d/87-crio-bridge.conf > "$tmp" && mv -f "$tmp" /etc/cni/net.d/87-crio-bridge.conf # rm -rf /etc/cni/net.d/87-crio-bridge.conf # echo '{"name": "crio","type": "flannel"}' > /etc/cni/net.d/10-crio.conf cp /etc/crio/crio.conf /etc/crio/crio.conf.backup sed -i s/^.*default_runtime\ =\ .*$/default_runtime\ =\ \"crun\"/g /etc/crio/crio.conf # There is no example config for crun anymore #sed -i "s/^\#\[crio\.runtime\.runtimes\.crun.*\]/[crio.runtime.runtimes.crun]/g" /etc/crio/crio.conf cat << EOF >> /etc/crio/crio.conf [crio.runtime.runtimes.crun] runtime_path = "/usr/bin/crun" runtime_type = "oci" runtime_root = "/run/crun" EOF |
delta |
0:00:03.988774 |
end |
2023-10-31 09:11:59.866346 |
invocation |
{ "module_args": { "_raw_params": "yum install -y jq\n# Make sure crio binary is reachable\nln -s /usr/bin/crio /usr/local/bin/crio\ntmp=$(mktemp)\ncrioconf=$(ls /etc/cni/net.d/87-crio-bridge* | xargs realpath)\njq '.plugins[0].ipam.ranges[0][0].subnet = \"10.244.0.0/16\"' \"$crioconf\" > \"$tmp\" && mv -f \"$tmp\" \"$crioconf\"\n# jq '.type = \"flannel\"' /etc/cni/net.d/87-crio-bridge.conf > \"$tmp\" && mv -f \"$tmp\" /etc/cni/net.d/87-crio-bridge.conf\n# rm -rf /etc/cni/net.d/87-crio-bridge.conf\n# echo '{\"name\": \"crio\",\"type\": \"flannel\"}' > /etc/cni/net.d/10-crio.conf\ncp /etc/crio/crio.conf /etc/crio/crio.conf.backup\nsed -i s/^.*default_runtime\\ =\\ .*$/default_runtime\\ =\\ \\\"crun\\\"/g /etc/crio/crio.conf\n\n# There is no example config for crun anymore\n#sed -i \"s/^\\#\\[crio\\.runtime\\.runtimes\\.crun.*\\]/[crio.runtime.runtimes.crun]/g\" /etc/crio/crio.conf\ncat << EOF >> /etc/crio/crio.conf\n[crio.runtime.runtimes.crun]\nruntime_path = \"/usr/bin/crun\"\nruntime_type = \"oci\"\nruntime_root = \"/run/crun\"\nEOF\n", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": "/bin/bash", "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
msg |
|
rc |
0 |
start |
2023-10-31 09:11:55.877572 |
stderr |
|
stderr_lines |
[]
|
stdout |
Last metadata expiration check: 0:00:17 ago on Tue 31 Oct 2023 09:11:39 AM UTC. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: jq x86_64 1.6-15.el9 appstream 187 k Installing dependencies: oniguruma x86_64 6.9.6-1.el9.5 appstream 218 k Transaction Summary ================================================================================ Install 2 Packages Total download size: 405 k Installed size: 1.1 M Downloading Packages: (1/2): jq-1.6-15.el9.x86_64.rpm 93 kB/s | 187 kB 00:02 (2/2): oniguruma-6.9.6-1.el9.5.x86_64.rpm 107 kB/s | 218 kB 00:02 -------------------------------------------------------------------------------- Total 156 kB/s | 405 kB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : oniguruma-6.9.6-1.el9.5.x86_64 1/2 Installing : jq-1.6-15.el9.x86_64 2/2 Running scriptlet: jq-1.6-15.el9.x86_64 2/2 Verifying : jq-1.6-15.el9.x86_64 1/2 Verifying : oniguruma-6.9.6-1.el9.5.x86_64 2/2 Installed: jq-1.6-15.el9.x86_64 oniguruma-6.9.6-1.el9.5.x86_64 Complete! |
stdout_lines |
[ "Last metadata expiration check: 0:00:17 ago on Tue 31 Oct 2023 09:11:39 AM UTC.", "Dependencies resolved.", "================================================================================", " Package Architecture Version Repository Size", "================================================================================", "Installing:", " jq x86_64 1.6-15.el9 appstream 187 k", "Installing dependencies:", " oniguruma x86_64 6.9.6-1.el9.5 appstream 218 k", "", "Transaction Summary", "================================================================================", "Install 2 Packages", "", "Total download size: 405 k", "Installed size: 1.1 M", "Downloading Packages:", "(1/2): jq-1.6-15.el9.x86_64.rpm 93 kB/s | 187 kB 00:02 ", "(2/2): oniguruma-6.9.6-1.el9.5.x86_64.rpm 107 kB/s | 218 kB 00:02 ", "--------------------------------------------------------------------------------", "Total 156 kB/s | 405 kB 00:02 ", "Running transaction check", "Transaction check succeeded.", "Running transaction test", "Transaction test succeeded.", "Running transaction", " Preparing : 1/1 ", " Installing : oniguruma-6.9.6-1.el9.5.x86_64 1/2 ", " Installing : jq-1.6-15.el9.x86_64 2/2 ", " Running scriptlet: jq-1.6-15.el9.x86_64 2/2 ", " Verifying : jq-1.6-15.el9.x86_64 1/2 ", " Verifying : oniguruma-6.9.6-1.el9.5.x86_64 2/2 ", "", "Installed:", " jq-1.6-15.el9.x86_64 oniguruma-6.9.6-1.el9.5.x86_64 ", "", "Complete!" ] |