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

Sanity tests failing in dellemc.os6 #50

Open
dmsimard opened this issue May 6, 2022 · 0 comments
Open

Sanity tests failing in dellemc.os6 #50

dmsimard opened this issue May 6, 2022 · 0 comments

Comments

@dmsimard
Copy link

dmsimard commented May 6, 2022

SUMMARY

We are running sanity tests across every collection included in the Ansible community package (as part of this issue) and found that ansible-test sanity --docker against dellemc.os6 1.0.7 fails with ansible-core 2.13.0rc1 in ansible 6.0.0a2.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

n/a

ANSIBLE VERSION
ansible [core 2.13.0rc1]
COLLECTION VERSION
1.0.7
STEPS TO REPRODUCE
ansible-test sanity --docker
EXPECTED RESULTS

Tests are either passing or ignored.

ACTUAL RESULTS
ERROR: Found 1 action-plugin-docs issue(s) which need to be resolved:
ERROR: plugins/action/os6.py:0:0: action plugin has no matching module to provide documentation
ERROR: Found 15 validate-modules issue(s) which need to be resolved:
ERROR: plugins/cliconf/os6.py:0:0: invalid-documentation: DOCUMENTATION.cliconf: extra keys not allowed @ data['cliconf']. Got 'os6'
ERROR: plugins/cliconf/os6.py:0:0: invalid-documentation: DOCUMENTATION.name: required key not provided @ data['name']. Got None
ERROR: plugins/modules/os6_command.py:0:0: invalid-documentation-markup: DOCUMENTATION.description: Directive "M(dellemc_os6_os6_config)" must contain a FQCN for dictionary value @ data['description']. Got ['Sends arbitrary commands to a OS6 device and returns the results read from the device. This module includes an argument that will cause the module to wait for a specific condition before returning or timing out if the condition is not met.', 'This module does not support running commands in configuration mode. Please use M(dellemc_os6_os6_config) to configure OS6 devices.']
ERROR: plugins/modules/os6_command.py:0:0: parameter-list-no-elements: Argument 'commands' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/os6_command.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.commands: Argument defines type as list but elements is not defined for dictionary value @ data['options']['commands']. Got {'description': ['List of commands to send to the remote os6 device over the configured provider. The resulting output from the command is returned. If the I(wait_for) argument is provided, the module is not returned until the condition is satisfied or the number of retries has expired.'], 'type': 'list', 'required': True}
ERROR: plugins/modules/os6_config.py:0:0: parameter-list-no-elements: Argument 'after' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/os6_config.py:0:0: parameter-list-no-elements: Argument 'before' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/os6_config.py:0:0: parameter-list-no-elements: Argument 'lines' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/os6_config.py:0:0: parameter-list-no-elements: Argument 'parents' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/os6_config.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.after: Argument defines type as list but elements is not defined for dictionary value @ data['options']['after']. Got {'description': ['The ordered set of commands to append to the end of the command stack if a change needs to be made.  Just like with I(before) this allows the playbook designer to append a set of commands to be executed after the command set.'], 'type': 'list'}
ERROR: plugins/modules/os6_config.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.before: Argument defines type as list but elements is not defined for dictionary value @ data['options']['before']. Got {'description': ['The ordered set of commands to push on to the command stack if a change needs to be made.  This allows the playbook designer the opportunity to perform configuration commands prior to pushing any changes without affecting how the set of commands are matched against the system.'], 'type': 'list'}
ERROR: plugins/modules/os6_config.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.lines: Argument defines type as list but elements is not defined for dictionary value @ data['options']['lines']. Got {'description': ['The ordered set of commands that should be configured in the section.  The commands must be the exact same commands as found in the device running-config. Be sure to note the configuration command syntax as some commands are automatically modified by the device config parser. This argument is mutually exclusive with I(src).'], 'type': 'list', 'aliases': ['commands']}
ERROR: plugins/modules/os6_config.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.parents: Argument defines type as list but elements is not defined for dictionary value @ data['options']['parents']. Got {'description': ['The ordered set of parents that uniquely identify the section or hierarchy the commands should be checked against.  If the parents argument is omitted, the commands are checked against the set of top level or global commands.'], 'type': 'list'}
ERROR: plugins/modules/os6_facts.py:0:0: invalid-documentation-markup: DOCUMENTATION.options.gather_subset.description: Directive "M(!)" must contain a FQCN for dictionary value @ data['options']['gather_subset']['description']. Got ['When supplied, this argument will restrict the facts collected to a given subset.  Possible values for this argument include all, hardware, config, and interfaces. Can specify a list of values to include a larger subset.  Values can also be used with an initial C(M(!)) to specify that a specific subset should not be collected.']
ERROR: plugins/modules/os6_facts.py:0:0: parameter-list-no-elements: Argument 'gather_subset' in argument_spec defines type as list but elements is not defined
ERROR: The 2 sanity test(s) listed below (out of 43) failed. See error output above for details.
action-plugin-docs
validate-modules
ERROR: Command "podman exec ansible-test-controller-P1KRG7DY /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible_collections/dellemc/os6 LC_ALL=en_US.UTF-8 /usr/bin/python3.10 /root/ansible/bin/ansible-test sanity --containers '{}' --skip-test pylint --metadata tests/output/.tmp/metadata-m2gs1gbu.json --truncate 0 --color no --host-path tests/output/.tmp/host-b7mdkq61" returned exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant