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

Sumit Agrawal commented on HDDS-11074:
--------------------------------------

[~XiChen]  This point is discussed as per below comment in previous PR:
[https://github.com/apache/ozone/pull/4188/files#r1559099498]
 
Earlier in Ozone, we used to take owner name and group name same as Login user 
name.
But with having owner name persisted, and to keep same behavior,
 
IMO, we should show persisted owner name as group name. Else group name in 
display keeps changing with login user.
 
 

> Ozone group changes on kinit user
> ---------------------------------
>
>                 Key: HDDS-11074
>                 URL: https://issues.apache.org/jira/browse/HDDS-11074
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone CLI
>            Reporter: Soumitra Sulav
>            Assignee: Tanvi Penumudy
>            Priority: Major
>
> After a recent change via HDDS-7577, the owner field persisted on kinit with 
> different users.
> But the same doesn't apply to groups. The group changes with Kerberos 
> authenticated user or the user the command is running with.
> The behavior is still not correct and as aligned as HDFS.
> HDFS behavior:
> {code:java}
> [[email protected] ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/hrt_qa.keytab hrt_qa
> [[email protected] ~]# hdfs dfs -mkdir /tmp/test
> [[email protected] ~]# hdfs dfs -put 
> anaconda-ks.cfg /tmp/test
> [[email protected] ~]# hdfs dfs -ls /tmp/test
> Found 1 items
> -rw-r--r--   3 hrt_qa supergroup       8884 2024-06-26 16:07 
> /tmp/test/anaconda-ks.cfg
> [[email protected] ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/hdfs.keytab hdfs
> [[email protected] ~]# hdfs dfs -ls /tmp/test
> Found 1 items
> -rw-r--r--   3 hrt_qa supergroup       8884 2024-06-26 16:07 
> /tmp/test/anaconda-ks.cfg{code}
> Ozone behavior:
> {code:java}
> [[email protected] ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/hrt_qa.keytab hrt_qa
> [[email protected] ~]#  ozone fs -mkdir -p 
> ofs://ozone1719380598/test/test
> ..
> [[email protected] ~]# ozone fs -put 
> anaconda-ks.cfg ofs://ozone1719380598/test/test
> ..
> [[email protected] ~]# ozone fs -ls 
> ofs://ozone1719380598/test/test
> Found 1 items
> -rw-rw-rw-   3 hrt_qa hrt_qa       8884 2024-06-26 16:22 
> ofs://ozone1719380598/test/test/anaconda-ks.cfg
> [[email protected] ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/hdfs.keytab hdfs
> [[email protected] ~]# ozone fs -ls 
> ofs://ozone1719380598/test/test
> Found 1 items
> -rw-rw-rw-   3 hrt_qa hdfs       8884 2024-06-26 16:22 
> ofs://ozone1719380598/test/test/anaconda-ks.cfg 
> [[email protected] ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/om.keytab  om
> [[email protected] ~]# ozone fs -ls 
> ofs://ozone1719380598/test/test
> Found 1 items
> -rw-rw-rw-   3 hrt_qa om       8884 2024-06-26 16:22 
> ofs://ozone1719380598/test/test/anaconda-ks.cfg{code}
> Group should not have changed on changing the kinit user.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to