-
Task
-
Resolution: Done
-
Major
-
3.6.0.GA
-
False
-
None
-
False
-
-
Intermittently getting this preauth error when doing kinit on some Jenkins workers:
[hudson@x86-64-rhel8-p2 ~]$ kinit -k -t /home/hudson/devspaces-build-keytab devspaces-build@IPA.REDHAT.COM
kinit: Preauthentication failed while getting initial credentials
Tried the same on x1, x3, and z2, but could not reproduce.
Tried again on x2, and could not reproduce.
This might be why we're having failures in Ansible like this:
[2023-04-05T16:50:09.444Z] TASK [../roles/users : kinit as devspaces-build] ******************************* [2023-04-05T16:50:10.828Z] fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "kinit -k -t /home/hudson/devspaces-build-keytab devspaces-build@IPA.REDHAT.COM", "delta": "0:00:00.015431", "end": "2023-04-05 12:50:10.137930", "msg": "non-zero return code", "rc": 1, "start": "2023-04-05 12:50:10.122499", "stderr": "kinit: Generic error (see e-text) while getting initial credentials", "stderr_lines": ["kinit: Generic error (see e-text) while getting initial credentials"], "stdout": "", "stdout_lines": []}
So we could either...
- run kinit twice, and/or
- add an ||true so that the first failure doesn't mark the build failed.