Project

General

Profile

Bug #24151

Provisioning a new host with bond interface without domain and subnet failed with undefined method `vlanid' for nil:NilClass

Added by Varatharaja Perumal Gunasekaran 6 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Provisioning a new host with bond interface without domain and subnet failed with undefined method `vlanid' for nil:NilClass

Error when we try to render the Provisioning template:

"There was an error rendering the Satellite Kickstart Default template: ERF42-7327 [Foreman::Exception]: The snippet 'kickstart_ifcfg_generic_interface' threw an error: undefined method `vlanid' for nil:NilClass"

Foreman production log trace:

~~~
2018-07-03 05:39:40 0f1f8e82 [app] [W] Error rendering the Satellite Kickstart Default template | Foreman::Exception: ERF42-7327 [Foreman::Exception]: The snippet 'kickstart_ifcfg_generic_interface' threw an error: undefined method `vlanid' for nil:NilClass | /usr/share/foreman/app/models/nic/interface.rb:26:in `vlanid' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/jail.rb:31:in `method_missing' | kickstart_ifcfg_generic_interface:116:in `bind' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode.rb:51:in `eval' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode.rb:51:in `eval' | /usr/share/foreman/lib/foreman/renderer.rb:56:in `render_safe' | /usr/share/foreman/lib/foreman/renderer.rb:175:in `unattended_render' | /usr/share/foreman/lib/foreman/renderer.rb:121:in `snippet' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/scope.rb:37:in `method_missing' | kickstart_ifcfg_bond_interface:52:in `bind' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode.rb:51:in `eval' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode.rb:51:in `eval' | /usr/share/foreman/lib/foreman/renderer.rb:56:in `render_safe' | /usr/share/foreman/lib/foreman/renderer.rb:175:in `unattended_render' | /usr/share/foreman/lib/foreman/renderer.rb:121:in `snippet' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/scope.rb:37:in `method_missing' | kickstart_networking_setup:58:in `block in bind' | /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/relation/delegation.rb:46:in `each' | /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/relation/delegation.rb:46:in `each' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/jail.rb:31:in `method_missing' | kickstart_networking_setup:53:in `bind'
~~~

Associated revisions

Revision 3474f70a (diff)
Added by Varatharaja Perumal 4 months ago

Fixes #24151 - bond device fails with vlanid for nil:NilClass

History

#1 Updated by The Foreman Bot 6 months ago

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

#2 Updated by The Foreman Bot 6 months ago

  • Pull request https://github.com/theforeman/community-templates/pull/492 added

#3 Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker 2 months ago

  • Fixed in Releases 1.20.0 added

#5 Updated by Tomer Brisker 2 months ago

  • Category set to Templates

Also available in: Atom PDF