Project

General

Profile

Actions

Bug #15363

closed

Resolving OS templates for new host raises routing error from invalid URI

Added by Dominic Cleal 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

When on the New Host page with OS details all configured, the "Resolve" provisioning templates button shows a warning of "Sorry but no templates were configured." and Foreman logs:

2016-06-09T13:07:33 [app] [I] Started POST "/hosts/template_used&provisioning=build" for 127.0.0.1 at 2016-06-09 13:07:33 +0100
2016-06-09T13:07:33 [app] [F] 
 | ActionController::RoutingError (No route matches [POST] "/hosts/template_used&provisioning=build"):
 |   actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
 |   actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
 |   railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
 |   railties (4.2.6) lib/rails/rack/logger.rb:22:in `call'
 |   quiet_assets (1.1.0) lib/quiet_assets.rb:27:in `call_with_quiet_assets'
 |   actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
 |   rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
 |   rack (1.6.4) lib/rack/runtime.rb:18:in `call'
 |   activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
 |   rack (1.6.4) lib/rack/lock.rb:17:in `call'
 |   actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
 |   rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
 |   railties (4.2.6) lib/rails/engine.rb:518:in `call'
 |   railties (4.2.6) lib/rails/application.rb:165:in `call'
 |   railties (4.2.6) lib/rails/railtie.rb:194:in `public_send'
 |   railties (4.2.6) lib/rails/railtie.rb:194:in `method_missing'
 |   rack (1.6.4) lib/rack/urlmap.rb:66:in `block in call'
 |   rack (1.6.4) lib/rack/urlmap.rb:50:in `each'
 |   rack (1.6.4) lib/rack/urlmap.rb:50:in `call'
 |   rack (1.6.4) lib/rack/lock.rb:17:in `call'
 |   rack (1.6.4) lib/rack/content_length.rb:15:in `call'
 |   rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
 |   /home/dcleal/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
 |   /home/dcleal/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
 |   /home/dcleal/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
 |   logging (2.1.0) lib/logging/diagnostic_context.rb:450:in `block in create_with_logging_context'
 | 
 | 
2016-06-09T13:07:33 [app] [I]   Rendered /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.5ms)
2016-06-09T13:07:33 [app] [I]   Rendered /home/dcleal/.rvm/gems/ruby-2.3.0@foreman/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.text.erb (6.3ms)

This works prior to ticket #15223 where it generates a valid path:

2016-06-09T13:08:16 [app] [I] Started POST "/hosts/template_used?provisioning=build" for 127.0.0.1 at 2016-06-09 13:08:16 +0100
2016-06-09T13:08:16 [app] [I] Processing by HostsController#template_used as */*

Related issues 1 (0 open1 closed)

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

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #15223: Resolving templates to provision a discovered host fails added
Actions #2

Updated by Dominic Cleal over 8 years ago

  • Translation missing: en.field_release changed from 160 to 136
Actions #3

Updated by Dominic Cleal over 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal
Actions #4

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3586 added
Actions #5

Updated by Dominic Cleal over 8 years ago

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

Updated by Dominic Cleal over 8 years ago

  • Translation missing: en.field_release changed from 136 to 159
Actions

Also available in: Atom PDF