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/s...@example.com` into `root` in this case): ``` Check volume from ozonefs | FAIL | '{ "metadata" : { }, "name" : "fstest", "admin" : "root", "owner" : "testuser/s...@example.com", "creationTime" : "2020-03-24T13:24:58.505Z", "acls" : [ { "type" : "USER", "name" : "testuser/s...@example.com", "aclScope" : "ACCESS", "aclList" : [ "ALL" ] }, { "type" : "GROUP", "name" : "root", "aclScope" : "ACCESS", "aclList" : [ "ALL" ] } ], "quota" : 109951162777600 } { "metadata" : { }, "name" : "fstest2", "admin" : "root", "owner" : "testuser/s...@example.com", "creationTime" : "2020-03-24T13:25:02.525Z", "acls" : [ { "type" : "USER", "name" : "testuser/s...@example.com", "aclScope" : "ACCESS", "aclList" : [ "ALL" ] }, { "type" : "GROUP", "name" : "root", "aclScope" : "ACCESS", "aclList" : [ "ALL" ] } ], "quota" : 109951162777600 }' does not contain '"admin" : "testuser/s...@example.com"' ```
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org