Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-4179

intermittent kinit preauth errors on Jenkins nodes

XMLWordPrintable

    • 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.

        1. screenshot-1.png
          39 kB
          Nick Boldt
        2. screenshot-2.png
          53 kB
          Nick Boldt

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: