Project

General

Profile

Actions

Bug #54501

open

libcephfs: client needs to update the mtime and change attr when snaps are created and deleted

Added by Ramana Raja about 2 years ago. Updated about 1 year ago.

Status:
Pending Backport
Priority:
High
Assignee:
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
backport_processed
Backport:
reef,quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
libcephfs
Labels (FS):
Manila, NFS-cluster, snapshots
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This issue was identified by Jeff here, https://bugzilla.redhat.com/show_bug.cgi?id=1975689#c21

The libcephfs client doesn't update mtime and change attribute when snaps are create or deleted. This results in NFS clients not being able to list CephFS snapshots within a CephFS NFS-Ganesha export correctly.
See explanation here, https://bugzilla.redhat.com/show_bug.cgi?id=1975689#c21


Related issues 5 (1 open4 closed)

Copied to CephFS - Backport #59038: quincy: libcephfs: client needs to update the mtime and change attr when snaps are created and deletedDuplicateVenky ShankarActions
Copied to CephFS - Backport #59039: pacific: libcephfs: client needs to update the mtime and change attr when snaps are created and deletedDuplicateVenky ShankarActions
Copied to CephFS - Backport #59040: pacific: libcephfs: client needs to update the mtime and change attr when snaps are created and deletedRejectedVenky ShankarActions
Copied to CephFS - Backport #59041: quincy: libcephfs: client needs to update the mtime and change attr when snaps are created and deletedIn ProgressVenky ShankarActions
Copied to CephFS - Backport #59412: reef: libcephfs: client needs to update the mtime and change attr when snaps are created and deletedResolvedVenky ShankarActions
Actions #1

Updated by Xiubo Li about 2 years ago

  • Assignee set to Xiubo Li
Actions #2

Updated by Xiubo Li about 2 years ago

  • Assignee deleted (Xiubo Li)
Actions #3

Updated by Venky Shankar about 2 years ago

  • Category set to Correctness/Safety
  • Assignee set to Nikhilkumar Shelke
  • Target version set to v18.0.0
  • Source set to Community (dev)
  • Backport set to quincy, pacific

Nikhil,

Please take this (Xiubo is be a bit tied up with some other work).

Cheers,
Venky

Actions #4

Updated by Venky Shankar over 1 year ago

  • Assignee changed from Nikhilkumar Shelke to Dhairya Parmar

Dhairya, PTAL.

Actions #5

Updated by Venky Shankar over 1 year ago

  • Assignee changed from Dhairya Parmar to Venky Shankar
Actions #6

Updated by Venky Shankar over 1 year ago

Assigning this to myself since I'm looking into related issues.

Actions #7

Updated by Venky Shankar over 1 year ago

Ramana, nfs-ganesh is servicing stale readdir data by checking mtime/change_attr of .snap I presume or for its parent (i.e., "foo" dir for foo/.snap)?

Actions #8

Updated by Venky Shankar over 1 year ago

Ramana, never mind. I see its for .snap directory rather that its parent. The thing is, attrs for .snap are initialized from its parent and never change (until the inode is trimmed and the snap directory is accessed again).

PR https://github.com/ceph/ceph/pull/48086 improves this behavior by updating attrs (including POSIX ACLs) for .snap directory when its parent directory attrs change. However, that is not enough to fix this issue.

Actions #9

Updated by Venky Shankar over 1 year ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 48382
Actions #10

Updated by Venky Shankar about 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #11

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59038: quincy: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Actions #12

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59039: pacific: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Actions #13

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59040: pacific: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Actions #14

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59041: quincy: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Actions #15

Updated by Backport Bot about 1 year ago

  • Tags set to backport_processed
Actions #16

Updated by Venky Shankar about 1 year ago

  • Tags deleted (backport_processed)
  • Backport changed from quincy, pacific to reef,quincy,pacific
Actions #17

Updated by Backport Bot about 1 year ago

  • Copied to Backport #59412: reef: libcephfs: client needs to update the mtime and change attr when snaps are created and deleted added
Actions #18

Updated by Backport Bot about 1 year ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF