Hi,
we occasionally have issues with provisioning CPEs coming from “0 BOOTSTRAP” while still having a left-over enqueued reboot task. It seems both the task and BOOTSTRAP provision (via the corresponding preset) are fired at the same time, leading to an unsuccessful provision due to the parallel reboot.
2022-01-17T08:49:58.475Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: Inform; cpeRequestId="100" informEvent="4 VALUE CHANGE,1 BOOT,0 BOOTSTRAP" informRetryCount=0
2022-01-17T08:49:58.503Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90000" acsRequestName="Reboot"
2022-01-17T08:49:58.540Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90200" acsRequestName="GetParameterNames"
2022-01-17T08:49:58.605Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90201" acsRequestName="GetParameterNames"
2022-01-17T08:49:58.671Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90202" acsRequestName="GetParameterNames"
2022-01-17T08:49:59.191Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90203" acsRequestName="GetParameterNames"
2022-01-17T08:49:59.664Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90204" acsRequestName="GetParameterNames"
2022-01-17T08:49:59.683Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90205" acsRequestName="GetParameterNames"
2022-01-17T08:49:59.740Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90206" acsRequestName="GetParameterNames"
2022-01-17T08:49:59.815Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90207" acsRequestName="GetParameterValues"
2022-01-17T08:49:59.885Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90208" acsRequestName="GetParameterNames"
2022-01-17T08:49:59.922Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90209" acsRequestName="GetParameterNames"
2022-01-17T08:49:59.981Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b9020a" acsRequestName="GetParameterNames"
2022-01-17T08:49:59.995Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b9020b" acsRequestName="GetParameterValues"
2022-01-17T08:50:00.010Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b9020c" acsRequestName="GetParameterNames"
2022-01-17T08:50:00.095Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b9020d" acsRequestName="GetParameterValues"
2022-01-17T08:50:00.174Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b9020e" acsRequestName="GetParameterNames"
2022-01-17T08:50:00.499Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b9020f" acsRequestName="GetParameterValues"
2022-01-17T08:50:00.527Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: ACS request; acsRequestId="17e673a90b90210" acsRequestName="SetParameterValues"
2022-01-17T08:50:28.932Z [ERROR] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: Bad session state
2022-01-17T08:52:29.277Z [INFO] 127.0.0.1 00040E-FRITZ%21Box-3810D55B7F09: Inform; cpeRequestId="100" informEvent="4 VALUE CHANGE,1 BOOT,M Reboot" informRetryCount=0
How can this be avoided / worked around? Some ideas from my side:
- Can provisions/presets be prioritized over tasks? Can tasks be of a lower priority compared to a provision/preset?
- Is it possible to delete tasks within a provision? We already do the following for every BOOTSTRAP provision:
clear('Device', Date.now());
clear('InternetGatewayDevice', Date.now());
Deleting a task here might be too late though, since I think the task and provision are fired at the same time.
- Can reboot tasks generally be ignored for BOOTSTRAP provisions/presets?
What are your thoughts?