Project

General

Profile

Bug #5258

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

Added by Lee Thompson about 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
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'

Associated revisions

Revision e029bc8c (diff)
Added by Joseph Magen about 5 years ago

fixes #5258 - Can't edit a host due to IPMC/BMC interface form error

Revision 9931eb1e (diff)
Added by Joseph Magen about 5 years ago

fixes #5258 - Can't edit a host due to IPMC/BMC interface form error

(cherry picked from commit e029bc8cd326ba759698f4684006107b626aaeb8)

History

#2 Updated by Lee Thompson about 5 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

#3 Updated by Dominic Cleal about 5 years ago

  • Legacy Backlogs Release (now unused) 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.

#4 Updated by Joseph Magen about 5 years ago

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

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

#5 Updated by Joseph Magen about 5 years ago

  • Status changed from Assigned to Ready For Testing

#6 Updated by Joseph Magen about 5 years ago

  • Target version set to 1.8.4

#7 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.8.4 to 1.8.3

#8 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.8.3 to 1.8.4

#9 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.8.4 to 1.8.3

#10 Updated by Joseph Magen about 5 years ago

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

Also available in: Atom PDF