sgnl05 / sgnl05-sssd

Puppet module for SSSD
https://forge.puppet.com/sgnl05/sssd
GNU General Public License v3.0
17 stars 76 forks source link

2.2.0 version no longer works on Ubuntu #57

Closed tomnowak closed 6 years ago

tomnowak commented 6 years ago

Hi, The latest version 2.2.0 works again on Oracle Linux :) but is broken on Ubuntu now:(

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, osfamily Debian's os.release.major is <14.04> and must be 7 or 8 for Debian and 14 or 16 for Ubuntu.

ghoneycutt commented 6 years ago

Thanks for letting us know! Could you please post the output of facter.

tomnowak commented 6 years ago

Ubuntu 14.04

# facter facterversion os ruby
facterversion => 3.6.7
os => {
  architecture => "amd64",
  distro => {
    codename => "trusty",
    description => "Ubuntu 14.04.5 LTS",
    id => "Ubuntu",
    release => {
      full => "14.04",
      major => "14.04"
    }
  },
  family => "Debian",
  hardware => "x86_64",
  name => "Ubuntu",
  release => {
    full => "14.04",
    major => "14.04"
  },
  selinux => {
    enabled => false
  }
}
ruby => {
  platform => "x86_64-linux",
  sitedir => "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
  version => "2.1.9"
}

Ubuntu 16.04
facterversion => 3.6.7
os => {
  architecture => "amd64",
  distro => {
    codename => "xenial",
    description => "Ubuntu 16.04.3 LTS",
    id => "Ubuntu",
    release => {
      full => "16.04",
      major => "16.04"
    }
  },
  family => "Debian",
  hardware => "x86_64",
  name => "Ubuntu",
  release => {
    full => "16.04",
    major => "16.04"
  },
  selinux => {
    enabled => false
  }
}
ruby => {
  platform => "x86_64-linux",
  sitedir => "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
  version => "2.1.9"
}
ghoneycutt commented 6 years ago

I think that's a bug in facter. It is showing os.release.major as 14.04 instead of 14. I'll dig into this more.

ghoneycutt commented 6 years ago

@tomnowak Could you try facter v3.9.3 and see if os.release.major still returns 14.04 ?

ghoneycutt commented 6 years ago

Created https://tickets.puppetlabs.com/browse/FACT-1794

tomnowak commented 6 years ago

I think that always was like this on Ubuntu:

https://puppet.com/docs/facter/3.9/core_facts.html#operatingsystemmajrelease Caveats: Linux: for Ubuntu, the major release is X.Y (e.g. “10.4”).

ghoneycutt commented 6 years ago

Ugh, that sucks. So if you run 16.10 instead of using the same data as 16.04, it would fail.

ghoneycutt commented 6 years ago

@tomnowak could you post the full output of facter, minus any identifiable info like IP and MAC.

tomnowak commented 6 years ago

Attached are outputs of facter from native and aio puppet versions on Ubuntu 16.04

xenial-aio-facter_3.6.8.txt xenial-native-facter_2.4.6.txt

ghoneycutt commented 6 years ago

Fix released in 2.2.1