Thanks Gang
I saw your wiki (which is very useful btw) - I followed all the steps and have since removed and reinstalled several times¡K
I also did it on a whole new box with the same error.
The cern guys don't see it either though - bamboozling..
Wahid
On 12 Mar 2014, at 11:24, Gang Qin <[log in to unmask]> wrote:
> Hi, Wahid:
>
> I have tested the DPM puppet module and have created a twiki at https://www.scotgrid.ac.uk/wiki/index.php/Dpm_setup_with_puppt_module_grid_pool_accounts.
>
> In general it works fine and I didn't see the problem you encounter, maybe you can remove that module and then reinstall it? Or start a clean re-installation?
>
> Cheers,Gang
> ________________________________________
> From: GRIDPP2: Deployment and support of SRM and local storage management [[log in to unmask]] On Behalf Of Wahid Bhimji [[log in to unmask]]
> Sent: 12 March 2014 11:22
> To: [log in to unmask]
> Subject: puppet: could not find class fetchcrl
>
> Hi
>
> Not sure who is using the DPM puppet modules. But I have a problem . There is a massive chain below but basically
>
>>> [root@gridpp09 ~]# puppet apply headnodeMar14.pp --verbose
> [¡K]
>>> Error: Could not find class fetchcrl for gridpp09.ecdf.ed.ac.uk<http://ecdf.ed.ac.uk/> on node gridpp09.ecdf.ed.ac.uk<http://ecdf.ed.ac.uk/>
>
> turns out the CERNOps-fetchcrl isn't installed properly .
> [root@srm ~]# puppet module install CERNOps-fetchcrl
> Notice: Preparing to install into /etc/puppet/modules ...
> Notice: Downloading from https://forge.puppetlabs.com<https://forge.puppetlabs.com/> ...
> Notice: Installing -- do not interrupt ...
> Error: No such file or directory - /etc/puppet/modules/fetchcrl/spec/fixtures/modules/fetchcrl/manifests
> Error: Try 'puppet help module install' for usage
>
> I can repeat this on 2 different machines (SL5 and SL6 - and one of them hasn't had any other puppet stuff on it).
>
> However the DPM developers can't reproduce - it works for them and they are also getting the module from puppetforge not internal CERN.
>
> Anyone else seen this ? (probably I'm missing some simple config step but I can't see it¡K)
>
> Wahid
>
>
>
> Begin forwarded message:
>
> From: Andrea Manzi <[log in to unmask]<mailto:[log in to unmask]>>
> Subject: Re: puppet: could not find class fetchcrl
> Date: 12 March 2014 10:36:07 GMT
> To: "[log in to unmask]<mailto:[log in to unmask]>" <[log in to unmask]<mailto:[log in to unmask]>>
> Cc: Martin Philipp Hellmich <[log in to unmask]<mailto:[log in to unmask]>>
>
> Hi Wahid,
> do you have the problem only on that module or also in others?
> i¡¦m trying to find other SL machines outside cern to make more tests. At the moment on SL5 outside cern i cannot reproduce it but i would like to test also SL6
>
> cheers
> Andrea
>
>
> On 12 Mar 2014, at 10:28, Wahid Bhimji <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> Indeed I get the same error on the other (SL5) machine¡K
>
> [root@srm ~]# rpm -qa | grep puppet
> puppet-3.4.3-1.el5.noarch
> puppetlabs-release-5-10.noarch
> puppetlabs-release-5-7.noarch
> [root@srm ~]# emacs -nw /etc/puppet/puppet.conf
> [added the pluginsync line]
> [root@srm ~]# puppet module install CERNOps-fetchcrl
> Notice: Preparing to install into /etc/puppet/modules ...
> Notice: Downloading from https://forge.puppetlabs.com<https://forge.puppetlabs.com/> ...
> Notice: Installing -- do not interrupt ...
> Error: No such file or directory - /etc/puppet/modules/fetchcrl/spec/fixtures/modules/fetchcrl/manifests
> Error: Try 'puppet help module install' for usage
>
> is there a step I am missing ? (this machine should have no existing puppet stuff at all).
>
> Wahid
>
> On 11 Mar 2014, at 20:08, Andrea Manzi <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> mmmm , i forgot about priorities on sl repos.!
>
> by removing them i could install also puppet 3 on SL5 ..
>
> so it seems that i made a lot of noise for nothing:-)
>
> for the original issue let me know if you have the same problem on SL5.
>
> cheers
> Andrea
>
>
> On 11 Mar 2014, at 20:27, Wahid Bhimji <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> Hello
>
> So actually the problem I saw originally was on SL6.
>
> I haven't managed to try it on the other (SL5) box yet. Though I did manage to install puppet 3 in the end (ruby was in the puppetdeps so worked when I disabled priorities).
> I will also try to try some things tomorrow.
> Wahid
>
> On 11 Mar 2014, at 17:45, Andrea Manzi <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> sorry but i think i was not right¡K
> it seems that at least one of the module we are using ( the fetchcrl thing) does not work with 2.7.x puppet on SL5 .
>
> i will check better this problem tomorrow
>
> sorry for this trouble,.
> Andrea
>
>
>
>
>
> On 11 Mar 2014, at 17:56, [log in to unmask]<mailto:[log in to unmask]> wrote:
>
> Hi Wahid,
> yes you are right the latest puppet version ( actually all versions 3.x) cannot be installed on SL5 cause the missing ruby 1.8.7 dep.
>
> Therefore i have tested the installation trough epel of the version 2.7.25 and i had no issues so far
>
> ( i remember that we suggested to use the 3.x repo from puppetlabs cause puppet 2.7 was not still in epel , and we needed it to use the puppet module command, so now that it's on epel we can also decide to use directly it..)
>
> i have upgraded the installation instruction at:
>
> https://svnweb.cern.ch/trac/lcgdm/wiki/Dpm/Admin/InstallationConfigurationPuppetSimple#Installingpuppet
>
> In order to check your original issue i have done the test on a SL5 not at CERN .
>
> [root@lfc ~]# puppet module install CERNOps-fetchcrl
> Preparing to install into /etc/puppet/modules ...
> Downloading from http://forge.puppetlabs.com<http://forge.puppetlabs.com/> ...
> Installing -- do not interrupt ...
> /etc/puppet/modules
> ¢|¢w¢w CERNOps-fetchcrl (v0.1.0)
> [root@lfc ~]# puppet module uninstall CERNOps-fetchcrl
> Preparing to uninstall 'CERNOps-fetchcrl' ...
> Removed 'CERNOps-fetchcrl' (v0.1.0) from /etc/puppet/modules
>
> so the problem is not related to be or not at CERN. I will continue to investigate
> thanks!
> Andrea
>
>
>
>
> On 03/11/2014 03:39 PM, Wahid Bhimji wrote:
> Is it possible that you are getting it from CERN wheras there is something wrong with the puppetlabs version ?
>
> I tried installing on a different box. But hit a problem there even before I started as its SL5 box and for some reason the puppet from puppetlab repo won't find these deps.
> Error: Missing Dependency: virt-what is needed by package 1:facter-1.7.5-1.el5.x86_64 (puppetlabs-products)
> Error: Missing Dependency: ruby >= 1.8.7 is needed by package puppet-3.4.3-1.el5.noarch (puppetlabs-products)
> They don't seem to be in epel - I thought they were in the OS - anyway I will poke that again a bit later¡K
>
> Wahid
>
> On 11 Mar 2014, at 13:42, "[log in to unmask]<mailto:[log in to unmask]>" <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> Hi Wahid
> ( i put in copy also Martin )
>
> this is what i ran on my VM without issues
>
> [root@tsukumurru1 ~]# puppet module uninstall CERNOps-fetchcrl
> Notice: Preparing to uninstall 'CERNOps-fetchcrl' ...
> Error: Could not uninstall module 'CERNOps-fetchcrl'
> Other installed modules have dependencies on 'CERNOps-fetchcrl' (v0.1.0)
> 'lcgdm/lcgdm' (v0.1.0) requires 'CERNOps-fetchcrl' (>= 0.0.0)
> 'lcgdm/xrootd' (v0.1.0) requires 'CERNOps-fetchcrl' (>= 0.0.0)
> Use `puppet module uninstall --force` to uninstall this module anyway
> [root@tsukumurru1 ~]# puppet module uninstall CERNOps-fetchcrl --force
> Notice: Preparing to uninstall 'CERNOps-fetchcrl' ...
> Removed 'CERNOps-fetchcrl' (v0.1.0) from /etc/puppet/modules
>
>
> what it's really strange is that you have removed the folder with the module manually and you still have this issue:
>
>
> [root@gridpp09 ~]# puppet module install CERNOps-fetchcrl
> Notice: Preparing to install into /etc/puppet/modules ...
> Notice: Downloading from https://forge.puppetlabs.com<https://forge.puppetlabs.com/> ...
> Notice: Installing -- do not interrupt ...
> Error: No such file or directory - /etc/puppet/modules/fetchcrl/spec/fixtures/modules/fetchcrl/templates
> Error: Try 'puppet help module install' for usage
>
>
> this problem usually appears when the puppet modules is not correctly packaged..but this means that it should happen to everyone..
>
>
> i don't have any other ideas at the moment, i will continue to check and let you know if i find something
>
> cheers
> Andrea
>
>
>
>
>
>
> On 03/11/2014 12:27 PM, Wahid Bhimji wrote:
> Hi
>
> Sorry for not replying before .
> can you check if the /etc/puppet/modules/fetchcrl/manifests/init.pp is there or not? if this is missing i think there was a problem on the download of the module.
>
> It is not there:
> [root@gridpp09 ~]# ls /etc/puppet/modules/fetchcrl/manifests/init.pp
> ls: cannot access /etc/puppet/modules/fetchcrl/manifests/init.pp: No such file or directory
>
> but it says the module is there
> [root@gridpp09 ~]# puppet module list
> /etc/puppet/modules
> ¢u¢w¢w CERNOps-fetchcrl (v0.1.0)
>
> I tried doing an uninstall and reinstall but it is getting in a mess ! and I am not sure what to do ??
> Below is what I tried - thanks for any help
>
> Wahid
>
> [root@gridpp09 ~]# puppet module uninstall CERNOps-fetchcrl
> Notice: Preparing to uninstall 'CERNOps-fetchcrl' ...
> Error: Could not uninstall module 'CERNOps-fetchcrl' (v0.1.0)
> Installed module has had changes made locally
> Use `puppet module uninstall --force` to uninstall this module anyway
> [root@gridpp09 ~]# puppet module uninstall --force CERNOps-fetchcrl
> Notice: Preparing to uninstall 'CERNOps-fetchcrl' ...
> Removed 'CERNOps-fetchcrl' (v0.1.0) from /etc/puppet/modules
> [root@gridpp09 ~]# puppet module install CERNOps-fetchcrl
> Notice: Preparing to install into /etc/puppet/modules ...
> Notice: Downloading from https://forge.puppetlabs.com<https://forge.puppetlabs.com/> ...
> Notice: Installing -- do not interrupt ...
> Error: No such file or directory - /etc/puppet/modules/fetchcrl/spec/fixtures/modules/fetchcrl/templates
> Error: Try 'puppet help module install' for usage
> [root@gridpp09 ~]# puppet module install CERNOps-fetchcrl
> Notice: Preparing to install into /etc/puppet/modules ...
> Error: Could not install module 'CERNOps-fetchcrl' (best)
> Module 'CERNOps-fetchcrl' (v0.1.0) is already installed
> Installed module has had changes made locally
> Use `puppet module upgrade` to install a different version
> Use `puppet module install --force` to re-install only this module
> [root@gridpp09 ~]# puppet module install --force CERNOps-fetchcrl
> Notice: Preparing to install into /etc/puppet/modules ...
> Notice: Downloading from https://forge.puppetlabs.com<https://forge.puppetlabs.com/> ...
> Notice: Installing -- do not interrupt ...
> Error: No such file or directory - /etc/puppet/modules/fetchcrl/spec/fixtures/modules/fetchcrl/templates
> Error: Try 'puppet help module install' for usage
> [root@gridpp09 ~]# mkdir /etc/puppet/modules/fetchcrl/spec/fixtures/modules/fetchcrl/templates
> mkdir: cannot create directory `/etc/puppet/modules/fetchcrl/spec/fixtures/modules/fetchcrl/templates': File exists
> [root@gridpp09 ~]# rm -rf /etc/puppet/modules/fetchcrl
> [root@gridpp09 ~]# puppet module install CERNOps-fetchcrl
> Notice: Preparing to install into /etc/puppet/modules ...
> Notice: Downloading from https://forge.puppetlabs.com<https://forge.puppetlabs.com/> ...
> Notice: Installing -- do not interrupt ...
> Error: No such file or directory - /etc/puppet/modules/fetchcrl/spec/fixtures/modules/fetchcrl/templates
> Error: Try 'puppet help module install' for usage
>
> SIGH !
>
> On 7 Mar 2014, at 17:08, Andrea Manzi <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> so i was checking it with Martin , there are 2 strange things from your strace;
>
> this file:
>
> stat("/etc/puppet/modules/fetchcrl/manifests/init.pp", 0x7fff063b9250) = -1 ENOENT (No such file or director
>
> should exist ( cause is part of the CERNOps module)
>
> and this one
>
> lstat("/etc/puppet/modules/lcgdm/manifests/fetchcrl.pp", 0x7fff063bbf80) = -1 ENOENT (No such file or directory)
>
> was part of an old version of the lcgdm module that was then replaced by the usage od the CERNOps module.
>
> can you check if the /etc/puppet/modules/fetchcrl/manifests/init.pp is there or not? if this is missing i think there was a problem on the download of the module.
>
> thanks
> cheers
> Andrea
>
>
>
>
> On 07 Mar 2014, at 17:14, Wahid Bhimji <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> I did
> gem install hiera hiera-puppet
> following Martins response to someone else
> but I think it was there anyway with puppet and made no difference.
>
> Wahid
>
> On 7 Mar 2014, at 15:45, "[log in to unmask]<mailto:[log in to unmask]>" <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> which hiera package have you installed?
> cause the warning
>
> Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
>
>
> can be ignored
>
>
> On 03/07/2014 04:28 PM, Wahid Bhimji wrote:
> OK _ yeah mysql is already installed so I just commented that out.
> I think I have some old package or something getting in the way somewhere (or something not installed - I did install heira - is that warning relevant - I saw somewhere else that the fetchcrl uses hiera
>
>
> Wahid
>
> On 7 Mar 2014, at 15:17, Andrea Manzi <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> mmmmm
> i tried to apply your manifest ( ¡Xnoop option just to see if i have the same error)
>
> and i had to uncomment
>
> #
> # MySQL server setup - disable if it is not local
> #
> #class{"mysql::server":
> # service_enabled => true,
> # root_password => "${mysql_root_pass}"
> #}
>
>
> ( i guess if you want the server to be local you will needed it anyway)
>
> but then everything ran fine ( i have the same version of modules as you)
>
> i will check also with Martin to see if we miss something.
>
>
>
> On 07 Mar 2014, at 15:52, Wahid Bhimji <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
> Sorry yeah I did have that module but in all the removing and reinstalling I didn't get it back again. Anyway adding it doesn't change my error.
>
> Attached the headnodeMar14.pp
>
> thanks
>
> wahid
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
> On 7 Mar 2014, at 14:43, Andrea Manzi <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>
>> Hi Wahid,
>> could you please share also your manifest file headnodeMar14.pp?
>> what is different from my installation ( where i cannot reproduce the problem) is that you miss the dmlite puppet module, that should be installed as well. But i would expect another error in this case.
>>
>> cheers
>> Andrea
>>
>>
>>
>> On 07 Mar 2014, at 15:31, Wahid Bhimji <[log in to unmask]<mailto:[log in to unmask]>> wrote:
>>
>>> Hi
>>>
>>> I'm trying to apply a puppet configuration . I think I've followed the instructions but I get
>>>
>>> Error: Could not find class fetchcrl for gridpp09.ecdf.ed.ac.uk<http://ecdf.ed.ac.uk/> on node gridpp09.ecdf.ed.ac.uk<http://ecdf.ed.ac.uk/>
>>>
>>> It might be that I have some old puppet configuration lying around but I removed everything under
>>> /etc/puppet/modules/ and /usr/share/puppet/modules
>>>
>>> from strace it seems like it is trying to find some files that don't exist,
>>> stat("/etc/puppet/modules/fetchcrl/manifests/init.pp", 0x7fff063b9250) = -1 ENOENT (No such file or directory)
>>> lstat("/etc/puppet/modules/lcgdm/manifests/fetchcrl.pp", 0x7fff063bbf80) = -1 ENOENT (No such file or directory)
>>>
>>> The full message (and some version numbers) is below.
>>> Anyway I bashed by head for a while now so I thought I might as well just ask..
>>>
>>> Wahid
>>>
>>> [root@gridpp09 ~]# puppet apply headnodeMar14.pp --verbose
>>> Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb
>>> Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
>>> Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
>>> Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
>>> Info: Loading facts in /etc/puppet/modules/firewall/lib/facter/iptables_persistent_version.rb
>>> Info: Loading facts in /etc/puppet/modules/firewall/lib/facter/iptables_version.rb
>>> Info: Loading facts in /etc/puppet/modules/firewall/lib/facter/ip6tables_version.rb
>>> Info: Loading facts in /etc/puppet/modules/voms/lib/facter/virtualorgs.rb
>>> Info: Loading facts in /etc/puppet/modules/fetchcrl/lib/facter/trustedcas.rb
>>> Info: Loading facts in /etc/puppet/modules/fetchcrl/lib/facter/certissuer.rb
>>> Failed to load ZFS module stack.
>>> Load the module manually by running 'insmod <location>/zfs.ko' as root.
>>> Failed to load ZFS module stack.
>>> Load the module manually by running 'insmod <location>/zfs.ko' as root.
>>> Failed to load ZFS module stack.
>>> Load the module manually by running 'insmod <location>/zfs.ko' as root.
>>> Failed to load ZFS module stack.
>>> Load the module manually by running 'insmod <location>/zfs.ko' as root.
>>> Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
>>> Error: Could not find class fetchcrl for gridpp09.ecdf.ed.ac.uk<http://ecdf.ed.ac.uk/> on node gridpp09.ecdf.ed.ac.uk<http://ecdf.ed.ac.uk/>
>>> Error: Could not find class fetchcrl for gridpp09.ecdf.ed.ac.uk<http://ecdf.ed.ac.uk/> on node gridpp09.ecdf.ed.ac.uk<http://ecdf.ed.ac.uk/>
>>>
>>>
>>> [root@gridpp09 ~]# puppet module list
>>> /etc/puppet/modules
>>> ¢u¢w¢w CERNOps-fetchcrl (v0.1.0)
>>> ¢u¢w¢w lcgdm-gridftp (v0.0.2)
>>> ¢u¢w¢w lcgdm-lcgdm (v0.1.0)
>>> ¢u¢w¢w lcgdm-voms (v0.1.1)
>>> ¢u¢w¢w lcgdm-xrootd (v0.1.0)
>>> ¢u¢w¢w puppetlabs-firewall (v1.0.2)
>>> ¢u¢w¢w puppetlabs-mysql (v2.2.3)
>>> ¢|¢w¢w puppetlabs-stdlib (v4.1.0)
>>> /usr/share/puppet/modules (no modules installed)
>>> [root@gridpp09 ~]# rpm -qa | grep puppet
>>> puppet-3.4.3-1.el6.noarch
>>> puppetlabs-release-6-10.noarch
>>
>
> <headnodeMar14.pp>
>
>
>
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
>
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
>
>
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
|