[ 
https://issues.apache.org/jira/browse/HDDS-11074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-11074:
----------------------------------
    Labels: pull-request-available  (was: )

> 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
>              Labels: pull-request-available
>
> 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