Skip to content

Building the firewall-image fails: /bin/sh: 1: /usr/bin/python3.12: not found #53

@whotwagner

Description

@whotwagner

Ansible fails while building the firewall-image:

   openstack.builder: Preparing to unpack .../python3-minimal_3.10.6-1~22.04.1_amd64.deb ...
    openstack.builder: Unpacking python3-minimal (3.10.6-1~22.04.1) over (3.10.6-1~22.04) ...
    openstack.builder: Setting up python3-minimal (3.10.6-1~22.04.1) ...
    openstack.builder: (Reading database ... 64379 files and directories currently installed.)
    openstack.builder: Preparing to unpack .../python3_3.10.6-1~22.04.1_amd64.deb ...
    openstack.builder: running python pre-rtupdate hooks for python3.10...
    openstack.builder: Unpacking python3 (3.10.6-1~22.04.1) over (3.10.6-1~22.04) ...
    openstack.builder: Preparing to unpack .../libpython3-stdlib_3.10.6-1~22.04.1_amd64.deb ...
    openstack.builder: Unpacking libpython3-stdlib:amd64 (3.10.6-1~22.04.1) over (3.10.6-1~22.04) ...
    openstack.builder: Setting up libpython3-stdlib:amd64 (3.10.6-1~22.04.1) ...
    openstack.builder: Setting up python3 (3.10.6-1~22.04.1) ...
    openstack.builder: running python rtupdate hooks for python3.10...
    openstack.builder: running python post-rtupdate hooks for python3.10...
    openstack.builder: Processing triggers for man-db (2.10.2-1) ...
    openstack.builder:
    openstack.builder: Running kernel seems to be up-to-date.
    openstack.builder:
    openstack.builder: No services need to be restarted.
    openstack.builder:
    openstack.builder: No containers need to be restarted.
    openstack.builder:
    openstack.builder: No user sessions are running outdated binaries.
    openstack.builder:
    openstack.builder: No VM guests are running outdated hypervisor (qemu) binaries on this host.
==> openstack.builder: Provisioning with Ansible...
    openstack.builder: Not using Proxy adapter for Ansible run:
    openstack.builder: 	Using ssh keys from Packer communicator...
==> openstack.builder: Executing Ansible: ansible-playbook -e packer_build_name="builder" -e packer_builder_type=openstack --ssh-extra-args '-o IdentitiesOnly=yes' -e ansible_ssh_private_key_file=/tmp/ansible-key1780339827 -i /tmp/packer-provisioner-ansible1384172079 /home/hoti/devdata/attackbed/packer/firewall/playbook/main.yaml
    openstack.builder: [WARNING]: While constructing a mapping from
    openstack.builder: /home/hoti/devdata/attackbed/packer/firewall/playbook/main.yaml, line 2, column
    openstack.builder: 3, found a duplicate dict key (tasks). Using last defined value only.
    openstack.builder:
    openstack.builder: PLAY [all] *********************************************************************
    openstack.builder:
    openstack.builder: TASK [squidproxy : Ensure Squid is installed (Debian)] *************************
    openstack.builder: fatal: [default]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 10.110.0.64 closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python3.12: not found\r\n", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127}
    openstack.builder:
    openstack.builder: PLAY RECAP *********************************************************************
    openstack.builder: default                    : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

my development-machine is Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions