No, it is failing again. It looks like it is not related with linux 
permissions. I post my configuration, so maybe anybody could help me. This 
is my storage pool:

virsh # pool-info baseimages
Name:           baseimages
UUID:           ec526631-8997-4be8-9a18-d60d12634bda
State:          running
Persistent:     yes
Autostart:      yes
Capacity:       98.31 GiB
Allocation:     1.53 GiB
Available:      96.78 GiB

virsh #

virsh # pool-dumpxml baseimages
<pool type='fs'>
  <name>baseimages</name>
  <uuid>ec526631-8997-4be8-9a18-d60d12634bda</uuid>
  <capacity unit='bytes'>105555197952</capacity>
  <allocation unit='bytes'>1638027264</allocation>
  <available unit='bytes'>103917170688</available>
  <source>
    <device path='/dev/vg0/libvirt-storage'/>
    <format type='auto'/>
  </source>
  <target>
    <path>/home/baseimages</path>
    <permissions>
      <mode>0777</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>

virsh #

I already tried to delete the pool, create it again and even refresh. But 
when I try to provision a new host, foreman fails with the following 
message:

2016-06-18T14:41:22 [app] [I] Started POST "/hosts" for 192.168.0.156 at 
2016-06-18 14:41:22 +0200
2016-06-18T14:41:22 [app] [I] Processing by HostsController#create as */*
2016-06-18T14:41:22 [app] [I]   Parameters: {"utf8"=>"✓", 
"authenticity_token"=>"xxxxxxxxxxxWLzUzeo=", "host"=>{"name"=>"test1", 
"hostgroup_id"=>"1", "compute_resource_id"=>"2", "environment_id"=>"", 
"managed"=>"true", "progress_report_id"=>"[FILTERED]", 
"type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", 
"type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"test1", 
"domain_id"=>"1", "subnet_id"=>"1", "ip"=>"192.168.0.45", "managed"=>"1", 
"primary"=>"1", "provision"=>"1", "virtual"=>"0", "tag"=>"", 
"attached_to"=>"", "compute_attributes"=>{"type"=>"bridge", 
"bridge"=>"br0", "model"=>"virtio"}}}, "compute_attributes"=>{"cpus"=>"1", 
"memory"=>"805306368", "start"=>"1", 
"volumes_attributes"=>{"0"=>{"_delete"=>"", "pool_name"=>"baseimages", 
"capacity"=>"10G", "allocation"=>"0G", "format_type"=>"qcow2"}}, 
"image_id"=>"/home/baseimages/ubuntu16/xenial-server-cloudimg-amd64-disk1.img"},
 
"architecture_id"=>"1", "operatingsystem_id"=>"1", 
"provision_method"=>"image", "build"=>"1", "medium_id"=>"7", 
"ptable_id"=>"62", "disk"=>"", "root_pass"=>"[FILTERED]", 
"is_owned_by"=>"3-Users", "enabled"=>"0", "comment"=>"", 
"overwrite"=>"false"}, "capabilities"=>"build image", 
"provider"=>"Libvirt", "bare_metal_capabilities"=>"build"}
2016-06-18T14:41:22 [app] [W] Failed to create a compute kvm03 (Libvirt) 
instance test1.domain.lan: ERF42-3305 [Foreman::Exception]: Unable to find 
template /home/baseimages/ubuntu16/xenial-server-cloudimg-amd64-disk1.img
 |
 | Foreman::Exception: ERF42-3305 [Foreman::Exception]: Unable to find 
template /home/baseimages/ubuntu16/xenial-server-cloudimg-amd64-disk1.img
 | 
/usr/share/foreman/app/models/compute_resources/foreman/model/libvirt.rb:99:in 
`template'
 | 
/usr/share/foreman/app/models/compute_resources/foreman/model/libvirt.rb:204:in 
`create_volumes'
 | 
/usr/share/foreman/app/models/compute_resources/foreman/model/libvirt.rb:126:in 
`create_vm'
 | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:76:in 
`setCompute'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:162:in `execute'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:107:in `block in 
process'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:99:in `each'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:99:in `process'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:35:in `on_save'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:429:in
 
`block in make_lambda'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:161:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:161:in
 
