How to resolve the error `ValueError: unknown action "extend" ` while building the custom Execution Environment through `ansible-builder`?

Solution Verified - Updated -

Environment

  • Red Hat Ansible Automation Platform 2.x

Issue

  • Creation of Execution Environment fails with the following error while running the ansible-builder:

    ` ValueError: unknown action "extend" `
    

Resolution

  • Run the following commands on the affected system:

    # rpm -qa python38  - Ensure python 3.8 is available on the system. Install if needed.
    
    # update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
    # alternatives --remove python3 /usr/bin/python3.6  
    # python3 --version
    

Root Cause

  • The error occurs when running it on Python 3.6. Python 3.8 is the minimum requirement for ansible-builder.

  • This is one of the known issue. The GitHub issues can be checked for more information.

  • Please reach out to Red Hat technical support for more information

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments