-
-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Hello,
I've got a device with a strange issue, it won't accept the IP from gravity. The device in question is a WeatherFlow tempest base station, it appears to request an IP and it does appear to give it a try as the device does ping on the network briefly, but about 20 seconds later it resets. It then requests the IP again and repeats this process over and over.
Looking in the gravity logs the most relevant message I could find is one saying the duration is not valid. Specifically the message is "invalid duration: less than 1". I don't see anything on the weatherflow side that I can change to correct this and to make matters worse the device doesn't support static addressing, else I would have just used that as a workaround.
Originally gravity was setup to give this device an IP from the DHCP pool. But when that didn't work I attempted to create a reservation to see if that would change any behavior. Gravity did attempt to give that device the new reserved address but it didn't make any difference in the duration warning message.
Please let me know if any other information would be useful. I was wondering if hooks could potentially force the duration to something usable, but I'm new to gravity so not sure if that is even possible or would work in this situation.
Logs from gravity
{"level":"info","ts":1741236287.111949,"logger":"role.dhcp","msg":"DHCP packet","instance":"gravity1","version":"0.26.5","request":"6d214dbb-c0ce-47e2-a028-f195e0f71d0b-0x00000869","deviceIdentifier":"c0:ee:40:71:3b:79","opCode":"BootReply","hopCount":0,"transactionID":"0x00000869","flagsToString":"Unicast","clientIPAddr":"0.0.0.0","yourIPAddr":"10.30.0.136","serverIPAddr":"10.30.10.4","gatewayIPAddr":"10.30.0.129","hostname":"","clientIdentifier":"","messageType":"OFFER"}","stream":"stdout","time":"2025-03-06T04:44:47.112067765Z"} {"level":"warn","ts":1741236287.1120505,"logger":"etcd.client","msg":"retrying of unary invoker failed","instance":"gravity1","version":"0.26.5","target":"etcd-endpoints://0x4000d36000/localhost:2379","attempt":0,"error":"rpc error: code = Canceled desc = context canceled"}","stream":"stdout","time":"2025-03-06T04:44:47.112149688Z"} {"level":"info","ts":1741236287.156885,"logger":"role.dhcp","msg":"DHCP packet","instance":"gravity1","version":"0.26.5","request":"46263123-2260-481d-ba44-8044f5e1d13b-0x00000869","deviceIdentifier":"c0:ee:40:71:3b:79","opCode":"BootRequest","hopCount":1,"transactionID":"0x00000869","flagsToString":"Unicast","clientIPAddr":"0.0.0.0","yourIPAddr":"0.0.0.0","serverIPAddr":"0.0.0.0","gatewayIPAddr":"10.30.0.129","hostname":"WeatherFlow","clientIdentifier":"","messageType":"REQUEST","client":"10.30.10.1:67"}","stream":"stdout","time":"2025-03-06T04:44:47.156968225Z"} {"level":"warn","ts":1741236287.1590602,"logger":"role.dhcp","msg":"invalid duration: less than 1","instance":"gravity1","version":"0.26.5","request":"46263123-2260-481d-ba44-8044f5e1d13b-0x00000869","duration":"0"}","stream":"stdout","time":"2025-03-06T04:44:47.159224481Z"} {"level":"info","ts":1741236287.1591182,"logger":"role.dhcp","msg":"DHCP packet","instance":"gravity1","version":"0.26.5","request":"46263123-2260-481d-ba44-8044f5e1d13b-0x00000869","deviceIdentifier":"c0:ee:40:71:3b:79","opCode":"BootReply","hopCount":0,"transactionID":"0x00000869","flagsToString":"Unicast","clientIPAddr":"0.0.0.0","yourIPAddr":"10.30.0.136","serverIPAddr":"10.30.10.4","gatewayIPAddr":"10.30.0.129","hostname":"WeatherFlow","clientIdentifier":"","messageType":"ACK"}","stream":"stdout","time":"2025-03-06T04:44:47.159263628Z"}