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

Fix Lustre build against installed ZFS/SPL DKMS packages

Details

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

    Description

      The current method to build against DKMS installs of ZFS and SPL
      assumes directories like this:

         /var/lib/dkms/spl/${VERSION}/build
         /var/lib/dkms/zfs/${VERSION}/build
      

      Unfortunately, that "build" directory was really just a temporary
      step in the DKMS build process. Older versions of DKMS forgot to
      clean up that directory, but in RHEL7 at least, DKMS no longer
      leaves that around.

      Instead we need to look in these places for source code:

        /var/lib/dkms/spl/${VERSION}/source
        /var/lib/dkms/zfs/${VERSION}/source
      

      and in these places for the per-kernel object info:

        /var/lib/dkms/spl/${VERSION}/${LINUXRELEASE}/${target_cpu}
        /var/lib/dkms/zfs/${VERSION}/${LINUXRELEASE}/${target_cpu}
      

      The changes in this patch update the Lustre build system to
      look in those corrected directories for DKMS builds of SPL
      and ZFS.

      Attachments

        Issue Links

          Activity

            [LU-7534] Fix Lustre build against installed ZFS/SPL DKMS packages
            utopiabound Nathaniel Clark made changes -
            Fix Version/s New: Lustre 2.8.0 [ 11113 ]
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            utopiabound Nathaniel Clark made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            pjones Peter Jones made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Nathaniel Clark [ utopiabound ]
            jfc John Fuchs-Chesney (Inactive) made changes -
            Labels Original: llnl New: llnl patch
            morrone Christopher Morrone (Inactive) made changes -
            Description Original: The current method to build against DKMS installs of ZFS and SPL
            assumes directories like this:

            {noformat}
               /var/lib/dkms/spl/${VERSION}/build
               /var/lib/dkms/zfs/${VERSION}/build
            {noformat}

            Unfortunately, that "build" directory was really just a temporary
            step in the DKMS build process. Older versions of DKMS forgot to
            clean up that directory, but in RHEL7 at least, DKMS no longer
            leaves that around.

            Instead we need to look in these places for source code:

            {noformat}
              /var/lib/dkms/spl/${VERSION}/source
              /var/lib/dkms/zfs/${VERSION}/source
            {noformat}

            and in these places for the per-kernel object info:

            {noformat}
              /var/lib/dkms/spl/${VERSION}/${LINUXRELEASE}/${target_cpu}
              /var/lib/dkms/zfs/${VERSION}/${LINUXRELEASE}/${target_cpu}
            {noformat}

            The changes in this patch update the Lustre build system to
            look in those corrected directories for DKMS builds of SPL
            and ZFS.
            New: The current method to build against DKMS installs of ZFS and SPL
            assumes directories like this:

            {noformat}
               /var/lib/dkms/spl/${VERSION}/build
               /var/lib/dkms/zfs/${VERSION}/build
            {noformat}

            Unfortunately, that "build" directory was really just a temporary
            step in the DKMS build process. Older versions of DKMS forgot to
            clean up that directory, but in RHEL7 at least, DKMS no longer
            leaves that around.

            Instead we need to look in these places for source code:

            {noformat}
              /var/lib/dkms/spl/${VERSION}/source
              /var/lib/dkms/zfs/${VERSION}/source
            {noformat}

            and in these places for the per-kernel object info:

            {noformat}
              /var/lib/dkms/spl/${VERSION}/${LINUXRELEASE}/${target_cpu}
              /var/lib/dkms/zfs/${VERSION}/${LINUXRELEASE}/${target_cpu}
            {noformat}

            The changes in this patch update the Lustre build system to
            look in those corrected directories for DKMS builds of SPL
            and ZFS.
            morrone Christopher Morrone (Inactive) made changes -
            Description Original: The current method to build against DKMS installs of ZFS and SPL
            assumes directories like this:
                
               /var/lib/dkms/spl/${VERSION}/build
               /var/lib/dkms/zfs/${VERSION}/build
                
            Unfortunately, that "build" directory was really just a temporary
            step in the DKMS build process. Older versions of DKMS forgot to
            clean up that directory, but in RHEL7 at least, DKMS no longer
            leaves that around.

            Instead we need to look in these places for source code:

              /var/lib/dkms/spl/${VERSION}/source
              /var/lib/dkms/zfs/${VERSION}/source

            and in these places for the per-kernel object info:
                
              /var/lib/dkms/spl/${VERSION}/${LINUXRELEASE}/${target_cpu}
              /var/lib/dkms/zfs/${VERSION}/${LINUXRELEASE}/${target_cpu}

            The changes in this patch update the Lustre build system to
            look in those corrected directories for DKMS builds of SPL
            and ZFS.
            New: The current method to build against DKMS installs of ZFS and SPL
            assumes directories like this:

            {noformat}
               /var/lib/dkms/spl/${VERSION}/build
               /var/lib/dkms/zfs/${VERSION}/build
            {noformat}

            Unfortunately, that "build" directory was really just a temporary
            step in the DKMS build process. Older versions of DKMS forgot to
            clean up that directory, but in RHEL7 at least, DKMS no longer
            leaves that around.

            Instead we need to look in these places for source code:

            {noformat}
              /var/lib/dkms/spl/${VERSION}/source
              /var/lib/dkms/zfs/${VERSION}/source
            {noformat}

            and in these places for the per-kernel object info:

            {noformat}
              /var/lib/dkms/spl/${VERSION}/${LINUXRELEASE}/${target_cpu}
              /var/lib/dkms/zfs/${VERSION}/${LINUXRELEASE}/${target_cpu}
            {noformat}

            The changes in this patch update the Lustre build system to
            look in those corrected directories for DKMS builds of SPL
            and ZFS.
            morrone Christopher Morrone (Inactive) made changes -
            Labels New: llnl
            morrone Christopher Morrone (Inactive) made changes -
            Link New: This issue is related to LU-3953 [ LU-3953 ]
            morrone Christopher Morrone (Inactive) created issue -

            People

              utopiabound Nathaniel Clark
              morrone Christopher Morrone (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: