You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Xiaoyu Yao (JIRA)" <ji...@apache.org> on 2016/10/23 15:12:58 UTC

[jira] [Comment Edited] (HADOOP-13748) TestKMS fails in testProxyUserSimple and testDelegationTokensOpsSimple

    [ https://issues.apache.org/jira/browse/HADOOP-13748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15599827#comment-15599827 ] 

Xiaoyu Yao edited comment on HADOOP-13748 at 10/23/16 3:12 PM:
---------------------------------------------------------------

This is a test bug where the login user from testProxyUserSimple and testDelegationTOkensOpsSimple are not set properly. 

The issue was not surfaced until recently with HDFS-10757. Attach a simple patch that set the proper login user for the proxy UGI of simple auth. Please review, thanks!


was (Author: xyao):
This is a test bug where the login in user from testProxyUserSimple and testDelegationTOkensOpsSimple is not set properly. 

The issue was not surfaced until HDFS-10757. Attach a simple patch that set the proper login user for the proxy UGI. Please review, thanks!

> TestKMS fails in testProxyUserSimple and testDelegationTokensOpsSimple
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-13748
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13748
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: kms
>    Affects Versions: 3.0.0-alpha2
>            Reporter: John Zhuge
>            Assignee: Xiaoyu Yao
>         Attachments: HADOOP-13748.00.patch
>
>
> {noformat}
> Running org.apache.hadoop.crypto.key.kms.server.TestKMS
> Tests run: 26, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 97.723 sec <<< FAILURE! - in org.apache.hadoop.crypto.key.kms.server.TestKMS
> testProxyUserSimple(org.apache.hadoop.crypto.key.kms.server.TestKMS)  Time elapsed: 1.273 sec  <<< ERROR!
> org.apache.hadoop.security.authorize.AuthorizationException: User [jzhuge] is not authorized to create key !!
> testDelegationTokensOpsSimple(org.apache.hadoop.crypto.key.kms.server.TestKMS)  Time elapsed: 1.194 sec  <<< ERROR!
> java.io.IOException: HTTP status [403], message [org.apache.hadoop.security.AccessControlException: jzhuge tries to renew a token with renewer client1]
> 	at org.apache.hadoop.util.HttpExceptionUtils.validateResponse(HttpExceptionUtils.java:169)
> 	at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.doDelegationTokenOperation(DelegationTokenAuthenticator.java:300)
> 	at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.renewDelegationToken(DelegationTokenAuthenticator.java:216)
> 	at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.renewDelegationToken(DelegationTokenAuthenticatedURL.java:415)
> 	at org.apache.hadoop.crypto.key.kms.KMSClientProvider$2.run(KMSClientProvider.java:906)
> 	at org.apache.hadoop.crypto.key.kms.KMSClientProvider$2.run(KMSClientProvider.java:903)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:422)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1795)
> 	at org.apache.hadoop.crypto.key.kms.KMSClientProvider.renewDelegationToken(KMSClientProvider.java:902)
> 	at org.apache.hadoop.crypto.key.kms.KMSClientProvider$KMSTokenRenewer.renew(KMSClientProvider.java:183)
> 	at org.apache.hadoop.security.token.Token.renew(Token.java:490)
> 	at org.apache.hadoop.crypto.key.kms.server.TestKMS$14$1$1.run(TestKMS.java:1850)
> 	at org.apache.hadoop.crypto.key.kms.server.TestKMS$14$1$1.run(TestKMS.java:1839)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:422)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1795)
> 	at org.apache.hadoop.crypto.key.kms.server.TestKMS$14$1.run(TestKMS.java:1839)
> 	at org.apache.hadoop.crypto.key.kms.server.TestKMS$14$1.run(TestKMS.java:1792)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:422)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1795)
> 	at org.apache.hadoop.crypto.key.kms.server.TestKMS.doAs(TestKMS.java:291)
> 	at org.apache.hadoop.crypto.key.kms.server.TestKMS.access$100(TestKMS.java:79)
> Results :
> Tests in error: 
>   TestKMS.testProxyUserSimple » Authorization User [jzhuge] is not authorized to...
>   TestKMS.testDelegationTokensOpsSimple:1760->testDelegationTokensOps:1784->runServer:121->runServer:139->access$100:79->doAs:291 » IO
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org