Bug #12504

operatingsystemrelease doesn't work for Ubuntu LTS 12.04

Added by Ken Barber 3 months ago. Updated about 11 hours ago.

Status:Investigating Start date:02/08/2012
Priority:Normal Due date:
Assignee:Hailee Kenney % Done:

0%

Category:library
Target version:1.6.x
Keywords: Affected Facter version:1.6.5
Branch:
Votes: 1

Description

As mentioned in #11658, /etc/issue seems to have changed so now operatingsystemrelease doesn’t seem to work any more on Ubuntu LTS 12.04.

We’ll need to confirm the details, but it looks like this is real.


Related issues

related to Facter - Bug #11658: Noticed operatingsystemrelease isn't trying to use lsbdis... Accepted 12/31/2011

History

Updated by William Van Hevelingen 3 months ago

root@spectre:~# cat /etc/issue
Ubuntu precise (development branch) \n \l

root@spectre:~# facter operatingsystemrelease
3.2.0-15-generic

Updated by William Van Hevelingen 3 months ago

It fails because facter is looking for a number and doesn’t handle the string (development branch). This won’t be an issue with the final release of Ubuntu 12.04

if release =~ /Ubuntu (\d+.\d+)/

Updated by Hailee Kenney 6 days ago

  • Assignee set to Hailee Kenney

Updated by Hailee Kenney 5 days ago

Reproduced this with the development version of precise.

Updated by Hailee Kenney 5 days ago

On the release version of precise:

puppet@ubuntu-12-04: /etc/apt$ facter operatingsystemrelease 
12.04 

Do we really need to fix this since it’s fine on the release version?

Updated by Daniel Pittman about 11 hours ago

It would be good to fix, but the priority isn’t very high.

Also available in: Atom PDF