This is the error returned when trying to run the playbook and for the job to install the Python library ‘netapp-lib’.
**value(s) in REST: ['root_volume', 'root_volume_aggregate',**
15
**'root_volume_security_style']**
16
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error: the python NetApp-Lib module is required. Import error: No module named 'netapp_lib'"}
Looking at ansible docs the ‘root_volume_security_style’ is correct, so I can only assume I’m receiving that error because the Python module is noe installing. I’m doing this all from within AWX.
Hey @marshit the netapp collection is not included in the default EE for awx so you will need to build your own with ansible-builder and then use that EE for this job template/project. You can find docs on how to get the EE into AWX here.
IIRC you can load collections from Galaxy into the default Execution Environment at runtime - the file that defines your collection dependencies must be formatted in YAML, named requirements.yml and saved in the collections/ directory of your repo. Making a custom EE is definitely more efficient, though.
I think what I’m finding is that an execution environment is the way to go for this NetApp stuff, sadly. If that doesn’t work, then @acozine I will try your step.
I’m going to try the execution environment first and update this post.
@acozine I tried your steps, but I was told I had missing Python dependencies when trying to run my playbook. Then I proceeded to try creating an execution environment. I’m using Podman for the EE.
→ 944c522e0fa
[2/4] STEP 12/12: RUN ANSIBLE_GALAXY_DISABLE_GPG_VERIFY=1 ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirements.ym l --collections-path “/usr/share/ansible/collections”
Starting galaxy collection install process
Process install dependency map
[WARNING]: Skipping Galaxy server Api Root – Pulp 3. Got an
unexpected error when getting available versions of collection
community.general: ‘/api/v3/plugin/ansible/content/published/collections/index/
community/general/versions/’
ERROR! Unexpected Exception, this is probably a bug: ‘/api/v3/plugin/ansible/content/published/collections/index/community/general/versions/’
to see the full traceback, use -vvv
Error: building at STEP “RUN ANSIBLE_GALAXY_DISABLE_GPG_VERIFY=1 ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirem ents.yml --collections-path “/usr/share/ansible/collections””: while running runtime: exit status 250
@thedoubl3j yes, individually they seem to work fine, but yet, even then, when in AWX I still can’t get anything NetApp related to work for projects.
As if the collections still didn’t install.
Makes me think how is this better than just using Python LOL
But thanks for the help if you get a chance. Sometime I feel like it was my internet, but I can curl just fine to some of the individual collection websites.
So by following the article above, I was able to get my execution environment setup and running. The problem now is that when I try to gather inventory, which works when I use the default AWX EE, I get no joy.
Receptor detail:
Error creating pod: container failed to start, ImagePullBackOff
When I run “podman images” I get the following:
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/custom-ee latest bfe6c40bad52 21 seconds ago 626 MB
`quay.io/ansible/ansible-runner`