[Comm] puppet

Anton Gorlov stalker на altlinux.ru
Вт Июл 1 16:05:27 MSK 2014


All -у нас кто-нибудь  puppet использует?

на свежей клиентской установке (не мастер ноде, а именно клиенте) получаю

err: Could not create resources for managing Puppet's files and
directories in sections [:main, :agent, :ssl]: undefined method
`exists?' for nil:NilClass


При запуске с дебагом вот что пишет (все нужные директории при этом
есть, как и права):


[root на corsair tmp]# puppet agent --no-daemonize  --onetime --test --trace
/usr/lib/ruby/rubygems/custom_require.rb:36:in `require': iconv will be
deprecated in the future, use String#encode instead.
/usr/lib/ruby/site_ruby/puppet/type/user.rb:355:in `exists?'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:451:in
`service_user_available?'
/usr/lib/ruby/site_ruby/puppet/util/settings/file_setting.rb:45:in
`use_service_user?'
/usr/lib/ruby/site_ruby/puppet/util/settings/file_setting.rb:40:in `owner'
/usr/lib/ruby/site_ruby/puppet/util/settings/file_setting.rb:109:in
`to_resource'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:555:in `block in to_catalog'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:553:in `each'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:553:in `to_catalog'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:612:in `block in use'
/usr/lib/ruby/sync.rb:227:in `sync_synchronize'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:606:in `use'
/usr/lib/ruby/site_ruby/puppet/application/agent.rb:459:in `setup'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `block (2 levels)
in run'
/usr/lib/ruby/site_ruby/puppet/application.rb:416:in `hook'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `block in run'
/usr/lib/ruby/site_ruby/puppet/application.rb:407:in `exit_on_fail'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `run'
/usr/lib/ruby/site_ruby/puppet/util/command_line.rb:69:in `execute'
/usr/bin/puppet:4:in `<main>'
err: Could not create resources for managing Puppet's files and
directories in sections [:main, :agent, :ssl]: undefined method
`exists?' for nil:NilClass
/usr/lib/ruby/site_ruby/puppet/type/user.rb:355:in `exists?'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:451:in
`service_user_available?'
/usr/lib/ruby/site_ruby/puppet/util/settings/file_setting.rb:45:in
`use_service_user?'
/usr/lib/ruby/site_ruby/puppet/util/settings/file_setting.rb:40:in `owner'
/usr/lib/ruby/site_ruby/puppet/util/settings/file_setting.rb:109:in
`to_resource'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:555:in `block in to_catalog'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:553:in `each'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:553:in `to_catalog'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:612:in `block in use'
/usr/lib/ruby/sync.rb:227:in `sync_synchronize'
/usr/lib/ruby/site_ruby/puppet/util/settings.rb:606:in `use'
/usr/lib/ruby/site_ruby/puppet/indirector/ssl_file.rb:50:in `initialize'
/usr/lib/ruby/site_ruby/puppet/indirector/indirection.rb:322:in `new'
/usr/lib/ruby/site_ruby/puppet/indirector/indirection.rb:322:in
`make_terminus'
/usr/lib/ruby/site_ruby/puppet/indirector/indirection.rb:130:in `terminus'
/usr/lib/ruby/site_ruby/puppet/indirector/indirection.rb:309:in `prepare'
/usr/lib/ruby/site_ruby/puppet/indirector/indirection.rb:188:in `find'
/usr/lib/ruby/site_ruby/puppet/ssl/host.rb:138:in `key'
/usr/lib/ruby/site_ruby/puppet/ssl/host.rb:195:in `certificate'
/usr/lib/ruby/site_ruby/puppet/ssl/host.rb:316:in `wait_for_cert'
/usr/lib/ruby/site_ruby/puppet/application/agent.rb:407:in `setup_host'
/usr/lib/ruby/site_ruby/puppet/application/agent.rb:425:in `setup_agent'
/usr/lib/ruby/site_ruby/puppet/application/agent.rb:484:in `setup'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `block (2 levels)
in run'
/usr/lib/ruby/site_ruby/puppet/application.rb:416:in `hook'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `block in run'
/usr/lib/ruby/site_ruby/puppet/application.rb:407:in `exit_on_fail'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `run'
/usr/lib/ruby/site_ruby/puppet/util/command_line.rb:69:in `execute'
/usr/bin/puppet:4:in `<main>'
err: Could not create resources for managing Puppet's files and
directories in sections [:main, :ssl]: undefined method `exists?' for
nil:NilClass
info: Creating a new SSL key for corsair.locum.ru
/usr/lib/ruby/site_ruby/puppet/indirector/ssl_file.rb:167:in `rescue in
write'
/usr/lib/ruby/site_ruby/puppet/indirector/ssl_file.rb:164:in `write'
/usr/lib/ruby/site_ruby/puppet/indirector/ssl_file.rb:102:in `save'
/usr/lib/ruby/site_ruby/puppet/indirector/key/file.rb:34:in `save'
/usr/lib/ruby/site_ruby/puppet/indirector/indirection.rb:271:in `save'
/usr/lib/ruby/site_ruby/puppet/ssl/host.rb:147:in `generate_key'
/usr/lib/ruby/site_ruby/puppet/ssl/host.rb:195:in `certificate'
/usr/lib/ruby/site_ruby/puppet/ssl/host.rb:316:in `wait_for_cert'
/usr/lib/ruby/site_ruby/puppet/application/agent.rb:407:in `setup_host'
/usr/lib/ruby/site_ruby/puppet/application/agent.rb:425:in `setup_agent'
/usr/lib/ruby/site_ruby/puppet/application/agent.rb:484:in `setup'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `block (2 levels)
in run'
/usr/lib/ruby/site_ruby/puppet/application.rb:416:in `hook'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `block in run'
/usr/lib/ruby/site_ruby/puppet/application.rb:407:in `exit_on_fail'
/usr/lib/ruby/site_ruby/puppet/application.rb:307:in `run'
/usr/lib/ruby/site_ruby/puppet/util/command_line.rb:69:in `execute'
/usr/bin/puppet:4:in `<main>'



Подробная информация о списке рассылки community