Open VDI-Tech-Guy opened 1 year ago
I'm able to replicate the issue.
when you create execution env you need to create requirements.txt file and reference it like in the example below:
https://clouddocs.f5.com/products/orchestration/ansible/devel/usage/exec-env.html
that doc needs updating to add packaging
to requirements.txt
As a matter of fact build the local EE as per above instructions, and run playbook with the created container.
For now this looks like an issue with your execution environment.
@wojtek0806 - built it the way you recommended however still same issue
you can see my requirements files and execution environment.yml at
https://github.com/VDI-Tech-Guy/f5-execution-engines/tree/main/f5-test-ee
Workflow creates the following execution environment - https://quay.io/repository/f5_business_development/f5-test-ee you can setup your .ansible-navigator.yml with following line to execute on it
https://quay.io/repository/f5_business_development/f5-test-ee:latest
COMPONENT NAME
Seen issue in different modules (confirmed that was in these two at minimum) f5networks.f5_modules.bigip_device_info: f5networks.f5_modules.bigip_virtual_server
Environment
ANSIBLE VERSION
BIGIP VERSION
CONFIGURATION
Using Ansible-Builder to create Execution environment with Ansible Navigator but again doesnt matter here allows me to execute environments with repeatable executions
I can provide information how to create EE if needed and how to use Ansible-Navigator to test if you need.
OS / ENVIRONMENT
Primary OS is RHEL 8.6, using podman for Execution environment
SUMMARY
When Executing code get failure saying that "No module named 'packaging'" even though the package is installed. (No Problem in 1.21.0 or lower) only shows up in version 1.22.0
STEPS TO REPRODUCE
Using Ansible Navigator with Execution Environment with same requirements file (builds all core image the same, same verision of ansible, only thing changed in requirements file is the version of f5networks.f5_modules to test different builds.) using the execution environment to test my known working code for simple task to get info from bigip fails.
You can use the existing Latest Execution environment located at https://quay.io/repository/acme_corp/f5_ee
to do this with ansible-navigator you can create a .ansible-navigator.yml in your root directory of user executing Here is an example of mine, i compiled every version manually to test which versions worked and confirmed 1.21 worked fine and 1.22 failed.
EXPECTED RESULTS
Should have executed and output info from BIG-IP
ACTUAL RESULTS
-->