Can't provision new machine from vmware image

> Hi,
> I'm trying to deploy new virtual machine from vmware image and it's failed.
> when i'm setting a vm with pxe install it's finish without any problems.
> all i see in the production.log is those lines
>
> Adding Compute instance for image1.example.com
> Successfully decrypted field for Foreman::Model::Vmware vc-foreman
> Successfully decrypted field for Foreman::Model::Vmware vc-foreman
> Rolling back due to a problem: [Set up compute instance image1.example.com
> 2 failed [#<Host::Managed id: nil, name: "image1.example.com", ip:
> "10.101.254.109", last_compile: nil, last_freshcheck: nil, last_report:
> nil, updated_at: nil, source_file_id: nil, created_at: nil, mac: nil,
> root_pass: "*", serial: nil, puppet_status: 0, domain_id: 1,
> architecture_id: 1, operatingsystem_id: 1, environment_id: 2, subnet_id: 1,
> ptable_id: nil, medium_id: nil, build: true, comment: "", disk: "",
> installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 1,
> owner_type: "User", enabled: true, puppet_ca_proxy_id: 2, managed: true,
> use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 3,
> puppet_proxy_id: 2, certname: nil, image_id: 2, organization_id: 5,
> location_id: 3, type: "Host::Managed", compute_profile_id: 8, otp: nil,
> realm_id: nil, provision_method: "image">, :setCompute]]
> Failed to save:
> Rendered hosts/_progress.html.erb (0.1ms)
> Rendered config_groups/_config_group.html.erb (18.1ms)
> Rendered config_groups/_config_group.html.erb (4.2ms)
> Rendered config_groups/_config_groups_selection.html.erb (24.2ms)
> Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)
> Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)
> Rendered puppetclasses/_classes.html.erb (316.8ms)
> Rendered puppetclasses/_class_selection.html.erb (482.0ms)
> Rendered compute_resources_vms/form/vmware/_network.html.erb (66.7ms)
> Rendered compute_resources_vms/form/vmware/_network.html.erb (197.8ms)
>
>
> Any advises?
>

we had a recent bug [1] about Compute resources not showing the error
unless in debug mode, can you either enable debug more, or apply the ticket
from [2]? this would allow you to get a better error that is actually
coming from vmware.

[1] Bug #6099: New Host screen is eating Fog Errors - Foreman
[2] https://github.com/theforeman/foreman/pull/1525/files

··· On Wed, Jul 2, 2014 at 10:53 AM, eliran shlomo wrote:

best regards,
eliran


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi Ohad, i manged to fix that issue. i missed that the template is inside
directory there for it couldn't found it.

but now i have a problem with the scp at the end of the deploay

channel_open_confirmation: 0 0 0 32768
sending channel request "exec"
Processing by TasksController#show as /
Parameters: {"id"=>"5215db9b-dc9e-42e1-8d5d-3d90fab56c2d"}
channel_window_adjust: 0 +2097152
channel_success: 0
Rendered tasks/_list.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.3ms)
channel_extended_data: 0 1 29b
channel_eof: 0
channel_request: 0 exit-status false
channel_close: 0
closing remaining channels (0 open)
Failed to launch script on image1.example.com: SCP did not finish
successfully
(127)/opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:352:in
block (3 levels) in start_command&#39; /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:590:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:590:in
do_close&#39; /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:580:inchannel_close'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:459:in
dispatch_incoming_packets&#39; /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:216:inpreprocess'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:200:in
process&#39; /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:inblock in loop'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:in
loop&#39; /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:inloop'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:269:in
wait&#39; /opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:279:inupload!'
/opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:72:in
block in upload&#39; /opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:202:instart'
/opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:71:in
upload&#39; /usr/share/foreman/app/services/foreman/provision/ssh.rb:26:indeploy!'
/usr/share/foreman/app/models/concerns/orchestration/ssh_provision.rb:80:in
setSSHProvision&#39; /usr/share/foreman/app/models/concerns/orchestration.rb:142:inexecute'
/usr/share/foreman/app/models/concerns/orchestration.rb:85:in block in process&#39; /usr/share/foreman/app/models/concerns/orchestration.rb:77:ineach'
/usr/share/foreman/app/models/concerns/orchestration.rb:77:in process&#39; /usr/share/foreman/app/models/concerns/orchestration.rb:22:inpost_commit'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
_run__4112584532282436178__commit__2484527071054562353__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_commit_callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:263:in
committed!&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:372:inblock in commit_transaction_records'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in
each&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:incommit_transaction_records'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:218:in
transaction&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:intransaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in
with_transaction_returning_status&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:241:inblock in save'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:252:in
rollback_active_record_state!&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:240:insave'
/usr/share/foreman/app/models/concerns/foreman/sti.rb:29:in save_with_type&#39; /usr/share/foreman/app/controllers/hosts_controller.rb:94:increate'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in
send_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:527:in
block (3 levels) in _run__1734190995199865110__process_action__3573775367402663417__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_6428'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in
around&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in_callback_around_1448'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_6428&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:526:inblock (2 levels) in
_run__1734190995199865110__process_action__3573775367402663417__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_6427&#39; /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:inclear_thread'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_6427&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:415:inblock in
_run__1734190995199865110__process_action__3573775367402663417__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_6426&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:inaround'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_13&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_6426'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in
_run__1734190995199865110__process_action__3573775367402663417__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:inblock in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
instrument&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in
process_action&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:inprocess'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in
process&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:inblock in action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:inblock in call'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in
each&#39; /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.1.2/lib/apipie/static_dispatcher.rb:65:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.1.2/lib/apipie/middleware/checksum_in_headers.rb:27:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:incall'
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in
context&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:inblock in call'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
_run__3643770743036585396__call__2484527071054562353__callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_call_callbacks&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:in
call_app&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in
forward&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:inpass'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in
invalidate&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:incall!'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:inmethod_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:in
call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:inblock in call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in
each&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:incall'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in
process_request&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:inaccept_and_process_next_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in
main_loop&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:inblock (3 levels) in start_threads'

