Jira (FACT-3114) operatingsystemrelease/operatingsystemmajrelease missing on Arch Linux

14 views
Skip to first unread message

Tim Meusel (Jira)

unread,
Apr 21, 2022, 9:56:04 AM4/21/22
to puppe...@googlegroups.com
Tim Meusel created an issue
 
Facter / Bug FACT-3114
operatingsystemrelease/operatingsystemmajrelease missing on Arch Linux
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2022/04/21 6:55 AM
Priority: Normal Normal
Reporter: Tim Meusel

Hi,
the legacy facts operatingsystemrelease/operatingsystemmajrelease are missing on Arch Linux:

[root@foo ~]# /root/.local/share/gem/ruby/3.0.0/bin/facter --show-legacy os
{
  architecture => "x86_64",
  distro => {
    codename => "n/a",
    description => "Arch Linux",
    id => "Arch",
    release => {
      full => "rolling",
      major => "rolling",
      minor => null
    },
    specification => "n/a"
  },
  family => "Archlinux",
  hardware => "x86_64",
  name => "Archlinux",
  release => {
    full => null,
    major => null
  },
  selinux => {
    enabled => false
  }
}
[root@foo ~]# /root/.local/share/gem/ruby/3.0.0/bin/facter --show-legacy operatingsystem
Archlinux
[root@foo ~]# /root/.local/share/gem/ruby/3.0.0/bin/facter --show-legacy operatingsystemrelease
 
[root@foo ~]# /root/.local/share/gem/ruby/3.0.0/bin/facter --show-legacy operatingsystemmajrelease
 
[root@foo ~]# /root/.local/share/gem/ruby/3.0.0/bin/facter --version
4.2.9
[root@foo ~]#

[root@bastelfreak-nb ~]# facter --show-legacy operatingsystem
Archlinux
[root@bastelfreak-nb ~]# facter --show-legacy operatingsystemrelease
5.16.18-hardened1-1-hardened
[root@bastelfreak-nb ~]# facter --show-legacy operatingsystemmajrelease
5
[root@bastelfreak-nb ~]# facter --version
3.14.22
[root@bastelfreak-nb ~]#

Is that a bug or are those legacy facts not implemented because this is arch linux/this is rolling release? This causes some issues in https://github.com/voxpupuli/puppet-openvpn/pull/432

some more references:

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Josh Cooper (Jira)

unread,
Apr 21, 2022, 1:53:02 PM4/21/22
to puppe...@googlegroups.com
Josh Cooper commented on Bug FACT-3114
 
Re: operatingsystemrelease/operatingsystemmajrelease missing on Arch Linux

facter 4 doesn't have any arch specific resolvers. It just knows that there's an osfamily called Archlinux and uses "generic" resolvers to find the distro information. We'd welcome PRs for Archlinux specific resolvers though.

Josh Cooper (Jira)

unread,
Apr 21, 2022, 1:54:02 PM4/21/22
to puppe...@googlegroups.com

Tim Meusel (Jira)

unread,
Apr 22, 2022, 9:09:02 AM4/22/22
to puppe...@googlegroups.com
Tim Meusel commented on Bug FACT-3114
 
Re: operatingsystemrelease/operatingsystemmajrelease missing on Arch Linux

josh I'm not sure if I can bring up a PR, but I can give it a try. The question is, which value do we want? In facter 3, the major kernel version was used as OS version:

$ facter facterversion os
facterversion => 3.14.22
os => {
  architecture => "x86_64",
  distro => {
    codename => "n/a",
    description => "Arch Linux",
    id => "Arch",
    release => {
      full => "rolling",
      major => "rolling"
    },
    specification => "n/a"
  },
  family => "Archlinux",
  hardware => "x86_64",
  name => "Archlinux",
  release => {
    full => "5.16.18-hardened1-1-hardened",
    major => "5",
    minor => "16"
  },
  selinux => {
    enabled => false
  }
}

Is that desired for facter 4 as well, or should it be `rolling`, like the LSB facts report it? I vote for the first option, otherwise a lot of puppet code would break I guess.

Tim Meusel (Jira)

unread,
Apr 22, 2022, 10:31:02 AM4/22/22
to puppe...@googlegroups.com

Nirupama Mantha (Jira)

unread,
Apr 26, 2022, 4:48:01 PM4/26/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jan 9, 2023, 12:55:01 PM1/9/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Labels: regression
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Josh Cooper (Jira)

unread,
Jan 9, 2023, 3:02:02 PM1/9/23
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages