question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash: Updating status of device with primary IP address configured

See original GitHub issue

Environment

  • 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

  1. Open any device with a primary IP address (ams-edge-01 in above demo site, for example)
  2. Click Edit
  3. Change the assigned Status, and click Save

To reproduce expected results:

  1. 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)
  2. Click Edit
  3. Uncheck “Make this the primary IP for the device/VM” and Save
  4. Open the device in DCIM–>Devices (ams-edge-01 in above demo site, for example)
  5. Click Edit
  6. 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
glennmatthewscommented, Apr 14, 2021

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)?

0reactions
glennmatthewscommented, Apr 14, 2021

Thank you for the confirmation!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found