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

aix_nimclient.py added #49067

Open
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
3 participants
@flynn1973

flynn1973 commented Nov 23, 2018

SUMMARY

installs software at the nimclient using nimclient command and removes software using local commands also updates ALL to latest version

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

aix_nimclient

ADDITIONAL INFORMATION

Examples:

  • name: install latest version of OpenGL.OpenGL_X.rte.soft from lpp_source lppsource_aix6109-06
    aix_nimclient:
    name:
    - OpenGL.OpenGL_X.rte.soft
    lpp_source: lppsource_aix6109-06
  • name: install latest version of OpenGL.OpenGL_X.rte.soft from lpp_source lppsource_aix6109-06 and apply only
    aix_nimclient:
    name:
    - OpenGL.OpenGL_X.rte.soft
    lpp_source: lppsource_aix6109-06
    commit: False
  • name: install version 6.1.9.30 of OpenGL.OpenGL_X.rte.soft from lpp_source lppsource_aix6109-06
    aix_nimclient:
    name:
    - OpenGL.OpenGL_X.rte.soft 6.1.9.30
    lpp_source: lppsource_aix6109-06
  • name: remove fileset OpenGL.OpenGL_X.rte.soft
    aix_nimclient:
    name:
    • OpenGL.OpenGL_X.rte.soft
      state: absent
  • name: commit fileset OpenGL.OpenGL_X.rte.soft
    aix_nimclient:
    name:
    • OpenGL.OpenGL_X.rte.soft
      state: commit

install all filesets to latest level f.i. install a TL or ML

  • name: update all filesets to latest level from lpp_source lppsource_aix6109-06
    aix_nimclient:
    name:
    - update_all
    lpp_source: lppsource_aix6109-06
  • name: allocate spot and lpp_source to the nimclient
    aix_nimclient:
    lpp_source: lppsource_aix6109-06
    spot: spot_aix6109-06
    state: allocate
  • name: deallocate all resources from the nimclient
    aix_nimclient:
    state: deallocate
  • name: reset the nimclient
    aix_nimclient:
    state: reset
@ansibot

This comment has been minimized.

Contributor

ansibot commented Nov 23, 2018

Hi @flynn1973, thank you for submitting this pull-request!

click here for bot help

@ansibot

This comment has been minimized.

Contributor

ansibot commented Nov 23, 2018

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

lib/ansible/modules/system/aix_nimclient.py:429:15: unneeded-not Consider changing "not requested_version == ''" to "requested_version != ''"

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

lib/ansible/modules/system/aix_nimclient.py:0:0: has a documentation error formatting or is missing documentation.

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

lib/ansible/modules/system/aix_nimclient.py:0:0: has a documentation error formatting or is missing documentation.

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

lib/ansible/modules/system/aix_nimclient.py:0:0: has a documentation error formatting or is missing documentation.

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

lib/ansible/modules/system/aix_nimclient.py:0:0: has a documentation error formatting or is missing documentation.

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

lib/ansible/modules/system/aix_nimclient.py:0:0: has a documentation error formatting or is missing documentation.

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

