Project

General

Profile

Actions

Bug #15223

closed

Resolving templates to provision a discovered host fails

Added by Esa Varemo over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

How to reproduce:

1. Hosts -> Discovered hosts -> provision a host.
2. Fill in information
3. Click 'Provisioning templates: Resolve'

Result:
Message: Sorry but no templates were configured.

production.log:

2016-05-29 13:45:35 [app] [I] Started POST "/hosts/template_used?id=47?provisioning=build" for 192.168.0.8 at 2016-05-29 13:45:35 +0300
2016-05-29 13:45:35 [app] [I] Processing by HostsController#template_used as */*
2016-05-29 13:45:35 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"6Sgh5Wb3Q3/wnVgmUSlcnF5ZEnXVRSX/xKL6Nr6ny3s=", "host"=>{"name"=>"mac525400445167", "hostgroup_id"=>"2", "environment_id"=>"1", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "config_group_ids"=>[""], "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "mac"=>"52:54:00:44:51:67", "identifier"=>"eth0", "name"=>"mac525400445167", "domain_id"=>"1", "subnet_id"=>"", "ip"=>"192.168.5.143", "managed"=>"1", "primary"=>"1", "provision"=>"1", "tag"=>"", "attached_to"=>"", "id"=>"784"}, "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"=>"6", "build"=>"1", "medium_id"=>"8", "ptable_id"=>"53", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"1", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "bare_metal_capabilities"=>"build", "id"=>"47?provisioning=build"}
2016-05-29 13:45:35 [app] [D] Setting current user thread-local variable to esa
2016-05-29 13:45:35 [app] [D] Setting current organization thread-local variable to Koti
2016-05-29 13:45:35 [app] [D] not found: Couldn't find Host::Managed with 'id'=47?provisioning=build [WHERE "hosts"."type" IN ('Host::Managed') AND "hosts"."organization_id" IN (1)]
2016-05-29 13:45:35 [app] [I]   Rendered common/404.html.erb within layouts/application (4.6ms)
2016-05-29 13:45:35 [app] [I]   Rendered layouts/_application_content.html.erb (1.0ms)
2016-05-29 13:45:35 [app] [I]   Rendered layouts/base.html.erb (3.5ms)
2016-05-29 13:45:35 [app] [I] Completed 404 Not Found in 50ms (Views: 13.5ms | ActiveRecord: 5.7ms)


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #15363: Resolving OS templates for new host raises routing error from invalid URIClosedDominic Cleal06/09/2016Actions
Related to Discovery - Bug #15548: Cant resolve templates - Sorry but no templates were configuredClosedDaniel Lobato Garcia06/30/2016Actions
Actions

Also available in: Atom PDF