··· On Wednesday, July 2, 2014 11:02:17 AM UTC+3, ohad wrote: > > > > > On Wed, Jul 2, 2014 at 10:53 AM, eliran shlomo > wrote: > >> Hi, >> I'm trying to deploy new virtual machine from vmware image and it's >> failed. >> when i'm setting a vm with pxe install it's finish without any problems. >> all i see in the production.log is those lines >> >> Adding Compute instance for image1.example.com >> Successfully decrypted field for Foreman::Model::Vmware vc-foreman >> Successfully decrypted field for Foreman::Model::Vmware vc-foreman >> Rolling back due to a problem: [Set up compute instance >> image1.example.com 2 failed [#> image1.example.com", ip: "10.101.254.109", last_compile: nil, >> last_freshcheck: nil, last_report: nil, updated_at: nil, source_file_id: >> nil, created_at: nil, mac: nil, root_pass: "*", serial: nil, puppet_status: >> 0, domain_id: 1, architecture_id: 1, operatingsystem_id: 1, environment_id: >> 2, subnet_id: 1, ptable_id: nil, medium_id: nil, build: true, comment: "", >> disk: "", installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 1, >> owner_type: "User", enabled: true, puppet_ca_proxy_id: 2, managed: true, >> use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 3, >> puppet_proxy_id: 2, certname: nil, image_id: 2, organization_id: 5, >> location_id: 3, type: "Host::Managed", compute_profile_id: 8, otp: nil, >> realm_id: nil, provision_method: "image">, :setCompute]] >> Failed to save: >> Rendered hosts/_progress.html.erb (0.1ms) >> Rendered config_groups/_config_group.html.erb (18.1ms) >> Rendered config_groups/_config_group.html.erb (4.2ms) >> Rendered config_groups/_config_groups_selection.html.erb (24.2ms) >> Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) >> Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms) >> Rendered puppetclasses/_classes.html.erb (316.8ms) >> Rendered puppetclasses/_class_selection.html.erb (482.0ms) >> Rendered compute_resources_vms/form/vmware/_network.html.erb (66.7ms) >> Rendered compute_resources_vms/form/vmware/_network.html.erb (197.8ms) >> >> >> Any advises? >> > > we had a recent bug [1] about Compute resources not showing the error > unless in debug mode, can you either enable debug more, or apply the ticket > from [2]? this would allow you to get a better error that is actually > coming from vmware. > > [1] http://projects.theforeman.org/issues/6099 > [2] https://github.com/theforeman/foreman/pull/1525/files > >> >> best regards, >> eliran >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > >

Make sure you have openssh client installed on the target image. Scp
will not work until the "scp" binary is on the both client and server.
In RHEL, for example, you need to do this:

yum -y install openssh-clients

LZ

··· On Wed, Jul 02, 2014 at 02:25:36AM -0700, eliran shlomo wrote: > Hi Ohad, i manged to fix that issue. i missed that the template is inside > directory there for it couldn't found it. > > but now i have a problem with the scp at the end of the deploay > > channel_open_confirmation: 0 0 0 32768 > sending channel request "exec" > Processing by TasksController#show as */* > Parameters: {"id"=>"5215db9b-dc9e-42e1-8d5d-3d90fab56c2d"} > channel_window_adjust: 0 +2097152 > channel_success: 0 > Rendered tasks/_list.html.erb (0.5ms) > Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.3ms) > channel_extended_data: 0 1 29b > channel_eof: 0 > channel_request: 0 exit-status false > channel_close: 0 > closing remaining channels (0 open) > Failed to launch script on image1.example.com: SCP did not finish > successfully > (127)/opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:352:in > `block (3 levels) in start_command' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:590:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:590:in > `do_close' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:580:in > `channel_close' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:459:in > `dispatch_incoming_packets' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:216:in > `preprocess' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:200:in > `process' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:in > `block in loop' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:in > `loop' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:in > `loop' > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:269:in > `wait' > /opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:279:in > `upload!' > /opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:72:in > `block in upload' > /opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:202:in > `start' > /opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:71:in > `upload' > /usr/share/foreman/app/services/foreman/provision/ssh.rb:26:in `deploy!' > /usr/share/foreman/app/models/concerns/orchestration/ssh_provision.rb:80:in > `setSSHProvision' > /usr/share/foreman/app/models/concerns/orchestration.rb:142:in `execute' > /usr/share/foreman/app/models/concerns/orchestration.rb:85:in `block in > process' > /usr/share/foreman/app/models/concerns/orchestration.rb:77:in `each' > /usr/share/foreman/app/models/concerns/orchestration.rb:77:in `process' > /usr/share/foreman/app/models/concerns/orchestration.rb:22:in `post_commit' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `_run__4112584532282436178__commit__2484527071054562353__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `__run_callback' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > `_run_commit_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:263:in > `committed!' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:372:in > `block in commit_transaction_records' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in > `each' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in > `commit_transaction_records' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:218:in > `transaction' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in > `transaction' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in > `with_transaction_returning_status' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:241:in > `block in save' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:252:in > `rollback_active_record_state!' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:240:in > `save' > /usr/share/foreman/app/models/concerns/foreman/sti.rb:29:in `save_with_type' > /usr/share/foreman/app/controllers/hosts_controller.rb:94:in `create' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in > `send_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in > `block in process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:527:in > `block (3 levels) in > _run__1734190995199865110__process_action__3573775367402663417__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_6428' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in > `around' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in > `_callback_around_1448' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_6428' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:526:in > `block (2 levels) in > _run__1734190995199865110__process_action__3573775367402663417__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_6427' > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:in > `clear_thread' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_6427' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:415:in > `block in > _run__1734190995199865110__process_action__3573775367402663417__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_6426' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in > `around' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in > `_callback_around_13' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_6426' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in > `_run__1734190995199865110__process_action__3573775367402663417__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `__run_callback' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > `_run_process_action_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in > `block in process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in > `block in instrument' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in > `instrument' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in > `instrument' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in > `process_action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in > `process' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in > `process' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:in > `dispatch' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in > `dispatch' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:in > `block in action' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in > `dispatch' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in > `block in call' > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in > `each' > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.1.2/lib/apipie/static_dispatcher.rb:65:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.1.2/lib/apipie/middleware/checksum_in_headers.rb:27:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in > `call' > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in > `context' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in > `block in call' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `_run__3643770743036585396__call__2484527071054562353__callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `__run_callback' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > `_run_call_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:in > `call_app' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in > `forward' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in > `pass' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in > `invalidate' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in > `call!' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in > `method_missing' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:in > `call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in > `block in call' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in > `each' > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in > `call' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in > `process_request' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in > `accept_and_process_next_request' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in > `main_loop' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in > `block (3 levels) in start_threads' > > > On Wednesday, July 2, 2014 11:02:17 AM UTC+3, ohad wrote: > > > > > > > > > > On Wed, Jul 2, 2014 at 10:53 AM, eliran shlomo > > wrote: > > > >> Hi, > >> I'm trying to deploy new virtual machine from vmware image and it's > >> failed. > >> when i'm setting a vm with pxe install it's finish without any problems. > >> all i see in the production.log is those lines > >> > >> Adding Compute instance for image1.example.com > >> Successfully decrypted field for Foreman::Model::Vmware vc-foreman > >> Successfully decrypted field for Foreman::Model::Vmware vc-foreman > >> Rolling back due to a problem: [Set up compute instance > >> image1.example.com 2 failed [# >> image1.example.com", ip: "10.101.254.109", last_compile: nil, > >> last_freshcheck: nil, last_report: nil, updated_at: nil, source_file_id: > >> nil, created_at: nil, mac: nil, root_pass: "*", serial: nil, puppet_status: > >> 0, domain_id: 1, architecture_id: 1, operatingsystem_id: 1, environment_id: > >> 2, subnet_id: 1, ptable_id: nil, medium_id: nil, build: true, comment: "", > >> disk: "", installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 1, > >> owner_type: "User", enabled: true, puppet_ca_proxy_id: 2, managed: true, > >> use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 3, > >> puppet_proxy_id: 2, certname: nil, image_id: 2

Hi Lukas,
You were right, scp wasn't installed on the image template.

I have another question about puppet class, is there a way to attach class
to all of exist hosts in foreman?

··· On Monday, July 7, 2014 10:36:24 AM UTC+3, Lukas Zapletal wrote: > > Make sure you have openssh client installed on the target image. Scp > will not work until the "scp" binary is on the both client and server. > In RHEL, for example, you need to do this: > > yum -y install openssh-clients > > LZ > > On Wed, Jul 02, 2014 at 02:25:36AM -0700, eliran shlomo wrote: > > Hi Ohad, i manged to fix that issue. i missed that the template is > inside > > directory there for it couldn't found it. > > > > but now i have a problem with the scp at the end of the deploay > > > > channel_open_confirmation: 0 0 0 32768 > > sending channel request "exec" > > Processing by TasksController#show as */* > > Parameters: {"id"=>"5215db9b-dc9e-42e1-8d5d-3d90fab56c2d"} > > channel_window_adjust: 0 +2097152 > > channel_success: 0 > > Rendered tasks/_list.html.erb (0.5ms) > > Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.3ms) > > channel_extended_data: 0 1 29b > > channel_eof: 0 > > channel_request: 0 exit-status false > > channel_close: 0 > > closing remaining channels (0 open) > > Failed to launch script on image1.example.com: SCP did not finish > > successfully > > > (127)/opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:352:in > > > `block (3 levels) in start_command' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:590:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:590:in > > > `do_close' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:580:in > > > `channel_close' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:459:in > > > `dispatch_incoming_packets' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:216:in > > > `preprocess' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:200:in > > > `process' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:in > > > `block in loop' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:in > > > `loop' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/session.rb:164:in > > > `loop' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/lib/net/ssh/connection/channel.rb:269:in > > > `wait' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:279:in > > > `upload!' > > > /opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:72:in > > > `block in upload' > > > /opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:202:in > > > `start' > > > /opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:71:in > > > `upload' > > /usr/share/foreman/app/services/foreman/provision/ssh.rb:26:in `deploy!' > > > /usr/share/foreman/app/models/concerns/orchestration/ssh_provision.rb:80:in > > `setSSHProvision' > > /usr/share/foreman/app/models/concerns/orchestration.rb:142:in `execute' > > /usr/share/foreman/app/models/concerns/orchestration.rb:85:in `block in > > process' > > /usr/share/foreman/app/models/concerns/orchestration.rb:77:in `each' > > /usr/share/foreman/app/models/concerns/orchestration.rb:77:in `process' > > /usr/share/foreman/app/models/concerns/orchestration.rb:22:in > `post_commit' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > > > `_run__4112584532282436178__commit__2484527071054562353__callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > > > `__run_callback' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > > > `_run_commit_callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > > > `run_callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:263:in > > > `committed!' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:372:in > > > `block in commit_transaction_records' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in > > > `each' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in > > > `commit_transaction_records' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:218:in > > > `transaction' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in > > > `transaction' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in > > > `with_transaction_returning_status' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:241:in > > > `block in save' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:252:in > > > `rollback_active_record_state!' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:240:in > > > `save' > > /usr/share/foreman/app/models/concerns/foreman/sti.rb:29:in > `save_with_type' > > /usr/share/foreman/app/controllers/hosts_controller.rb:94:in `create' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in > > > `send_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in > > > `process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in > > > `process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in > > > `block in process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:527:in > > > `block (3 levels) in > > > _run__1734190995199865110__process_action__3573775367402663417__callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > > > `block in _conditional_callback_around_6428' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in > > > `around' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in > > > `_callback_around_1448' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > > > `_conditional_callback_around_6428' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:526:in > > > `block (2 levels) in > > > _run__1734190995199865110__process_action__3573775367402663417__callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > > > `block in _conditional_callback_around_6427' > > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:in > > `clear_thread' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > > > `_conditional_callback_around_6427' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:415:in > > > `block in > > > _run__1734190995199865110__process_action__3573775367402663417__callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in > > > `block in _conditional_callback_around_6426' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in > > > `around' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in > > > `_callback_around_13' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in > > > `_conditional_callback_around_6426' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in > > > > `_run__1734190995199865110__process_action__3573775367402663417__callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > > > `__run_callback' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > > > `_run_process_action_callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > > > `run_callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in > > > `process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:in > > > `process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in > > > `block in process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in > > > `block in instrument' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in > > > `instrument' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in > > > `instrument' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in > > > `process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:in > > > `process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in > > > `process_action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in > > > `process' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in > > > `process' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:in > > > `dispatch' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in > > > `dispatch' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:in > > > `block in action' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in > > > `dispatch' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in > > > `block in call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in > > > `each' > > > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.1.2/lib/apipie/static_dispatcher.rb:65:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.1.2/lib/apipie/middleware/checksum_in_headers.rb:27:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:in > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in > > > `call' > > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in > > > `context' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in > > > `block in call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > > > `_run__3643770743036585396__call__2484527071054562353__callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > > > `__run_callback' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > > > `_run_call_callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > > > `run_callbacks' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:in > > > `call_app' > > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in > > > `forward' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in > > > `pass' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in > > > `invalidate' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in > > > `call!' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in > > > `method_missing' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:in > > > `call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in > > > `block in call' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in > > > `each' > > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in > > > `call' > > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in > > > `process_request' > > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in > > > `accept_and_process_next_request' > > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in > > > `main_loop' > > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in > > > `block (3 levels) in start_threads' > > > > > > On Wednesday, July 2, 2014 11:02:17 AM UTC+3, ohad wrote: > > > > > > > > > > > > > > > On Wed, Jul 2, 2014 at 10:53 AM, eliran shlomo > > > wrote: > > > > > >> Hi, > > >> I'm trying to deploy new virtual machine from vmware image and it's > > >> failed. > > >> when i'm setting a vm with pxe install it's finish without any > problems. > > >> all i see in the production.log is those lines > > >> > > >> Adding Compute instance for image1.example.com > > >> Successfully decrypted field for Foreman::Model::Vmware vc-foreman > > >> Successfully decrypted field for Foreman::Model::Vmware vc-foreman > > >> Rolling back due to a problem: [Set up compute instance > > >> image1.example.com 2 failed [# " > > >> image1.example.com", ip: "10.101.254.109", last_compile: nil, > > >> last_freshcheck: nil, last_report: nil, updated_at: nil, > source_file_id: > > >> nil, created_at: nil, mac: nil, root_pass: "*", serial: nil, > puppet_status: > > >> 0, domain_id: 1, architecture_id: 1, operatingsystem_id: 1, > environment_id: > > >> 2, subnet_id: 1, ptable_id: nil, medium_id: nil, build: true, > comment: "", > > >> disk: "", installed_at: nil, model_id:

> Hi Lukas,
> You were right, scp wasn't installed on the image template.
>
> I have another question about puppet class, is there a way to attach class
> to all of exist hosts in foreman?
>
if you are using foreman 1.5, you can use config groups, create a new base
group of classes and attach it to all of your hostgroups / hosts.

Ohad

··· On Mon, Jul 7, 2014 at 11:02 AM, eliran shlomo wrote:

On Monday, July 7, 2014 10:36:24 AM UTC+3, Lukas Zapletal wrote:

Make sure you have openssh client installed on the target image. Scp
will not work until the “scp” binary is on the both client and server.
In RHEL, for example, you need to do this:

yum -y install openssh-clients

LZ

On Wed, Jul 02, 2014 at 02:25:36AM -0700, eliran shlomo wrote:

Hi Ohad, i manged to fix that issue. i missed that the template is
inside
directory there for it couldn’t found it.

but now i have a problem with the scp at the end of the deploay

channel_open_confirmation: 0 0 0 32768
sending channel request "exec"
Processing by TasksController#show as /
Parameters: {“id”=>“5215db9b-dc9e-42e1-8d5d-3d90fab56c2d”}
channel_window_adjust: 0 +2097152
channel_success: 0
Rendered tasks/_list.html.erb (0.5ms)
Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.3ms)
channel_extended_data: 0 1 29b
channel_eof: 0
channel_request: 0 exit-status false
channel_close: 0
closing remaining channels (0 open)
Failed to launch script on image1.example.com: SCP did not finish
successfully
(127)/opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:352:in

block (3 levels) in start_command' /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ lib/net/ssh/connection/channel.rb:590:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/
lib/net/ssh/connection/channel.rb:590:in
do_close' /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ lib/net/ssh/connection/session.rb:580:inchannel_close’
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/
lib/net/ssh/connection/session.rb:459:in
dispatch_incoming_packets' /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ lib/net/ssh/connection/session.rb:216:inpreprocess’
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/
lib/net/ssh/connection/session.rb:200:in
process' /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ lib/net/ssh/connection/session.rb:164:inblock in loop’
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/
lib/net/ssh/connection/session.rb:164:in
loop' /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ lib/net/ssh/connection/session.rb:164:inloop’
/opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/
lib/net/ssh/connection/channel.rb:269:in
`wait’
/opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:279:in

`upload!’
/opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:72:in

`block in upload’
/opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:202:in

`start’
/opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:71:in

upload' /usr/share/foreman/app/services/foreman/provision/ssh.rb:26:indeploy!’
/usr/share/foreman/app/models/concerns/orchestration/ssh_provision.rb:80:in

setSSHProvision' /usr/share/foreman/app/models/concerns/orchestration.rb:142:inexecute’
/usr/share/foreman/app/models/concerns/orchestration.rb:85:in block in process' /usr/share/foreman/app/models/concerns/orchestration.rb:77:ineach’
/usr/share/foreman/app/models/concerns/orchestration.rb:77:in
process' /usr/share/foreman/app/models/concerns/orchestration.rb:22:inpost_commit’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:405:in
_run__4112584532282436178__commit__2484527071054562353__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:405:in__run_callback’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:385:in
_run_commit_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks’
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-
3.2.8/lib/active_record/transactions.rb:263:in
`committed!’
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-
3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:372:in

`block in commit_transaction_records’
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-
3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in

`each’
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-
3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in

`commit_transaction_records’
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-
3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:218:in

transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- 3.2.8/lib/active_record/transactions.rb:208:intransaction’
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-
3.2.8/lib/active_record/transactions.rb:293:in
with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- 3.2.8/lib/active_record/transactions.rb:241:inblock in save’
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-
3.2.8/lib/active_record/transactions.rb:252:in
rollback_active_record_state!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- 3.2.8/lib/active_record/transactions.rb:240:insave’
/usr/share/foreman/app/models/concerns/foreman/sti.rb:29:in
save_with_type' /usr/share/foreman/app/controllers/hosts_controller.rb:94:increate’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_controller/metal/implicit_render.rb:4:in
send_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/abstract_controller/base.rb:167:inprocess_action’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_controller/metal/rendering.rb:10:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/abstract_controller/callbacks.rb:18:inblock in process_action’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:527:in
`block (3 levels) in
_run__1734190995199865110__process_action__3573775367402663417__callbacks’

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_6428' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:326:inaround’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_1448' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_6428’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:526:in
`block (2 levels) in
_run__1734190995199865110__process_action__3573775367402663417__callbacks’

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_6427' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:inclear_thread’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_6427' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:415:inblock in
_run__1734190995199865110__process_action__3573775367402663417__callbacks’

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_6426' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:326:inaround’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_13' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_6426’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:414:in
`_run__1734190995199865110__process_action__3573775367402663417__callbacks’

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:405:in
__run_callback' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:385:in_run_process_action_callbacks’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:81:in
run_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/abstract_controller/callbacks.rb:17:inprocess_action’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_controller/metal/rescue.rb:29:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_controller/metal/instrumentation.rb:30:inblock in process_action’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/notifications.rb:123:in
block in instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/notifications/instrumenter.rb:20:ininstrument’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/notifications.rb:123:in
instrument' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_controller/metal/instrumentation.rb:29:inprocess_action’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_controller/metal/params_wrapper.rb:207:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- 3.2.8/lib/active_record/railties/controller_runtime.rb:18:inprocess_action’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/abstract_controller/base.rb:121:in
process' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/abstract_controller/rendering.rb:45:inprocess’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_controller/metal.rb:203:in
dispatch' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_controller/metal/rack_delegation.rb:14:indispatch’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_controller/metal.rb:246:in
block in action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/routing/route_set.rb:73:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_dispatch/routing/route_set.rb:73:in
dispatch' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/routing/route_set.rb:36:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in

`block in call’
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in

`each’
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in

call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/routing/route_set.rb:600:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-
0.1.2/lib/apipie/static_dispatcher.rb:65:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails- 0.1.2/lib/apipie/middleware/checksum_in_headers.rb:27:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in
`call’
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:in

call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/ lib/rack/conditionalget.rb:35:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_dispatch/middleware/head.rb:14:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/middleware/params_parser.rb:21:incall’
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/middleware/flash.rb:242:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/
lib/rack/session/abstract/id.rb:205:in
context' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/ lib/rack/session/abstract/id.rb:200:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_dispatch/middleware/cookies.rb:339:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- 3.2.8/lib/active_record/query_cache.rb:64:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-
3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in

call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/middleware/callbacks.rb:28:inblock in call’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:405:in
_run__3643770743036585396__call__2484527071054562353__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:405:in__run_callback’
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-
3.2.8/lib/active_support/callbacks.rb:385:in
_run_call_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_dispatch/middleware/callbacks.rb:27:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/middleware/remote_ip.rb:31:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.
8/lib/rails/rack/logger.rb:26:in
call_app' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2. 8/lib/rails/rack/logger.rb:16:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.
2.8/lib/action_dispatch/middleware/request_id.rb:22:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/ lib/rack/methodoverride.rb:21:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in

call' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- 3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in

call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. 2.8/lib/action_dispatch/middleware/static.rb:62:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.
2/lib/rack/cache/context.rb:136:in
forward' /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1. 2/lib/rack/cache/context.rb:143:inpass’
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.
2/lib/rack/cache/context.rb:155:in
invalidate' /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1. 2/lib/rack/cache/context.rb:71:incall!’
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.
2/lib/rack/cache/context.rb:51:in
`call’
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in

call' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2. 8/lib/rails/application.rb:223:incall’
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.
8/lib/rails/railtie/configurab

By the way, when you saw the error message, did you encounter any kind
of error code? It looks like ERF42-XXXX.

I would like to add a note on our wiki for this particular case.

I don't see anything in the logs.

> I have another question about puppet class, is there a way to attach class
> to all of exist hosts in foreman?

Use host groups, create a base host and assign it to all hosts, then you
can always make such changes. This is the standard pattern which is used
in Foreman.

Usually your base host group is just your standard bare minimum OS and
you add more and more host groups to it (it has inheritance).

LZ

··· -- Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

I use config groups to create a pack of puppet class like
Security class
Default configuration and etc

My problem is that i got a ntp class that needed to be attached for all
nodes before foreman i used sites.pp or modules.pp

··· On Monday, July 7, 2014 11:05:16 AM UTC+3, ohad wrote: > > > > > On Mon, Jul 7, 2014 at 11:02 AM, eliran shlomo > wrote: > >> Hi Lukas, >> You were right, scp wasn't installed on the image template. >> >> I have another question about puppet class, is there a way to attach >> class to all of exist hosts in foreman? >> > if you are using foreman 1.5, you can use config groups, create a new base > group of classes and attach it to all of your hostgroups / hosts. > > Ohad > >> >> >> >> On Monday, July 7, 2014 10:36:24 AM UTC+3, Lukas Zapletal wrote: >> >>> Make sure you have openssh client installed on the target image. Scp >>> will not work until the "scp" binary is on the both client and server. >>> In RHEL, for example, you need to do this: >>> >>> yum -y install openssh-clients >>> >>> LZ >>> >>> On Wed, Jul 02, 2014 at 02:25:36AM -0700, eliran shlomo wrote: >>> > Hi Ohad, i manged to fix that issue. i missed that the template is >>> inside >>> > directory there for it couldn't found it. >>> > >>> > but now i have a problem with the scp at the end of the deploay >>> > >>> > channel_open_confirmation: 0 0 0 32768 >>> > sending channel request "exec" >>> > Processing by TasksController#show as */* >>> > Parameters: {"id"=>"5215db9b-dc9e-42e1-8d5d-3d90fab56c2d"} >>> > channel_window_adjust: 0 +2097152 >>> > channel_success: 0 >>> > Rendered tasks/_list.html.erb (0.5ms) >>> > Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.3ms) >>> > channel_extended_data: 0 1 29b >>> > channel_eof: 0 >>> > channel_request: 0 exit-status false >>> > channel_close: 0 >>> > closing remaining channels (0 open) >>> > Failed to launch script on image1.example.com: SCP did not finish >>> > successfully >>> > (127)/opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:352:in >>> >>> > `block (3 levels) in start_command' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/channel.rb:590:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/channel.rb:590:in >>> > `do_close' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/session.rb:580:in >>> > `channel_close' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/session.rb:459:in >>> > `dispatch_incoming_packets' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/session.rb:216:in >>> > `preprocess' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/session.rb:200:in >>> > `process' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/session.rb:164:in >>> > `block in loop' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/session.rb:164:in >>> > `loop' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/session.rb:164:in >>> > `loop' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-ssh-2.6.7/ >>> lib/net/ssh/connection/channel.rb:269:in >>> > `wait' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:279:in >>> >>> > `upload!' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:72:in >>> >>> > `block in upload' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/net-scp-1.1.0/lib/net/scp.rb:202:in >>> >>> > `start' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/fog-core-1.21.1/lib/fog/core/scp.rb:71:in >>> >>> > `upload' >>> > /usr/share/foreman/app/services/foreman/provision/ssh.rb:26:in >>> `deploy!' >>> > /usr/share/foreman/app/models/concerns/orchestration/ssh_provision.rb:80:in >>> >>> > `setSSHProvision' >>> > /usr/share/foreman/app/models/concerns/orchestration.rb:142:in >>> `execute' >>> > /usr/share/foreman/app/models/concerns/orchestration.rb:85:in `block >>> in >>> > process' >>> > /usr/share/foreman/app/models/concerns/orchestration.rb:77:in `each' >>> > /usr/share/foreman/app/models/concerns/orchestration.rb:77:in >>> `process' >>> > /usr/share/foreman/app/models/concerns/orchestration.rb:22:in >>> `post_commit' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:405:in >>> > `_run__4112584532282436178__commit__2484527071054562353__callbacks' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:405:in >>> > `__run_callback' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:385:in >>> > `_run_commit_callbacks' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:81:in >>> > `run_callbacks' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/transactions.rb:263:in >>> > `committed!' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:372:in >>> >>> > `block in commit_transaction_records' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in >>> >>> > `each' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:370:in >>> >>> > `commit_transaction_records' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:218:in >>> >>> > `transaction' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/transactions.rb:208:in >>> > `transaction' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/transactions.rb:293:in >>> > `with_transaction_returning_status' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/transactions.rb:241:in >>> > `block in save' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/transactions.rb:252:in >>> > `rollback_active_record_state!' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/transactions.rb:240:in >>> > `save' >>> > /usr/share/foreman/app/models/concerns/foreman/sti.rb:29:in >>> `save_with_type' >>> > /usr/share/foreman/app/controllers/hosts_controller.rb:94:in `create' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal/implicit_render.rb:4:in >>> > `send_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/abstract_controller/base.rb:167:in >>> > `process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal/rendering.rb:10:in >>> > `process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/abstract_controller/callbacks.rb:18:in >>> > `block in process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:527:in >>> > `block (3 levels) in >>> > _run__1734190995199865110__process_action__3573775367402663417__callbacks' >>> >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:215:in >>> > `block in _conditional_callback_around_6428' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:326:in >>> > `around' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:310:in >>> > `_callback_around_1448' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:214:in >>> > `_conditional_callback_around_6428' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:526:in >>> > `block (2 levels) in >>> > _run__1734190995199865110__process_action__3573775367402663417__callbacks' >>> >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:215:in >>> > `block in _conditional_callback_around_6427' >>> > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:in >>> >>> > `clear_thread' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:214:in >>> > `_conditional_callback_around_6427' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:415:in >>> > `block in >>> > _run__1734190995199865110__process_action__3573775367402663417__callbacks' >>> >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:215:in >>> > `block in _conditional_callback_around_6426' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:326:in >>> > `around' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:310:in >>> > `_callback_around_13' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:214:in >>> > `_conditional_callback_around_6426' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:414:in >>> > `_run__1734190995199865110__process_action__3573775367402663417__callbacks' >>> >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:405:in >>> > `__run_callback' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:385:in >>> > `_run_process_action_callbacks' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:81:in >>> > `run_callbacks' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/abstract_controller/callbacks.rb:17:in >>> > `process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal/rescue.rb:29:in >>> > `process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal/instrumentation.rb:30:in >>> > `block in process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/notifications.rb:123:in >>> > `block in instrument' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/notifications/instrumenter.rb:20:in >>> > `instrument' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/notifications.rb:123:in >>> > `instrument' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal/instrumentation.rb:29:in >>> > `process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal/params_wrapper.rb:207:in >>> > `process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/railties/controller_runtime.rb:18:in >>> > `process_action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/abstract_controller/base.rb:121:in >>> > `process' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/abstract_controller/rendering.rb:45:in >>> > `process' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal.rb:203:in >>> > `dispatch' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal/rack_delegation.rb:14:in >>> > `dispatch' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_controller/metal.rb:246:in >>> > `block in action' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/routing/route_set.rb:73:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/routing/route_set.rb:73:in >>> > `dispatch' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/routing/route_set.rb:36:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in >>> >>> > `block in call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in >>> >>> > `each' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in >>> >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/routing/route_set.rb:600:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails- >>> 0.1.2/lib/apipie/static_dispatcher.rb:65:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails- >>> 0.1.2/lib/apipie/middleware/checksum_in_headers.rb:27:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:in >>> >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/ >>> lib/rack/conditionalget.rb:35:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/head.rb:14:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/params_parser.rb:21:in >>> > `call' >>> > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in >>> `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/flash.rb:242:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/ >>> lib/rack/session/abstract/id.rb:205:in >>> > `context' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/ >>> lib/rack/session/abstract/id.rb:200:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/cookies.rb:339:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/query_cache.rb:64:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activerecord- >>> 3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in >>> >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/callbacks.rb:28:in >>> > `block in call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:405:in >>> > `_run__3643770743036585396__call__2484527071054562353__callbacks' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:405:in >>> > `__run_callback' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:385:in >>> > `_run_call_callbacks' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/callbacks.rb:81:in >>> > `run_callbacks' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/callbacks.rb:27:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2. >>> 8/lib/rails/rack/logger.rb:26:in >>> > `call_app' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2. >>> 8/lib/rails/rack/logger.rb:16:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/request_id.rb:22:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/ >>> lib/rack/methodoverride.rb:21:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in >>> >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport- >>> 3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in >>> >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3. >>> 2.8/lib/action_dispatch/middleware/static.rb:62:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1. >>> 2/lib/rack/cache/context.rb:136:in >>> > `forward' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1. >>> 2/lib/rack/cache/context.rb:143:in >>> > `pass' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1. >>> 2/lib/rack/cache/context.rb:155:in >>> > `invalidate' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1. >>> 2/lib/rack/cache/context.rb:71:in >>> > `call!' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1. >>> 2/lib/rack/cache/context.rb:51:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in >>> >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2. >>> 8/lib/rails/application.rb:223:in >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2. >>> 8/lib/rails/railtie/configurable.rb:30:in >>> > `method_missing' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:in >>> >>> > `call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in >>> >>> > `block in call' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in >>> >>> > `each' >>> > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in >>> >>> > `call' >>> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_ >>> passenger/rack/thread_handler_extension.rb:77:in >>> > `process_request' >>> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_ >>> passenger/request_handler/thread_handler.rb:140:in >>> > `accept_and_process_next_request' >>> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_ >>> passenger/request_handler/thread_handler.rb:108:in >>> > `main_loop' >>> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_ >>> passenger/request_handler.rb:441:in >>> > `b

Hi,
I didn't saw any error message

··· On Monday, July 7, 2014 12:07:43 PM UTC+3, Lukas Zapletal wrote: > > By the way, when you saw the error message, did you encounter any kind > of error code? It looks like ERF42-XXXX. > > I would like to add a note on our wiki for this particular case. > > I don't see anything in the logs. > > > I have another question about puppet class, is there a way to attach > class > > to all of exist hosts in foreman? > > Use host groups, create a base host and assign it to all hosts, then you > can always make such changes. This is the standard pattern which is used > in Foreman. > > Usually your base host group is just your standard bare minimum OS and > you add more and more host groups to it (it has inheritance). > > LZ > > -- > Later, > > Lukas "lzap" Zapletal > irc: lzap #theforeman >