-
Notifications
You must be signed in to change notification settings - Fork 263
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
500 Error when saving IP Address when SLAAC status does not exist. #1035
Comments
Appears to be due to the SLAAC check within the clean method. nautobot/nautobot/ipam/models.py Line 848 in 4b8b9eb
|
This isn't technically a bug since this is working as intended. This is a required status. But it's also surprising and should be better documented so it is in actuality a bug. And this isn't the only "required" status:
@FragmentedPacket May I ask why the status SLAAC was deleted in this particular instance? In any case, this topic literally just came up the other day when we were doing backlog grooming, in that for pre-populated database objects like In the interim at least, we could better document this and think about how to at least provide useful messaging around the error case? |
This was caused by a penetration test that ran in an environment and wiped out those objects. I would say that isn't a normal circumstance, but the designation of "protected" objects that are relied on in other places would be great to prevent these scenarios from happening due to internal code relying on them. Documentation would be great, but not entirely sure it would help in the case of troubleshooting, but we're familiar with the code so we figured it out relatively quickly so someone else that may not be more familiar may look at docs for more info. Maybe we can have a wrapper method for getting a status for a model that relies on a built-in and then returns a better message error message? |
I would second that as well, the error raised in the UI/API made me think it came from the selected status and we were only able to diagnose the issue with the traceback. Protecting these dependent objects would prevent a user not reading documentation or a robot web scanner wreaking havoc. |
Related to #1169 |
Environment
Steps to Reproduce
Expected Behavior
The IP address gets created successfully
Observed Behavior
The text was updated successfully, but these errors were encountered: