Start a Conversation

Solved!

Go to Solution

1983

June 12th, 2020 01:00

Isilon Python SDK missing

Hi

I am helping a colleague test the Isilon ansible module however I am running into the following issue:

Ansible modules for Isilon require the Isilon python library to be installed. Please install the library before using these modules.

The Isilon SDK is installed (see below)

Please can you help determine the issue?

====================================================

root@centOS_7 playbooks]# pip3 install isi-sdk-8-1-1
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Requirement already satisfied: isi-sdk-8-1-1 in /usr/local/lib/python3.6/site-packages
Requirement already satisfied: urllib3>=1.15 in /usr/local/lib/python3.6/site-packages (from isi-sdk-8-1-1)
Requirement already satisfied: six>=1.10 in /usr/local/lib/python3.6/site-packages (from isi-sdk-8-1-1)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.6/site-packages (from isi-sdk-8-1-1)
Requirement already satisfied: certifi in /usr/local/lib/python3.6/site-packages (from isi-sdk-8-1-1)


[root@centOS_7 playbooks]# pip install isi-sdk-8-1-1
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: isi-sdk-8-1-1 in /usr/lib/python2.7/site-packages (0.2.10)
Requirement already satisfied: python-dateutil in /usr/lib/python2.7/site-packages (from isi-sdk-8-1-1) (2.8.1)
Requirement already satisfied: certifi in /usr/lib/python2.7/site-packages (from isi-sdk-8-1-1) (2019.11.28)
Requirement already satisfied: urllib3>=1.15 in /usr/lib/python2.7/site-packages (from isi-sdk-8-1-1) (1.25.8)
Requirement already satisfied: six>=1.10 in /usr/lib/python2.7/site-packages (from isi-sdk-8-1-1) (1.15.0)

====================================================

[root@centOS_7 playbooks]# ansible --version
ansible 2.9.9
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.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
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

June 14th, 2020 22:00

Resolved

The issue encountered was due to the way in which the modules communicate to Isilon API. One of the two options are required to ensure Isilon Ansible playbook connectivity:

 

Edit the playbook with "connection: local", see example:

- name: Collect set of facts in Isilon
  hosts: isilon822dc1
  connection: local

Add new Isilon host "isilon822dc1_local" with the variable "ansible_connection=local" in ansible host file or hostvars. Use the following in playbook:

- name: Collect set of facts in Isilon
  hosts: isilon822dc1_local

72 Posts

June 12th, 2020 11:00

Hey Evan,

Is the Ansible instance running with a Python virtual environment (venv)?  Did you double check the SDK installation location to see if the files are actually there and readable?

Another idea is to use the -vvv flag to get a lot more debug information from Ansible.

Good luck
Bryan

72 Posts

June 12th, 2020 13:00

Also that error is a result of flag being set during an attempted SDK import in the dellemc_ansible_isilon_utils.py

try:
import isi_sdk_8_1_1 as isi_sdk
from isi_sdk_8_1_1.rest import ApiException

HAS_ISILON_SDK = True

You could try doing those imports with just a regular python file and see if there is any more information sent back.

June 12th, 2020 17:00

Thank-you for all your feedback

It works perfectly on CentOS 8.

I noticed the isi-sdk-8-1-1 packages are installed in different locations

CENTOS7 - /usr/lib/pythonX.X/site-packages/

CENTOS8 - /usr/local/lib/pythonX.X/site-packages/

Moving the packages to the /usr/local path did not solve the issue on CentOS7. This seems like a bug...

Has anyone else experienced a similar problem with CentOS7 and the Isilon Python SDK?

Regards,

Evan

No Events found!

Top