Project

General

Profile

Actions

Bug #5258

closed

Can't edit a host, suspect its due to an IPMC/BMC interface

Added by Lee Thompson almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Have a working host with 3 NIC's. Two are normal interface, one is a BMC interface (IPMI). When I go to edit the host definition I get a NoMethodError.

This is with Foreman 1.5.0 rc1

NoMethodError
undefined method `title' for #<Subnet:0x00000009ea04f8>
app/helpers/layout_helper.rb:110:in `block in select_f'
app/helpers/layout_helper.rb:157:in `block (3 levels) in field'
app/helpers/layout_helper.rb:156:in `block (2 levels) in field'
app/helpers/layout_helper.rb:149:in `block in field'
app/helpers/layout_helper.rb:148:in `field'
app/helpers/layout_helper.rb:108:in `select_f'
app/views/hosts/_interfaces.html.erb:13:in `block in _app_views_hosts__interfaces_html_erb___2329083320204774303_78228160'
app/views/hosts/_interfaces.html.erb:3:in `_app_views_hosts__interfaces_html_erb___2329083320204774303_78228160'
app/views/hosts/_unattended.html.erb:31:in `block (2 levels) in _app_views_hosts__unattended_html_erb__3358788842323718793_70200440300620'
app/views/hosts/_unattended.html.erb:30:in `block in _app_views_hosts__unattended_html_erb__3358788842323718793_70200440300620'
app/views/hosts/_unattended.html.erb:15:in `_app_views_hosts__unattended_html_erb__3358788842323718793_70200440300620'
app/views/hosts/_form.html.erb:92:in `block (2 levels) in _app_views_hosts__form_html_erb__3635596562362264948_83193480'
app/helpers/layout_helper.rb:248:in `form_for'
app/views/hosts/_form.html.erb:8:in `block in _app_views_hosts__form_html_erb__3635596562362264948_83193480'
app/models/taxonomy.rb:48:in `block (2 levels) in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:143:in `as_location'
app/models/taxonomy.rb:47:in `block in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:108:in `as_org'
app/models/taxonomy.rb:46:in `as_taxonomy'
app/views/hosts/_form.html.erb:6:in `_app_views_hosts__form_html_erb__3635596562362264948_83193480'
app/views/hosts/edit.html.erb:9:in `_app_views_hosts_edit_html_erb___3896782749151053234_83134680'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'
Actions #2

Updated by Lee Thompson almost 10 years ago

I'm getting this on any multi-homed host. Work around is to reprovision the host with only one NIC defined in Foreman

Actions #3

Updated by Dominic Cleal almost 10 years ago

  • translation missing: en.field_release set to 4

Lee Thompson wrote:

Here is the reference to title
https://github.com/theforeman/foreman/blob/develop/app/views/hosts/_interfaces.html.erb#L13

Hm yes, app/views/common/_domain.html.erb uses to_label.

Actions #4

Updated by Joseph Magen almost 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Joseph Magen

I got this error now. I'll fix it.

Actions #5

Updated by Joseph Magen almost 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #6

Updated by Joseph Magen almost 10 years ago

  • Target version set to 1.8.4
Actions #7

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.4 to 1.8.3
Actions #8

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.3 to 1.8.4
Actions #9

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.4 to 1.8.3
Actions #10

Updated by Joseph Magen almost 10 years ago

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

Also available in: Atom PDF