Jira (FACT-1496) Facter fails to detect more recent openSUSE versions

2 views
Skip to first unread message

Robert Munteanu (JIRA)

unread,
Aug 27, 2016, 4:18:03 PM8/27/16
to puppe...@googlegroups.com
Robert Munteanu created an issue
 
Facter / Bug FACT-1496
Facter fails to detect more recent openSUSE versions
Issue Type: Bug Bug
Affects Versions: FACT 2.4.5
Assignee: Unassigned
Components: CLI
Created: 2016/08/27 1:17 PM
Priority: Normal Normal
Reporter: Robert Munteanu

More recent openSUSE versions ( not sure about SLE ) have removed the /etc/SuSE-release file. In fact, as of openSUSE 13.2 that file contained a warning

  1. /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead

Right now on openSUSE Tumbleweed ( and I would assume on the upcoming openSUSE Leap 42.1 and SLE 12 ) getting the operatingsystem fact returns an empty string.

The solution that I've found is to patch /lib/facter/operatingsystem/linux.rb to check if lsbdistid == "openSUSE" and the set the operatingsystem fact accordingly.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Robert Munteanu (JIRA)

unread,
Aug 27, 2016, 4:22:03 PM8/27/16
to puppe...@googlegroups.com
Robert Munteanu updated an issue
Change By: Robert Munteanu
Affects Version/s: FACT 2.4.5
Affects Version/s: FACT 2.4.6

Robert Munteanu (JIRA)

unread,
Aug 27, 2016, 5:00:06 PM8/27/16
to puppe...@googlegroups.com
Robert Munteanu updated an issue
More recent openSUSE versions ( not sure about SLE ) have removed the /etc/SuSE-release file. In fact, as of openSUSE 13.2 that file contained a warning

{noformat}# /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead{noformat}

Right now on openSUSE Tumbleweed ( and I would assume on the upcoming openSUSE Leap 42.
1 2  and SLE 12 ) getting the operatingsystem fact returns an empty string.


The solution that I've found is to patch /lib/facter/operatingsystem/linux.rb to check if {{lsbdistid == "openSUSE"}} and the set the operatingsystem fact accordingly.

Robert Munteanu (JIRA)

unread,
Aug 27, 2016, 5:00:13 PM8/27/16
to puppe...@googlegroups.com
Robert Munteanu updated an issue
More recent openSUSE versions ( not sure about SLE ) have removed the /etc/SuSE-release file. In fact, as of openSUSE 13.2 that file contained a warning

{ quote noformat }# /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead{ quote noformat }

Right now on openSUSE Tumbleweed ( and I would assume on the upcoming openSUSE Leap 42.1 and SLE 12 ) getting the operatingsystem fact returns an empty string.


The solution that I've found is to patch /lib/facter/operatingsystem/linux.rb to check if {{lsbdistid == "openSUSE"}} and the set the operatingsystem fact accordingly.

Michael Smith (JIRA)

unread,
Feb 7, 2017, 2:52:02 PM2/7/17
to puppe...@googlegroups.com
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Michael Smith (JIRA)

unread,
Feb 7, 2017, 2:52:02 PM2/7/17
to puppe...@googlegroups.com

Michael Smith (JIRA)

unread,
Feb 7, 2017, 2:52:03 PM2/7/17
to puppe...@googlegroups.com
Michael Smith updated an issue
Change By: Michael Smith
Labels: maintenance  puppethack

Branan Riley (JIRA)

unread,
May 30, 2017, 10:42:02 AM5/30/17
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: help_wanted maintenance puppethack

Branan Riley (JIRA)

unread,
Mar 21, 2018, 6:40:02 PM3/21/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: help_wanted linux maintenance puppethack suse
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Branan Riley (JIRA)

unread,
Mar 21, 2018, 6:40:03 PM3/21/18
to puppe...@googlegroups.com
Branan Riley commented on Bug FACT-1496
 
Re: Facter fails to detect more recent openSUSE versions

I think I've seen one or two other OS detection issues that would be resolved by us using the os-release file. That's probably worth extracting into a single ticket that we can block these bugs against (including this one)

Branan Riley (JIRA)

unread,
Mar 21, 2018, 6:41:02 PM3/21/18
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Mar 21, 2018, 7:23:04 PM3/21/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: help_wanted linux maintenance puppethack suse triaged

Josh Cooper (Jira)

unread,
Apr 21, 2022, 2:24:02 PM4/21/22
to puppe...@googlegroups.com
Josh Cooper commented on Bug FACT-1496
 
Re: Facter fails to detect more recent openSUSE versions

We don't have plans on adding support for this, but if anyone would like to submit a PR to Facter 4, you'd want to update this file https://github.com/puppetlabs/facter/blob/88a4f07aca392d438792c329994c462de0c7746b/lib/facter/resolvers/suse_release.rb#L20 and the related tests. For now I'm going to close the ticket, but feel free to reopen if you'd like to submit a PR

This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages