Bug 906856 - facter should restart puppet on upgrade if it is running
Summary: facter should restart puppet on upgrade if it is running
Keywords:
Status: CLOSED DUPLICATE of bug 806370
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: facter
Version: el6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jeroen van Meeuwen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 806370
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-01 17:41 UTC by Orion Poplawski
Modified: 2013-03-19 13:16 UTC (History)
7 users (show)

Fixed In Version:
Clone Of: 806370
Environment:
Last Closed: 2013-03-19 13:16:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2013-02-01 17:41:55 UTC
+++ This bug was initially created as a clone of Bug #806370 +++

Description of problem:

After updating to facter-1.6.6-1.fc16.x86_64, I started getting:

Mar 21 04:10:27 alfresco puppet-agent[1277]: Could not run Puppet configuration client: Could not retrieve local facts: undefined method `has_openstack_mac?' for Facter::Util::EC2:Module

I think facter should restart puppet-agent if it is running in %post.

--- Additional comment from Todd Zullinger on 2012-03-23 11:42:32 EDT ---

I hit this myself as well and added a notify in my puppet manifests.  I debated whether facter should have such a thing in a %post and didn't decide.  In all the times I've updated facter, this is the first time I've ever run into such a thing.

While in most cases a %post like:

service puppet condrestart &>/dev/null || :

probably wouldn't hurt, it might annoy some people to have their agents restart if they are in the middle of a run.  Which do you think is more likely to be a problem?  (I'm honestly not sure.)

--- Additional comment from Todd Zullinger on 2012-03-23 11:46:39 EDT ---

I didn't look in the upstream tracker to see if anyone reported this there.  It may really be a bug that facter changed this in a minor version bump and didn't provide any sort of fallback for compatibility.  If you happen to stumble across an upstream bug, let me know.

--- Additional comment from Orion Poplawski on 2012-03-28 11:19:25 EDT ---

Facter issue: http://projects.puppetlabs.com/issues/12879

I don't think a condrestart would be disruptive, at least, it shouldn't be :), so I would suggest it for now.   If puppet or facter is changed later to be able to handle these changes better later we can drop it.

--- Additional comment from Orion Poplawski on 2012-11-09 10:16:42 EST ---

Happened again with the facter 1.6.14 upgrade on EL6 and Fedora 17:

puppet-agent[21564]: Could not run Puppet configuration client: Could not retrieve local facts: undefined method `kernel_fact_value' for Facter::Util::Processor:Module

Comment 1 Todd Zullinger 2013-03-19 13:16:36 UTC
I'm closing this as a duplicate of the initial Fedora bug report.  This should be fixed in the 1.6.18 package I'm readying now.  Having just one BZ to note in the changelog will make my life easier and help bodhi do the right thing.

*** This bug has been marked as a duplicate of bug 806370 ***


Note You need to log in before you can comment on or make changes to this bug.