Upgrade Foreman 1.3 to 1.4-- now Puppet fails with 'Failed to load feature test for libuser'

Hi All,

I am running Scientific Linux 6.5:

Today I updated Foreman from 1.3 to 1.4 following the directions at
http://www.theforeman.org/manuals/1.4/index.html#3.6Upgrade . I also ran
yum update -y and rebooted the server. Overall, the upgrade was very
simple.

The new software levels are:

RELEASE: Scientific Linux release 6.5 (Carbon)
FOREMAN: 1.4.2
RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
PUPPET: 3.5.1

Now puppet on my Foreman host fails for many commands. I can't tell if
this problem is related to the Foreman upgrade, but I'm hoping that someone
else here is familiar with this problem or can point me in the correct
direction.

Here are two example failures.

[root@host ~]# puppet resource group puppet
Failed to load feature test for libuser: uninitialized constant
Puppet::FileSystem::File
group { 'puppet':
ensure => 'present',
gid => '52',
}

[root@host ~]#

[root@host ~]# puppet agent --test
Failed to load feature test for libuser: uninitialized constant
Puppet::FileSystem::File
Error: /File[/etc/puppet]: Could not evaluate: uninitialized constant
Puppet::FileSystem::File
Error: /File[/var/lib/puppet]: Could not evaluate: uninitialized constant
Puppet::FileSystem::File
Notice: /File[/var/lib/puppet/facts.d]: Dependency File[/var/lib/puppet]
has failures: true



Warning: /File[/var/lib/puppet/state/last_run_summary.yaml]: Skipping
because of failed dependencies
Error: Could not prepare for execution: Got 4 failure(s) while
initializing: File[/var/log/puppet]: uninitialized constant
Puppet::FileSystem::File; File[/var/lib/puppet]: uninitialized constant
Puppet::FileSystem::File; File[/etc/puppet]: uninitialized constant
Puppet::FileSystem::File; File[/var/run/puppet]: uninitialized constant
Puppet::FileSystem::File
[root@host ~]#

Any ideas?

Thank you,

-= Stefan

This seems to be more of a Puppet error instead of a foreman error.

I worked around this problem by downgrading from Puppet 3.5 to 3.5, using
this command:

yum downgrade puppet-server-3.4.3-1.el6 puppet-3.4.3-1.el6

I believe that I ran into the following Puppet bug:

https://tickets.puppetlabs.com/browse/PUP-1603

-= Stefan

··· On Monday, April 21, 2014 4:34:01 PM UTC-7, Stefan Lasiewski wrote: > > Hi All, > > I am running Scientific Linux 6.5: > > Today I updated Foreman from 1.3 to 1.4 following the directions at > http://www.theforeman.org/manuals/1.4/index.html#3.6Upgrade . I also ran > `yum update -y` and rebooted the server. Overall, the upgrade was very > simple. > > The new software levels are: > > RELEASE: Scientific Linux release 6.5 (Carbon) > FOREMAN: 1.4.2 > RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] > PUPPET: 3.5.1 > > Now `puppet` on my Foreman host fails for many commands. I can't tell if > this problem is related to the Foreman upgrade, but I'm hoping that someone > else here is familiar with this problem or can point me in the correct > direction. > > Here are two example failures. > > [root@host ~]# puppet resource group puppet > Failed to load feature test for libuser: uninitialized constant > Puppet::FileSystem::File > group { 'puppet': > ensure => 'present', > gid => '52', > } > > [root@host ~]# > > [root@host ~]# puppet agent --test > Failed to load feature test for libuser: uninitialized constant > Puppet::FileSystem::File > Error: /File[/etc/puppet]: Could not evaluate: uninitialized constant > Puppet::FileSystem::File > Error: /File[/var/lib/puppet]: Could not evaluate: uninitialized constant > Puppet::FileSystem::File > Notice: /File[/var/lib/puppet/facts.d]: Dependency File[/var/lib/puppet] > has failures: true > ... > ... > ... > Warning: /File[/var/lib/puppet/state/last_run_summary.yaml]: Skipping > because of failed dependencies > Error: Could not prepare for execution: Got 4 failure(s) while > initializing: File[/var/log/puppet]: uninitialized constant > Puppet::FileSystem::File; File[/var/lib/puppet]: uninitialized constant > Puppet::FileSystem::File; File[/etc/puppet]: uninitialized constant > Puppet::FileSystem::File; File[/var/run/puppet]: uninitialized constant > Puppet::FileSystem::File > [root@host ~]# > > > > Any ideas? > > Thank you, > > -= Stefan >