Closed jathanism closed 3 years ago
Having this same error on a VRF for the RD field, although it can be empty / None
in Netbox.
EDIT: For context
21:25:50 Invalid data according to internal data model. This may be an issue with your source data or may reflect a bug in this plugin. action=load model=<class 'nautobot_netbox_importer.diffsync.models.ipam.VRF'> model_data={'id': UUID('1310d1a5-141b-4594-9ec6-d2819910dac4'), 'created': datetime.date(2021, 2, 28), 'last_updated': datetime.datetime(2021, 2, 28, 19, 46, 57, 326813, tzinfo=<UTC>), 'custom_field_data': {}, 'name': 'Telia-BGG', 'rd': None, 'enforce_unique': True, 'description': 'Telia Routing Instance', 'tags': [], 'tagged_items': <django.contrib.contenttypes.fields.create_generic_related_manager.<locals>.GenericRelatedObjectManager object at 0x7f9509d98be0>, 'pk': UUID('1310d1a5-141b-4594-9ec6-d2819910dac4')}
1 validation error for VRF
rd
none is not an allowed value (type=type_error.none.not_allowed)
Thanks for the report! I'll fix the VRF model validation as part of #6 as well.
Oh I also just noticed, I had this similar error pop up many time with services
and PowerOutletTemplates
.
services
example log message:
21:25:37 Invalid data according to internal data model. This may be an issue with your source data or may reflect a bug in this plugin. action=load model=<class 'nautobot_netbox_importer.diffsync.models.ipam.Service'> model_data={'created': '2020-10-09', 'last_updated': '2020-10-09T12:48:45.670Z', 'custom_field_data': {}, 'device': {'site': {'name': 'Equinix WA1'}, 'tenant': {'name': 'MegaFon'}, 'name': 'Megafon_WA1_Perle', 'rack': {'group': None, 'name': '0206'}, 'position': None, 'face': '', 'vc_position': None, 'vc_priority': None, 'device_type': {'manufacturer': {'name': 'Perle'}, 'model': 'IOLAN SDS2'}, 'device_role': {'name': 'Console Server'}, 'platform': {'name': 'Linux'}, 'serial': '', 'asset_tag': None, 'cluster': None}, 'virtual_machine': None, 'name': 'Serial1', 'protocol': 'tcp', 'ports': '["10001"]', 'description': 'Console for re0', 'ipaddresses': [{'address': IPNetwork('123.456.789.123/32'), 'vrf': None, 'tenant': None, 'assigned_object_type': {'app_label': 'dcim', 'model': 'interface'}, 'assigned_object_id': {'device': {'site': {'name': 'Equinix WA1'}, 'tenant': {'name': 'MegaFon'}, 'name': 'Megafon_WA1_Perle', 'rack': {'group': None, 'name': '0206'}, 'position': None, 'face': '', 'vc_position': None, 'vc_priority': None, 'device_type': {'manufacturer': {'name': 'Perle'}, 'model': 'IOLAN SDS2'}, 'device_role': {'name': 'Console Server'}, 'platform': {'name': 'Linux'}, 'serial': '', 'asset_tag': None, 'cluster': None}, 'name': 'eth0'}}], 'pk': 4}
1 validation error for Service
ports
value is not a valid list (type=type_error.list)
Not sure which value is supposed to be a valid list here..
PowerOutletTemplate
example log message:
21:25:17 Invalid data according to internal data model. This may be an issue with your source data or may reflect a bug in this plugin. action=load model=<class 'nautobot_netbox_importer.diffsync.models.dcim.PowerOutletTemplate'> model_data={'device_type': {'manufacturer': {'name': 'Raritan'}, 'model': 'PX3-5497V'}, 'name': 'Outlet24', '_name': 'Outlet00000024', 'label': '', 'description': '', 'type': 'iec-60320-c19', 'power_port': {'device_type': {'manufacturer': {'name': 'Raritan'}, 'model': 'PX3-5497V'}, 'name': 'Inlet1'}, 'feed_leg': 'C', 'pk': 804}
1 validation error for PowerOutletTemplate
type
instance of staticmethod expected (type=type_error.arbitrary_type; expected_arbitrary_type=staticmethod)
In this case I'm also not sure which value its complaining about unfortunately.
Thank you Nico! I've opened #8 to separately track the latest issues you reported since they'll take me a bit of time to investigate.
Environment
Expected Behavior
Successful import from the same massive NetBox 2.10.3 dump. Related to #4.
Observed Behavior
Made it further, but crashed on a Device validation?
Steps to Reproduce
1.Receive my massive database dump "somehow"
nautobot-server import_netbox_json /tmp/netbox_data.json 2.10.3
and then wait