Bug #18059

Rendering RABL for host/main fails

Added by Daniel Lobato Garcia 11 months ago. Updated 10 months ago.

Status:Closed
Priority:Normal
Assigned To:Daniel Lobato Garcia
Category:-
Target version:Foreman - Team Daniel - Iteration 9
Difficulty: Pull request:https://github.com/Katello/katello/pull/6541
Bugzilla link:
Story points-
Velocity based estimate-
ReleaseKatello 3.3.0Release relationshipAuto

Description

Currently, Katello does not add its views to the Rabl paths. For this reason, when I try to run a playbook with foreman_ansible, I get:

| RuntimeError - Cannot find rabl template 'katello/api/v2/content_facet/base_with_root' within registered (["/home/vagrant/foreman/app/views", "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman_discovery-8.0.0/app/views"]) view paths!:

foreman_ansible InventoryCreator is trying to render the api/v2/hosts/main using Rabl, however it fails to do so as the content_facet isn't available to it.

Solution: add an initializer to configure view paths for Rabl in the Katello engine

Associated revisions

Revision 661260bd
Added by Daniel Lobato Garcia 11 months ago

Fixes #18059 - Rendering RABL for host/main fails

Currently, Katello does not add its views to the Rabl paths. For this
reason, when I try to run a playbook with foreman_ansible, I get an
error that katello/api/v2/content_facet/base_with_root isn't in its
view paths

foreman_ansible InventoryCreator is trying to render the
api/v2/hosts/main using Rabl, however it fails to do so as the
content_facet isn't available to it.

Solution: add an initializer to configure view paths for Rabl in the
Katello engine

History

#1 Updated by The Foreman Bot 11 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Daniel Lobato Garcia
  • Pull request https://github.com/Katello/katello/pull/6541 added

#2 Updated by Anonymous 11 months ago

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

#3 Updated by Justin Sherrill 11 months ago

  • Release set to Katello 3.3.0

#4 Updated by Daniel Lobato Garcia 11 months ago

  • Target version set to Team Brad - Iteration 11

#5 Updated by Brad Buckingham 10 months ago

  • Target version deleted (Team Brad - Iteration 11)

#6 Updated by Daniel Lobato Garcia 10 months ago

  • Target version set to Team Daniel - Iteration 9

Also available in: Atom PDF