Bug 1226525

Summary: Cockpit confusing behavior with performance profiles
Product: [openSUSE] openSUSE Tumbleweed Reporter: Robert Simai <robert.simai>
Component: CockpitAssignee: Alice Brooks <alice.brooks>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alice.brooks, Cockpit-bugs
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Robert Simai 2024-06-19 12:24:40 UTC
Fresh boot, log into Cockpit as regular user, see Overview, Configuration, "Performance profile: none". Mouse over "none" shows "Tuned is not running". All correct so far.

Switch to administrative access, still it shows "Performance profile none" but isn't grayed out anymore. Click on that gives an error

-->--
Change performance profile
Danger alert:Server has closed the connection.
-<--

which makes sense, as tuned is not running.

But after clicking the error away the performance profile ("virtual-guest" in my installation) shows correctly and can be changed. Tuned is still disabled but now running, Cockpit magically started it.

Changing the profile finally changes tuned to be enabled for system boot, again magically and without telling the admin. This is confusing.

I suggest to change the error to something understandable, maybe along with adding something meaningful to the docs.
Comment 1 Alice Brooks 2024-07-12 07:48:14 UTC
Submitted a pr to fix this here: https://github.com/cockpit-project/cockpit/pull/20748