smengcl edited a comment on issue #582: HDDS-3047. ObjectStore#listVolumesByUser and CreateVolumeHandler#call should get user's full principal name instead of login name by default URL: https://github.com/apache/hadoop-ozone/pull/582#issuecomment-603239297 Added robot test to verify the fix. So without the change in `CreateVolumeHandler`, `Check volume from ozonefs` step will fail because `admin` field is short user name (mapped by `auth_to_local` from `testuser/[email protected]` into `root` in this case): ``` Check volume from ozonefs | FAIL | '{ "metadata" : { }, "name" : "fstest", "admin" : "root", "owner" : "testuser/[email protected]", "creationTime" : "2020-03-24T13:24:58.505Z", "acls" : [ { "type" : "USER", "name" : "testuser/[email protected]", "aclScope" : "ACCESS", "aclList" : [ "ALL" ] }, { "type" : "GROUP", "name" : "root", "aclScope" : "ACCESS", "aclList" : [ "ALL" ] } ], "quota" : 109951162777600 } { "metadata" : { }, "name" : "fstest2", "admin" : "root", "owner" : "testuser/[email protected]", "creationTime" : "2020-03-24T13:25:02.525Z", "acls" : [ { "type" : "USER", "name" : "testuser/[email protected]", "aclScope" : "ACCESS", "aclList" : [ "ALL" ] }, { "type" : "GROUP", "name" : "root", "aclScope" : "ACCESS", "aclList" : [ "ALL" ] } ], "quota" : 109951162777600 }' does not contain '"admin" : "testuser/[email protected]"' ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
