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

Puppet scheduled_task provider on windows fails if non-ASCII characters are in Task Name

    Details

    • Template:
    • Acceptance Criteria:
      • Can create a task with utf8 characters in it
      • Can re-run the same manifest without error
      • puppet resource scheduled_task properly shows the task definition
    • Story Points:
      2
    • Sprint:
      Windows 2016-06-29

      Description

      If there is a scheduled task with a Non-ASCII name in the task library(%SYSTEMROOT%/Tasks), scheduled_task provider will fail.

      Of course I don't name scheduled task like that, but sometimes third-party program or the end users might do so.

      I tried set the codepage to 1252, but the error occurs anyway. So I guess it's a issue of Ruby again like PUP-4333?

      C:\Users\Administrator\Desktop>puppet apply sch.pp --debug --trace
      ......
      Info: Applying configuration version '1443053017'
      Error: Could not set 'present' on ensure: U+00AE to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437 at 10:C:/Users/Admi
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:58:in `encode'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:58:in `read_wide_string'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:69:in `block in read_arbitrary_wide_string_up
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:67:in `upto'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:67:in `read_arbitrary_wide_string_up_to'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:215:in `block (6 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:97:in `read_com_memory_pointer'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:214:in `block (5 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:213:in `each'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:213:in `block (4 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:97:in `read_com_memory_pointer'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:210:in `block (3 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `block (2 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `block in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:117:in `block in UseInstance'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `UseInstance'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:202:in `enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:514:in `new_work_item'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:191:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb:214:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb:214:in `create'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property/ensure.rb:16:in `block in defaultvalues'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:197:in `call_valuemethod'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:498:in `set'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:581:in `sync'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:204:in `sync'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:81:in `perform_changes'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:20:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:204:in `apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:217:in `eval_resource'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `call'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:335:in `block in thinmark'
      C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:334:in `thinmark'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `block in evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:138:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:169:in `block in apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/log.rb:149:in `with_destination'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/report.rb:112:in `as_logging_destination'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:168:in `apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:120:in `block in apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:161:in `block in benchmark'
      C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:160:in `benchmark'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:119:in `apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:227:in `run_internal'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:134:in `block in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/context.rb:64:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet.rb:244:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:133:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:302:in `apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:236:in `block in main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/context.rb:64:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet.rb:244:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:198:in `main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:159:in `run_command'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `block (2 levels) in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:507:in `plugin_hook'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `block in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:496:in `exit_on_fail'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:146:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:92:in `execute'
      C:/Program Files/Puppet Labs/Puppet/puppet/bin/puppet:8:in `<main>'
      Error: Could not set 'present' on ensure: U+00AE to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437 at 10:C:/Users/Admi
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:58:in `encode'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:58:in `read_wide_string'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:69:in `block in read_arbitrary_wide_string_up
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:67:in `upto'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:67:in `read_arbitrary_wide_string_up_to'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:215:in `block (6 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:97:in `read_com_memory_pointer'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:214:in `block (5 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:213:in `each'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:213:in `block (4 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:97:in `read_com_memory_pointer'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:210:in `block (3 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `block (2 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `block in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:117:in `block in UseInstance'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `UseInstance'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:202:in `enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:514:in `new_work_item'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:191:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb:214:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb:214:in `create'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property/ensure.rb:16:in `block in defaultvalues'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:197:in `call_valuemethod'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:498:in `set'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:581:in `sync'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:204:in `sync'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:81:in `perform_changes'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:20:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:204:in `apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:217:in `eval_resource'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `call'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:335:in `block in thinmark'
      C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:334:in `thinmark'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `block in evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:138:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:169:in `block in apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/log.rb:149:in `with_destination'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/report.rb:112:in `as_logging_destination'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:168:in `apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:120:in `block in apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:161:in `block in benchmark'
      C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:160:in `benchmark'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:119:in `apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:227:in `run_internal'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:134:in `block in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/context.rb:64:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet.rb:244:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:133:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:302:in `apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:236:in `block in main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/context.rb:64:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet.rb:244:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:198:in `main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:159:in `run_command'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `block (2 levels) in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:507:in `plugin_hook'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `block in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:496:in `exit_on_fail'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:146:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:92:in `execute'
      C:/Program Files/Puppet Labs/Puppet/puppet/bin/puppet:8:in `<main>'
      Wrapped exception:
      U+00AE to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:58:in `encode'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:58:in `read_wide_string'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:69:in `block in read_arbitrary_wide_string_up
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:67:in `upto'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:67:in `read_arbitrary_wide_string_up_to'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:215:in `block (6 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:97:in `read_com_memory_pointer'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:214:in `block (5 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:213:in `each'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:213:in `block (4 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/api_types.rb:97:in `read_com_memory_pointer'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:210:in `block (3 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:204:in `block (2 levels) in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:203:in `block in enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:117:in `block in UseInstance'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/com.rb:114:in `UseInstance'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:202:in `enum'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:514:in `new_work_item'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/taskscheduler.rb:191:in `initialize'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb:214:in `new'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb:214:in `create'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property/ensure.rb:16:in `block in defaultvalues'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:197:in `call_valuemethod'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:498:in `set'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/property.rb:581:in `sync'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:204:in `sync'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:81:in `perform_changes'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/resource_harness.rb:20:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:204:in `apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:217:in `eval_resource'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `call'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:335:in `block in thinmark'
      C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:334:in `thinmark'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:147:in `block in evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction.rb:138:in `evaluate'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:169:in `block in apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/log.rb:149:in `with_destination'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/transaction/report.rb:112:in `as_logging_destination'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/resource/catalog.rb:168:in `apply'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:120:in `block in apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:161:in `block in benchmark'
      C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:160:in `benchmark'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:119:in `apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:227:in `run_internal'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:134:in `block in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/context.rb:64:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet.rb:244:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/configurer.rb:133:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:302:in `apply_catalog'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:236:in `block in main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/context.rb:64:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet.rb:244:in `override'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:198:in `main'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application/apply.rb:159:in `run_command'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `block (2 levels) in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:507:in `plugin_hook'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `block in run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:496:in `exit_on_fail'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:381:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:146:in `run'
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:92:in `execute'
      C:/Program Files/Puppet Labs/Puppet/puppet/bin/puppet:8:in `<main>'
      Error: /Stage[main]/Main/Scheduled_task[test]/ensure: change from absent to present failed: Could not set 'present' on ensure
      version from UTF-16LE to UTF-8 to IBM437 at 10:C:/Users/Administrator/Desktop/sch.pp
      Debug: Finishing transaction 34518192
      Debug: Storing state
      Debug: Stored state in 0.06 seconds
      Notice: Finished catalog run in 0.23 seconds
      Debug: Using settings: adding file resource 'rrddir': 'File[C:/ProgramData/PuppetLabs/puppet/var/rrd]{:path=>"C:/ProgramData/
      ", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
      Debug: Finishing transaction 33852696
      Debug: Received report to process from win2k8sp2x86
      Debug: Evicting cache entry for environment 'devel'
      Debug: Caching environment 'devel' (ttl = 0 sec)
      Debug: Processing report from win2k8sp2x86 with processor Puppet::Reports::Store
       
      C:\Users\Administrator\Desktop>
      
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                erick Erick Banks
                Reporter:
                digglife Eric Zhu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: