Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1899

OS facts incomplete when lsb_release is missing on Ubuntu

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Platform OS
    • Sprint:
      Platform OS Kanban
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Previously Facter would incorrectly report OS facts (os.name, os.release, etc) on Ubuntu systems without the lsb_release executable. OS facts now get resolved without relying on lsb_release.
    • QA Risk Assessment:
      Needs Assessment

      Description

      If an Ubuntu target system does not contain the lsb_release executable the OS facts for a 16.04 machine will be reported as Debain stretch/sid (from /etc/debian_release). The base Ubuntu {16,18}.04 docker images do not ship with the lsb_release executable but contain the relevant details in /etc/os-release

      root@10ac92eea320:/puppetlabs_c/facter/debug# ./bin/facter os
       {
        architecture => "amd64",
        family => "Debian",
        hardware => "x86_64",
        name => "Debian",
        release => {
          full => "stretch/sid",
          major => "stretch/sid"
        },
        selinux => {
          enabled => false
        }
      }
      

      root@10ac92eea320:/puppetlabs_c/facter/debug# cat /etc/os-release
      NAME="Ubuntu"
      VERSION="16.04.4 LTS (Xenial Xerus)"
      ID=ubuntu
      ID_LIKE=debian
      PRETTY_NAME="Ubuntu 16.04.4 LTS"
      VERSION_ID="16.04"
      HOME_URL="http://www.ubuntu.com/"
      SUPPORT_URL="http://help.ubuntu.com/"
      BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
      VERSION_CODENAME=xenial
      UBUNTU_CODENAME=xenial
      

        Attachments

          Activity

            People

            Assignee:
            cas.donoghue Cas Donoghue
            Reporter:
            cas.donoghue Cas Donoghue
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support