Bug 906856

Summary: facter should restart puppet on upgrade if it is running
Product: [Fedora] Fedora EPEL Reporter: Orion Poplawski <orion>
Component: facterAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: fedora, jose.p.oliveira.oss, mastahnke, rrati, tmz, vanmeeuwen+fedora, yury
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 806370 Environment:
Last Closed: 2013-03-19 13:16:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 806370    
Bug Blocks:    

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 ***