`block in halting'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:501:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:501:in
 
`block in call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:501:in
 
`each'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:501:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:86:in
 
`run_callbacks'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/callbacks.rb:302:in
 
`create_or_update'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/persistence.rb:103:in
 
`save'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/validations.rb:51:in
 
`save'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/attribute_methods/dirty.rb:21:in
 
`save'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/transactions.rb:268:in
 
`block (2 levels) in save'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/transactions.rb:329:in
 
`block in with_transaction_returning_status'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in
 
`block in transaction'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in
 
`within_new_transaction'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in
 
`transaction'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/transactions.rb:208:in
 
`transaction'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/transactions.rb:326:in
 
`with_transaction_returning_status'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/transactions.rb:268:in
 
`block in save'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/transactions.rb:283:in
 
`rollback_active_record_state!'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/transactions.rb:267:in
 
`save'
 | /usr/share/foreman/app/models/concerns/foreman/sti.rb:29:in 
`save_with_type'
 | /usr/share/foreman/app/controllers/hosts_controller.rb:91:in `create'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/implicit_render.rb:4:in
 
`send_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/abstract_controller/base.rb:189:in
 
`process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/rendering.rb:10:in
 
`process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/abstract_controller/callbacks.rb:20:in
 
`block in process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:113:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:113:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:552:in
 
`block (2 levels) in compile'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:495:in
 
`block (2 levels) in around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in
 
`block (2 levels) in halting'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in
 
`around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:452:in
 
`public_send'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:452:in
 
`block in make_lambda'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in
 
`block in halting'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in
 
`block in around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:495:in
 
`block (2 levels) in around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in
 
`block (2 levels) in halting'
 | /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:in 
`set_timezone'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:429:in
 
`block in make_lambda'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in
 
`block in halting'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in
 
`block in around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:495:in
 
`block (2 levels) in around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in
 
`block (2 levels) in halting'
 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in 
`clear_thread'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:429:in
 
`block in make_lambda'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in
 
`block in halting'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in
 
`block in around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:495:in
 
`block (2 levels) in around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:306:in
 
`block (2 levels) in halting'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in
 
`around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:452:in
 
`public_send'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:452:in
 
`block in make_lambda'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:305:in
 
`block in halting'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:494:in
 
`block in around'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:502:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:86:in
 
`run_callbacks'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/abstract_controller/callbacks.rb:19:in
 
`process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/rescue.rb:29:in
 
`process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/instrumentation.rb:32:in
 
`block in process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/notifications.rb:159:in
 
`block in instrument'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/notifications/instrumenter.rb:20:in
 
`instrument'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/notifications.rb:159:in
 
`instrument'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/instrumentation.rb:30:in
 
`process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/params_wrapper.rb:250:in
 
`process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/railties/controller_runtime.rb:18:in
 
`process_action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/abstract_controller/base.rb:136:in
 
`process'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionview-4.1.14.2/lib/action_view/rendering.rb:30:in
 
`process'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal.rb:196:in
 
`dispatch'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal/rack_delegation.rb:13:in
 
`dispatch'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_controller/metal.rb:232:in
 
`block in action'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/routing/route_set.rb:80:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/routing/route_set.rb:80:in
 
`dispatch'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/routing/route_set.rb:48:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/journey/router.rb:73:in
 
`block in call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/journey/router.rb:59:in
 
`each'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/journey/router.rb:59:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/routing/route_set.rb:690:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/static_dispatcher.rb:65:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/extractor/recorder.rb:132:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/middleware/checksum_in_headers.rb:27:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/etag.rb:23:in 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/conditionalget.rb:35:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/head.rb:11:in 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/params_parser.rb:27:in
 
`call'
 | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/flash.rb:254:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:225:in
 
`context'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:220:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/cookies.rb:562:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/query_cache.rb:36:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activerecord-4.1.14.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/callbacks.rb:29:in
 
`block in call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/callbacks.rb:82:in
 
