Unsolved
3 Posts
0
1124
August 18th, 2020 08:00
Isilon Ansible Module 1.1, RHEL 7.5, Python 2.7.5, isi_sdk_8_1_1 - error message
Hi,
I have been testing with Isilon Ansible module 1.0 on a CentOS VM with Python 2.7.5 , isi_sdk_8_1_1 with out any issues for almost a month in a lab.
Now, I am trying the test Isilon Ansible Module 1.1 on RHEL 7.5 , Python 2.7.5 , isi_sdk_8_1_1.
I followed the documentation and copied the following files to the specified folders.
Create the dellemc folder in the following path, if it is not available:
/usr/lib/ /site-packages/ansible/modules/storage
- Create the dell folder in the following path, if it is not available:
/usr/lib/ /site-packages/ansible/module_utils/storage
- Copy the Ansible modules to the appropriate locations in the virtual machine.
Copy dellemc_ansible_isilon_utils.py and __init__.py from the /utils directory to the following locations:
/usr/lib/ /site-packages/ansible/module_utils/storage/dell
Copy all the module python files from the isilon/library directory to the following:
/usr/lib/ /site-packages/ansible/modules/storage/dellemc
Copy the dellemc_isilon.py from the /doc_fragments directory to the following:
/usr/lib/ /site-packages/ansible/plugins/doc_fragments/
While testing one of my working playbooks to “gatherfacts”, I am getting the following message. ( Note: This playbook was working fine with Isilon Ansible module 1.0, but not working with 1.1)
Did anyone get similar error messages?
FoolInTheRain
123 Posts
0
August 18th, 2020 10:00
Hi IsilonUser_VEC,
The screen shot you sent was a bit blurry for me, but it appears you have the following errors:
:
File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py, line 633, in _execute_module
:
File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py, line 165, in _configure_module
:
ImportError: No module named _init_
"msg": "Unexpected failure during execution"
Can you validate that you have the file /usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py
installed in both setups?
I do not believe that module is installed by Dell Ansible Module for Isilon.
IsilonUser_VEC
3 Posts
0
August 18th, 2020 10:00
Hi,
Thank you for your quick response.
I checked and we have those files available on this location.
FoolInTheRain
123 Posts
0
August 18th, 2020 11:00
The instructions say to copy the __init__.py file from /Utils to the this directory: /usr/lib/ /site-packages/ansible/module_utils/storage/dell
(not the directory mentioned in the error)
Lets validate that it is located there as well.
Text from the installation instructions:
2. Copy the Ansible modules to the appropriate locations in the virtual machine.
a. Copy dellemc_ansible_isilon_utils.py and __init__.py from the /utils directory to the following locations:
/usr/lib/ /site-packages/ansible/module_utils/storage/del
IsilonUser_VEC
3 Posts
0
August 19th, 2020 04:00
Hi ,
Thank you for your help.
We followed the documentation and copied those two files on the following location
Screenshot attached.
FoolInTheRain
123 Posts
0
August 19th, 2020 07:00
Hi,
Here is some info I've found that you my want to look into, it's regarding your sys.path:
https://stackoverflow.com/questions/16480898/receiving-import-error-no-module-named-but-has-init-py
And in addition to that, have you:
installed any other ansible modules on this system?
can you run your playbook with the -vvv switch to get verbose logs?