Project

General

Profile

Actions

Bug #15548

closed

Cant resolve templates - Sorry but no templates were configured

Added by Dave Johnston over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Discovery plugin
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

Description

A fresh install with Foreman 12.1 + Discovery Plugin.

When trying to provision a discovered host, I get 'Sorry but no templates were configured' when clicking the resolve button for provisioning templates.
The production log shows the following:

2016-06-30 10:48:27 [app] [I] Started POST "/hosts/template_used?id=1&provisioning=build" for 10.30.0.1 at 2016-06-30 10:48:27 +0100
2016-06-30 10:48:27 [app] [I] Processing by HostsController#template_used as */*
2016-06-30 10:48:27 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"ADk2D+bNMA4UjYDKPvshtUTCrUsfnOxcBFoxB6w6qZrX0a57CUAWEh/fxoB5EbDtuZgWsC4mn9+63BOKKQXrdg==", "host"=>{"name"=>"mac080027139497", "hostgroup_id"=>"1", "environment_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "mac"=>"08:00:27:13:94:97", "identifier"=>"enp0s3", "name"=>"mac080027139497", "domain_id"=>"1", "subnet_id"=>"1", "ip"=>"10.30.0.102", "managed"=>"1", "primary"=>"1", "provision"=>"1", "tag"=>"", "attached_to"=>"", "id"=>"1"}, "1"=>{"_destroy"=>"0", "mac"=>"08:00:27:5d:9e:3c", "identifier"=>"enp0s8", "name"=>"", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"0", "primary"=>"0", "provision"=>"0", "tag"=>"", "attached_to"=>"", "id"=>"2"}, "new_interfaces"=>{"_destroy"=>"1", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "primary"=>"0", "provision"=>"0", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "build"=>"1", "medium_id"=>"9", "ptable_id"=>"69", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", "model_id"=>"1", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "bare_metal_capabilities"=>"build", "id"=>"1", "provisioning"=>"build"}
2016-06-30 10:48:27 [app] [I] Rendered common/404.html.erb within layouts/application (4.0ms)
2016-06-30 10:48:27 [app] [I] Rendered layouts/_application_content.html.erb (0.2ms)
2016-06-30 10:48:27 [app] [I] Rendered layouts/base.html.erb (0.6ms)
2016-06-30 10:48:27 [app] [I] Completed 404 Not Found in 12ms (Views: 5.9ms | ActiveRecord: 0.7ms)

A installation media was created for RedHat 6.8
A OS was created for RedHat 6.8. The following associations were made:

Partition table: kickstart default
Installation Media: RedHat Mirror
Templates:
Provisioning Templates: Kickstart RHEL default
PXELinux Template: Kickstart default PXELinux

It looks related to http://projects.theforeman.org/issues/15223 for 1.11.3 which has been closed.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #15223: Resolving templates to provision a discovered host failsClosedOhad Levy05/29/2016Actions
Actions

Also available in: Atom PDF