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

lfs migrate on non-existing file returns exit code 0

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • Lustre 2.14.0
    • Lustre 2.14.0, Lustre 2.12.5
    • None
    • 3
    • 9223372036854775807

    Description

      Since merge of LU-11510, lfs migrate on a non-existing file will give the following error "lfs migrate: can't create composite layout from file /some/path/to/file" and will exit with code 0, potentially leaving a calling script unaware of the error.

       

      The non-existing file is caught earlier than before by the call to llapi_layout_get_by_path() in lfs_setstripe_internal(), which does not return error code.

      However, it sets errno in case of failure, but this is not used by the caller, which gets out without setting the exit code.

      Attachments

        Activity

          [LU-13683] lfs migrate on non-existing file returns exit code 0

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/40709/
          Subject: LU-13683 lfs: return -ENOENT when invoked on non-existing file
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set:
          Commit: 80e9ebc1b1e44069f058d0ee81f0fd871b8f8748

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/40709/ Subject: LU-13683 lfs: return -ENOENT when invoked on non-existing file Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 80e9ebc1b1e44069f058d0ee81f0fd871b8f8748
          pjones Peter Jones added a comment -

          We take a conservative approach on what we land for the LTS releases to limit the amount of risk/change that goes into each release. This means that just because something could be included that it necessarily will.

          pjones Peter Jones added a comment - We take a conservative approach on what we land for the LTS releases to limit the amount of risk/change that goes into each release. This means that just because something could be included that it necessarily will.
          ofaaland Olaf Faaland added a comment -

          Peter,
          Do you know why the b2_12 backport of this patch, https://review.whamcloud.com/#/c/40709/ , hasn't landed? It's passed review and testing, it seems.
          thanks,

          ofaaland Olaf Faaland added a comment - Peter, Do you know why the b2_12 backport of this patch, https://review.whamcloud.com/#/c/40709/ , hasn't landed? It's passed review and testing, it seems. thanks,
          pjones Peter Jones added a comment -

          Landed for 2.14

          pjones Peter Jones added a comment - Landed for 2.14

          Sebastien Piechurski (sebastien.piechurski@atos.net) uploaded a new patch: https://review.whamcloud.com/40709
          Subject: LU-13683 lfs: return -ENOENT when invoked on non-existing file
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set: 1
          Commit: 3011a34558e3b1510790b862e31c852c5c2b09f8

          gerrit Gerrit Updater added a comment - Sebastien Piechurski (sebastien.piechurski@atos.net) uploaded a new patch: https://review.whamcloud.com/40709 Subject: LU-13683 lfs: return -ENOENT when invoked on non-existing file Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 3011a34558e3b1510790b862e31c852c5c2b09f8

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38953/
          Subject: LU-13683 lfs: return -ENOENT when invoked on non-existing file
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 52d7cb5913c1e653a89d3a4de5f39c0e596dd28c

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38953/ Subject: LU-13683 lfs: return -ENOENT when invoked on non-existing file Project: fs/lustre-release Branch: master Current Patch Set: Commit: 52d7cb5913c1e653a89d3a4de5f39c0e596dd28c

          Sebastien Piechurski (sebastien.piechurski@atos.net) uploaded a new patch: https://review.whamcloud.com/38953
          Subject: LU-13683 lfs: return -ENOENT when invoked on non-existing file
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: ff0cef46b957a865002c3548477427e2969714a8

          gerrit Gerrit Updater added a comment - Sebastien Piechurski (sebastien.piechurski@atos.net) uploaded a new patch: https://review.whamcloud.com/38953 Subject: LU-13683 lfs: return -ENOENT when invoked on non-existing file Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: ff0cef46b957a865002c3548477427e2969714a8

          People

            spiechurski Sebastien Piechurski
            spiechurski Sebastien Piechurski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: