New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow infini_host module to support iscsi protocol while creating host #41745

Open
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
3 participants
@mjahudko

mjahudko commented Jun 20, 2018

SUMMARY

infini_host module currently doesn't support the option to add an iSCSI port specified by IQN to the host. Changes included in the pull request update module's code to the current version of InfiniSDK and add an option to add an iSCSI port specified by IQN to the host.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

infini_host

ANSIBLE VERSION
2.x
ADDITIONAL INFORMATION

Based on InfiniSDK docs add_fc_port method is outdated since version 58.0 (current version 130.0.1). Current steps how to add an FC port are explained in InfiniSDK docs (https://infinisdk.readthedocs.io/en/latest/mappings.html#creating-hosts). The process how to add iSCSI port specified by IQN to the host is very similar.

@ansibot

This comment has been minimized.

Contributor

ansibot commented Jun 20, 2018

@ansibot

This comment has been minimized.

Contributor

ansibot commented Jun 20, 2018

The test ansible-test sanity --test import --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/storage/infinidat/infini_host.py:82:0: ImportError: No module named infi.dtypes.wwn

The test ansible-test sanity --test import --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/storage/infinidat/infini_host.py:82:0: ImportError: No module named infi.dtypes.wwn

The test ansible-test sanity --test import --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/storage/infinidat/infini_host.py:82:0: ImportError: No module named 'infi'

The test ansible-test sanity --test import --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/storage/infinidat/infini_host.py:82:0: ModuleNotFoundError: No module named 'infi'

The test ansible-test sanity --test import --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/storage/infinidat/infini_host.py:82:0: ModuleNotFoundError: No module named 'infi'

The test ansible-test sanity --test validate-modules [explain] failed with 2 errors:

lib/ansible/modules/storage/infinidat/infini_host.py:0:0: E309 version_added for new option (iqn) should be 2.7. Currently 0.0
lib/ansible/modules/storage/infinidat/infini_host.py:0:0: E321 Exception attempting to import module for argument_spec introspection, 'No module named 'infi''

click here for bot help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment