User Tools

Site Tools


Sidebar

progetti:cloud-areapd:best_practices:ganglia_puppet_solution

Solution to Ganglia-Puppet installation problem

  • Problem: when trying to enable jhoblitt/ganglia modules on cld-ganglia, the following error was reported:
     cld-foreman puppet-master[10066]: Module ganglia is not supported on operatingsystemmajrelease  at
     /etc/puppet/environments/production/modules/ganglia/manifests/params.pp:51 on node cld-ganglia.cloud.pd.infn.it
  • Solution:
    • old version of facter package was causing the message:
            [root@cld-foreman ~]# facter operatingsystemmajrelease
            6
            [root@cld-foreman ~]# facter --version
            1.7.3
            [root@cld-foreman ~]# yum list facter
            [...]
            Installed Packages
            facter.x86_64                                      1:1.7.3-1.el6                                      @puppetlabs-products
            Available Packages
            facter.noarch                                      1.6.7-1.el6                                        puppetlabs-products 
            facter.x86_64                                      1:1.7.4-1.el6                                      puppetlabs-products 
       
            [root@cld-ganglia ~]# facter operatingsystemmajrelease
            [root@cld-ganglia ~]# facter --version
            1.6.18     
            [root@cld-ganglia ~]# yum list facter
            [...]
            Installed Packages
            facter.x86_64                            1.6.18-3.el6                             @Extra Packages for Enterprise Linux/6.1
  • install missing puppetlabs repositories - through the puppetlabs-release package:
        [root@cld-ganglia ~]# rpm -ivh https://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm
     
  • update facter package and run the puppet-agent, when the process finished check that ganglia-* packages were installed:
        [root@cld-ganglia ~]# yum update facter
         [...]
         Updated:
         facter.x86_64 1:1.7.4-1.el6                                                                                             
     
         Complete!
         [root@cld-ganglia ~]# facter operatingsystemmajrelease
         6
         [root@cld-ganglia ~]# puppet agent -tv
         notice: Ignoring --listen on onetime run
         notice: Run of Puppet configuration client already in progress; skipping
     
     
         [root@cld-foreman ~]# less /var/log/messages
         Jan 24 12:17:03 cld-foreman puppet-master[8965]: Compiled catalog for cld-nagios.cloud.pd.infn.it in environment production in 3.30 seconds
     
         [root@cld-ganglia ~]# rpm -qa |grep ganglia
         ganglia-gmetad-3.1.7-6.el6.x86_64
         ganglia-web-3.1.7-6.el6.x86_64
         ganglia-3.1.7-6.el6.x86_64
         ganglia-gmond-3.1.7-6.el6.x86_64
     
progetti/cloud-areapd/best_practices/ganglia_puppet_solution.txt · Last modified: 2014/01/25 00:11 by aiftim@infn.it