Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12784

TestKMS failure: login options not compatible with IBM JDK

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1
    • Fix Version/s: None
    • Component/s: test
    • Labels:
    • Environment:

      IBM JDK 1.8 + s390x architecture

    • Target Version/s:
    • Tags:
      Hadoop IBM_JAVA

      Description

      When running test with IBM JDK, the testcase in /hadoop-common-/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/token/delegation/web/TestWebDelegationToken failed due to incompatible login options for IBM Java.
      The login options need to be updated considering the IBM Java.

      Testcases which failed are -
      1.org.apache.hadoop.crypto.key.kms.server.TestKMS.testKMSRestartKerberosAuth
      2.org.apache.hadoop.crypto.key.kms.server.TestKMS.testDelegationTokenAccess
      3.org.apache.hadoop.crypto.key.kms.server.TestKMS.testServicePrincipalACLs
      4.org.apache.hadoop.crypto.key.kms.server.TestKMS.testKeyACLs
      5.org.apache.hadoop.crypto.key.kms.server.TestKMS.testKMSWithZKDTSM
      6.org.apache.hadoop.crypto.key.kms.server.TestKMS.testACLs
      7.org.apache.hadoop.crypto.key.kms.server.TestKMS.testKMSWithZKSignerAndDTSM
      8.org.apache.hadoop.crypto.key.kms.server.TestKMS.testKMSWithZKSigner
      9.org.apache.hadoop.crypto.key.kms.server.TestKMS.testKMSRestartSimpleAuth
      10.org.apache.hadoop.crypto.key.kms.server.TestKMS.testStartStopHttpKerberos
      11.org.apache.hadoop.crypto.key.kms.server.TestKMS.testWebHDFSProxyUserKerb
      12.org.apache.hadoop.crypto.key.kms.server.TestKMS.testKMSBlackList
      13.org.apache.hadoop.crypto.key.kms.server.TestKMS.testStartStopHttpsKerberos
      14.org.apache.hadoop.crypto.key.kms.server.TestKMS.testKMSAuthFailureRetry

      Testcases failed with the following stack:
      javax.security.auth.login.LoginException: Bad JAAS configuration: unrecognized option: isInitiator
      at com.ibm.security.jgss.i18n.I18NException.throwLoginException(I18NException.java:27)
      at com.ibm.security.auth.module.Krb5LoginModule.d(Krb5LoginModule.java:541)
      at com.ibm.security.auth.module.Krb5LoginModule.a(Krb5LoginModule.java:169)
      at com.ibm.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:231)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      at java.lang.reflect.Method.invoke(Method.java:507)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:788)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:196)
      at javax.security.auth.login.LoginContext$5.run(LoginContext.java:721)
      at javax.security.auth.login.LoginContext$5.run(LoginContext.java:719)
      at java.security.AccessController.doPrivileged(AccessController.java:595)
      at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:719)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:593)
      at org.apache.hadoop.crypto.key.kms.server.TestKMS.doAs(TestKMS.java:262)
      at org.apache.hadoop.crypto.key.kms.server.TestKMS.access$100(TestKMS.java:75)

        Attachments

        1. HADOOP-12784-1.patch
          2 kB
          Devendra Vishwakarma

          Activity

            People

            • Assignee:
              vvvvvdev Devendra Vishwakarma
              Reporter:
              vvvvvdev Devendra Vishwakarma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated: