Actions
Bug #15223
closedResolving templates to provision a discovered host fails
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)
Updated by The Foreman Bot over 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
Updated by Ohad Levy over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset ad2ee95611dcc2dcd6a1163b95a6e4e12b0394b3.
Updated by Dominic Cleal over 8 years ago
- Category set to Host creation
- Translation missing: en.field_release set to 159
Updated by Dominic Cleal over 8 years ago
- Related to Bug #15363: Resolving OS templates for new host raises routing error from invalid URI added
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release changed from 159 to 160
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release changed from 160 to 136
Already in RC1.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release changed from 136 to 159
Regression fixed, moving back to original release.
Updated by Dave Johnston over 8 years ago
- Related to Bug #15548: Cant resolve templates - Sorry but no templates were configured added
Actions