Project

General

Profile

Actions

Bug #15188

closed

Possible regression in rendering Hostgroup Provisioning Templates

Added by Justin Sherrill almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
High
Category:
Web UI
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1337931
Description of problem:

Rendering of Hostgroup provisioning templates fails in Red Hat Satellite 6.2 beta. The functionality appears to have worked at least as recently as Satellite 6.1.7

Version-Release number of selected component (if applicable):

Red Hat Satellite 6.2 Beta

How reproducible:

Reproduced every time for me and for customer

Steps to Reproduce:
1. Create Hostgroup and Provisioning template assigned to it.
2. # curl -k https://satellite.example.com/unattended/template/RHEL7_Default/RHEL7_Default

Actual results:

Curl returns a "500 Internal Server Error".

Expected results:

The output of the curl should render the kickstart.

Additional info:

Just a preview of the log error.   Actual log example will be attached as production.log-20160520

2016-05-19 12:04:27 [app] [I] Started GET "/unattended/template/RHEL7_Default/RHEL7_Default" for 192.168.144.130 at 2016-05-19 12:04:27 -0400
2016-05-19 12:04:27 [app] [I] Processing by UnattendedController#hostgroup_template as */*
2016-05-19 12:04:27 [app] [I] Parameters: {"id"=>"RHEL7_Default", "hostgroup"=>"RHEL7_Default"}
2016-05-19 12:04:27 [app] [W] Action failed | NoMethodError: undefined method `content_facet' for #<Hostgroup:0x007f3da2631848> | /opt/rh/rh-ror41/root/usr/share/gems/gems/activemodel-4.1.5/lib/active_model/attribute_methods.rb:435:in `method_missing' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods.rb:208:in `method_missing' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.24/app/models/katello/concerns/redhat_extensions.rb:47:in `medium_uri_with_content_uri' | /usr/share/foreman/app/models/operatingsystems/redhat.rb:11:in `mediumpath' | /usr/share/foreman/lib/foreman/renderer.rb:164:in `kickstart_attributes' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.24/app/lib/katello/concerns/renderer_extensions.rb:11:in `kickstart_attributes_with_katello' | /usr/share/foreman/lib/foreman/renderer.rb:122:in `load_template_vars' | /usr/share/foreman/app/controllers/unattended_controller.rb:40:in `hostgroup_template'

Actions #1

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6071 added
Actions #2

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release set to 86
Actions #3

Updated by Justin Sherrill almost 8 years ago

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

Also available in: Atom PDF