'ondemand' systemd service is not disabled when governor option is set to performance or powersave
Bug #1873028 reported by
David Negreira
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
~dnegreira/charm-sysconfig:1873028
- Alvaro Uria (community): Approve
- Xav Paice (community): Approve
-
Diff: 97 lines (+6/-14)2 files modifiedsrc/lib/lib_sysconfig.py (+2/-2)
src/tests/unit/test_lib.py (+4/-12)
description: | updated |
Changed in charm-sysconfig: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in charm-sysconfig: | |
milestone: | none → 20.05 |
status: | Confirmed → Fix Committed |
Changed in charm-sysconfig: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Related bug, why not remove ondemand service: https:/ /bugs.launchpad .net/ubuntu/ +source/ systemd/ +bug/1503773.