Updating VM cluster devices fails to generate a changelog. #1949

Closed
opened 2025-12-29 17:20:51 +01:00 by adam · 0 comments
Owner

Originally created by @ebusto on GitHub (Aug 16, 2018).

Environment

  • Python version: 3.5.4
  • NetBox version: 2.4.3

Steps to Reproduce

Create a VM cluster, then assign a device to the cluster using the web UI.

Expected Behavior

A changelog entry for the device indicating that the cluster field has been updated.

Observed Behavior

No changelog was generated.

I believe this is due to NetBox updating the devices en masse with objects.filter(...).update(...). Unfortunately, there is a Django bug (marked will not fix) that prevents this from sending signals.

The simple fix would be to loop through the devices and update them individually.

Originally created by @ebusto on GitHub (Aug 16, 2018). ### Environment * Python version: 3.5.4 * NetBox version: 2.4.3 ### Steps to Reproduce Create a VM cluster, then assign a device to the cluster using the web UI. ### Expected Behavior A changelog entry for the device indicating that the cluster field has been updated. ### Observed Behavior No changelog was generated. I believe this is due to NetBox updating the devices en masse with `objects.filter(...).update(...)`. Unfortunately, there is a Django [bug](https://code.djangoproject.com/ticket/12184) (marked will not fix) that prevents this from sending signals. The simple fix would be to loop through the devices and update them individually.
adam added the type: bugstatus: accepted labels 2025-12-29 17:20:51 +01:00
adam closed this issue 2025-12-29 17:20:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1949