-
Notifications
You must be signed in to change notification settings - Fork 21
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
RuntimeError: No suitable key found in keytab. #21
Comments
Honestly, this is probably a bug in the certmonger daemon startup of your distro. Certmonger should not be starting prior to the network being up. File a bug against your distro. |
hmm, I don't think so. One should be able to inquire certmonger about cert like getcert list without network. |
Maybe, but the primary problem is your distro should not start certmonger before networking is up. |
And how would we fix this in cepces? Add a early check to make sure the network is reachable, then bail out? No, it's the OS job to ensure the network is up, not ours. |
We could catch the exception somewhere, and print a prettier message, and that might be more desirable for sysadmins, but it is not for those working on the code. I would much rather see the 'barf' so I can determine where things failed. |
OK, when I think about it, this part makes sense. We shouldn't break getcert just because the network is down. |
Looking deeper there seems to something else going on, I can see that NetworkManager starts long before certmonger and certmonger starts when NM becomes active later. Something else is bugging SOAPAuth:
|
Okay, I did some further testing with older Ubuntu versions and I managed to find two different things that can cause this issue.
|
|
Yes that is enough.
So is your output for Other than that I installed those packages on my test machine (additionally to what is included in the cepces setup:
|
No, the other way around. hostname and hostname -f both have domain in it. hostname -s does not.
This is on Gentoo but I have these installed as well except for requests-kerberos, there I have requests-gssapi as later cepces has swithed but The problem was seen before that switch too. |
If you checked the keytab file and the hostname is wrong there, than you could try to change the principals directly in the cepces config. Like so, exchange hostname and domainname ofc. |
Not sure I follow, in keytab I have most variations:
and cepces principals are default:
Seems to be match there |
What I am trying to say is that you can set the principals to the actual names to make sure that the problem is not the discovery of the correct host and domain names. Those are all the issues that I found before I got it working. |
Moving ufven#11 to here:
I get 3-4 of these each time I boot
2020-05-19 17:43:25,014 main:ERROR:Traceback (most recent call last):
File "/usr/libexec/certmonger/cepces-submit", line 61, in main
config = Configuration.load()
File "/usr/lib64/python3.6/site-packages/cepces/config.py", line 131, in load
return Configuration.from_parser(config)
File "/usr/lib64/python3.6/site-packages/cepces/config.py", line 169, in from_parser
return Configuration(endpoint, endpoint_type, cas, authn.handle())
File "/usr/lib64/python3.6/site-packages/cepces/auth.py", line 94, in handle
raise RuntimeError('No suitable key found in keytab.')
RuntimeError: No suitable key found in keytab.
Error is raised when there is no network yet.
Should it really do that or just wait a bit and then try again ?
The text was updated successfully, but these errors were encountered: