Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-15170

PCC cache re-attach does not work in containers

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      When doing re-attach/auto-attach of cached files for which the lock has been lost, PCC looks them up with kern_path.  However, kern_path is subject to namespaces, so if the user process is containerized, it will use the container namespace.

      This means PCC must be mounted in the container namespace, which is not desirable.

      Instead we can do a lookup with lookup_one_len, starting from the PCC root, which is in the true root file system and not subject to the container namespace.  It is correct to ignore the container namespace because PCC is file system caching functionality, and because the user can't control the PCC path, so it's not a potential security concern.

      Attachments

        Issue Links

          Activity

            [LU-15170] PCC cache re-attach does not work in containers
            pjones Peter Jones added a comment -

            Landed for 2.15

            pjones Peter Jones added a comment - Landed for 2.15

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45436/
            Subject: LU-15170 llite: Switch pcc to lookup_one_len
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: f3be560031cc7022a22f4c661f94ac7aa6f617f1

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45436/ Subject: LU-15170 llite: Switch pcc to lookup_one_len Project: fs/lustre-release Branch: master Current Patch Set: Commit: f3be560031cc7022a22f4c661f94ac7aa6f617f1

            "Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45436
            Subject: LU-15170 llite: Switch pcc to lookup_one_len
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 96c90859e14f3960b57eae54b3886aeef62f6f40

            gerrit Gerrit Updater added a comment - "Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45436 Subject: LU-15170 llite: Switch pcc to lookup_one_len Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 96c90859e14f3960b57eae54b3886aeef62f6f40

            People

              paf0186 Patrick Farrell
              paf0186 Patrick Farrell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: