Bug 1359404

Summary: [RGW:NFS]:- Timestamp for directories (rgw buckets) which were created before ganesha instantiation is too old
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: shylesh <shmohan>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: high Docs Contact: Bara Ancincova <bancinco>
Priority: unspecified    
Version: 2.0CC: cbodley, ceph-eng-bugs, hnallurv, kbader, kdreyer, mbenjamin, owasserm, sweil
Target Milestone: rc   
Target Release: 2.2   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.5-7.el7cp Ubuntu: ceph_10.2.5-3redhat1xenial Doc Type: Bug Fix
Doc Text:
.Buckets no longer have incorrect time stamps Previously, buckets created by the Simple Storage Service (S3) API on the Ceph Object Gateway before mounting the Ganesha NFS interface had incorrect time stamps when viewed from NFS. With this update, the NFS service uses time stamps that are based on the correct times of creation or modification of buckets. As a result, buckets created by the S3 API no longer have incorrect time stamps.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-14 15:44:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1322504, 1383917, 1412948    

Description shylesh 2016-07-23 19:21:58 UTC
Description of problem:
Few buckets were created with objects from s3 apis on rgw. Later when we instantiate ganesha and mounted using nfs mount . Now observe the timestamp for these directories (rgw buckets) it will be too old.

for ex :

[root@magna110 mnt]# ll
total 0
drwxrwxrwx. 3 root       root       0 Jan  1  1970 another-missed-hellonew-another-newad-bucket-creation
drwxrwxrwx. 3 root       root       0 Jan  1  1970 hellonew-another-newad-bucket-creation
drwxrwxrwx. 3 root       root       0 Jan  1  1970 missed-hellonew-another-newad-bucket-creation
drwxrwxrwx. 3 4294967294 4294967294 0 Jul 23 13:11 nfsbucket


observe timestamp for first three directories its "Jan 1 1970" . but buckets created later has proper time stamp.


mount command used
====================
mount -t nfs -o nfsvers=4.1,sync,noauto,soft,proto=tcp magna116.ceph.redhat.com:/ /mntr

Version-Release number of selected component (if applicable):
 ceph-radosgw-10.2.2-26.el7cp.x86_64
nfs-ganesha-rgw-2.3.2-2.el7cp.x86_64

Comment 2 Matt Benjamin (redhat) 2016-07-25 15:34:00 UTC
Agree, the timestamp for these buckets -should- be an RGW timestamp, not 0.  Not sure if this can be changed before 2.1.

Comment 5 Ken Dreyer (Red Hat) 2016-09-21 20:26:10 UTC
Matt, what ticket in tracker.ceph.com corresponds to this issue?

Comment 6 Matt Benjamin (redhat) 2016-09-21 20:59:07 UTC
(In reply to Ken Dreyer (Red Hat) from comment #5)
> Matt, what ticket in tracker.ceph.com corresponds to this issue?

I've just created http://tracker.ceph.com/issues/17367 for it.

Comment 7 Matt Benjamin (redhat) 2016-09-21 21:30:50 UTC
Proposed fix in
https://github.com/ceph/ceph/pull/11181

Comment 8 Ken Dreyer (Red Hat) 2017-01-20 23:30:56 UTC
Resolved upstream in v10.2.5

Comment 14 errata-xmlrpc 2017-03-14 15:44:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0514.html