i was making a report and found some servers had not behaved as expected. There were 5 servers in T409529 that I know were physically decommed in November and I was fairly certain I ran the offline script. However, the servers were still showing as decommissoning instead of Offline.
I confirmed they were out of the rack and attempted to run the "Offline a device with extra steps" script in Netbox. The script said passed but threw a compile error. (I cannot find the screenshot i took of the error at this time)
I ran the script again without the commit box checked. It passed without the error.
I could not discern what parameter the error was being thrown for. Papaul discovered that the error was throwing because the mgmt IP was not being removed. This is suppose to be part of the script. We tested it out on the five servers in the linked ticket. If the mgmt IP was deleted and the script ran again, it passed without errors and the devices were successfully offlined.
I searched netbox for any other servers that may have acted in this way but there are none. And we do not have any other decommission tasks to test this on at this time.