Skip to content
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

Modules to manage ICX devices #58969

Merged
merged 25 commits into from
Jul 31, 2019
Merged

Modules to manage ICX devices #58969

merged 25 commits into from
Jul 31, 2019

Conversation

sushma-alethea
Copy link
Contributor

SUMMARY
Running command to manage ICX device by Ansible automatically.

ISSUE TYPE
New Module Pull Request

COMPONENT NAME
ICX_7150

ADDITIONAL INFORMATION
Achieving of running command to manage ICX device by Ansible automatically.

@ansibot
Copy link
Contributor

ansibot commented Jul 11, 2019

@sushma-alethea, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. networking Network category new_contributor This PR is the first contribution by a new community member. new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. labels Jul 11, 2019
@ansibot
Copy link
Contributor

ansibot commented Jul 11, 2019

The test ansible-test sanity --test no-main-display [explain] failed with 1 error:

lib/ansible/plugins/terminal/icx.py:32:7: Display is a singleton, just import and instantiate

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. community_review In order to be merged, this PR must follow the community review workflow. and removed community_review In order to be merged, this PR must follow the community review workflow. ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Jul 11, 2019
@ansibot
Copy link
Contributor

ansibot commented Jul 11, 2019

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/plugins/cliconf/icx.py:28:0: ansible-bad-import-from Import Mapping from ansible.module_utils.common._collections_compat instead of collections

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

The test ansible-test sanity --test ansible-doc --python 3.8 [explain] failed with 1 error:

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. ci_verified Changes made in this PR are causing tests to fail. labels Jul 11, 2019
@ansibot
Copy link
Contributor

ansibot commented Jul 11, 2019

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

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

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

The test ansible-test sanity --test ansible-doc --python 3.8 [explain] failed with 1 error:

lib/ansible/plugins/cliconf/icx.py:0:0: missing documentation (or could not parse documentation): 'NoneType' object does not support item assignment

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. and removed ci_verified Changes made in this PR are causing tests to fail. labels Jul 11, 2019
Copy link
Member

@ganeshrn ganeshrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add your Github id as maintainer for the files/modules added in this PR here and ICX platform module documentation here

@ansibot
Copy link
Contributor

ansibot commented Jul 19, 2019

@ansibot ansibot added botmeta This PR modifies the BOTMETA.yml and this requires special attention! docs This issue/PR relates to or includes documentation. docsite This issue/PR relates to the documentation website. labels Jul 19, 2019
@ansibot
Copy link
Contributor

ansibot commented Jul 19, 2019

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with the error:

Command "ansible-doc -t module icx_banner" returned exit status 250.
>>> Standard Error
ERROR! Unexpected Exception, this is probably a bug: pop() takes at most 1 argument (2 given)

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with the error:

Command "ansible-doc -t module icx_banner" returned exit status 250.
>>> Standard Error
ERROR! Unexpected Exception, this is probably a bug: pop() takes at most 1 argument (2 given)

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with the error:

Command "ansible-doc -t module icx_banner" returned exit status 250.
>>> Standard Error
ERROR! Unexpected Exception, this is probably a bug: pop() takes at most 1 argument (2 given)

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with the error:

Command "ansible-doc -t module icx_banner" returned exit status 250.
>>> Standard Error
ERROR! Unexpected Exception, this is probably a bug: pop() takes at most 1 argument (2 given)

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with the error:

Command "ansible-doc -t module icx_banner" returned exit status 250.
>>> Standard Error
ERROR! Unexpected Exception, this is probably a bug: pop() takes at most 1 argument (2 given)

The test ansible-test sanity --test ansible-doc --python 3.8 [explain] failed with the error:

Command "ansible-doc -t module icx_banner" returned exit status 250.
>>> Standard Error
ERROR! Unexpected Exception, this is probably a bug: pop expected at most 1 argument, got 2

The test ansible-test sanity --test docs-build [explain] failed with the error:

Command "/usr/bin/python3.6 /root/ansible/test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make singlehtmldocs' failed with status code: 2
--> Standard Output
PYTHONPATH=../../lib ../../hacking/build-ansible.py document-config --template-file=../templates/config.rst.j2 --output-dir=rst/reference_appendices/ ../../lib/ansible/config/base.yml
mkdir -p rst/cli
PYTHONPATH=../../lib ../../hacking/build-ansible.py generate-man --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
PYTHONPATH=../../lib ../../hacking/build-ansible.py document-keywords --template-dir=../templates --output-dir=rst/reference_appendices/ ./keyword_desc.yml
PYTHONPATH=../../lib ../../hacking/build-ansible.py document-plugins -t rst --template-dir=../templates --module-dir=../../lib/ansible/modules -o rst/modules/ 
Evaluating module files...
Makefile:93: recipe for target 'modules' failed
--> Standard Error
Traceback (most recent call last):
  File "../../hacking/build-ansible.py", line 88, in <module>
    main()
  File "../../hacking/build-ansible.py", line 79, in main
    retval = command.main(args)
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py", line 775, in main
    plugin_info, categories = get_plugin_info(args.module_dir, limit_to=args.limit_to, verbose=(args.verbosity > 0))
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py", line 344, in get_plugin_info
    doc['options'][key] = normalize_options(opt)
  File "/root/ansible/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py", line 175, in normalize_options
    if value.get('type') == 'bool' and 'default' in value:
AttributeError: 'AnsibleSequence' object has no attribute 'get'
make: *** [modules] Error 1

click here for bot help

@sushma-alethea
Copy link
Contributor Author

Ansible team can you please review and merge to devel.

@justjais justjais requested a review from Akasurde July 24, 2019 06:24
@Akasurde
Copy link
Member

@samccann @acozine Could you please take a look for documentation changes ? Rest LGTM.

docs/docsite/rst/network/user_guide/platform_index.rst Outdated Show resolved Hide resolved
docs/docsite/rst/network/user_guide/platform_icx.rst Outdated Show resolved Hide resolved
lib/ansible/plugins/cliconf/icx.py Outdated Show resolved Hide resolved
lib/ansible/plugins/cliconf/icx.py Outdated Show resolved Hide resolved
PR comment resolved
Copy link
Member

@ganeshrn ganeshrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per convention generally, network os name is used for network modules within Ansible (there are some exceptions to this). If the modules in the PR are applicable for other Ruckus device series other than ICX it is recommended to rename it after the os name.
ansible_network_os value, in this case, will be icx

Other than that the code changes in PR look good to me.

@sushma-alethea
Copy link
Contributor Author

@ganeshrn, modules in this PR and all subsequent PRs that we will be rasing are applicable only for Ruckus ICX series devices. So, ansible_network_is name which we have set to icx is fine.
Can you please now merge the PR to devel.

Copy link
Contributor

@samccann samccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs portion LGTM

@ganeshrn
Copy link
Member

@sushma-alethea Thank you for the contribution
@LindsayHill @samccann @Akasurde Thank you for your reviews

@ganeshrn ganeshrn merged commit f2cb446 into ansible:devel Jul 31, 2019
@ansible ansible locked and limited conversation to collaborators Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 botmeta This PR modifies the BOTMETA.yml and this requires special attention! docs This issue/PR relates to or includes documentation. docsite This issue/PR relates to the documentation website. module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. networking Network category new_contributor This PR is the first contribution by a new community member. new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants