Skip to content
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

Unable to assign tagged VLANs to interfaces when VLAN is in multiple locations #5580

Closed
mdeng10 opened this issue Apr 16, 2024 · 3 comments · Fixed by #5585
Closed

Unable to assign tagged VLANs to interfaces when VLAN is in multiple locations #5580

mdeng10 opened this issue Apr 16, 2024 · 3 comments · Fixed by #5585
Assignees
Labels
emergent Unplanned work that is brought into a sprint after it's started. type: bug Something isn't working as expected

Comments

@mdeng10
Copy link

mdeng10 commented Apr 16, 2024

Environment

  • Nautobot version (Docker tag too if applicable): 2.2.0
  • Docker tag: ghcr.io/nautobot/nautobot:2.2.0-py3.9
  • Python version: 3.9.19
  • Database platform, version: AWS Elasticache

Steps to Reproduce

  1. Create a VLAN
  2. Assign the multiple locations to the VLAN (new 2.2 feature)
  3. Go to any device and attempt to assign the VLAN as a tagged to any interface

Expected Behavior

Return to the interface page and no error

Observed Behavior

image

Likewise, another error occurs if i do the following

  1. Remove the multiple locations on the VLAN (just have one location)
  2. Assign VLAN to any interface
  3. VLAN gets successfully added, however i am no longer able to access the interface, this error pops up
<class 'django.urls.exceptions.NoReverseMatch'>

Reverse for 'location' with no arguments not found. 1 pattern(s) tried: ['dcim/locations/(?P<pk>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/\\Z']

Python version: 3.9.19
Nautobot version: 2.2.0

I saw #5513 but I'm not sure if this is related

Another possibly related error:

When I click on the hyperlinked number of locations in the VLANs page (nautobot.com/ipam/vlans/)
image

it returns the following error (regardless if 1 or multiple locations are assigned to the VLAN)

<class 'ValueError'>

Field 'vid' expected a number but got 'c5b1ca60-134f-48d2-b8ce-4d19d5920fff'.

Python version: 3.9.19
Nautobot version: 2.2.0

@mdeng10 mdeng10 added triage This issue is new and has not been reviewed. type: bug Something isn't working as expected labels Apr 16, 2024
@mdeng10
Copy link
Author

mdeng10 commented Apr 16, 2024

I also saw v2.2.1 patchnotes which mentions

#5009 - Added the option to filter objects with select/multi-select custom fields based on the UUID of the defined custom field choice(s), for example /api/dcim/locations/?cf_multiselect=1ea9237c-3ba7-4985-ba7e-6fd9e9bff813 as an alternative to /api/dcim/locations/?cf_multiselect=some-choice-value.

Is this a fix for the above issue? It doesn't seem to be from a glance

@glennmatthews
Copy link
Contributor

Thanks for the report! #5513 is also a new bug but isn't the same issue as this, and #5009 is about custom fields not interfaces/VLANs, so this is a new issue.

@glennmatthews
Copy link
Contributor

The third symptom you reported looks like #5123 / #4229.

@gsnider2195 gsnider2195 added emergent Unplanned work that is brought into a sprint after it's started. and removed triage This issue is new and has not been reviewed. labels Apr 16, 2024
@gsnider2195 gsnider2195 self-assigned this Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emergent Unplanned work that is brought into a sprint after it's started. type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants