Project

General

Profile

Bug #28891

All hosts showing "Failure: undefined method `title' for nil:NilClass" in Properties pane

Added by Spencer Riner 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Observed "Failure: undefined method `title' for nil:NilClass" message in red dialog box on all hosts in web interface after upgrading from 1.23.1 to 1.24.2 on three separate Foreman hosts.

Env:
CentOS 7.7.1908
Puppet Open Source (puppet-agent) 5.5.18

foreman_error_1.PNG View foreman_error_1.PNG 7.51 KB Spencer Riner, 01/29/2020 10:30 PM
Foreman error 1

Related issues

Related to Foreman - Refactor #15406: Move puppet_environment overview field outside core's #overview_fields helper.Closed

Associated revisions

Revision 079723be (diff)
Added by Tomer Brisker 8 months ago

Fixes #28891 - Show host properties tab if missing taxonomy (#7420)

If a host isn't assigned to a location or organization, the properties
tab will fail to render.

History

#1 Updated by Marek Hulán 9 months ago

Please upload a production.log with the full trace (the treaceback is the important part), I think I've seen something similar with organizations/locations recently. If that's the same thing, I have a patch at hand

#2 Updated by The Foreman Bot 9 months ago

  • Assignee set to Tomer Brisker
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7420 added

#3 Updated by Tomer Brisker 9 months ago

  • Related to Refactor #15406: Move puppet_environment overview field outside core's #overview_fields helper. added

#4 Updated by Tomer Brisker 9 months ago

  • Target version set to 1.24.3

#5 Updated by Tomer Brisker 9 months ago

  • Category changed from Web Interface to Organizations and Locations

Looks like the condition checking if a host has a location or organization assigned to it before showing it in the properties pane was dropped in a refactoring.

#6 Updated by Spencer Riner 9 months ago

Thanks for the update. I can upload production.log, but I don't see any tracebacks since we installed 1.24.2, so I don't know if it would be helpful.

#7 Updated by The Foreman Bot 8 months ago

  • Fixed in Releases 2.0.0 added

#8 Updated by Tomer Brisker 8 months ago

  • Status changed from Ready For Testing to Closed

#9 Updated by Tomer Brisker 8 months ago

  • Fixed in Releases 1.24.3 added

Also available in: Atom PDF