Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6496 Improve CI checks
  3. HDDS-8219

Run HA secure tests from s3g container

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • 1.4.0
    • test

    Description

      In ozonesecure-ha environment SCM containers have hostnames like "scm1.org", but all Kerberos principals for SCM nodes are in the form testuser/scm@EXAMPLE.COM. Since no host named scm exists, lookup takes quite some time:

      $ OZONE_LOGLEVEL=TRACE ozone sh volume create /vol1 |& grep 'lookup'
      [main] TRACE security.SecurityUtil: Name lookup for om2 took 1 ms.
      [main] TRACE security.SecurityUtil: Name lookup for om3 took 0 ms.
      [main] TRACE security.SecurityUtil: Name lookup for om1 took 0 ms.
      [main] TRACE security.SecurityUtil: Name lookup for scm took 497 ms.
      

      We can improve this simply by executing the same commands from another container, e.g. s3g:

      $ OZONE_LOGLEVEL=TRACE ozone sh volume create /vol2 |& grep 'lookup'
      [main] TRACE security.SecurityUtil: Name lookup for om2 took 1 ms.
      [main] TRACE security.SecurityUtil: Name lookup for om3 took 0 ms.
      [main] TRACE security.SecurityUtil: Name lookup for om1 took 0 ms.
      [main] TRACE security.SecurityUtil: Name lookup for s3g took 0 ms.
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: