Project

General

Profile

Actions

Bug #15416

closed

Update untouched templates during seed

Added by Stephen Benjamin almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1344689
Description of problem:
I was trying host provisioning and it failed at the step where anaconda fetches the kickstart file to install

2016-06-10 07:06:07 [app] [I] Started GET "/unattended/provision?token=fffc010f-6066-4858-a7be-22c0a78e18d4" for 10.8.119.2 at 2016-06-10 07:06:07 -0400
2016-06-10 07:06:07 [app] [I] Processing by UnattendedController#host_template as */*
2016-06-10 07:06:07 [app] [I]   Parameters: {"token"=>"fffc010f-6066-4858-a7be-22c0a78e18d4", "kind"=>"provision"}
2016-06-10 07:06:07 [app] [I] Found testhost5.satqe.lab.eng.rdu2.redhat.com
2016-06-10 07:06:10 [app] [I]   Rendered inline template (192.5ms)
2016-06-10 07:06:10 [app] [W] There was an error rendering the Satellite Kickstart Default template: 
 | ActionView::Template::Error: The snippet 'kickstart_networking_setup' threw an error: undefined method 'has_primary_interface?' for Host::Managed::Jail (Host::Managed)
 | /usr/share/foreman/lib/foreman/renderer.rb:87:in `rescue in snippet'
 | /usr/share/foreman/lib/foreman/renderer.rb:84:in `snippet'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.3/lib/safemode/scope.rb:37:in `method_missing'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.3/lib/safemode.rb:141:in `bind'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.3/lib/safemode.rb:51:in `eval'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.2.3/lib/safemode.rb:51:in `eval'
 | /usr/share/foreman/lib/foreman/renderer.rb:19:in `render_safe'
 | /usr/share/foreman/lib/foreman/renderer.rb:113:in `unattended_render'
 | inline template:1:in `_ff473c662c18b41d954417657abc7d94'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:145:in `block in render'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications.rb:161:in `instrument'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:339:in `instrument'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:143:in `render'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:in `render'
 |

Version-Release number of selected component (if applicable):
upgrade sat6.1.9 -> sat6.2 Ga snap15.1 on rhel7

How reproducible:

Steps to Reproduce:
1. upgrade satellite 6.1.9 -> 6.2
2. re-run the installer to enable dns, dhcp features
3. create new host

Actual results:
host provisioning failed

Expected results:
provisioning should work

Additional info:


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #18639: All templates that are shipped with Foreman should be locked by defaultClosedMarek Hulán02/23/2017Actions
Actions #1

Updated by The Foreman Bot almost 8 years ago

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

Updated by Marek Hulán almost 8 years ago

  • Subject changed from [upgrade] Host provisioning failed due to: an error rendering the Satellite Kickstart Default template to Update untouched templates during seed
  • Category set to Templates

If the template does not have any audit record, we can update it with newer version during the seed.

Actions #3

Updated by Dominic Cleal almost 8 years ago

  • Description updated (diff)
Actions #4

Updated by Stephen Benjamin almost 8 years ago

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

Updated by Dominic Cleal almost 8 years ago

  • translation missing: en.field_release set to 160
Actions #6

Updated by Marek Hulán about 7 years ago

  • Related to Bug #18639: All templates that are shipped with Foreman should be locked by default added
Actions

Also available in: Atom PDF