-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no error message when failing to apply profile while starting tuned #623
Comments
I think this could be improved. It now doesn't wait for the result and just restarts the service. I think it could wait for the DBus signal a display the result. Of course it will work only with the D-Bus. |
There is another solution that would work even without DBus, but I'm not sure whether it wouldn't cause problems elsewhere - when TuneD starts without any profile successfully applied, We could erase the content of the file after an unsuccessful profile application here, and then the admin could check whether the contents of the file correspond to the desired profile after restarting TuneD. |
This is probably easier to implement, maybe even cleaner, but tuned-adm should signal this, otherwise it may lead to confusion. |
What do you mean by "signal"? I was thinking something along the lines of https://github.com/redhat-performance/tuned/compare/master...zacikpa:tuned:tuned-adm-profile-check?expand=1. |
Probably got it, but the |
Hello,
When tuned fails to apply a profile while the service is started, we get a legitimate error message and appropriate return code (here I try to isolate 20 cpus but I only have 16):
But if the service is stopped for whatever reason (in my case, it's because it's stopped by default on freshly deployed servers, and enabled only on specific ones), then tuned starts the service, fails to apply the profile, but says otherwise:
As you can see, there is no mention of tuned failing to apply the profile (although it did fail), we get a nice "changes applied" message with a returncode=0 so we could think that the profile was applied.
Thanks.
The text was updated successfully, but these errors were encountered: