Issue #12879 has been updated by Ken Barber.

Category set to library
Status changed from Unreviewed to Investigating
Assignee set to Ken Barber

So I'm trying to understand this, as it doesn't _appear_ that the code is doing 
anything abnormal here, it feels like either a library loading issue or perhaps 
resident files (either from an old install or an alternative install). But 
alas, I need more information.

You say here:

> The problem is only occurring in daemon mode of puppet.

Now I found this pastie with a log of the issue:

<http://pastie.org/3451152>

In _that_ particular case the problem seems obvious, the agent has upgraded 
facter - the util class & the fact has changed, but because the util class 
doesn't automatically reload on its own, we are seeing a missing method. A 
reload of the puppet agent _should_ solve this.

Really in that kind of scenario - the agent needs to be reloaded. I would 
expect this to be the normal process for a facter _or_ puppet upgrade - ie. 
always restart the agent. Otherwise, libraries that have changed (like the EC2 
library) will still reflect the old revision in memory.

So my question is - have you tried restarting the agent? And does that 
alleviate the problem?
----------------------------------------
Bug #12879: undefined method `has_openstack_mac?' for Facter::Util::EC2:Module
https://projects.puppetlabs.com/issues/12879#change-56063

Author: Chip Schweiss
Status: Investigating
Priority: High
Assignee: Ken Barber
Category: library
Target version: 
Keywords: 
Branch: 
Affected Facter version: 1.6.6


This is on CentOS 6.2 w/ Puppet 2.6.14-1.el6 both from the Puppet yum 
repository.

The problem is only occurring in daemon mode of puppet.

This is in the syslog repeatedly:

<pre>
Feb 29 08:14:55 hostname puppet-agent[21815]: Could not run Puppet 
configuration client: Could not retrieve local facts: undefined method 
`has_openstack_mac?' for Facter::Util::EC2:Module
</pre>

I've checked on several systems and it appears to be a bug introduced in 
1.6.6-1.   The last successful run in the logs contains:

<pre>
Feb 28 14:55:18 hostname puppet-agent[21815]: 
(/Stage[puppet]/Facter/Package[facter]/ensure) ensure changed '1.6.5-1.el6' to 
'1.6.6-1.el6'
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to