Devices configuration being flagged as modified by the controller with no new configuration changes

25 views
Skip to first unread message

joaoh...@gmail.com

unread,
Aug 12, 2020, 2:34:04 PM8/12/20
to OpenWISP

Hi, I'm running an OpenWISP controller to remote manage configuration from a few OpenWRT devices.
I've noticed that when the controller receives a config checksum request by the OpenWISP agent on the APs, my device config modified date is updated to the current date, and config status changes from applied to modified.

From what I've been able to reproduce using a virtual machine and two manually inserted devices. Seems that two devices cannot have the same Ip Address. Not sure if it's limited to LAN IP address as I was using 192.168.1.0/24 network in my simulations.

I've used Postman to make get requests to http://mycontroller.mydomain.com/controller/checksum/{device-uuid}/?key={device-key} and I can see my Ip being moved from one device to another.

Is this intended behavior? I can provide some logs if it helps to illustrate my doubts better.

Regards,



Federico Capoano

unread,
Aug 13, 2020, 11:44:30 AM8/13/20
to OpenWISP
Hey Joao,

correct, two devices in the same organization cannot have the same management_ip or the same last_ip (unless last_ip is a public IP, in that case it's allowed since multiple devices can be behind the same public IP).
These two fields (especially the management IP) are used by OpenWISP to contact the device and if 2 devices have the same management IP, things will not work out well.

The modified date of the device object should change, the modified date and status of the config object shouldn't, if it does, it may be a bug.

Federico
Reply all
Reply to author
Forward
0 new messages