Issue #21685 has been reported by Eric Veiras Galisson.
----------------------------------------
Bug #21685: Windows user provider raises Error when a user already exists
https://projects.puppetlabs.com/issues/21685
* Author: Eric Veiras Galisson
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category: windows
* Target version:
* Affected Puppet version: 3.2.2
* Keywords: windows, user
* Branch:
----------------------------------------
I'm running Puppet 3.2.2 on a Windows Server 2008 R2 64 bits. (Server is
running 3.2.2 on Debian wheezy).
I created a simple manifest for my Windows Server:
node "2k8-test-puppet" {
user { "test-user-2":
ensure => present,
password => "P@ssword123",
}
}
At first agent run, it works great and create my local user.
At second run, without changing anything in my manifest, i got an Error. This
is the trace in the eventlog (service running with --debug --trace)
/User[test-user-2]: Could not evaluate: can't convert Fixnum into String
C:/Program Files (x86)/Puppet
Labs/Puppet/sys/ruby/lib/ruby/1.9.1/Win32API.rb:22:in `pack'
C:/Program Files (x86)/Puppet
Labs/Puppet/sys/ruby/lib/ruby/1.9.1/Win32API.rb:22:in `block in call'
C:/Program Files (x86)/Puppet
Labs/Puppet/sys/ruby/lib/ruby/1.9.1/Win32API.rb:21:in `each'
C:/Program Files (x86)/Puppet
Labs/Puppet/sys/ruby/lib/ruby/1.9.1/Win32API.rb:21:in `each_with_index'
C:/Program Files (x86)/Puppet
Labs/Puppet/sys/ruby/lib/ruby/1.9.1/Win32API.rb:21:in `call'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/util/windows/user.rb:67:in `logon_user'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/util/windows/user.rb:45:in `password_is?'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/util/adsi.rb:86:in `logon'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/util/adsi.rb:107:in `password_is?'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/provider/user/windows_adsi.rb:74:in `password'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/property.rb:471:in `retrieve'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/type/user.rb:387:in `block in retrieve'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/type/user.rb:381:in `each'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/type/user.rb:381:in `inject'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/type/user.rb:381:in `retrieve'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/type.rb:1041:in
`retrieve_resource'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:32:in
`perform_changes'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:139:in `evaluate'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/transaction.rb:48:in `apply'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/transaction.rb:83:in `eval_resource'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/transaction.rb:103:in `block (2 levels) in
evaluate'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:351:in
`block in thinmark'
C:/Program Files (x86)/Puppet
Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:350:in
`thinmark'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/transaction.rb:103:in `block in evaluate'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/transaction.rb:382:in `traverse'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/transaction.rb:98:in `evaluate'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:144:in `apply'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/configurer.rb:122:in `block in apply_catalog'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:179:in
`block in benchmark'
C:/Program Files (x86)/Puppet
Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:178:in
`benchmark'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/configurer.rb:121:in `apply_catalog'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/configurer.rb:179:in `run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in
`block (5 levels) in run'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/agent/locker.rb:20:in `lock'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in
`block (4 levels) in run'
C:/Program Files (x86)/Puppet
Labs/Puppet/sys/ruby/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:45:in
`block (3 levels) in run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:119:in
`with_client'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:42:in
`block (2 levels) in run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:84:in
`run_in_fork'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:41:in
`block in run'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/application.rb:179:in `call'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/application.rb:179:in `controlled_run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/agent.rb:39:in
`run'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/application/agent.rb:353:in `onetime'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/application/agent.rb:327:in `run_command'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/application.rb:456:in `plugin_hook'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block in run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:504:in
`exit_on_fail'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/application.rb:364:in `run'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/util/command_line.rb:132:in `run'
C:/Program Files (x86)/Puppet
Labs/Puppet/puppet/lib/puppet/util/command_line.rb:86:in `execute'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4:in `<main>'
This seems similar to bug #20768 which was supposed fixed, but in my case error
happens even if I don't change anything in the manifest.
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.