smengcl edited a comment on pull request #10:
URL: 
https://github.com/apache/ozone-docker-runner/pull/10#issuecomment-1034131644


   > > However, this issue exists even in the current image version 
(`OZONE_RUNNER_VERSION=20211202-1` with centos 7.6).
   > 
   > Do you have any idea why it passes in CI using that image?
   
   Hi @adoroszlai . Sorry I should have clarified. This issue is not triggered 
in the `s3/webui.robot`. Because that robot test only accesses the S3 Gateway 
endpoint (which doesn't have HA and its hostname is always `s3g`). I have found 
this when manually trying to access `scm1.org` 's web endpoint from the same 
container.
   
   The issue only happens when accessing:
   1) SCM web endpoints when SCM HA is enabled; and/or
   2) OM web endpoints when OM HA is enabled
   
   And none of the above cases are covered in the existing robot tests. And to 
be honest this is not a bug in the Ozone code, but an issue of misconfigured 
KDC.
   
   This issue happens because we haven't properly assigned SPNEGO (those 
beginning with `HTTP/` service principals in KDC for those services when HA is 
enabled. When the SPENGO client (curl) tries to access `scm1.org`, it will try 
the `HTTP/[email protected]` principal, while we only have 
`HTTP/[email protected]` on the KDC. That is a mismatch.
   
   > 1. In ozonesecure-ha environment SCM hosts have .org domain for some 
reason. s3/webui.robot fails with: gss_init_sec_context() failed: Server 
krbtgt/[email protected] not found in Kerberos database. I think this can be 
fixed by running the S3 tests on s3g host instead of scm1.org.
   
   This other issue you have mentioned broken in centos 8.4 image might have 
been triggered by something else. Likely due to some new config additions and 
possible default canonicalization behavior changes from krb5 1.15 to 1.18. For 
kdc5 1.18 we might need to set [`qualify_shortname = 
""`](https://web.mit.edu/kerberos/krb5-1.18/doc/admin/conf_files/krb5_conf.html#:~:text=value%20is%20false.-,qualify_shortname,-If%20this%20string)
 in `krb5.conf` to fix this in centos 8.4. But now that we are no longer using 
centos 8.4 that shouldn't be an immediate concern.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to