ngine-io / ansible-collection-cloudstack

CloudStack Ansible Collections
https://galaxy.ansible.com/ngine_io/cloudstack
GNU General Public License v3.0
21 stars 27 forks source link

Sanity tests failing in ngine_io.cloudstack #98

Closed dmsimard closed 2 years ago

dmsimard commented 2 years ago
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 ngine_io.cloudstack 2.2.3 fails with ansible-core 2.13.0rc1 in ansible 6.0.0a2.

ISSUE TYPE
COMPONENT NAME

n/a

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

Tests are either passing or ignored.

ACTUAL RESULTS
ERROR: Found 1 import issue(s) on python 3.10 which need to be resolved:
ERROR: plugins/modules/cs_role_permission.py:111:0: traceback: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
ERROR: Found 6 validate-modules issue(s) which need to be resolved:
ERROR: plugins/inventory/instance.py:0:0: invalid-documentation: DOCUMENTATION.plugin_type: extra keys not allowed @ data['plugin_type']. Got 'inventory'
ERROR: plugins/inventory/instance.py:9:0: import-before-documentation: Import found before documentation variables. All imports must appear below DOCUMENTATION/EXAMPLES/RETURN.
ERROR: plugins/modules/cs_loadbalancer_rule.py:0:0: invalid-documentation-markup: DOCUMENTATION.options.open_firewall.description: Directive "M(cs_firewall)" must contain a FQCN for dictionary value @ data['options']['open_firewall']['description']. Got ['Whether the firewall rule for public port should be created, while creating the new rule.', 'Use M(cs_firewall) for managing firewall rules.']
ERROR: plugins/modules/cs_portforward.py:0:0: invalid-documentation-markup: DOCUMENTATION.options.open_firewall.description: Directive "M(cs_firewall)" must contain a FQCN for dictionary value @ data['options']['open_firewall']['description']. Got ['Whether the firewall rule for public port should be created, while creating the new rule.', 'Not supported when forwarding ports in a VPC.', 'Use M(cs_firewall) for managing firewall rules.']
ERROR: plugins/modules/cs_router.py:0:0: invalid-documentation-markup: DOCUMENTATION.description: Directive "M(cs_network)" must contain a FQCN for dictionary value @ data['description']. Got ['Start, restart, stop and destroy routers.', 'I(state=present) is not able to create routers, use M(cs_network) instead.']
ERROR: plugins/modules/cs_vpn_connection.py:0:0: invalid-documentation-markup: DOCUMENTATION.options.force.description: Directive "M(cs_vpn_gateway)" must contain a FQCN for dictionary value @ data['options']['force']['description']. Got ['Activate the VPN gateway if not already activated on I(state=present).', 'Also see M(cs_vpn_gateway).']
ERROR: The 2 sanity test(s) listed below (out of 43) failed. See error output above for details.
import --python 3.10
validate-modules
ERROR: Command "podman exec ansible-test-controller-3DmmSEVA /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible_collections/ngine_io/cloudstack 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-l_5a9sxz.json --truncate 0 --color no --host-path tests/output/.tmp/host-d9zzzvjm" returned exit status 1.