Bug 806370

Summary: facter should restart puppet on upgrade if it is running
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: facterAssignee: Todd Zullinger <tmz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 17CC: fedora, 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:
: 906856 (view as bug list) Environment:
Last Closed: 2013-03-29 01:21:45 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:    
Bug Blocks: 906856    

Description Orion Poplawski 2012-03-23 15:05:52 UTC
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.

Comment 1 Todd Zullinger 2012-03-23 15:42:32 UTC
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.)

Comment 2 Todd Zullinger 2012-03-23 15:46:39 UTC
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.

Comment 3 Orion Poplawski 2012-03-28 15:19:25 UTC
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.

Comment 4 Orion Poplawski 2012-11-09 15:16:42 UTC
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 5 Fedora End Of Life 2013-01-17 00:39:27 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Orion Poplawski 2013-02-01 17:41:06 UTC
Still present.

Comment 7 Todd Zullinger 2013-03-19 13:16:36 UTC
*** Bug 906856 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2013-03-19 17:04:11 UTC
facter-1.6.18-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/facter-1.6.18-1.fc17

Comment 9 Fedora Update System 2013-03-19 17:05:00 UTC
facter-1.6.18-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/facter-1.6.18-1.fc18

Comment 10 Fedora Update System 2013-03-19 17:05:50 UTC
facter-1.6.18-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/facter-1.6.18-1.el6

Comment 11 Fedora Update System 2013-03-19 17:06:29 UTC
facter-1.6.18-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/facter-1.6.18-1.el5

Comment 12 Fedora Update System 2013-03-19 21:26:17 UTC
Package facter-1.6.18-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing facter-1.6.18-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-0708/facter-1.6.18-1.el6
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2013-03-29 01:21:47 UTC
facter-1.6.18-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2013-03-29 01:22:37 UTC
facter-1.6.18-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2013-04-03 14:26:26 UTC
facter-1.6.18-2.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/facter-1.6.18-2.el5

Comment 16 Fedora Update System 2013-04-03 14:27:13 UTC
facter-1.6.18-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/facter-1.6.18-2.el6

Comment 17 Fedora Update System 2013-04-03 23:23:55 UTC
facter-1.6.18-3.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/facter-1.6.18-3.el6

Comment 18 Fedora Update System 2013-04-03 23:25:25 UTC
facter-1.6.18-3.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/facter-1.6.18-3.el5

Comment 19 Fedora Update System 2013-04-19 17:01:16 UTC
facter-1.6.18-3.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2013-04-19 17:05:07 UTC
facter-1.6.18-3.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.