'ondemand' systemd service is not disabled when governor option is set to performance or powersave

Bug #1873028 reported by David Negreira
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
charm-sysconfig
Fix Released
High
Unassigned

Bug Description

On Bionic, and probably on Focal, when installing the sysconfig charm, the 'ondemand' service that comes with the 'systemd' package stays enabled by default.
This causes some race condition with the 'cpufrequtils' service, where sometimes the ondemand unit comes last, hence the governor is set to ondemand instead of 'performance' or 'powersave' is set.

We should disable the 'ondemand' service when we set the governor option on the charm, and to have to enable it again when removing the sysconfig charm.

Workaround is to disable 'ondemand' service manually with 'systemctl disable ondemand'.

Related branches

description: updated
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Related bug, why not remove ondemand service: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1503773.

Revision history for this message
Dan Hill (hillpd) wrote :

See bug 1806012 for detailed analysis. A merge proposal [0] to address the ondemand - cpufrequtils race stalled and was ultimately rejected. This needs to be revisited and hashed out.

You've already identified the best work-around: disabling the ondemand service.

[0] https://code.launchpad.net/~joalif/ubuntu/+source/systemd/+git/systemd/+merge/367469

Changed in charm-sysconfig:
status: New → Confirmed
importance: Undecided → High
Alvaro Uria (aluria)
Changed in charm-sysconfig:
milestone: none → 20.05
status: Confirmed → Fix Committed
Alvaro Uria (aluria)
Changed in charm-sysconfig:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.