Crash: Updating status of device with primary IP address configured
See original GitHub issueEnvironment
- Python version: 3.6.13
- Nautobot version: 1.0.0b3
A 500 error page is returned if you try to edit the status of a device with a Primary IP address attached. This error does not occur if either the device has no IP addresses assigned to it at all, or has one or more IP addresses assigned to it, but none are set as the Primary IP address.
I was able to replicate this on a fresh install, as well as in our demo environment https://develop.demo.nautobot.com/
Steps to Reproduce
- Open any device with a primary IP address (ams-edge-01 in above demo site, for example)
- Click Edit
- Change the assigned Status, and click Save
To reproduce expected results:
- In DCIM–>Devices, select a Primary IP address assigned to a device (10.11.192.0/32 for ams-edge-01 for above demo site, for example)
- Click Edit
- Uncheck “Make this the primary IP for the device/VM” and Save
- Open the device in DCIM–>Devices (ams-edge-01 in above demo site, for example)
- Click Edit
- Change the assigned Status, and click Save
Expected Behavior
The status should update correctly.
Observed Behavior
A 500 crash page appears with the following traceback:
<class 'AttributeError'>
'IPAddress' object has no attribute 'ip'
Python version: 3.6.13
Nautobot version: 1.0.0b3
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Troubleshooting a DHCP server failure - TechTarget
The following reasons could cause DHCP errors and compel a device to use a self-assigned IP address: the DHCP server failed;; all available...
Read more >How to fix and resolve IP address conflict - ManageEngine
This can cause IP conflict when a different device within the organization has been assigned the same IP address.
Read more >Resolved issues - Fortinet Documentation Library
HA is failing over due to cmdbsvr crashes. 634604. SCTP sessions are not fully synchronized between primary and secondary devices in version 5.6.11...
Read more >How to reset network interface for Azure Windows VM
Open Device Manager. · Select View > Show hidden devices. · Select Network Adapters. · Check for the adapters named as "Microsoft Hyper-V...
Read more >Commands for managing the SP from ONTAP
The remote management device type. The current SP status and link status. Network configuration, such as IP address, MAC address, netmask, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the report! This may be a duplicate of #300. Can you confirm whether this issue is still seen with the latest
develop
code base (containing #301)?Thank you for the confirmation!