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

mount doesn't return an error when failing

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.10.1, Lustre 2.11.0
    • Lustre 2.10.0
    • None
    • Lustre: Build Version: 2.10.0_5_gbb3c407
    • 3
    • 9223372036854775807

    Description

      When mount -t lustre ... has failed to actually mount a target, the exit code of mount does not reflect this:

      # mount -t lustre zfs_pool_scsi0QEMU_QEMU_HARDDISK_disk13/MGS /mnt/MGS
      e2label: No such file or directory while trying to open zfs_pool_scsi0QEMU_QEMU_HARDDISK_disk13/MGS
      Couldn't find valid filesystem superblock.
      # echo $?
      0
      

      This of course wreaks havoc on systems such as IML which rely on the exit code of one step in the process of starting a filesystem to decide if it should continue with subsequent steps.

      Attachments

        Issue Links

          Activity

            [LU-9799] mount doesn't return an error when failing
            bhoagland Brad Hoagland (Inactive) made changes -
            Link Original: This issue is related to JFC-21 [ JFC-21 ]
            pjones Peter Jones made changes -
            Labels Original: LTS

            John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/28581/
            Subject: LU-9799 mount: Call read_ldd with initialized mount type
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set:
            Commit: f869b9da902fc305bfab8e902d0c1202aec6a7bc

            gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/28581/ Subject: LU-9799 mount: Call read_ldd with initialized mount type Project: fs/lustre-release Branch: b2_10 Current Patch Set: Commit: f869b9da902fc305bfab8e902d0c1202aec6a7bc
            bhoagland Brad Hoagland (Inactive) made changes -
            Link New: This issue is related to JFC-21 [ JFC-21 ]
            mdiep Minh Diep made changes -
            Fix Version/s New: Lustre 2.10.1 [ 13090 ]

            Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/28581
            Subject: LU-9799 mount: Call read_ldd with initialized mount type
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set: 1
            Commit: 776cae93b762e819cf80eed04d57bfc4040f09f0

            gerrit Gerrit Updater added a comment - Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/28581 Subject: LU-9799 mount: Call read_ldd with initialized mount type Project: fs/lustre-release Branch: b2_10 Current Patch Set: 1 Commit: 776cae93b762e819cf80eed04d57bfc4040f09f0
            pjones Peter Jones made changes -
            Fix Version/s New: Lustre 2.11.0 [ 13091 ]
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            pjones Peter Jones added a comment -

            Landed for 2.11

            pjones Peter Jones added a comment - Landed for 2.11

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/28456/
            Subject: LU-9799 mount: Call read_ldd with initialized mount type
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 0108281c65545df169faaa0ce0690fb021680643

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/28456/ Subject: LU-9799 mount: Call read_ldd with initialized mount type Project: fs/lustre-release Branch: master Current Patch Set: Commit: 0108281c65545df169faaa0ce0690fb021680643
            utopiabound Nathaniel Clark made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]

            People

              utopiabound Nathaniel Clark
              brian Brian Murrell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: