Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6618

type: user, fails in macOS with UTF-8 related errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PUP 4.5.3
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:
    • Template:

      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
      user

      Unknown 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

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  henrydobson@me.com Henry Dobson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: