Puppet 3.0.0 error: Não foi possível criar recursos para gerenciar os arquivos e diretórios do Puppet nas seções [: main,: agent,: ssl]

1

Após a atualização de um nó para o Puppet 3.0.0 do repositório YUM do Puppet Labs, o nó que é atualizado gera um erro de munging:

[ashinn@dis1 ~]$ sudo puppet agent --test --trace
Error: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: Parameter path failed on File[/var/lib/puppet/state/graphs]: Munging failed for value "/var/lib/puppet/state/graphs" in class path: uninitialized constant Puppet::FileCollection
/usr/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/type/file.rb:62:in unsafe_munge'
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:209:inmunge'
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:252:in value='
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:414:in[]='
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1660:in set_name'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1647:ininitialize'
/usr/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/type/file.rb:434:in initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:290:innew'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:290:in to_ral'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:570:insend'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:570:in to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:551:ineach'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:551:in to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:475:into_ral'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:891:in use'
/usr/lib/ruby/1.8/sync.rb:230:insynchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:885:in use'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:450:insetup'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:344:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:438:inplugin_hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:344:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:500:inexit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:344:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:76:inexecute'
/usr/bin/puppet:10
Error: Could not prepare for execution: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: Parameter path failed on File[/var/lib/puppet/state/graphs]: Munging failed for value "/var/lib/puppet/state/graphs" in class path: uninitialized constant Puppet::FileCollection
Parameter path failed on File[/var/lib/puppet/state/graphs]: Munging failed for value "/var/lib/puppet/state/graphs" in class path: uninitialized constant Puppet::FileCollection
/usr/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/type/file.rb:62:in unsafe_munge'
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:209:inmunge'
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:252:in value='
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:414:in[]='
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1660:in set_name'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1647:ininitialize'
/usr/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/type/file.rb:434:in initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:290:innew'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:290:in to_ral'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:570:insend'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:570:in to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:551:ineach'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:551:in to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:475:into_ral'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:891:in use'
/usr/lib/ruby/1.8/sync.rb:230:insynchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:885:in use'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:450:insetup'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:344:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:438:inplugin_hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:344:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:500:inexit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:344:in run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:76:inexecute'
/usr/bin/puppet:10

Percebi que o arquivo relatado (neste erro /var/lib/puppet/state/graphs ) muda toda vez que eu tento. Parece ser sempre um arquivo aleatório em / var / lib / puppet. Alguma ideia do que pode estar acontecendo aqui?

    
por Andy Shinn 01.10.2012 / 21:20

1 resposta

3

Parece que você está pegando uma gema de 2.7.19 ao lado do RPM - o 'sudo gem list' mostra uma gema de fantoche instalada?

A causa principal disso é um recurso no qual os fantoches agora são compatíveis com o carregamento de extensões de gemas, consulte link

    
por 02.10.2012 / 00:38

Tags