Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59566

Automatically label Scientific Linux agents

    Details

    • Similar Issues:

      Description

      Automatically label Scientific Linux agents with an easy to read label that includes the architecture, operating system name, and operating system version. Include a sample /etc/os-release file in the test suite and include the output of lsb_release -a in the test suite so that others can confirm the label operates as expected without installing their own copy of Scientific Linux.

      Refer to pull request 98 for an example of the files to modify.

      Refer to generate_lsb_release_output.sh. and generate_os_release_output.sh for instructions to create the data files used to test operating system version reporting. Refer to the Scientific Linux docker image on hub.docker.com.

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          Thanks Mark Hayen for taking this one! Let me know if you have questions or encounter surprises.

          Show
          markewaite Mark Waite added a comment - Thanks Mark Hayen for taking this one! Let me know if you have questions or encounter surprises.
          Hide
          mhayen Mark Hayen added a comment -

          Hi Mark

          Getting the hang of it slowly but surely.

          One question though, the Scientific Linux version 6.10 doesn't seem to have a /etc/os-release file.

          How to proceed? Just not include the os-release test file?

           

          Mark

           

          Show
          mhayen Mark Hayen added a comment - Hi Mark Getting the hang of it slowly but surely. One question though, the Scientific Linux version 6.10 doesn't seem to have a /etc/os-release file. How to proceed? Just not include the os-release test file?   Mark  
          Hide
          markewaite Mark Waite added a comment -

          Interesting. If it has an lsb_relase command available, I'd use that as the first point of reference. If the lsb_release command is not available or is commonly not installed, is there another file or command which can identify Scientific Linux?

          Show
          markewaite Mark Waite added a comment - Interesting. If it has an lsb_relase command available, I'd use that as the first point of reference. If the lsb_release command is not available or is commonly not installed, is there another file or command which can identify Scientific Linux?
          Hide
          mhayen Mark Hayen added a comment -

          It does have the lsb_release command available

          Show
          mhayen Mark Hayen added a comment - It does have the lsb_release command available
          Hide
          markewaite Mark Waite added a comment -

          That's good. Capture the lsb_release output since that is the first preference for the labels that are assigned. If there is an alternate file or alternate output ( like uname -a ) that can be reliably used to detect Scientific Linux, you could consider adding that as a general check in the code. I've generally preferred to keep the checks simple (lsb_release first, /etc/os-release second, uname output, etc.)

          Show
          markewaite Mark Waite added a comment - That's good. Capture the lsb_release output since that is the first preference for the labels that are assigned. If there is an alternate file or alternate output ( like uname -a ) that can be reliably used to detect Scientific Linux, you could consider adding that as a general check in the code. I've generally preferred to keep the checks simple (lsb_release first, /etc/os-release second, uname output, etc.)
          Hide
          mhayen Mark Hayen added a comment -

          Hi,

          I created a pull-request https://github.com/jenkinsci/platformlabeler-plugin/pull/101

          Looking forward to hear your remarks and opinion on using redhat-release file

          Mark

          Show
          mhayen Mark Hayen added a comment - Hi, I created a pull-request https://github.com/jenkinsci/platformlabeler-plugin/pull/101 Looking forward to hear your remarks and opinion on using redhat-release file Mark
          Hide
          mhayen Mark Hayen added a comment -

          Mark,

          I've updated my pullrequest

           

          Mark

          Show
          mhayen Mark Hayen added a comment - Mark, I've updated my pullrequest   Mark
          Hide
          markewaite Mark Waite added a comment -

          Included in platformlabeler release 3.5 Oct 7, 2019

          Show
          markewaite Mark Waite added a comment - Included in platformlabeler release 3.5 Oct 7, 2019

            People

            • Assignee:
              mhayen Mark Hayen
              Reporter:
              markewaite Mark Waite
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: