Issue #6635 has been updated by Ben Hughes.

Ah yes, sorry about that version. I was just blindly going with what YUM 
pointed me at for puppet.

I tried with 2.6.2 I just rebuilt from spec file.

<pre>
[root@centosvz ~]# uptime
 15:54:01 up 0 min,  1 user,  load average: 0.19, 0.05, 0.01
[root@centosvz ~]# ls -l /tmp/
total 8
-rw-r--r-- 1 root root 21 Mar 10 15:53 ifstatementworks
-rw-r--r-- 1 root root  9 Mar 10 15:53 virt
[root@centosvz ~]# puppet --version
2.6.2
[root@centosvz ~]# facter --version
1.5.8
[root@centosvz ~]# rpm -qa | grep -E "puppet|facter"
facter-1.5.8-1.el5
puppet-2.6.2-1
</pre>

Same dice I'm afraid!

Please let me know how how it goes.

Also, if you're still seeing such huge memory consumption, please give us a 
shout. Thanks.
----------------------------------------
Bug #6635: Facter 1.5.8 seems to not work properly when triggered by the puppet 
daemon but works fine when used with puppetd -t
https://projects.puppetlabs.com/issues/6635

Author: Thomas Guthmann
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: facter virtual set daemon
Branch: 


Hi,

Since we upgraded to facter 1.5.8 we had a weird behaviour with puppet. It 
seems that in our case $virtual is not set properly (due to environment 
variables not set ?). For instance the following logic works fine if we execute 
puppetd -t from a shell on a 'openvzve' node however in the background we can 
see in the logs of this node that puppet is trying to install ntp and ipmi but 
it should not. So it seems that $virtual is not set because it does not enter 
any of the other $virtual conditions. 

Notes: 
- Facter 1.5.7 works fine and does not have this issue. We rollback to this 
version to have the correct behaviour again. (homebrew RPM)
- Facter 1.5.8 was a RPM from RPMFORGE 
(http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/facter-1.5.8-1.el5.rf.noarch.rpm)
- Puppet 2.6.2 (homebrew RPM)
- Centos 5.5 i386

Code:
    ###################
    # If it is a VE   #
    ###################
    if ( $virtual == "openvzve" ) {
        # do something 
    }
    ###########################################################
    # else is either a real HW, a virtuozzo HW node or VMwar  #
    ###########################################################
    else {
        # All real hardware/Virtuozzo HW node/VMware
        include ntp  

        ###################
        # if it is VMware #
        ###################
        if ( $virtual == "vmware" ) {
            include vmware
        }
        ############################
        # else it is real hardware #
        ############################
        else {
            # physical only aka real HW or Virtuozzo HW node
            include ipmi

            # If the hardware is DELL install openmange
            if ( $manufacturer == "Dell Inc." ) {
                include openmanage
            }
            # If this is a VZ hardware node
            if ( $virtual == "openvzhn" ) {
                include virtuozzo
            }
        }
    }



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