The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #4963

"Could not find a default provider for user" breaks puppetmasterd on solaris

Added by Matthew Flanagan almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:10/08/2010
Priority:NormalDue date:
Assignee:Markus Roberts% Done:

0%

Category:-
Target version:2.6.3
Affected Puppet version:2.6.2 Branch:MarkusQ:tickets/2.6.x/4963
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

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

user_role_add.rb.diff Magnifier (1.01 KB) Matthew Flanagan, 10/08/2010 04:14 am


Related issues

Related to Puppet - Bug #4975: Password age issue in 2.6.2 Closed 10/11/2010
Related to Puppet - Bug #5396: "Could not find a default provider for user" in AIX using... Duplicate 11/25/2010
Related to Puppet - Bug #6693: Windows Error message: Could not create resources for man... Duplicate 03/13/2011
Related to Puppet - Bug #9586: "Could not find a default provider for user" breaks puppe... Accepted 09/18/2011

History

#1 Updated by Matthew Flanagan almost 4 years ago

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.

#2 Updated by Markus Roberts almost 4 years ago

  • Status changed from Unreviewed to Investigating

#3 Updated by Markus Roberts almost 4 years ago

  • Status changed from Investigating to Accepted
  • Target version set to 2.6.3

Caused by commit:0b4ce0898652268a772bfa1cb66cf67f41963d2b

#4 Updated by Markus Roberts almost 4 years ago

An additional thought here; assuming you weren’t using the new password age attributes, this would seem to imply that the commands to manage them are getting run even when unused, which isn’t desired behaviour.

#5 Updated by James Turnbull almost 4 years ago

I think that’s actually the correct behaviour – the provider tests for the existence of all commands to ensure the provider can be run.

#6 Updated by Matthew Flanagan almost 4 years ago

I don’t have any users in any of my manifests. I added one only to test the new mix/max password age fix.

#7 Updated by Markus Roberts almost 4 years ago

  • Assignee set to Markus Roberts

The running always thing is a bug — see #4975

#8 Updated by Matthew Flanagan almost 4 years ago

I can’t say if it is always running or just a check being run to see if the command exists. Either way the ‘chage’ command does not exist on Solaris which means that a provider for the ‘user’ type is never found because of this bug. This results in puppetmasterd being unable to start at all. The patch I attached works for me on Solaris but I don’t know if the user_role_add provider is only for solaris or other OSes.

#9 Updated by Markus Roberts almost 4 years ago

  • Status changed from Accepted to In Topic Branch Pending Review
  • Branch set to MarkusQ:tickets/2.6.x/4963

Changed the solaris specific stuff here, and the always-running stuff on #4975.

The always-running stuff really is a bug, it just isn’t this bug (thus the separate tickets); it was probably a mistake for me to bring it up here but looking into this ticket is what made me realize the problem existed and #4975 didn’t exist at the time so…

#10 Updated by John Warburton almost 4 years ago

Just tested – works for me :–)

Thanks Markus & Matthew

#11 Updated by Markus Roberts almost 4 years ago

  • Status changed from In Topic Branch Pending Review to Ready For Checkin

#12 Updated by James Turnbull almost 4 years ago

  • Status changed from Ready For Checkin to Closed

Pushed in commit:a090e868d55ea9b10f8193dcb2d1f23838a6def1 in branch 2.6.x

Also available in: Atom PDF