Issue #17493 has been updated by Josh Cooper.

Josh Cooper wrote:
> Hi Derek, the behavior you're seeing is due to how facter loads facts based 
> on the LOAD_PATH: <http://projects.puppetlabs.com/issues/6955#note-8>

In 1.6.x, if I have the facter source installed in `~/work/facter` and my 
current working directory is `~/work`, then I get:

<pre>
$ facter
Error loading fact ./facter/spec/puppetlabs_spec_helper.rb no such file to load 
-- puppetlabs_spec/files
Error loading fact ./facter/spec/spec_helper.rb no such file to load -- 
puppetlabs_spec_helper
Error: undefined method `watch' for #<Object:0x108738288 
@operatingsystem="Darwin">
</pre>

In 1.7.x, '.' is removed from facter's LOAD_PATH, so the error above doesn't 
happen.
----------------------------------------
Bug #17493: facter exits on openstack nodes (exception not caught, just bails)
https://projects.puppetlabs.com/issues/17493#change-76169

Author: Michael Stahnke
Status: Merged - Pending Release
Priority: High
Assignee: Michael Stahnke
Category: interface
Target version: 
Keywords: openstack ec2 facter
Branch: https://github.com/puppetlabs/facter/pull/351
Affected Facter version: 1.6.14


In tracking <https://bugzilla.redhat.com/show_bug.cgi?id=871211>from the Fedora 
project we found issues from an OpenStack dev at Red Hat. 
<https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13392/facter-1.6.14-1.el6>
 has more comments as well. 

Apparently a change between 1.6.6 and 1.6.14 causes issues with openstack and 
facter.  

Causes problems with puppet runs on openstack compute nodes, it looks like the 
ec2_* facts fail because of openstack ip rules, which in turn cause puppet 
apply to fail 

    [root@instance ]$ rpm -q facter facter-1.6.14-1.el6.x86_64 
    [root@instance ]$ facter Error: 404 Not Found
    [root@instance ]$

more Info from Red Hat in next update.


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