puppetlabs / bolt

Bolt is an open source orchestration tool that automates the manual work it takes to maintain your infrastructure on an as-needed basis or as part of a greater orchestration workflow. It can be installed on your local workstation and connects directly to remote nodes with SSH or WinRM, so you are not required to install any agent software.
https://puppet.com/docs/bolt/latest/bolt.html
Apache License 2.0
500 stars 225 forks source link

Using Bolt tasks with PCP fails #69

Closed ipcrm closed 7 years ago

ipcrm commented 7 years ago

Command:

bundle exec bolt task run profile::healthcheck target='ubuntu1404a.pdx.puppet.vm' port='80' -n pcp://ubuntu1404a.pdx.puappet.vm --modules=/etc/puppetlabs/code/environments/production/site

Creates the following error:

2017-10-05T14:59:34.830262  ERROR ubuntu1404a.pdx.puappet.vm: "/etc/puppetlabs/code/environments/production/site/profile/tasks/healthcheck.rb" is not a valid task name. (OrchestratorClient::ApiError::ValidationError)
/root/git/bolt/.bundle/ruby/2.4.0/gems/orchestrator_client-0.2.1/lib/orchestrator_client.rb:59:in `post'
/root/git/bolt/.bundle/ruby/2.4.0/gems/orchestrator_client-0.2.1/lib/orchestrator_client/command.rb:9:in `task'
/root/git/bolt/.bundle/ruby/2.4.0/gems/orchestrator_client-0.2.1/lib/orchestrator_client/job.rb:28:in `start'
/root/git/bolt/.bundle/ruby/2.4.0/gems/orchestrator_client-0.2.1/lib/orchestrator_client.rb:79:in `run_task'
/root/git/bolt/lib/bolt/node/orch.rb:28:in `_run_task'
/root/git/bolt/lib/bolt/node.rb:72:in `run_task'
/root/git/bolt/lib/bolt/executor.rb:52:in `block in run_task'
/root/git/bolt/lib/bolt/executor.rb:23:in `block (2 levels) in on_each'
/root/git/bolt/.bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
/root/git/bolt/.bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
/root/git/bolt/.bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
/root/git/bolt/.bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
/root/git/bolt/.bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
/root/git/bolt/.bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'
/root/git/bolt/.bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
ubuntu1404a.pdx.puappet.vm:

"/etc/puppetlabs/code/environments/production/site/profile/tasks/healthcheck.rb" is not a valid task name.

Ran on 1 node in 0.26 seconds

profile::healthcheck is a task that does work via the PE GUI

ipcrm commented 7 years ago

@adreyer ^^

adreyer commented 7 years ago

this is BOLT-144 now