188 views
Skip to first unread message

ureal frank

unread,
Mar 16, 2013, 2:03:08 PM3/16/13
to puppet...@googlegroups.com
Hi,

I'm trying to setup a Puppet 3.1.1 (master) under NetBSD 6.0.1

I've installed Ruby 1.9.3 through pkgin and Puppet with $ gem install puppet.

(pkgsrc has a puppet port under sysutils/puppet but is very very outdated... version 0.25) 

After generate and configure puppet.conf with $ puppet master --genconfig > puppet.conf
(I've symlinked /etc/puppet to /etc/pkg/etc/puppet for NetBSD compliance) 

then I got this

$ puppet master --no-daemonize -v -d -o --trace

Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Using settings: adding file resource 'confdir': 'File[/usr/pkg/etc/puppet]{:path=>"/usr/pkg/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'vardir': 'File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Failed to load library 'shadow' for feature 'libshadow'
Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist
Debug: Puppet::Type::User::ProviderUseradd: file chage does not exist
Debug: Failed to load library 'ldap' for feature 'ldap'
Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
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::ProviderDirectoryservice: file /usr/bin/dsimport does not exist
Debug: Puppet::Type::User::ProviderUseradd: file chage does not exist
Debug: Failed to load library 'ldap' for feature 'ldap'
Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
Debug: Puppet::Type::User::ProviderPw: file pw does not exist

Error: Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `exists?' for nil:NilClass
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in `exists?'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in `service_user_available?'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in `value'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in `owner'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in `to_resource'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in `block in to_catalog'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `each'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `to_catalog'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in `block in use'
/usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in `use'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in `setup'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block (2 levels) in run'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block in run'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `run'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top (required)>'
/usr/pkg/bin/puppet:23:in `load'
/usr/pkg/bin/puppet:23:in `<main>'
Error: Could not prepare for execution: Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `exists?' for nil:NilClass
undefined method `exists?' for nil:NilClass
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in `exists?'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in `service_user_available?'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in `value'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in `owner'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in `to_resource'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in `block in to_catalog'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `each'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `to_catalog'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in `block in use'
/usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in `use'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in `setup'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block (2 levels) in run'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block in run'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `run'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'
/usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top (required)>'
/usr/pkg/bin/puppet:23:in `load'
/usr/pkg/bin/puppet:23:in `<main>'


Should I open a ticket or is there something I can do to solve this issue?

Any tip?

Cheers,
Frank

Justin Stoller

unread,
Mar 16, 2013, 7:23:36 PM3/16/13
to puppet...@googlegroups.com
Hi Frank -

Looking at the code it seems that there's not a default provider for User on {Net,Open}BSD.
https://github.com/puppetlabs/puppet/blob/3.1.1/lib/puppet/type/user.rb#L367

You should have originally seen an error message like this one:
https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/Tc5hysfdy5k

Not seeing it is a regression in our error reporting, and if you didn't see it I'd file a ticket.

It seems that the default provider issue is a known bug, and that a couple times folks have encouraged users to submit some code to fix it.
https://projects.puppetlabs.com/issues/13594
both have similar patches embedded in the text, if you could try to apply it locally and once working issue a pull request that'd be Awesome.

If you have any trouble feel free to come back to the list, or contact me personally, or our devs devoted to community contributions - @jeffmcune and @adrienthebo - on teh hubs.


 - Justin


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Frank

unread,
Mar 17, 2013, 11:23:21 AM3/17/13
to puppet...@googlegroups.com
Hi Justin,


Many thanks for your reply. mine goes inline.
I'm going to read that carefully :)
 


You should have originally seen an error message like this one:
https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/Tc5hysfdy5k

I think yes… in my first run with puppet master --mkusers I got some problems then I added puppet user/group ny hand.



Not seeing it is a regression in our error reporting, and if you didn't see it I'd file a ticket.

It seems that the default provider issue is a known bug, and that a couple times folks have encouraged users to submit some code to fix it.
https://projects.puppetlabs.com/issues/13594
both have similar patches embedded in the text, if you could try to apply it locally and once working issue a pull request that'd be Awesome.

awesome! I can't promise that I can solve this issue but I will give it a try.
 

If you have any trouble feel free to come back to the list, or contact me personally, or our devs devoted to community contributions - @jeffmcune and @adrienthebo - on teh hubs.

Many thanks, tomorrow morning I'm going to finish this.

Cheers,
Frank

Frank

unread,
Mar 17, 2013, 11:23:26 AM3/17/13
to puppet...@googlegroups.com
Hi Justin,


Many thanks for your reply. mine goes inline.



On Saturday, March 16, 2013 at 11:23 PM, Justin Stoller wrote:

I'm going to read that carefully :)
 
You should have originally seen an error message like this one:
https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/Tc5hysfdy5k
I think yes… in my first run with puppet master --mkusers I got some problems then I added puppet user/group ny hand.

Not seeing it is a regression in our error reporting, and if you didn't see it I'd file a ticket.

It seems that the default provider issue is a known bug, and that a couple times folks have encouraged users to submit some code to fix it.
https://projects.puppetlabs.com/issues/13594
both have similar patches embedded in the text, if you could try to apply it locally and once working issue a pull request that'd be Awesome.
awesome! I can't promise that I can solve this issue but I will give it a try.
 
If you have any trouble feel free to come back to the list, or contact me personally, or our devs devoted to community contributions - @jeffmcune and @adrienthebo - on teh hubs.
Many thanks, tomorrow morning I'm going to finish this.

Cheers,
Frank
 

Zheng Bin

unread,
Jul 3, 2014, 11:59:01 PM7/3/14
to puppet...@googlegroups.com, ureal...@gmail.com
Hi, Frank

May I ask you if your problem has been solved, as I'm now coming across the same issue with you.

Thanks,
Bin
Reply all
Reply to author
Forward
0 new messages