-
Notifications
You must be signed in to change notification settings - Fork 235
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
kcm fails to start if /var/lib/sss/db is empty #5729
Comments
Does main |
It does, but kcm should not depend on sssd, right? |
Does gentoo/openrc execute Is the issue that this command fails when /var/lib/sss/db/ is empty? |
Yes, openrc init scripte has:
Order is kcm starts before sssd.
Yes, as far as I can tell. |
Here is a log with debug:
After running this I see one file in:
|
Can you ignore a non-zero exit code from this command on startup? That is what we are doing with the systemd sssd-kcm.service unit file:
Note the
|
I edited the openrc script and forced a return 0, that worked, at least kcm started. |
But the genconf command does fail, because no configuration exists. Are you seeing this issue only now because sssd is not being built with implicit files provider (and thus, a valid conifguration) enabled? This command ExecStartPre was not added for startup reasons, it was added to allow reloading the sssd-kcm configuration without restarting SSSD completely: https://pagure.io/SSSD/sssd/issue/3862 |
But config does exist, just not cached.
You could have just KCM and no sssd, right? |
If you enable the implicit files provider(enable_files_domain) then there will be no error.
Yes, but not if you want to take advantage of some things like KCM renewals which require reading [kcm] options from the sssd config.ldb |
hmm, now it is getting tricky enable that or disable this. Either kcm(includes --genconf) should work/start independently of sssd or not. Which?
Sure, but sometimes one does not have a choice. |
If you have any [kcm] options you are using in sssd.conf, then KCM will always depend on SSSD - it cannot be standalone in this case. |
OK, but what about the error reported here? |
Meanwhile I created the above PR, please merge. |
sssd --genconf=kcm can return false non zero exit codes. Ignore these and reroute any output to /dev/null Resolves: SSSD#5729
Booting a freshly installed machine fails to start kcm when /var/lib/sss/db is empty.
Boot log(from Gentoo, openrc) I have:
The text was updated successfully, but these errors were encountered: