You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 community.google 1.0.0 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.0
STEPS TO REPRODUCE
ansible-test sanity --docker
EXPECTED RESULTS
Tests are either passing or ignored.
ACTUAL RESULTS
ERROR: Found 14 import issue(s) on python 3.10 which need to be resolved:
ERROR: plugins/module_utils/gce.py:21: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/module_utils/gcp.py:18: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: plugins/modules/gce_eip.py:122: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_img.py:109: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_instance_template.py:262: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_labels.py:166: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_lb.py:144: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_mig.py:288: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_net.py:234: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_pd.py:126: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_snapshot.py:132: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gce_tag.py:104: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gcpubsub.py:204: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: plugins/modules/gcpubsub_info.py:108: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 (at plugins/module_utils/gcp.py:18:0)
ERROR: Found 41 validate-modules issue(s) which need to be resolved:
ERROR: plugins/lookup/gcp_storage_file.py:0:0: invalid-documentation: DOCUMENTATION.lookup: extra keys not allowed @ data['lookup']. Got 'gcp_storage_file'
ERROR: plugins/lookup/gcp_storage_file.py:0:0: invalid-documentation: DOCUMENTATION.name: required key not provided @ data['name']. Got None
ERROR: plugins/lookup/gcp_storage_file.py:0:0: invalid-documentation: DOCUMENTATION.options.service_account_contents.type: not a valid value for dictionary value @ data['options']['service_account_contents']['type']. Got 'jsonarg'
ERROR: plugins/modules/gc_storage.py:0:0: no-log-needed: Argument 'gs_access_key' in argument_spec could be a secret, though doesn't have `no_log` set
ERROR: plugins/modules/gce_eip.py:0:0: parameter-list-no-elements: Argument 'service_account_permissions' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_eip.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.service_account_permissions: Argument defines type as list but elements is not defined for dictionary value @ data['options']['service_account_permissions']. Got {'type': 'list', 'description': ['service account permissions']}
ERROR: plugins/modules/gce_instance_template.py:0:0: doc-missing-type: Argument 'metadata' in argument_spec uses default type ('str') but documentation doesn't define type
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: Argument 'disks' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: Argument 'disks_gce_struct' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: Argument 'nic_gce_struct' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: Argument 'service_account_permissions' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: Argument 'tags' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.disks: Argument defines type as list but elements is not defined for dictionary value @ data['options']['disks']. Got {'type': 'list', 'description': ["a list of persistent disks to attach to the instance; a string value gives the name of the disk; alternatively, a dictionary value can define 'name' and 'mode' ('READ_ONLY' or 'READ_WRITE'). The first entry will be the boot disk (which must be READ_WRITE)."]}
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.disks_gce_struct: Argument defines type as list but elements is not defined for dictionary value @ data['options']['disks_gce_struct']. Got {'type': 'list', 'description': ['Support passing in the GCE-specific formatted formatted disks[] structure. Case sensitive. see U(https://cloud.google.com/compute/docs/reference/latest/instanceTemplates#resource) for detailed information']}
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.nic_gce_struct: Argument defines type as list but elements is not defined for dictionary value @ data['options']['nic_gce_struct']. Got {'type': 'list', 'description': ['Support passing in the GCE-specific formatted networkInterfaces[] structure.']}
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.service_account_permissions: Argument defines type as list but elements is not defined for dictionary value @ data['options']['service_account_permissions']. Got {'type': 'list', 'description': ['service account permissions (see U(https://cloud.google.com/sdk/gcloud/reference/compute/instances/create), --scopes section for detailed information)', 'Available choices are: C(bigquery), C(cloud-platform), C(compute-ro), C(compute-rw), C(useraccounts-ro), C(useraccounts-rw), C(datastore), C(logging-write), C(monitoring), C(sql-admin), C(storage-full), C(storage-ro), C(storage-rw), C(taskqueue), C(userinfo-email).\n']}
ERROR: plugins/modules/gce_instance_template.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.tags: Argument defines type as list but elements is not defined for dictionary value @ data['options']['tags']. Got {'type': 'list', 'description': ['a comma-separated list of tags to associate with the instance']}
ERROR: plugins/modules/gce_labels.py:0:0: parameter-list-no-elements: Argument 'service_account_permissions' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_labels.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.service_account_permissions: Argument defines type as list but elements is not defined for dictionary value @ data['options']['service_account_permissions']. Got {'type': 'list', 'description': ['service account email']}
ERROR: plugins/modules/gce_lb.py:0:0: parameter-list-no-elements: Argument 'members' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_lb.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.members: Argument defines type as list but elements is not defined for dictionary value @ data['options']['members']. Got {'type': 'list', 'description': ["a list of zone/nodename pairs, e.g ['us-central1-a/www-a', ...]"]}
ERROR: plugins/modules/gce_mig.py:0:0: parameter-list-no-elements: Argument 'named_ports' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_mig.py:0:0: parameter-list-no-elements: Argument 'service_account_permissions' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_mig.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.named_ports: Argument defines type as list but elements is not defined for dictionary value @ data['options']['named_ports']. Got {'type': 'list', 'description': ['Define named ports that backend services can forward data to. Format is a a list of name:port dictionaries.']}
ERROR: plugins/modules/gce_mig.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.service_account_permissions: Argument defines type as list but elements is not defined for dictionary value @ data['options']['service_account_permissions']. Got {'type': 'list', 'description': ['service account permissions']}
ERROR: plugins/modules/gce_net.py:0:0: parameter-list-no-elements: Argument 'src_range' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_net.py:0:0: parameter-list-no-elements: Argument 'src_tags' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_net.py:0:0: parameter-list-no-elements: Argument 'target_tags' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_net.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.src_range: Argument defines type as list but elements is not defined for dictionary value @ data['options']['src_range']. Got {'type': 'list', 'description': ['the source IPv4 address range in CIDR notation'], 'default': []}
ERROR: plugins/modules/gce_net.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.src_tags: Argument defines type as list but elements is not defined for dictionary value @ data['options']['src_tags']. Got {'type': 'list', 'description': ['the source instance tags for creating a firewall rule'], 'default': []}
ERROR: plugins/modules/gce_net.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.target_tags: Argument defines type as list but elements is not defined for dictionary value @ data['options']['target_tags']. Got {'type': 'list', 'description': ['the target instance tags for creating a firewall rule'], 'default': []}
ERROR: plugins/modules/gce_pd.py:0:0: parameter-list-no-elements: Argument 'external_projects' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_pd.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.external_projects: Argument defines type as list but elements is not defined for dictionary value @ data['options']['external_projects']. Got {'type': 'list', 'description': ['A list of other projects (accessible with the provisioning credentials) to be searched for the image.']}
ERROR: plugins/modules/gce_snapshot.py:0:0: parameter-list-no-elements: Argument 'disks' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_snapshot.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.disks: Argument defines type as list but elements is not defined for dictionary value @ data['options']['disks']. Got {'type': 'list', 'description': ['A list of disks to create snapshots for. If none is provided, all of the volumes will have snapshots created.'], 'required': False}
ERROR: plugins/modules/gce_tag.py:0:0: parameter-list-no-elements: Argument 'tags' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gce_tag.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.tags: Argument defines type as list but elements is not defined for dictionary value @ data['options']['tags']. Got {'type': 'list', 'description': ['Comma-separated list of tags to add or remove.'], 'required': True}
ERROR: plugins/modules/gcpubsub.py:0:0: parameter-list-no-elements: Argument 'publish' in argument_spec defines type as list but elements is not defined
ERROR: plugins/modules/gcpubsub.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.publish: Argument defines type as list but elements is not defined for dictionary value @ data['options']['publish']. Got {'type': 'list', 'description': ['List of dictionaries describing messages and attributes to be published. Dictionary is in message(str):attributes(dict) format. Only message is required.']}
ERROR: plugins/modules/gcpubsub_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: required key not provided @ data['supports_check_mode']. Got None
ERROR: plugins/modules/gcpubsub_info.py:0:0: parameter-state-invalid-choice: Argument 'state' includes the value 'list' as a choice
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-VibVPaSV /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible_collections/community/google 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-zj73klhe.json --truncate 0 --color no --host-path tests/output/.tmp/host-wwoa25bl" returned exit status 1.
The text was updated successfully, but these errors were encountered:
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 community.google 1.0.0 fails with ansible-core 2.13.0rc1 in ansible 6.0.0a2.ISSUE TYPE
COMPONENT NAME
n/a
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
ansible-test sanity --docker
EXPECTED RESULTS
Tests are either passing or ignored.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: