Details

    • Technical task
    • Resolution: Done
    • Critical
    • Lustre 2.9.0
    • None
    • None
    • 9223372036854775807

    Description

      There are numerous oddities about Lustre's system for applying version numbers in the configuration and packaging system. At this point, it is looking strongly like an overhaul is in order.

      Attachments

        Issue Links

          Activity

            [LU-7699] Overhaul lustre's versioning

            Chris is everything for this ticket landed. Can it be closed?

            simmonsja James A Simmons added a comment - Chris is everything for this ticket landed. Can it be closed?

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19488/
            Subject: LU-7699 build: Convert version underscores to dashes for dpkg
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: f2d28899a2c3b5a427f4322623ba138887fe6adc

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19488/ Subject: LU-7699 build: Convert version underscores to dashes for dpkg Project: fs/lustre-release Branch: master Current Patch Set: Commit: f2d28899a2c3b5a427f4322623ba138887fe6adc

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18111/
            Subject: LU-7699 build: Convert lustre_ver.h.in into a static .h file
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 6e84dbce05959e854d886772841a5d6d0690eb65

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18111/ Subject: LU-7699 build: Convert lustre_ver.h.in into a static .h file Project: fs/lustre-release Branch: master Current Patch Set: Commit: 6e84dbce05959e854d886772841a5d6d0690eb65

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18108/
            Subject: LU-7699 build: Eliminate lustre_build_version.h
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 9c710162e5acebd860f1d3f0e1bf204ac1ba98c1

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18108/ Subject: LU-7699 build: Eliminate lustre_build_version.h Project: fs/lustre-release Branch: master Current Patch Set: Commit: 9c710162e5acebd860f1d3f0e1bf204ac1ba98c1

            Already mentioned this to Chris, but this may have broken SUSE builds on the Lustre Buildbot.

            I don't think so. I think that this is a problem in the buildbot configuration. I will open a github ticket shortly.

            morrone Christopher Morrone (Inactive) added a comment - Already mentioned this to Chris, but this may have broken SUSE builds on the Lustre Buildbot. I don't think so. I think that this is a problem in the buildbot configuration. I will open a github ticket shortly.

            Already mentioned this to Chris, but this may have broken SUSE builds on the Lustre Buildbot. The error I'm seeing on builds is "error: line 86: Empty tag: Release:". Example log is here.

            dinatale2 Giuseppe Di Natale (Inactive) added a comment - - edited Already mentioned this to Chris, but this may have broken SUSE builds on the Lustre Buildbot. The error I'm seeing on builds is "error: line 86: Empty tag: Release:". Example log is here .
            simmonsja James A Simmons added a comment - - edited

            Yeah more simplification. Debian platforms are back in business. Thanks Chris.

            simmonsja James A Simmons added a comment - - edited Yeah more simplification. Debian platforms are back in business. Thanks Chris.

            Christopher J. Morrone (morrone2@llnl.gov) uploaded a new patch: http://review.whamcloud.com/19488
            Subject: LU-7699 build: Convert version underscores to dashes for dpkg
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 368150054a379f1da81dce8b2e5016016f126655

            gerrit Gerrit Updater added a comment - Christopher J. Morrone (morrone2@llnl.gov) uploaded a new patch: http://review.whamcloud.com/19488 Subject: LU-7699 build: Convert version underscores to dashes for dpkg Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 368150054a379f1da81dce8b2e5016016f126655

            Thanks for the legwork on that, James!

            We don't even need sed any more; I'll just use tr.

            morrone Christopher Morrone (Inactive) added a comment - Thanks for the legwork on that, James! We don't even need sed any more; I'll just use tr.

            I tracked down what needs to be changed for make debs. We have:

            lversion=$$(sed -ne 's/^#define VERSION "(.*)"$$/\1/p' config.h);

            The sed command needs to be modified to change '_' to '-'. I'm no sed master so Chris what needs to be done to make that so.

            simmonsja James A Simmons added a comment - I tracked down what needs to be changed for make debs. We have: lversion=$$(sed -ne 's/^#define VERSION "(.*)"$$/\1/p' config.h); The sed command needs to be modified to change '_' to '-'. I'm no sed master so Chris what needs to be done to make that so.

            Also I found when you have a top level .git directory if you remove the LUSTRE-VERSION-FILE it will not regenerate and it causes make rpms to fail.

            Yeah, that is true. For now, you will just need to rerun autogen.sh to make any version changes. This could be automated in the future, but we pretty much need to fix autoreconf (LU-7700) to do it sanely.

            morrone Christopher Morrone (Inactive) added a comment - Also I found when you have a top level .git directory if you remove the LUSTRE-VERSION-FILE it will not regenerate and it causes make rpms to fail. Yeah, that is true. For now, you will just need to rerun autogen.sh to make any version changes. This could be automated in the future, but we pretty much need to fix autoreconf ( LU-7700 ) to do it sanely.

            People

              morrone Christopher Morrone (Inactive)
              morrone Christopher Morrone (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: