Skip to content

RDKEMW-20801: widen OCDM auto-start window to ~200s (-r 250 -d 800)#246

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

RDKEMW-20801: widen OCDM auto-start window to ~200s (-r 250 -d 800)#246
sergiygladkyy wants to merge 1 commit into
developfrom
feature/rdkemw-20801

Conversation

@sergiygladkyy

@sergiygladkyy sergiygladkyy commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Reason for change

  • Post-FSR, systemd force-activates OCDM before DeviceProvisioning has fetched DRM creds; the activation poll (-r 200, ~101s) can expire before the PROVISIONING precondition is met, failing the unit and taking the WPEFramework target down.
  • Widen the poll to ~200s. Retry count is uint8_t (caps at 255), so the delay is the lever: -r 250 -d 800. (-r 400 wraps to 144, shorter than stock.)
  • Repeats RDKEMW-5207 (RDKEMW-5207: wpeframework-ocdm service is not running #68), which set -r 200 the same way.

Test Procedure

Described in the ticket: FSR then connect with provisioning delayed past ~130s; confirm wpeframework-ocdm.service reaches active (exited) rather than failed.

Risks

No. Healthy boots break the poll on first successful activation; the wider window is only used on the slow-provisioning path.

@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
…sioning

Reason for change: post-FSR provisioning can outlast OCDM's activation poll,
which then gives up and fails the Thunder target. Widen the poll to ~200s via
-r 250 -d 800. PluginActivator maxRetries is uint8_t (max 255) - -r 400 wrapped
to 144 - so the window is widened with the retry delay (-d), not the count.
Follows RDKEMW-5207, which set -r 200 for the same reason.
Test Procedure: FSR then connect with provisioning delayed past ~130s; confirm
wpeframework-ocdm.service reaches active (exited) instead of failed, and the
poll runs the full 250-attempt window.
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>
Copilot AI review requested due to automatic review settings July 13, 2026 22:40
@sergiygladkyy
sergiygladkyy force-pushed the feature/rdkemw-20801 branch from d3a37b7 to 3423ed4 Compare July 13, 2026 22:40

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread systemd/system/wpeframework-ocdm.service
Comment on lines 6 to +9
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/PluginActivator -r 200 OCDM
ExecStart=/usr/bin/PluginActivator -r 250 -d 800 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.

same as before - we will find out this in actual tests. If the result is expected in terms of max time window acc to the params, this is it. If Copilot is right and the window gets cut by sysetmd, we shall consider new systemd params here as suggested

@sergiygladkyy sergiygladkyy changed the title RDKEMW-20801: increase OCDM service auto-start retry count to 400 RDKEMW-20801: widen OCDM auto-start window to ~200s (-r 250 -d 800) Jul 17, 2026
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