Command "/usr/bin/python test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Command 'make singlehtmldocs' failed with status code: 2
--> Standard Output
cat _themes/srtd/static/css/theme.css | sed -e 's/^[ 	]*//g; s/[ 	]*$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$/d' | sed -e :a -e '$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css
PYTHONPATH=../../lib ../bin/dump_config.py --template-file=../templates/config.rst.j2 --output-dir=rst/reference_appendices/ -d ../../lib/ansible/config/base.yml
mkdir -p rst/cli
PYTHONPATH=../../lib ../bin/generate_man.py --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
PYTHONPATH=../../lib ../bin/dump_keywords.py --template-dir=../templates --output-dir=rst/reference_appendices/ -d ./keyword_desc.yml
PYTHONPATH=../../lib ../bin/plugin_formatter.py -t rst --template-dir=../templates --module-dir=../../lib/ansible/modules -o rst/modules/ 
Makefile:93: recipe for target 'modules' failed
--> Standard Error
Traceback (most recent call last):
  File "../bin/plugin_formatter.py", line 720, in <module>
    main()
  File "../bin/plugin_formatter.py", line 678, in main
    plugin_info, categories = get_plugin_info(options.module_dir, limit_to=options.limit_to, verbose=(options.verbosity > 0))
  File "../bin/plugin_formatter.py", line 269, in get_plugin_info
    doc, examples, returndocs, metadata = plugin_docs.get_docstring(module_path, fragment_loader, verbose=verbose)
  File "/root/ansible/lib/ansible/utils/plugin_docs.py", line 96, in get_docstring
    data = read_docstring(filename, verbose=verbose, ignore_errors=ignore_errors)
  File "/root/ansible/lib/ansible/parsing/plugin_docs.py", line 59, in read_docstring
    data[varkey] = AnsibleLoader(child.value.s, file_name=filename).get_single_data()
  File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 35, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.6/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python3.6/dist-packages/yaml/parser.py", line 428, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/usr/local/lib/python3.6/dist-packages/yaml/scanner.py", line 115, in check_token
    while self.need_more_tokens():
  File "/usr/local/lib/python3.6/dist-packages/yaml/scanner.py", line 149, in need_more_tokens
    self.stale_possible_simple_keys()
  File "/usr/local/lib/python3.6/dist-packages/yaml/scanner.py", line 289, in stale_possible_simple_keys
    "could not find expected ':'", self.get_mark())
yaml.scanner.ScannerError: while scanning a simple key
  in "<unicode string>", line 47, column 5:
        default:'acgwXY'
        ^
could not find expected ':'
  in "<unicode string>", line 49, column 1:
    notes:
    ^
make: *** [modules] Error 1

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

lib/ansible/modules/system/aix_nimclient.py:0:0: missing: __metaclass__ = type
lib/ansible/modules/system/aix_nimclient.py:0:0: missing: from __future__ import (absolute_import, division, print_function)

The test ansible-test sanity --test pep8 [explain] failed with 4 errors:

lib/ansible/modules/system/aix_nimclient.py:180:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/system/aix_nimclient.py:393:28: E713 test for membership should be 'not in'
lib/ansible/modules/system/aix_nimclient.py:406:20: E713 test for membership should be 'not in'
lib/ansible/modules/system/aix_nimclient.py:450:1: E115 expected an indented block (comment)

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

lib/ansible/modules/system/aix_nimclient.py:0:0: E316 ANSIBLE_METADATA.metadata_version: required key not provided @ data['metadata_version']. Got None
lib/ansible/modules/system/aix_nimclient.py:0:0: E316 ANSIBLE_METADATA.version: extra keys not allowed @ data['version']. Got '1.0'
lib/ansible/modules/system/aix_nimclient.py:0:0: E324 Value for "default" from the argument_spec ('acgwXY') for "installp_flags" does not match the documentation (None)
lib/ansible/modules/system/aix_nimclient.py:0:0: E324 Value for "default" from the argument_spec ('present') for "state" does not match the documentation (None)
lib/ansible/modules/system/aix_nimclient.py:0:0: E324 Value for "default" from the argument_spec (True) for "commit" does not match the documentation (False)
lib/ansible/modules/system/aix_nimclient.py:0:0: E325 argument_spec for "commit" defines type="bool" but documentation does not
lib/ansible/modules/system/aix_nimclient.py:0:0: E326 Value for "choices" from the argument_spec (['present', 'commit', 'absent', 'installed', 'removed', 'allocate', 'deallocate', 'reset']) for "state" does not match the documentation ([])
lib/ansible/modules/system/aix_nimclient.py:74:1: E302 DOCUMENTATION is not valid YAML

The test ansible-test sanity --test yamllint [explain] failed with 3 errors:

lib/ansible/modules/system/aix_nimclient.py:74:1: error DOCUMENTATION: syntax error: could not find expected ':'
lib/ansible/modules/system/aix_nimclient.py:103:3: key-duplicates EXAMPLES: duplication of key "name" in mapping
lib/ansible/modules/system/aix_nimclient.py:109:3: key-duplicates EXAMPLES: duplication of key "name" in mapping

click here for bot help

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