Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

django.core.exceptions when using IP Fabric SSoT after upgrade to Nautobot v1.3.1 #87

Closed
sdargoeuves opened this issue Apr 22, 2022 · 2 comments
Assignees

Comments

@sdargoeuves
Copy link

Environment

  • Python version: 3.8.10
  • Nautobot version: 1.3.1
  • nautobot-ssot-ipfabric version: 0.9.4

Expected Behavior

Normal completion at the end of the sync

Observed Behavior

An exception occurred: ValidationError: {'__all__': ['assigned_object_type and assigned_object_id must either both be null or both be non-null']}

Traceback (most recent call last): File "/opt/nautobot/lib/python3.8/site-packages/nautobot_ssot/jobs/base.py", line 326, in run self.sync_data() File "/opt/nautobot/lib/python3.8/site-packages/nautobot_ssot_ipfabric/jobs.py", line 185, in sync_data dest.sync_from(ipfabric_source) File "/opt/nautobot/lib/python3.8/site-packages/diffsync/__init__.py", line 525, in sync_from result = syncer.perform_sync() File "/opt/nautobot/lib/python3.8/site-packages/diffsync/helpers.py", line 326, in perform_sync changed |= self.sync_diff_element(element) File "/opt/nautobot/lib/python3.8/site-packages/diffsync/helpers.py", line 390, in sync_diff_element changed |= self.sync_diff_element(child, parent_model=dst_model) File "/opt/nautobot/lib/python3.8/site-packages/diffsync/helpers.py", line 390, in sync_diff_element changed |= self.sync_diff_element(child, parent_model=dst_model) File "/opt/nautobot/lib/python3.8/site-packages/diffsync/helpers.py", line 366, in sync_diff_element changed, modified_model = self.sync_model(src_model=src_model, dst_model=dst_model, ids=ids, attrs=attrs) File "/opt/nautobot/lib/python3.8/site-packages/diffsync/helpers.py", line 415, in sync_model dst_model = self.model_class.create(diffsync=self.dst_diffsync, ids=ids, attrs=attrs) File "/opt/nautobot/lib/python3.8/site-packages/nautobot_ssot_ipfabric/diffsync/diffsync_models.py", line 306, in create ip_address_obj = tonb_nbutils.create_ip( File "/opt/nautobot/lib/python3.8/site-packages/nautobot_ssot_ipfabric/utilities/nbutils.py", line 143, in create_ip tag_object(nautobot_object=ip_obj, custom_field="ssot-synced-from-ipfabric") File "/opt/nautobot/lib/python3.8/site-packages/nautobot_ssot_ipfabric/utilities/nbutils.py", line 253, in tag_object _tag_object(nautobot_object) File "/opt/nautobot/lib/python3.8/site-packages/nautobot_ssot_ipfabric/utilities/nbutils.py", line 251, in _tag_object nautobot_object.validated_save() File "/opt/nautobot/lib/python3.8/site-packages/nautobot/core/models/__init__.py", line 51, in validated_save self.full_clean() File "/opt/nautobot/lib/python3.8/site-packages/django/db/models/base.py", line 1251, in full_clean raise ValidationError(errors) django.core.exceptions.ValidationError: {'__all__': ['assigned_object_type and assigned_object_id must either both be null or both be non-null']}

Steps to Reproduce

  1. Start the Sync between IP Fabric and Nautobot
  2. It works up to the diff and a few steps afterward:
    image
  3. Then it fails
@chadell chadell self-assigned this Apr 29, 2022
@chadell
Copy link
Contributor

chadell commented May 3, 2022

addressing in #89

@glennmatthews
Copy link

Fixed by #89.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants