-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors and inconsistent data when deleting cables terminated to circuits #1694
Comments
I confirmed that this behavior occurs both with or without caching enabled, so it's absolutely a bug in the business logic. |
Possibly related: Suor/django-cacheops#348 (comment) |
Under normal circumstances |
Let's try to remove |
Still crashed. Here is a Sentry report for it: https://sentry.io/share/issue/59b831e46b4f4cc69485c49f97302654/ |
Appears to be a pretty tangled chain of function calls what with a |
👍 just ran into this one also on 1.3.2, with identical replication steps. I have had Worked around for now in the few instances I had by just manually deleting all the relevant references and rows in the db. |
I think I'll have to do something manual as well, I can't really keep waiting for a fix. Which tables did you have to make manual delete operations on? |
* next: (26 commits) Include relationships and associations on object REST APIs (nautobot#2092) Add release-note for nautobot#2116 Update Releases Batched for Next (next) (nautobot#2116) Re-ordered migrations Add release-note for nautobot#1226, nautobot#1739, nautobot#2115 Add custom job intervals (nautobot#2084) Implement Notes Model (nautobot#1984) Update Lock-file Patch Releases for Develop (nautobot#2115) update paginator to enforce max_page_size setting in web ui views (nautobot#2112) Add missing location status migration (nautobot#2100) update release-notes for issue nautobot#2060 added peer_id filter for relationship associations (nautobot#2113) Add release-note for nautobot#2025 Cleanup group names, manual approval for flake8 (nautobot#2025) updated documentations for nautobot#2109 and nautobot#2111 fixed one to many relationship source filter and apply AND operator between filters (nautobot#2111) Version bump to v1.3.10-beta.1, seeded next version in docs. Add release-note for nautobot#860, nautobot#1694, nautobot#2081. Update release date, version. Fix nautobot#2077 - handle case on object detail views where a relationship involves a non-installed model (nautobot#2078) Fix error raised if status connected not found when creating a cable (nautobot#2089) ... # Conflicts: # nautobot/circuits/api/serializers.py # nautobot/core/api/serializers.py # nautobot/dcim/api/serializers.py # nautobot/docs/development/best-practices.md # nautobot/docs/development/style-guide.md # nautobot/docs/release-notes/version-1.4.md # nautobot/extras/api/nested_serializers.py # nautobot/extras/api/relationships.py # nautobot/extras/api/serializers.py # nautobot/extras/tests/integration/test_notes.py # nautobot/extras/tests/test_api.py # nautobot/utilities/testing/api.py
Environment
Steps to Reproduce
Expected Behavior
Cable to be deleted
Observed Behavior
Cable is reported as deleted, but still exists in the UI, even after a
cacheops.invalidate_all()
is run. On attempting to disconnect the cable a second time, the following traceback is seen:The text was updated successfully, but these errors were encountered: