Skip to content

RDKEMW-20801: increase OCDM service auto-start retry count to 400#246

Open
sergiygladkyy wants to merge 1 commit into
developfrom
feature/rdkemw-20801
Open

RDKEMW-20801: increase OCDM service auto-start retry count to 400#246
sergiygladkyy wants to merge 1 commit into
developfrom
feature/rdkemw-20801

Conversation

@sergiygladkyy

Copy link
Copy Markdown
Contributor

RDKEMW-20801: increase OCDM service auto-start retry count to 400

What
wpeframework-ocdm.service: PluginActivator -r 200 OCDM -> -r 400.

Why
On a factory-reset device, DeviceProvisioning fetches DRM credentials from FKPS before the PROVISIONING precondition can be met. OCDM is force-activated by systemd meanwhile and polls for the precondition. The current 200-attempt cap (~101s at ~0.5s/attempt) can expire before provisioning completes; OCDM then fails and takes the WPEFramework target down with it.

On the reported capture (Apache-2K, 8.3.4.15) provisioning completed ~149s after OCDM's first attempt, past the ~101s window. Doubling the cap to 400 (~203s) covers the observed delay.

This repeats RDKEMW-5207 (#68), which set the count to 200 for the same reason; the value is raised again with the same one-line change.

Scope / risk
No. Healthy boots break the poll on the first successful activation, so the wider cap is only exercised on the slow-provisioning path. It does not address the start-while-disconnected case, which is tracked separately.

Test
FSR then connect; confirm wpeframework-ocdm.service reaches active (exited) rather than failed when provisioning takes more than 200 attempts.

Reason for change: post-FSR provisioning can outlast the 200-attempt window
(~101s); OCDM then gives up and fails the Thunder target. Raise the retry cap
to 400 (~203s) to cover the observed provisioning delay. Follows RDKEMW-5207,
which set the count to 200 for the same reason.
Test Procedure: FSR then connect; confirm wpeframework-ocdm.service reaches
active (exited) instead of failed when provisioning takes over 200 attempts.
Implements: updates to wpeframework-ocdm.service
Risks: No
Source: COMCAST
License: Apache-2.0
Upstream-Status: Pending
Signed-off-by: Sergiy Gladkyy <sgladkyy@productengine.com>
@sergiygladkyy sergiygladkyy requested a review from a team as a code owner July 2, 2026 17:50
Copilot AI review requested due to automatic review settings July 2, 2026 17:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the OCDM systemd oneshot unit to tolerate longer device-provisioning delays by increasing the PluginActivator retry count during service start.

Changes:

  • Increased wpeframework-ocdm.service PluginActivator retry count from -r 200 to -r 400 to extend the maximum precondition polling window.

Comment on lines 7 to +9
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/PluginActivator -r 200 OCDM
ExecStart=/usr/bin/PluginActivator -r 400 OCDM

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be tested. Will include in DEV QA flow. We can add a param TimeoutStartSec=360, but by checking the actual logs, we can tell that it's not 90s already, it is more, since -r 200 is 100+s and the unit fails on attempts always and never on timeout

@nanimatta nanimatta changed the base branch from develop to support/8.3.4.0 July 8, 2026 21:16
@nanimatta nanimatta changed the base branch from support/8.3.4.0 to develop July 8, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants