Skip to content

Metal3 pod is crashing with missing python3.12 #2234

@EdwardCooke

Description

@EdwardCooke

Describe the bug

After the update to 4.20.0-okd-scos.ec.10 I met with a failing metal3 pod with this error:

/bin/ironic-common.sh: line 76: python3.12: command not found

Here's the full log of that pod

Defaulted container "metal3-httpd" out of: metal3-httpd, metal3-ironic, metal3-ramdisk-logs, metal3-static-ip-manager, metal3-dnsmasq, metal3-static-ip-set (init), machine-os-images (init)
++ IRONIC_IP=
++ PROVISIONING_INTERFACE=
++ PROVISIONING_IP=172.22.0.3/24
++ PROVISIONING_MACS=74:56:3c:3e:8f:54,74:56:3c:4d:6c:8d,74:56:3c:60:fc:d4
++ IPXE_CUSTOM_FIRMWARE_DIR=/shared/custom_ipxe_firmware
+++ get_provisioning_interface
+++ [[ -n '' ]]
+++ local interface=provisioning
+++ [[ -n 172.22.0.3/24 ]]
+++ ip -br addr show
+++ grep -i ' 172.22.0.3/24/'
+++ for mac in ${PROVISIONING_MACS//,/ }
+++ ip -br link show up
+++ grep -i 74:56:3c:3e:8f:54
+++ for mac in ${PROVISIONING_MACS//,/ }
+++ grep -i 74:56:3c:4d:6c:8d
+++ ip -br link show up
++++ ip -br link show up
++++ grep -i 74:56:3c:4d:6c:8d
++++ cut -f 1 -d ' '
++++ cut -f 1 -d @
+++ interface=enp5s0
+++ break
+++ echo enp5s0
++ PROVISIONING_INTERFACE=enp5s0
++ export PROVISIONING_INTERFACE
++ export LISTEN_ALL_INTERFACES=true
++ LISTEN_ALL_INTERFACES=true
++ export IRONIC_PRIVATE_PORT=unix
++ IRONIC_PRIVATE_PORT=unix
++ export IRONIC_ACCESS_PORT=6385
++ IRONIC_ACCESS_PORT=6385
++ export IRONIC_LISTEN_PORT=6385
++ IRONIC_LISTEN_PORT=6385
++ export IRONIC_ENABLE_DISCOVERY=false
++ IRONIC_ENABLE_DISCOVERY=false
+ . /bin/auth-common.sh
++ set -euxo pipefail
++ export IRONIC_REVERSE_PROXY_SETUP=true
++ IRONIC_REVERSE_PROXY_SETUP=true
++ [[ '' == \C\o\n\d\u\c\t\o\r ]]
++ export IRONIC_EXPOSE_JSON_RPC=false
++ IRONIC_EXPOSE_JSON_RPC=false
++ IRONIC_HTPASSWD_FILE=/etc/ironic/htpasswd
++ [[ -f /auth/ironic/htpasswd ]]
++ IRONIC_HTPASSWD='ironic-user:$2y$05$D5NMJDsbipR5W0ZczRGbpeF.S3bu.sQDv/gt45Y5pRQw2XMeXwc5y'
++ [[ -f /auth/ironic-rpc/htpasswd ]]
++ export 'IRONIC_HTPASSWD=ironic-user:$2y$05$D5NMJDsbipR5W0ZczRGbpeF.S3bu.sQDv/gt45Y5pRQw2XMeXwc5y'
++ IRONIC_HTPASSWD='ironic-user:$2y$05$D5NMJDsbipR5W0ZczRGbpeF.S3bu.sQDv/gt45Y5pRQw2XMeXwc5y'
++ export 'IRONIC_RPC_HTPASSWD=ironic-user:$2y$05$D5NMJDsbipR5W0ZczRGbpeF.S3bu.sQDv/gt45Y5pRQw2XMeXwc5y'
++ IRONIC_RPC_HTPASSWD='ironic-user:$2y$05$D5NMJDsbipR5W0ZczRGbpeF.S3bu.sQDv/gt45Y5pRQw2XMeXwc5y'
++ IRONIC_CONFIG=/etc/ironic/ironic.conf
+ export HTTP_PORT=6180
+ HTTP_PORT=6180
+ export VMEDIA_TLS_PORT=6183
+ VMEDIA_TLS_PORT=6183
+ export IRONIC_REVERSE_PROXY_SETUP=true
+ IRONIC_REVERSE_PROXY_SETUP=true
+ export HTTPD_SERVE_NODE_IMAGES=true
+ HTTPD_SERVE_NODE_IMAGES=true
+ IRONIC_FAST_TRACK=true
+ HTTPD_ENABLE_SENDFILE=false
+ export IRONIC_IPA_COLLECTORS=default,logs
+ IRONIC_IPA_COLLECTORS=default,logs
+ wait_for_interface_or_ip
+ [[ -n 172.22.0.3/24 ]]
++ ipcalc 172.22.0.3/24
++ grep '^Address:'
++ awk '{print $2}'
+ IRONIC_IP=172.22.0.3
+ export IRONIC_IP
+ grep -F ' 172.22.0.3/' /dev/fd/63
++ ip -br addr show
enp5s0           UP             172.22.0.3/24 fe80::7656:3cff:fe4d:6c8d/64
+ [[ 172.22.0.3 =~ .*:.* ]]
+ export IPV=4
+ IPV=4
+ export IRONIC_URL_HOST=172.22.0.3
+ IRONIC_URL_HOST=172.22.0.3
+ mkdir -p /shared/html
+ chmod 0777 /shared/html
+ IRONIC_BASE_URL=https://172.22.0.3
+ INSPECTION_EXTRA_ARGS=' ipa-inspection-callback-url=https://172.22.0.3:6385/v1/continue_inspection'
+ [[ true == \t\r\u\e ]]
+ INSPECTION_EXTRA_ARGS+=' ipa-api-url=https://172.22.0.3:6385'
+ export INSPECTION_EXTRA_ARGS
+ . /bin/coreos-ipa-common.sh
++ ROOTFS_FILE=/shared/html/images/ironic-python-agent.rootfs
++ IGNITION_FILE=/shared/html/ironic-python-agent.ign
++ ISO_FILE=/shared/html/images/ironic-python-agent.iso
++ use_coreos_ipa
++ [[ -f /shared/html/images/ironic-python-agent.rootfs ]]
++ return 0
+++ coreos_kernel_params
+++ echo -n coreos.live.rootfs_url=http://172.22.0.3:6180/images/ironic-python-agent.rootfs
+++ [[ -f /shared/html/ironic-python-agent.ign ]]
+++ echo ' ignition.firstboot ignition.platform.id=metal'
++ IRONIC_KERNEL_PARAMS=' coreos.live.rootfs_url=http://172.22.0.3:6180/images/ironic-python-agent.rootfs ignition.firstboot ignition.platform.id=metal'
++ export IRONIC_KERNEL_PARAMS
+ render_j2_config /tmp/inspector.ipxe.j2 /shared/html/inspector.ipxe
+ python3.12 -c 'import os; import sys; import jinja2; sys.stdout.write(jinja2.Template(sys.stdin.read()).render(env=os.environ))'
/bin/ironic-common.sh: line 76: python3.12: command not found

Version

No response

Reproducibility

No response

Log Bundle

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    OKD SCOS 4.20kind/bugCategorizes issue or PR as related to a bug.

    Type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions