Issue #4963 has been updated by Matthew Flanagan. File user_role_add.rb.diff added
Attached diff seems to fix the issue. i.e. 'chage -m / -M' does not exist on solaris and 'passwd -n / -x' must be used instead. ---------------------------------------- Bug #4963: "Could not find a default provider for user" breaks puppetmasterd on solaris http://projects.puppetlabs.com/issues/4963 Author: Matthew Flanagan Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected version: 2.6.2 Keywords: Branch: Hi, upgrading to 2.6.2 on both master and agents on solaris gives the following error: err: Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl]: Could not find a default provider for user This is a clean install of puppet 2.6.2 on both master and agent (prior version was 2.6.1). Here is a trace on the master: # puppetmasterd --no-daemonize --verbose --debug --trace debug: Failed to load library 'shadow' for feature 'libshadow' debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderUser_role_add: file chage does not exist /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1363:in `defaultprovider' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1473:in `default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:520:in `set_default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1734:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `service_user_available?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:45:in `use_service_user?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:40:in `owner' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:97:in `to_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:564:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:621:in `use' /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:615:in `use' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:139:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/sbin/puppetmasterd:4 err: Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl]: Could not find a default provider for user debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderUser_role_add: file chage does not exist /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1363:in `defaultprovider' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1473:in `default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:520:in `set_default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1734:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `service_user_available?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:45:in `use_service_user?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:40:in `owner' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:97:in `to_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:564:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:621:in `use' /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:615:in `use' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:147:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/sbin/puppetmasterd:4 err: Could not create resources for managing Puppet's files and directories in sections [:ca]: Could not find a default provider for user debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderUser_role_add: file chage does not exist /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1363:in `defaultprovider' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1473:in `default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:520:in `set_default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1734:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `service_user_available?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:45:in `use_service_user?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:40:in `owner' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:97:in `to_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:564:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:621:in `use' /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:615:in `use' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:140:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `init_singleton_instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `send' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `cached_value' /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:98:in `cached_value' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:48:in `singleton_instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:45:in `instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:148:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/sbin/puppetmasterd:4 err: Could not create resources for managing Puppet's files and directories in sections [:main, :ssl, :ca]: Could not find a default provider for user debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderUser_role_add: file chage does not exist /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1363:in `defaultprovider' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1473:in `default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:520:in `set_default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1734:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `service_user_available?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:45:in `use_service_user?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:40:in `owner' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:97:in `to_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:564:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:621:in `use' /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:615:in `use' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:50:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:303:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:303:in `make_terminus' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:123:in `terminus' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:291:in `prepare' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:181:in `find' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:120:in `key' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:158:in `certificate' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:222:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:146:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `init_singleton_instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `send' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `cached_value' /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:98:in `cached_value' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:48:in `singleton_instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:45:in `instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:148:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/sbin/puppetmasterd:4 err: Could not create resources for managing Puppet's files and directories in sections [:main, :ssl]: Could not find a default provider for user debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderUser_role_add: file chage does not exist /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1363:in `defaultprovider' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1473:in `default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:520:in `set_default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1734:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `service_user_available?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:45:in `use_service_user?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:40:in `owner' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:97:in `to_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:564:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:621:in `use' /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:615:in `use' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:50:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:303:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:303:in `make_terminus' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:123:in `terminus' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:291:in `prepare' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:181:in `find' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:163:in `certificate' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:222:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:146:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `init_singleton_instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `send' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `cached_value' /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:98:in `cached_value' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:48:in `singleton_instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:45:in `instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:148:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/sbin/puppetmasterd:4 err: Could not create resources for managing Puppet's files and directories in sections [:main, :ssl]: Could not find a default provider for user debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderUser_role_add: file chage does not exist /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1363:in `defaultprovider' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1473:in `default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:520:in `set_default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1734:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `service_user_available?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:45:in `use_service_user?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:40:in `owner' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb:97:in `to_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:564:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:621:in `use' /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:615:in `use' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:50:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:303:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:303:in `make_terminus' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:123:in `terminus' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:39:in `cache' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:208:in `find_in_cache' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:184:in `find' /usr/local/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:163:in `certificate' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:222:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:146:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `init_singleton_instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `send' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `cached_value' /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:98:in `cached_value' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:48:in `singleton_instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:45:in `instance' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:148:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:286:in `run' /usr/local/sbin/puppetmasterd:4 err: Could not create resources for managing Puppet's files and directories in sections [:main, :ssl]: Could not find a default provider for user debug: Using cached certificate for ca debug: Using cached certificate for ca debug: Using cached certificate for puppetmaster.example.com /usr/local/lib/ruby/site_ruby/1.8/puppet/network/server.rb:101:in `register_xmlrpc': uninitialized constant Puppet::Network::Handler (NameError) from /usr/local/lib/ruby/site_ruby/1.8/puppet/network/server.rb:100:in `each' from /usr/local/lib/ruby/site_ruby/1.8/puppet/network/server.rb:100:in `register_xmlrpc' from /usr/local/lib/ruby/site_ruby/1.8/puppet/network/server.rb:68:in `initialize' from /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:104:in `new' from /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:104:in `main' from /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:46:in `run_command' from /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:287:in `run' from /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail' from /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:287:in `run' from /usr/local/sbin/puppetmasterd:4 -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
