#python module netapp-lib is required

1 messages · Page 1 of 1 (latest)

willow sapphire
#

when I run a playbook to create a snapmirror I am getting an error saying the module netapp-lib is required. I have a similar playbook to reverse a snapmirror job and it runs without issue

hushed hornet
#

could you run both playbooks with -vvv and send us the output.

willow sapphire
#

We run all these through tower so I imagine that -vvv is the same type of output that you are looking for

willow sapphire
hushed hornet
#

It looks like your using different python for each execution

#

For the top one that worked i see

ansible-playbook 2.9.12
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /opt/my-envs/custom-venv/lib/python2.7/site-packages/ansible
executable location = /opt/my-envs/custom-venv/bin/ansible-playbook

#

for the bottom one that didn't i see

ansible-playbook 2.9.14
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook

willow sapphire
#

what is it that would set that. the second one is a copy paste of a portion of the one thats working

hushed hornet
#

i'm not sure, are they running off different hosts?

willow sapphire
#

No they are running from the exact same system

hushed hornet
#

I think this might be a question for redhat.

I'm not sure what causing your ansible version, configured module path, and executable location path to change between runs

willow sapphire
#

I am asking our internal team that manages ansible and tower as well. I think at some point they had planned an upgrade I wonder if there are 2 ansible installs on the same server

chilly granite
#

You can set a venv on your server. And install Python and ansible after you activated the venv

willow sapphire
#

Thank you @hushed hornet and @chilly granite I was able to determine that there are a couple of venv on the ansible server that I had no idea about. For some reason this new template was pointed to the default rather than the venv where all of the other netapp templates were running

chilly granite
#

You are welcome. I'm glad that you figured it out. So, has the issue been fixed now?

willow sapphire
#

its able to run now but is throwing an error about an unverified HTTPS request being sent

#

I am also having some trouble with schedule and max_transfer_rate that I believe for REST should be transfer_schedule and throttle but when I use those they say they are unsupported for rest and using just schedule and max_transfer_rate forces it to failback to ZAPI which is being deprecated

willow sapphire
#

I have gotten it working the error was somewhat misleading and had to due to hostname instead of the fqdn of the host.

rich dune