netbox-community / ansible_modules

NetBox modules for Ansible using Ansible Collections
GNU General Public License v3.0
333 stars 216 forks source link

Sanity tests failing in netbox.netbox #785

Open dmsimard opened 2 years ago

dmsimard commented 2 years ago

Ansible NetBox Collection version

3.7.1

Ansible version

ansible [core 2.13.0rc1]

NetBox version

n/a

Python version

3.10

Steps to Reproduce

ansible-test sanity --docker

Expected Behavior

Tests are either passing or ignored.

Observed Behavior

ERROR: Found 2 compile issue(s) on python 2.7 which need to be resolved:
ERROR: plugins/module_utils/netbox_utils.py:632:59: SyntaxError: self.full_version = f"{self.version}.0"
ERROR: plugins/module_utils/netbox_wireless.py:58:104: SyntaxError: name = f"{interface_a_device} {interface_a_name} <> {interface_b_device} {interface_b_name}"
ERROR: Found 2 compile issue(s) on python 3.5 which need to be resolved:
ERROR: plugins/module_utils/netbox_utils.py:632:59: SyntaxError: self.full_version = f"{self.version}.0"
ERROR: plugins/module_utils/netbox_wireless.py:58:104: SyntaxError: name = f"{interface_a_device} {interface_a_name} <> {interface_b_device} {interface_b_name}"
ERROR: Found 76 import issue(s) on python 2.7 which need to be resolved:
ERROR: plugins/module_utils/netbox_circuits.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_dcim.py:9:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_extras.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_ipam.py:10:0: traceback: ImportError: No module named ipaddress
ERROR: plugins/module_utils/netbox_secrets.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_tenancy.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_utils.py:632:59: traceback: SyntaxError: invalid syntax
ERROR: plugins/module_utils/netbox_virtualization.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_wireless.py:58:104: traceback: SyntaxError: invalid syntax
ERROR: plugins/modules/netbox_aggregate.py:115:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_cable.py:220:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_circuit.py:144:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_circuit_termination.py:141:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_circuit_type.py:94:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_cluster.py:134:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_cluster_group.py:94:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_cluster_type.py:99:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_config_context.py:172:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_console_port.py:124:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_console_port_template.py:112:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_console_server_port.py:124:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_console_server_port_template.py:112:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_contact.py:136:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_contact_group.py:102:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_contact_role.py:96:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_custom_field.py:163:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_custom_link.py:119:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device.py:234:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_bay.py:109:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_bay_template.py:84:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_interface.py:270:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_interface_template.py:96:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_role.py:108:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_type.py:144:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_export_template.py:108:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_front_port.py:147:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_front_port_template.py:141:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_inventory_item.py:162:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_ip_address.py:266:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_ipam_role.py:103:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_location.py:120:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_manufacturer.py:99:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_platform.py:126:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_feed.py:170:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_outlet.py:181:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_outlet_template.py:169:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_panel.py:128:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_port.py:177:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_port_template.py:165:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_prefix.py:217:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_provider.py:131:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_provider_network.py:121:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rack.py:208:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rack_group.py:88:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rack_role.py:100:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rear_port.py:139:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rear_port_template.py:133:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_region.py:104:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rir.py:113:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_route_target.py:117:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_service.py:125:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_site.py:197:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_site_group.py:112:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_tag.py:96:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_tenant.py:121:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_tenant_group.py:104:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_virtual_chassis.py:107:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_virtual_machine.py:175:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_vlan.py:140:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_vlan_group.py:149:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_vm_interface.py:185:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_vrf.py:138:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_webhook.py:168:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_wireless_lan.py:139:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_wireless_lan_group.py:112:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_wireless_link.py:164:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: Found 76 import issue(s) on python 3.5 which need to be resolved:
ERROR: plugins/module_utils/netbox_circuits.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_dcim.py:9:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_extras.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_ipam.py:14:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_secrets.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_tenancy.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_utils.py:632:59: traceback: SyntaxError: invalid syntax
ERROR: plugins/module_utils/netbox_virtualization.py:8:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/module_utils/netbox_wireless.py:58:104: traceback: SyntaxError: invalid syntax
ERROR: plugins/modules/netbox_aggregate.py:115:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_cable.py:220:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_circuit.py:144:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_circuit_termination.py:141:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_circuit_type.py:94:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_cluster.py:134:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_cluster_group.py:94:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_cluster_type.py:99:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_config_context.py:172:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_console_port.py:124:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_console_port_template.py:112:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_console_server_port.py:124:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_console_server_port_template.py:112:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_contact.py:136:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_contact_group.py:102:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_contact_role.py:96:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_custom_field.py:163:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_custom_link.py:119:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device.py:234:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_bay.py:109:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_bay_template.py:84:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_interface.py:270:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_interface_template.py:96:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_role.py:108:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_device_type.py:144:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_export_template.py:108:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_front_port.py:147:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_front_port_template.py:141:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_inventory_item.py:162:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_ip_address.py:266:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_ipam_role.py:103:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_location.py:120:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_manufacturer.py:99:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_platform.py:126:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_feed.py:170:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_outlet.py:181:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_outlet_template.py:169:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_panel.py:128:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_port.py:177:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_power_port_template.py:165:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_prefix.py:217:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_provider.py:131:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_provider_network.py:121:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rack.py:208:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rack_group.py:88:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rack_role.py:100:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rear_port.py:139:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rear_port_template.py:133:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_region.py:104:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_rir.py:113:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_route_target.py:117:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_service.py:125:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_site.py:197:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_site_group.py:112:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_tag.py:96:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_tenant.py:121:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_tenant_group.py:104:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_virtual_chassis.py:107:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_virtual_machine.py:175:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_vlan.py:140:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_vlan_group.py:149:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_vm_interface.py:185:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_vrf.py:138:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_webhook.py:168:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_wireless_lan.py:139:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_wireless_lan_group.py:112:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: plugins/modules/netbox_wireless_link.py:164:0: traceback: SyntaxError: invalid syntax (at plugins/module_utils/netbox_utils.py:632:59)
ERROR: Found 1 import issue(s) on python 3.8 which need to be resolved:
ERROR: plugins/inventory/nb_inventory.py:313:0: traceback: ModuleNotFoundError: No module named 'packaging'
ERROR: Found 1 import issue(s) on python 3.9 which need to be resolved:
ERROR: plugins/inventory/nb_inventory.py:313:0: traceback: ModuleNotFoundError: No module named 'packaging'
ERROR: Found 1 import issue(s) on python 3.10 which need to be resolved:
ERROR: plugins/inventory/nb_inventory.py:313:0: traceback: ModuleNotFoundError: No module named 'packaging'
ERROR: Found 131 pep8 issue(s) which need to be resolved:
ERROR: plugins/inventory/nb_inventory.py:130:161: E501: line too long (166 > 160 characters)
ERROR: plugins/inventory/nb_inventory.py:132:161: E501: line too long (193 > 160 characters)
ERROR: plugins/inventory/nb_inventory.py:448:35: E203: whitespace before ':'
ERROR: plugins/lookup/nb_lookup.py:132:161: E501: line too long (173 > 160 characters)
ERROR: plugins/lookup/nb_lookup.py:144:161: E501: line too long (173 > 160 characters)
ERROR: plugins/module_utils/netbox_utils.py:977:161: E501: line too long (198 > 160 characters)
ERROR: plugins/module_utils/netbox_utils.py:991:161: E501: line too long (231 > 160 characters)
ERROR: plugins/modules/netbox_circuit_termination.py:47:21: W291: trailing whitespace
ERROR: plugins/modules/netbox_contact.py:114:28: W291: trailing whitespace
ERROR: plugins/modules/netbox_contact.py:117:36: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:16:7: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:37:12: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:38:21: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:41:17: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:54:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:55:21: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:109:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:112:61: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:115:22: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:122:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_field.py:141:24: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:16:7: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:36:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:37:12: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:38:21: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:51:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:56:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:61:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:64:45: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:69:36: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:71:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:74:39: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:77:31: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:84:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:91:38: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:94:64: W291: trailing whitespace
ERROR: plugins/modules/netbox_custom_link.py:101:38: W291: trailing whitespace
ERROR: plugins/modules/netbox_device_interface.py:78:31: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:16:7: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:36:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:37:12: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:38:21: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:51:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:61:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:64:40: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:66:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:73:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:80:38: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:83:64: W291: trailing whitespace
ERROR: plugins/modules/netbox_export_template.py:90:38: W291: trailing whitespace
ERROR: plugins/modules/netbox_inventory_item.py:46:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_inventory_item.py:47:31: W291: trailing whitespace
ERROR: plugins/modules/netbox_inventory_item.py:128:1: W293: blank line contains whitespace
ERROR: plugins/modules/netbox_vm_interface.py:153:1: W293: blank line contains whitespace
ERROR: plugins/modules/netbox_vm_interface.py:162:1: W293: blank line contains whitespace
ERROR: plugins/modules/netbox_vm_interface.py:170:28: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:16:7: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:38:22: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:43:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:94:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:99:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:102:37: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:109:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:116:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:124:26: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:141:23: W291: trailing whitespace
ERROR: plugins/modules/netbox_webhook.py:153:23: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan.py:16:7: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan.py:74:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan.py:85:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan.py:116:37: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan.py:120:30: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan_group.py:16:7: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan_group.py:50:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan_group.py:61:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_lan_group.py:93:54: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_link.py:16:7: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_link.py:50:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_link.py:59:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_link.py:83:18: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_link.py:94:19: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_link.py:141:37: W291: trailing whitespace
ERROR: plugins/modules/netbox_wireless_link.py:145:30: W291: trailing whitespace
ERROR: tests/integration/netbox-deploy.py:61:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:64:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:68:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:73:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:80:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:84:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:88:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:95:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:99:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:103:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:115:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:119:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:123:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:128:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:136:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:157:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:161:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:177:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:182:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:189:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:194:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:220:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:226:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:243:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:247:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:257:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:261:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:265:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:275:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:285:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:322:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:329:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:344:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:351:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:359:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:364:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:394:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:398:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:405:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:412:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:429:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:445:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:468:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:489:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:494:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:499:1: E266: too many leading '#' for block comment
ERROR: tests/integration/netbox-deploy.py:511:1: E266: too many leading '#' for block comment
ERROR: tests/test_data.py:13:1: E302: expected 2 blank lines, found 1
ERROR: Found 8 validate-modules issue(s) which need to be resolved:
ERROR: plugins/inventory/nb_inventory.py:0:0: invalid-documentation: DOCUMENTATION.plugin_type: extra keys not allowed @ data['plugin_type']. Got 'inventory'
ERROR: plugins/inventory/nb_inventory.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.device_query_filters: Argument defines type as list but elements is not defined for dictionary value @ data['options']['device_query_filters']. Got {'description': 'List of parameters passed to the query string for devices (Multiple values may be separated by commas)', 'type': 'list', 'default': []}
ERROR: plugins/inventory/nb_inventory.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.group_by: Argument defines type as list but elements is not defined for dictionary value @ data['options']['group_by']. Got {'description': ['Keys used to create groups. The I(plurals) and I(racks) options control which of these are valid.', 'I(rack_group) is supported on NetBox versions 2.10 or lower only', 'I(location) is supported on NetBox versions 2.11 or higher only'], 'type': 'list', 'choices': ['sites', 'site', 'location', 'tenants', 'tenant', 'racks', 'rack', 'rack_group', 'rack_role', 'tags', 'tag', 'device_roles', 'role', 'device_types', 'device_type', 'manufacturers', 'manufacturer', 'platforms', 'plat...
ERROR: plugins/inventory/nb_inventory.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.query_filters: Argument defines type as list but elements is not defined for dictionary value @ data['options']['query_filters']. Got {'description': 'List of parameters passed to the query string for both devices and VMs (Multiple values may be separated by commas)', 'type': 'list', 'default': []}
ERROR: plugins/inventory/nb_inventory.py:0:0: parameter-list-no-elements: DOCUMENTATION.options.vm_query_filters: Argument defines type as list but elements is not defined for dictionary value @ data['options']['vm_query_filters']. Got {'description': 'List of parameters passed to the query string for VMs (Multiple values may be separated by commas)', 'type': 'list', 'default': []}
ERROR: plugins/lookup/nb_lookup.py:0:0: invalid-documentation: DOCUMENTATION.lookup: extra keys not allowed @ data['lookup']. Got 'nb_lookup'
ERROR: plugins/lookup/nb_lookup.py:0:0: invalid-documentation: DOCUMENTATION.name: required key not provided @ data['name']. Got None
ERROR: plugins/lookup/nb_lookup.py:14:0: import-before-documentation: Import found before documentation variables. All imports must appear below DOCUMENTATION/EXAMPLES/RETURN.
ERROR: Found 1 yamllint issue(s) which need to be resolved:
ERROR: tests/integration/targets/v2.11/tasks/netbox_vm_interface.yml:190:1: empty-lines: too many blank lines (1 > 0)
ERROR: The 10 sanity test(s) listed below (out of 43) failed. See error output above for details.
compile --python 2.7
compile --python 3.5
import --python 2.7
import --python 3.5
import --python 3.8
import --python 3.9
import --python 3.10
pep8
validate-modules
yamllint
ERROR: Command "podman exec ansible-test-controller-65ApIuoR /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible_collections/netbox/netbox 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-7metdd4k.json --truncate 0 --color no --host-path tests/output/.tmp/host-7kpjcvu4" returned exit status 1.
dmsimard commented 2 years ago

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 netbox.netbox 3.7.1 fails with ansible-core 2.13.0rc1 in ansible 6.0.0a2.

rodvand commented 2 years ago

ERROR: Found 2 compile issue(s) on python 2.7

??

ryanmerolle commented 1 year ago

@dmsimard is this something we can close?

dmsimard commented 1 year ago

@ryanmerolle I am not actively working on this anymore.

Though there may be more information in the issue I previously linked, I would suggest looking into whether the netbox collection passes the sanity tests with the latest version of ansible-core (2.14) before considering this closed.