Project

General

Profile

Actions

Bug #15223

closed

Resolving templates to provision a discovered host fails

Added by Esa Varemo almost 8 years ago. Updated almost 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 #1

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ohad Levy
  • Pull request https://github.com/theforeman/foreman/pull/3555 added
Actions #2

Updated by Ohad Levy almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Dominic Cleal almost 8 years ago

  • Category set to Host creation
  • translation missing: en.field_release set to 159
Actions #4

Updated by Dominic Cleal almost 8 years ago

  • Related to Bug #15363: Resolving OS templates for new host raises routing error from invalid URI added
Actions #5

Updated by Dominic Cleal almost 8 years ago

  • translation missing: en.field_release changed from 159 to 160
Actions #6

Updated by Dominic Cleal almost 8 years ago

  • translation missing: en.field_release changed from 160 to 136

Already in RC1.

Actions #7

Updated by Dominic Cleal almost 8 years ago

  • translation missing: en.field_release changed from 136 to 159

Regression fixed, moving back to original release.

Actions #8

Updated by Dave Johnston almost 8 years ago

  • Related to Bug #15548: Cant resolve templates - Sorry but no templates were configured added
Actions

Also available in: Atom PDF