Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Duplicate
-
PUP 4.5.3
-
None
-
None
-
puppetserver version: 2.4.0
puppetserver ruby version: ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-linux]
puppetserver gems:- CFPropertyList (2.3.2)
- digest (0.0.1)
- jar-dependencies (0.1.13)
- jdbc-sqlite3 (3.8.11.2)
- jruby-openssl (0.9.7 java)
- json (1.8.0 java)
- rake (10.1.0)
- rdoc (4.1.2)
puppet agent version: 4.5.3
puppet agent OS: macOS 10.11.6
puppet agent ruby version: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
puppet agent gems:- bigdecimal (1.2.8)
- CFPropertyList (2.3.2)
- did_you_mean (1.0.0)
- io-console (0.4.5)
- json (1.8.3)
- minitest (5.8.3)
- net-telnet (0.1.1)
- power_assert (0.2.6)
- psych (2.0.17)
- rake (10.4.2)
- rdoc (4.2.1)
- terminal-notifier (1.6.3)
- test-unit (3.1.5)
puppetserver version: 2.4.0 puppetserver ruby version: ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-linux] puppetserver gems: CFPropertyList (2.3.2) digest (0.0.1) jar-dependencies (0.1.13) jdbc-sqlite3 (3.8.11.2) jruby-openssl (0.9.7 java) json (1.8.0 java) rake (10.1.0) rdoc (4.1.2) puppet agent version: 4.5.3 puppet agent OS: macOS 10.11.6 puppet agent ruby version: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] puppet agent gems: bigdecimal (1.2.8) CFPropertyList (2.3.2) did_you_mean (1.0.0) io-console (0.4.5) json (1.8.3) minitest (5.8.3) net-telnet (0.1.1) power_assert (0.2.6) psych (2.0.17) rake (10.4.2) rdoc (4.2.1) terminal-notifier (1.6.3) test-unit (3.1.5)
Description
Puppet type: user, fails in this environment with UTF-8 related errors. I initially found these errors when using the create_resources function and hieradata like so:
common.yaml
users:
useradmin:
uid: 405
gid: 20
groups:
- admin
shell: '/bin/bash'
home: '/Users/useradmin'
comment: 'User Admin'
ensure: 'present'
iterations: <redacted>
password: <redacted>
salt: <redacted>
site.pp
$allusers = hiera_hash('users', undef)
unless empty ($allusers)Unknown macro: { validate_hash ($allusers) create_resources(user, $allusers) }
However, I have attempted to create the resource simply through a puppet command and found the same error:
command
sudo puppet resource user useradmin ensure=present uid=405 gid=20 groups=['admin'] shell='/bin/bash' home='/Users/useradmin' iterations=<redacted> password=<redacted> salt=<redacted>
Error: Could not set 'present' on ensure: "\x99" on UTF-8
Error: Could not set 'present' on ensure: "\x99" on UTF-8
Wrapped exception:
"\x99" on UTF-8
Error: /User[useradmin]/ensure: change from absent to present failed: Could not set 'present' on ensure: "\x99" on UTF-8
userUnknown macro: { 'useradmin'}
I have seen previous issues similar to this and as a result checked my ruby versions. So far no resolution.
Here is a trace run using the hieradata/create_resources method:
agent run
Error: Could not set 'present' on ensure: "\x99" on UTF-8
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:222:in `encode'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:222:in `charset_convert'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:457:in `string_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:48:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `block in dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:243:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `block in dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:243:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:75:in `to_str'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFPropertyList.rb:392:in `to_str'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/plist.rb:127:in `dump_plist'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:188:in `convert_hash_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:612:in `set_salted_pbkdf2'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:526:in `write_password_to_users_plist'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:374:in `password='
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:294:in `block in create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:262:in `each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:262:in `create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/user.rb:65:in `block (3 levels) in <module:Puppet>'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:189:in `sync'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:114:in `sync_if_needed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:79:in `perform_changes'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:212:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:228:in `eval_resource'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `call'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `block (2 levels) in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `block in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:142:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:118:in `as_logging_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:315:in `run_internal'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:186:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (4 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent/locker.rb:21:in `lock'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (3 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:98:in `with_client'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:42:in `block (2 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:65:in `run_in_fork'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:41:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in `call'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in `controlled_run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:39:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:353:in `onetime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:331:in `run_command'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:128:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
Error: Could not set 'present' on ensure: "\x99" on UTF-8
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:222:in `encode'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:222:in `charset_convert'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:457:in `string_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:48:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `block in dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:243:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `block in dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:243:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:75:in `to_str'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFPropertyList.rb:392:in `to_str'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/plist.rb:127:in `dump_plist'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:188:in `convert_hash_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:612:in `set_salted_pbkdf2'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:526:in `write_password_to_users_plist'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:374:in `password='
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:294:in `block in create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:262:in `each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:262:in `create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/user.rb:65:in `block (3 levels) in <module:Puppet>'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:189:in `sync'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:114:in `sync_if_needed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:79:in `perform_changes'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:212:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:228:in `eval_resource'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `call'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `block (2 levels) in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `block in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:142:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:118:in `as_logging_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:315:in `run_internal'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:186:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (4 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent/locker.rb:21:in `lock'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (3 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:98:in `with_client'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:42:in `block (2 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:65:in `run_in_fork'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:41:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in `call'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in `controlled_run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:39:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:353:in `onetime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:331:in `run_command'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:128:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
Wrapped exception:
"\x99" on UTF-8
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:222:in `encode'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:222:in `charset_convert'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:457:in `string_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:48:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `block in dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:243:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `block in dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `map'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:565:in `dict_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFTypes.rb:243:in `to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbBinaryCFPropertyList.rb:75:in `to_str'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/cfpropertylist/rbCFPropertyList.rb:392:in `to_str'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/plist.rb:127:in `dump_plist'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:188:in `convert_hash_to_binary'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:612:in `set_salted_pbkdf2'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:526:in `write_password_to_users_plist'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:374:in `password='
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:294:in `block in create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:262:in `each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/user/directoryservice.rb:262:in `create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/user.rb:65:in `block (3 levels) in <module:Puppet>'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:427:in `set'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:501:in `sync'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:189:in `sync'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:114:in `sync_if_needed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:79:in `perform_changes'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:212:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:228:in `eval_resource'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `call'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `block (2 levels) in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in `block in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:142:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:118:in `as_logging_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:315:in `run_internal'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:186:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (4 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent/locker.rb:21:in `lock'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (3 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:98:in `with_client'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:42:in `block (2 levels) in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:65:in `run_in_fork'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:41:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in `call'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in `controlled_run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:39:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:353:in `onetime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:331:in `run_command'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:128:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
Error: /Stage[main]/Main/Node[default]/User[useradmin]/ensure: change from absent to present failed: Could not set 'present' on ensure: "\x99" on UTF-8