[Comm] puppet
Anton Gorlov
stalker на altlinux.ru
Ср Июл 2 00:15:12 MSK 2014
Дело оказалось не в бобине - оказывается ему очень хотелось
/tmp/dump.6882:access("/usr/bin/chage", X_OK) = 0
который в
rpm -qf /usr/bin/chage
shadow-change-4.1.4.2-alt8
Надо на него зависимость в пакете прописать, а то
===
/usr/lib/ruby/rubygems/custom_require.rb:36:in `require': iconv will be
deprecated in the future, use String#encode instead.
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderUseradd: file chage does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not
exist
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderUseradd: file chage does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not
exist
debug: Puppet::Type::User::ProviderPw: file pw does not exist
/usr/lib/ruby/site_ruby/puppet/type/user.rb:355:in `exists?'
====
01.07.2014 22:52, Anton Gorlov пишет:
> самое интересное - если запустить под пользователем puppet -то этой
> ошибки нет. Но оно напрочь игнорирует /etc/puppet/puppet.conf
>
> 01.07.2014 16:05, Anton Gorlov пишет:
>> 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 mailing list
>> community на lists.altlinux.org
>> https://lists.altlinux.org/mailman/listinfo/community
> _______________________________________________
> community mailing list
> community на lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community
Подробная информация о списке рассылки community