2016-02-23 10:53:36 [app] [I] | | Started POST "/api/hosts" for 172.17.31.1 at 2016-02-23 10:53:36 +0100 2016-02-23 10:53:36 [app] [I] Processing by Api::V2::HostsController#create as JSON 2016-02-23 10:53:36 [app] [I] Parameters: {"host"=>{"name"=>"r80dm", "environment_id"=>1, "architecture_id"=>1, "domain_id"=>1, "puppet_proxy_id"=>1, "operatingsystem_id"=>2, "subnet_id"=>1, "compute_resource_id"=>1, "hostgroup_id"=>3, "puppet_ca_proxy_id"=>1, "build"=>true, "enabled"=>true, "provision_method"=>"image", "managed"=>true, "compute_attributes"=>{"cpus"=>"4", "memory"=>"12884901888", "start"=>"1", "image_id"=>"/var/lib/libvirt/images/win7-appnode.qcow2", "volumes_attributes"=>{"0"=>{"pool_name"=>"virt-images", "capacity"=>"150G", "format_type"=>"qcow2", "allocation"=>"0G"}}}, "overwrite"=>true, "host_parameters_attributes"=>{}, "interfaces_attributes"=>{"0"=>{"primary"=>"true", "provision"=>"true", "ip"=>"172.17.31.10", "compute_attributes"=>{"type"=>"bridge", "bridge"=>"br0", "model"=>"virtio"}}}}, "apiv"=>"v2"} 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to foreman_admin 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to nil 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to foreman_admin 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to nil 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to admin 2016-02-23 10:53:36 [app] [I] Authorized user admin(Admin User) 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to admin 2016-02-23 10:53:36 [app] [W] Action failed | Net::Validations::Error: Invalid MAC | /usr/share/foreman/lib/net/validations.rb:40:in `validate_mac' | /usr/share/foreman/lib/net/dhcp/record.rb:7:in `initialize' | /usr/share/foreman/app/models/concerns/orchestration/dhcp.rb:20:in `new' | /usr/share/foreman/app/models/concerns/orchestration/dhcp.rb:20:in `dhcp_record' | /usr/share/foreman/app/models/concerns/orchestration/dhcp.rb:158:in `queue_remove_dhcp_conflicts' | /usr/share/foreman/app/models/concerns/orchestration/dhcp.rb:111:in `queue_dhcp' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:468:in `_run__3828331067920761418__validation__2654418885637051451__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_validation_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/activemodel-3.2.8/lib/active_model/validations/callbacks.rb:53:in `run_validations!' | /opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/validations.rb:194:in `valid?' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:69:in `valid?' | /usr/share/foreman/app/models/concerns/orchestration.rb:75:in `valid?' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/autosave_association.rb:300:in `association_valid?' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/autosave_association.rb:289:in `block in validate_collection_association' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/autosave_association.rb:289:in `each' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/autosave_association.rb:289:in `validate_collection_association' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/autosave_association.rb:217:in `block in add_autosave_association_callbacks' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/autosave_association.rb:161:in `instance_eval' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/autosave_association.rb:161:in `block in define_non_cyclic_method' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:561:in `_run__1103775466355484114__validate__2654418885637051451__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_validate_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/activemodel-3.2.8/lib/active_model/validations.rb:227:in `run_validations!' | /opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:480:in `_run__1103775466355484114__validation__2654418885637051451__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_validation_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/activemodel-3.2.8/lib/active_model/validations/callbacks.rb:53:in `run_validations!' | /opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/validations.rb:194:in `valid?' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:69:in `valid?' | /usr/share/foreman/app/models/concerns/orchestration.rb:75:in `valid?' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:77:in `perform_validations' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:50:in `save' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:22:in `save' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:241:in `block (2 levels) in save' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192: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/api/v2/hosts_controller.rb:96: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:584:in `block (5 levels) in _run__4314965325210765313__process_action__2384575093886411449__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_7750' | /usr/share/foreman/app/controllers/api/v2/base_controller.rb:151:in `disable_json_root' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7750' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:550:in `block (4 levels) in _run__4314965325210765313__process_action__2384575093886411449__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_7749' | /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_2658' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7749' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:527:in `block (3 levels) in _run__4314965325210765313__process_action__2384575093886411449__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_7748' | /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:in `set_timezone' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7748' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:526:in `block (2 levels) in _run__4314965325210765313__process_action__2384575093886411449__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_7747' | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32: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_7747' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:448:in `block in _run__4314965325210765313__process_action__2384575093886411449__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_7746' | /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_7746' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in `_run__4314965325210765313__process_action__2384575093886411449__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/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:42: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/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/static_dispatcher.rb:65:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in `call' | /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/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__674775781815561963__call__2654418885637051451__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/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request' | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request' | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop' | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' 2016-02-23 10:53:36 [app] [I] Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (0.5ms) 2016-02-23 10:53:36 [app] [I] Completed 500 Internal Server Error in 98ms (Views: 1.6ms | ActiveRecord: 66.3ms) 2016-02-23 10:53:36 [app] [I] | | Started POST "/api/hosts" for 127.0.0.1 at 2016-02-23 10:53:36 +0100 2016-02-23 10:53:36 [app] [I] Processing by Api::V2::HostsController#create as JSON 2016-02-23 10:53:36 [app] [I] Parameters: {"host"=>{"name"=>"r80dm", "hostgroup_id"=>"3", "compute_resource_id"=>"1", "managed"=>"true", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "name"=>"r80dm", "domain_id"=>"1", "subnet_id"=>"1", "ip"=>"172.17.31.10", "managed"=>"1", "primary"=>"1", "provision"=>"1", "virtual"=>"0", "compute_attributes"=>{"type"=>"bridge", "bridge"=>"br0", "model"=>"virtio"}}}, "compute_attributes"=>{"cpus"=>"4", "memory"=>"12884901888", "start"=>"1", "volumes_attributes"=>{"0"=>{"_delete"=>"", "pool_name"=>"virt-images", "capacity"=>"150G", "allocation"=>"0G", "format_type"=>"qcow2"}}, "image_id"=>"/var/lib/libvirt/images/win7-appnode.qcow2"}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "provision_method"=>"image", "build"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_proxy_id"=>"1", "enabled"=>"1"}, "apiv"=>"v2"} 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to foreman_admin 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to nil 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to foreman_admin 2016-02-23 10:53:36 [app] [I] Expire fragment views/tabs_and_title_records-3 (0.2ms) 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to nil 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to admin 2016-02-23 10:53:36 [app] [I] Authorized user admin(Admin User) 2016-02-23 10:53:36 [app] [D] Setting current user thread-local variable to admin 2016-02-23 10:53:36 [app] [I] Create DHCP reservation for r80dm.localdomain-52:54:00:4d:bf:79/172.17.31.10 2016-02-23 10:53:36 [app] [D] DHCP reservation on net 172.17.16.0 with attrs: {:hostname=>"r80dm.localdomain", :mac=>"52:54:00:4d:bf:79", :ip=>"172.17.31.10", :network=>"172.17.16.0", :filename=>"pxelinux.0"} 2016-02-23 10:53:36 [app] [I] Add DNS PTR record for 172.17.31.10/r80dm.localdomain 2016-02-23 10:53:39 [app] [I] Connecting to database specified by database.yml 2016-02-23 10:53:39 [app] [D] Found hook to Host::Managed#create, filename 10_autostart_libvirt.sh 2016-02-23 10:53:39 [app] [D] Found hook to Host::Managed#create, filename 20_set_vm_properties.sh 2016-02-23 10:53:39 [app] [D] Found hook to Host::Managed#create, filename 30_allow_host_dhcp.sh 2016-02-23 10:53:39 [app] [D] Found hook to Host::Managed#create, filename hook_functions.sh 2016-02-23 10:53:39 [app] [I] Finished registering 4 hooks for Host::Managed#create 2016-02-23 10:53:41 [app] [W] ForemanConfigMonitor: skipping engine hook (uninitialized constant ForemanConfigMonitor::HostsHelperExtensions) 2016-02-23 10:53:47 [app] [I] | | Started GET "/api/compute_resources/1" for 172.17.31.1 at 2016-02-23 10:53:47 +0100 2016-02-23 10:53:47 [app] [I] Processing by Api::V2::ComputeResourcesController#show as JSON 2016-02-23 10:53:47 [app] [I] Parameters: {"apiv"=>"v2", "id"=>"1"} 2016-02-23 10:53:47 [app] [D] Setting current user thread-local variable to foreman_admin 2016-02-23 10:53:47 [app] [D] Setting current user thread-local variable to nil 2016-02-23 10:53:47 [app] [D] Setting current user thread-local variable to foreman_admin 2016-02-23 10:53:47 [app] [D] Setting current user thread-local variable to nil 2016-02-23 10:53:47 [app] [D] Setting current user thread-local variable to puppet_provider 2016-02-23 10:53:47 [app] [I] Authorized user puppet_provider(puppet provider) 2016-02-23 10:53:47 [app] [D] Setting current user thread-local variable to puppet_provider 2016-02-23 10:53:47 [app] [I] Rendered api/v2/compute_resources/show.json.rabl (29.4ms) 2016-02-23 10:53:47 [app] [D] Body: {"description":null,"url":"qemu+ssh://root@z440dm.localdomain/system","created_at":"2016-02-23T07:39:42Z","updated_at":"2016-02-23T07:39:42Z","id":1,"name":"z440dm","provider":"Libvirt","provider_friendly_name":"Libvirt","display_type":"vnc","set_console_password":false,"images":[{"id":1,"name":"Win2k8R2TsNode"},{"id":2,"name":"Win7AppNode"}],"compute_attributes":[{"id":2,"name":"4 CPUs and 8 GB memory","compute_resource_id":1,"compute_resource_name":"z440dm","compute_profile_id":5,"compute_profile_name":"02-TsNode","vm_attrs":{"cpus":"4","memory":"8589934592","volumes_attributes":{"new_volumes":{"pool_name":"virt-images","capacity":"600G","allocation":"0G","format_type":"qcow2","_delete":""},"0":{"pool_name":"virt-images","capacity":"600G","allocation":"0G","format_type":"qcow2","_delete":""}},"nics_attributes":{"new_nics":{"type":"bridge","bridge":"br0","model":"virtio","_delete":""},"0":{"type":"bridge","bridge":"br0","model":"virtio","_delete":""},"1":{"type":"bridge","bridge":"br1","model":"virtio","_delete":""},"2":{"type":"bridge","bridge":"br2","model":"virtio","_delete":""}},"image_id":"/var/lib/libvirt/images/win2k8-tsnode.qcow2"}},{"id":1,"name":"4 CPUs and 12 GB memory","compute_resource_id":1,"compute_resource_name":"z440dm","compute_profile_id":4,"compute_profile_name":"01-AppNode","vm_attrs":{"cpus":"4","memory":"12884901888","volumes_attributes":{"new_volumes":{"pool_name":"virt-images","capacity":"150G","allocation":"0G","format_type":"qcow2","_delete":""},"0":{"pool_name":"virt-images","capacity":"150G","allocation":"0G","format_type":"qcow2","_delete":""}},"nics_attributes":{"new_nics":{"type":"bridge","bridge":"br0","model":"virtio","_delete":""},"0":{"type":"bridge","bridge":"br0","model":"virtio","_delete":""}},"image_id":"/var/lib/libvirt/images/win7-appnode.qcow2"}}]} 2016-02-23 10:53:47 [app] [I] Completed 200 OK in 360ms (Views: 168.9ms | ActiveRecord: 31.2ms) 2016-02-23 10:53:50 [app] [I] | | Started GET "/api/compute_resources/1" for 172.17.31.1 at 2016-02-23 10:53:50 +0100 2016-02-23 10:53:50 [app] [I] Processing by Api::V2::ComputeResourcesController#show as JSON 2016-02-23 10:53:50 [app] [I] Parameters: {"apiv"=>"v2", "id"=>"1"} 2016-02-23 10:53:50 [app] [D] Setting current user thread-local variable to foreman_admin 2016-02-23 10:53:50 [app] [D] Setting current user thread-local variable to nil 2016-02-23 10:53:50 [app] [D] Setting current user thread-local variable to foreman_admin 2016-02-23 10:53:50 [app] [D] Setting current user thread-local variable to nil 2016-02-23 10:53:50 [app] [D] Setting current user thread-local variable to puppet_provider 2016-02-23 10:53:50 [app] [I] Authorized user puppet_provider(puppet provider) 2016-02-23 10:53:50 [app] [D] Setting current user thread-local variable to puppet_provider 2016-02-23 10:53:50 [app] [I] Rendered api/v2/compute_resources/show.json.rabl (131.3ms) 2016-02-23 10:53:50 [app] [D] Body: {"description":null,"url":"qemu+ssh://root@z440dm.localdomain/system","created_at":"2016-02-23T07:39:42Z","updated_at":"2016-02-23T07:39:42Z","id":1,"name":"z440dm","provider":"Libvirt","provider_friendly_name":"Libvirt","display_type":"vnc","set_console_password":false,"images":[{"id":1,"name":"Win2k8R2TsNode"},{"id":2,"name":"Win7AppNode"}],"compute_attributes":[{"id":2,"name":"4 CPUs and 8 GB memory","compute_resource_id":1,"compute_resource_name":"z440dm","compute_profile_id":5,"compute_profile_name":"02-TsNode","vm_attrs":{"cpus":"4","memory":"8589934592","volumes_attributes":{"new_volumes":{"pool_name":"virt-images","capacity":"600G","allocation":"0G","format_type":"qcow2","_delete":""},"0":{"pool_name":"virt-images","capacity":"600G","allocation":"0G","format_type":"qcow2","_delete":""}},"nics_attributes":{"new_nics":{"type":"bridge","bridge":"br0","model":"virtio","_delete":""},"0":{"type":"bridge","bridge":"br0","model":"virtio","_delete":""},"1":{"type":"bridge","bridge":"br1","model":"virtio","_delete":""},"2":{"type":"bridge","bridge":"br2","model":"virtio","_delete":""}},"image_id":"/var/lib/libvirt/images/win2k8-tsnode.qcow2"}},{"id":1,"name":"4 CPUs and 12 GB memory","compute_resource_id":1,"compute_resource_name":"z440dm","compute_profile_id":4,"compute_profile_name":"01-AppNode","vm_attrs":{"cpus":"4","memory":"12884901888","volumes_attributes":{"new_volumes":{"pool_name":"virt-images","capacity":"150G","allocation":"0G","format_type":"qcow2","_delete":""},"0":{"pool_name":"virt-images","capacity":"150G","allocation":"0G","format_type":"qcow2","_delete":""}},"nics_attributes":{"new_nics":{"type":"bridge","bridge":"br0","model":"virtio","_delete":""},"0":{"type":"bridge","bridge":"br0","model":"virtio","_delete":""}},"image_id":"/var/lib/libvirt/images/win7-appnode.qcow2"}}]} 2016-02-23 10:53:50 [app] [I] Completed 200 OK in 160ms (Views: 130.6ms | ActiveRecord: 14.8ms) 2016-02-23 10:53:53 [app] [D] establishing connection to 172.17.31.10:22 2016-02-23 10:54:09 [app] [D] establishing connection to 172.17.31.10:22 2016-02-23 10:54:11 [app] [D] Host unreachable for 172.17.31.10, retrying 2016-02-23 10:54:13 [app] [D] establishing connection to 172.17.31.10:22 2016-02-23 10:54:14 [app] [D] Host unreachable for 172.17.31.10, retrying 2016-02-23 10:54:16 [app] [D] establishing connection to 172.17.31.10:22 2016-02-23 10:54:17 [app] [D] Host unreachable for 172.17.31.10, retrying