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

Tanvi Penumudy commented on HDDS-11074:
---------------------------------------

cc: [~ssulav], [~sshenoy] 

> 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}
> [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/hrt_qa.keytab hrt_qa
> [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# hdfs dfs -mkdir /tmp/test
> [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# hdfs dfs -put 
> anaconda-ks.cfg /tmp/test
> [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# 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
> [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/hdfs.keytab hdfs
> [r...@ccycloud-1.quasar-nqoxql.root.comops.site ~]# 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}
> [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/hrt_qa.keytab hrt_qa
> [r...@ccycloud-1.quasar-abgina.root.comops.site ~]#  ozone fs -mkdir -p 
> ofs://ozone1719380598/test/test
> ..
> [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# ozone fs -put 
> anaconda-ks.cfg ofs://ozone1719380598/test/test
> ..
> [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# 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
> [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/hdfs.keytab hdfs
> [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# 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 
> [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# kinit -kt 
> /home/hrt_qa/hadoopqa/keytabs/om.keytab  om
> [r...@ccycloud-1.quasar-abgina.root.comops.site ~]# 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: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to