Hi Tim,
Yes, I am working with dell.powermax collection. My execution-environment.yml is very similar to yours. It still not working.
version: 3
dependencies:
galaxy: files/requirements.yml
python:
- PyU4V <= 10.1.0.2
system: files/bindep.txt
images:
base_image:
name: ‘registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:1.0.0-887’
additional_build_steps:
append_base:
- RUN $PYCMD -m pip install --upgrade pip
use microdnf as the base image is minimal one
options:
package_manager_path: /usr/bin/microdnf
The requiremens.yml under files directory:
collections:
Install Dell EMC Ansible modules for PowerMax
As this ee file does not force PyU4V to be installed in /usr/lib/python3.9/site-packages. It goes to
/usr/local/lib/python3.9/site-packages. AAP log shows:
ansible-playbook [core 2.15.13]
config file = /etc/ansible/ansible.cfg
configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /runner/requirements_collections:/root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible-playbook
python version = 3.9.20 (main, Sep 26 2024, 20:59:47) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] (/usr/bin/python3.9)
jinja version = 3.1.5
libyaml = True
Using /etc/ansible/ansible.cfg as config file
…
…
“stdout_lines”: [
“Name: PyU4V”,
“Version: 10.1.0.2”,
“Summary: A Python library for use with Dell EMC’s Unisphere for PowerMax REST API.”,
“Home-page: GitHub - dell/PyU4V: PyU4V is a Python module that simplifies interaction with the Unisphere for PowerMax REST API. It wraps REST calls with simple APIs that abstracts the HTTP request and response handling.”,
“Author: Dell Inc. or its subsidiaries”,
“Author-email: helen.walsh@dell.com”,
“License: Apache 2.0”,
“Location: /usr/local/lib/python3.9/site-packages”,
“Requires: prettytable, requests, six, sphinx-rtd-theme, urllib3”,
“Required-by: #N/A”
]
The create_storagegroup role failed due to: “Ansible modules for PowerMax require the PyU4V python library to be installed. Install the library before using these modules”
By the way, the play runs totally fine if I did it on a VM (not with AAP). It only fails in AAP (which is installed with containerized way).
Thanks,
J