`run_callbacks'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/callbacks.rb:27:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/remote_ip.rb:76:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/debug_exceptions.rb:17:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/rack/logger.rb:38:in
 
`call_app'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/rack/logger.rb:22:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/request_id.rb:21:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/methodoverride.rb:21:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/runtime.rb:17:in 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/actionpack-4.1.14.2/lib/action_dispatch/middleware/static.rb:84:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/sendfile.rb:112:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/engine.rb:514:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/application.rb:144:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in
 
`public_send'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in
 
`method_missing'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/builder.rb:138:in 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/urlmap.rb:65:in 
`block in call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/urlmap.rb:50:in 
`each'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/rack-1.5.5/lib/rack/urlmap.rb:50:in 
`call'
 | 
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:74:in
 
`process_request'
 | 
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:141:in
 
`accept_and_process_next_request'
 | 
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:109:in
 
`main_loop'
 | /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:455:in 
`block (3 levels) in start_threads'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in
 
`call'
 | 
/usr/share/foreman/vendor/ruby/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in
 
`block in create_with_logging_context'
2016-06-18T14:41:22 [app] [I] Failed to save: Failed to create a compute 
kvm03 (Libvirt) instance test1.domain.lan: ERF42-3305 [Foreman::Exception]: 
Unable to find template 
/home/baseimages/ubuntu16/xenial-server-cloudimg-amd64-disk1.img

I already checked the path and is correct:

webmaster@kvm03$ ls -lha 
/home/baseimages/ubuntu16/xenial-server-cloudimg-amd64-disk1.img
-rw-r--r-- 1 libvirt-qemu kvm 291M Jun 10 11:41 
/home/baseimages/ubuntu16/xenial-server-cloudimg-amd64-disk1.img
webmaster@kvm03$

webmaster@kvm03$ sudo qemu-img info 
/home/baseimages/ubuntu16/xenial-server-cloudimg-amd64-disk1.img
[sudo] password for webmaster:
image: /home/baseimages/ubuntu16/xenial-server-cloudimg-amd64-disk1.img
file format: qcow2
virtual size: 2.2G (2361393152 bytes)
disk size: 291M
cluster_size: 65536
Format specific information:
    compat: 0.10
    refcount bits: 16
webmaster@kvm03$

I'm stuck with this issue. Please somebody!

El jueves, 16 de junio de 2016, 18:12:53 (UTC+2), Félix Barbeira escribió:
>
> Have you checked linux permissions for that directory? I had the same 
> error and fix it giving "libvirt-qemu:kvm" owners to directory and base 
> image.
>
> El lunes, 9 de noviembre de 2015, 10:36:44 (UTC+1), [email protected] 
> escribió:
>>
>> Greetings,
>>
>> I'm trying to setup Foreman, got it working with LAN hypervisors, but now 
>> for production purposes, I need to get it up running for remote VM install 
>> on rented servers where I have close to no control over the network. We get 
>> no access to DHCP, VM have to be configured statically with a somewhat 
>> unconventionnal network setup, a /32 hostmask using the hypervisor as a 
>> manual route and default gateway. We used to install those VM networkless 
>> and setup the network during post-install via VNC. Since standard 
>> network-based installs doesn't seem to cut it in those conditions, I wanted 
>> to try out templates in this environnement.
>>
>> So I configured manually my template VM, installed cloud-init, made sure 
>> it ran, wrote some custom cloud-init logic in Foreman to setup the network 
>> correctly but I can't seem to get past the second step in host creation, 
>> after userdata rendering and during resources allocations. The process 
>> stops with the following error message :
>>
>> Failed to create a compute HV (Libvirt) instance vm.fqdn: ERF42-3305 
>> [Foreman::Exception]: Unable to find template /dev/vm_kvm/tplvm 
>>
>> The overall setup is using libvirt with KVM and a LVM storage pool. I 
>> RTFMed a bit, mostly found messages related to the template image path
>> ( http://projects.theforeman.org/projects/foreman/wiki/ERF42-3305 ). I'm 
>> not too sure how I fall into this problem since the image path seems to 
>> correspond with how the storage pool was configured, but I'm probably just 
>> missing something.
>>
>> Here is my pool definition :
>>
>> # virsh pool-dumpxml vm_kvm
>> <pool type='logical'>
>>   <name>vm_kvm</name>
>>   <uuid>82ee3e78-94bd-053f-c982-dca2f9b09ec9</uuid>
>>   <capacity unit='bytes'>2193688100864</capacity>
>>   <allocation unit='bytes'>1911260446720</allocation>
>>   <available unit='bytes'>282427654144</available>
>>   <source>
>>     <name>vm_kvm</name>
>>     <format type='unknown'/>
>>   </source>
>>   <target>
>>     <path>/dev/vm_kvm</path>
>>     <permissions>
>>       <mode>0700</mode>
>>       <owner>4294967295</owner>
>>       <group>4294967295</group>
>>     </permissions>
>>   </target>
>> </pool>
>>
>> Here is my template definition :
>>
>> # virsh dumpxml tplvm
>> <domain type='kvm'>
>>   <name>tplvm</name>
>>   <uuid>50234253-c419-6f3d-7003-0dcbf8063eac</uuid>
>>   <description>xxxxxxxxxxxxxxxxxxxxxxx</description>
>>   <memory unit='KiB'>2097152</memory>
>>   <currentMemory unit='KiB'>2097152</currentMemory>
>>   <vcpu placement='static'>2</vcpu>
>>   <os>
>>     <type arch='x86_64' machine='pc-1.1'>hvm</type>
>>     <boot dev='hd'/>
>>   </os>
>>   <features>
>>     <acpi/>
>>     <apic/>
>>     <pae/>
>>   </features>
>>   <clock offset='utc'/>
>>   <on_poweroff>destroy</on_poweroff>
>>   <on_reboot>restart</on_reboot>
>>   <on_crash>restart</on_crash>
>>   <devices>
>>     <emulator>/usr/bin/kvm</emulator>
>>     <disk type='block' device='disk'>
>>       <driver name='qemu' type='raw' cache='none'/>
>>       <source dev='/dev/vm_kvm/tplvm'/>
>>       <target dev='vda' bus='virtio'/>
>>       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' 
>> function='0x0'/>
>>     </disk>
>>     <disk type='block' device='cdrom'>
>>       <driver name='qemu' type='raw'/>
>>       <target dev='hdc' bus='ide'/>
>>       <readonly/>
>>       <address type='drive' controller='0' bus='1' target='0' unit='0'/>
>>     </disk>
>>     <controller type='usb' index='0'>
>>       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
>> function='0x2'/>
>>     </controller>
>>     <controller type='ide' index='0'>
>>       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
>> function='0x1'/>
>>     </controller>
>>     <interface type='bridge'>
>>       <mac address='xx:xx:xx:xx:xx:xx'/>
>>       <source bridge='br0'/>
>>       <model type='virtio'/>
>>       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
>> function='0x0'/>
>>     </interface>
>>     <serial type='pty'>
>>       <target port='0'/>
>>     </serial>
>>     <console type='pty'>
>>       <target type='serial' port='0'/>
>>     </console>
>>     <input type='mouse' bus='ps2'/>
>>     <graphics type='vnc' port='5915' autoport='no' listen='0.0.0.0' 
>> keymap='fr'>
>>       <listen type='address' address='0.0.0.0'/>
>>     </graphics>
>>     <video>
>>       <model type='cirrus' vram='9216' heads='1'/>
>>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
>> function='0x0'/>
>>     </video>
>>     <memballoon model='virtio'>
>>       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 
>> function='0x0'/>
>>     </memballoon>
>>   </devices>
>> </domain>
>>
>> I should probably add I'm using Foreman 1.9.3. The Foreman host and the 
>> VM are running Debian 8, the hypervisor is still running Debian 7.The HV is 
>> running on bare-metal Dell and HP servers rented with Online ( 
>> https://www.online.net/ ).
>>
>> Thanks in advance.
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to