Jira (FACT-2732) OracleLinux 7 and Scientific Linux 7 OS facts incorrect in Facter 4.0.30

20 views
Skip to first unread message

Ciaran McCrisken (Jira)

unread,
Jul 29, 2020, 12:53:03 PM7/29/20
to puppe...@googlegroups.com
Ciaran McCrisken created an issue
 
Facter / Bug FACT-2732
OracleLinux 7 and Scientific Linux 7 OS facts incorrect in Facter 4.0.30
Issue Type: Bug Bug
Affects Versions: FACT 4.0.30
Assignee: Unassigned
Components: Facter 4
Created: 2020/07/29 9:52 AM
Environment:

OS(s): OracleLinux 7, Scientific Linux 7
Puppet Agent Version: 7.0.0

Priority: Normal Normal
Reporter: Ciaran McCrisken

The OS facts being reported for OracleLinux and Scientific Linux 7 look a bit suspect and are causing issues in the puppetlabs/puppetlabs-apache, as it queries the OS Family fact to determine compatibility

OracleLinux 7

When using *Puppet 7 *(with Facter 4.0.30), we’re reporting the os facts as:

os => {
  architecture => "x86_64",
  family => "Ol",
  hardware => "x86_64",
  name => "Oracle",
  release => {
    full => "7.2",
    major => "7.2"
  },

However, on Puppet 6 (with Facter 3.14.12), these are the facts:

os => {
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "OracleLinux",
  release => {
    full => "7.2",
    major => "7",
    minor => "2"
  },

Scientific Linux 7

Puppet 7:

os => {
  architecture => "x86_64",
  family => "Rhel centos fedora",
  hardware => "x86_64",
  name => "Scientific",
  release => {
    full => "7.2",
    major => "7.2"
  },
  selinux => {
    enabled => false
  }
}

Puppet 6:

os => {
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "Scientific",
  release => {
    full => "7.2",
    major => "7",
    minor => "2"
  },
  selinux => {
    enabled => false
  }
}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Ciaran McCrisken (Jira)

unread,
Jul 29, 2020, 12:53:04 PM7/29/20
to puppe...@googlegroups.com
Ciaran McCrisken updated an issue
Change By: Ciaran McCrisken
The OS facts being reported for OracleLinux and Scientific Linux 7 look a bit suspect and are causing issues in the puppetlabs/puppetlabs-apache, as it queries the OS Family fact to determine compatibility

h3. *OracleLinux 7*

When using *Puppet 7 *(with Facter 4.0.30), we’re reporting the os facts as:
{code}
os => {
  architecture => "x86_64",
  family => "Ol",
  hardware => "x86_64",
  name => "Oracle",
  release => {
    full => "7.2",
    major => "7.2"
  },
{code}

However, on *Puppet 6* (with Facter 3.14.12), these are the facts:
{code}

os => {
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "OracleLinux",
  release => {
    full => "7.2",
    major => "7",
    minor => "2"
  },
{code}

h3. *Scientific Linux 7*

*Puppet 7:*
{code}

os => {
  architecture => "x86_64",
  family => "Rhel centos fedora",
  hardware => "x86_64",
  name => "Scientific",
  release => {
    full => "7.2",
    major => "7.2"
  },
  selinux => {
    enabled => false
  }
}
{code}

*Puppet 6:*
{code}

os => {
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "Scientific",
  release => {
    full => "7.2",
    major => "7",
    minor => "2"
  },
  selinux => {
    enabled => false
  }
}
{code}

Ciaran McCrisken (Jira)

unread,
Jul 29, 2020, 12:55:03 PM7/29/20
to puppe...@googlegroups.com
Ciaran McCrisken updated an issue
Change By: Ciaran McCrisken
Environment: *OS(s):* OracleLinux 7, Scientific Linux 7
*Puppet Agent Version:* 7.0.0

*Facter Version:* 4.0.30

Oana Tanasoiu (Jira)

unread,
Jul 29, 2020, 4:49:03 PM7/29/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Jul 30, 2020, 2:39:04 AM7/30/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Jul 30, 2020, 2:45:03 AM7/30/20
to puppe...@googlegroups.com
Bogdan Irimie commented on Bug FACT-2732
 
Re: OracleLinux 7 and Scientific Linux 7 OS facts incorrect in Facter 4.0.30

Maybe we should add Oracle Linux to the os_hierarchy.json

Bogdan Irimie (Jira)

unread,
Aug 5, 2020, 9:16:03 AM8/5/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Aug 5, 2020, 9:19:03 AM8/5/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Aug 6, 2020, 1:47:02 AM8/6/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Aug 6, 2020, 4:03:03 AM8/6/20
to puppe...@googlegroups.com
 
Re: OracleLinux 7 and Scientific Linux 7 OS facts incorrect in Facter 4.0.30

After adding Oracle Linux to os hierarchy.

[root@stable-fluid facter]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="7.2"
ID="ol"
VERSION_ID="7.2"
PRETTY_NAME="Oracle Linux Server 7.2"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:2:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
 
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.2
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.2
[root@stable-fluid facter]# bundle exec facter os facterversion
facterversion => 4.0.33
os => {
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "OracleLinux",
  release => {
    full => "7.2",
    major => "7",
    minor => "2"
  },
  selinux => {
    config_mode => "enforcing",
    config_policy => "targeted",
    current_mode => "enforcing",
    enabled => true,
    enforced => true,
    policy_version => "28"
  }
}

Bogdan Irimie (Jira)

unread,
Aug 6, 2020, 4:22:03 AM8/6/20
to puppe...@googlegroups.com

After adding Scientific Linux to os hierarchy

[root@illegal-bargain facter]# cat /etc/os-release
NAME="Scientific Linux"
VERSION="7.2 (Nitrogen)"
ID="scientific"
ID_LIKE="rhel centos fedora"
VERSION_ID="7.2"
PRETTY_NAME="Scientific Linux 7.2 (Nitrogen)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:scientificlinux:scientificlinux:7.2:GA"
HOME_URL="http://www.scientificlinux.org//"
BUG_REPORT_URL="mailto:scientific-...@listserv.fnal.gov"
 
REDHAT_BUGZILLA_PRODUCT="Scientific Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Scientific Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
 
 
[root@illegal-bargain facter]# bundle exec facter facterversion os
facterversion => 4.0.33
os => {
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "Scientific",
  release => {
    full => "7.2",
    major => "7",
    minor => "2"
  },
  selinux => {
    enabled => false
  }
}
 
 
[root@illegal-bargain facter]# facter facterversion os
facterversion => 3.14.12
os => {
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "Scientific",
  release => {
    full => "7.2",
    major => "7",
    minor => "2"
  },
  selinux => {
    enabled => false
  }
}

Bogdan Irimie (Jira)

unread,
Aug 6, 2020, 7:30:02 AM8/6/20
to puppe...@googlegroups.com

Ciaran McCrisken the fix should be available in the next nightly build of puppet-agent-next. Please let me know if the issue is fixed and everything works as expected.

Reply all
Reply to author
Forward
0 new messages