Project

General

Profile

Actions

Bug #20398

closed

NoMethodError: undefined method `[]' for nil:NilClass when clicking Manage host

Added by Shimon Shtein almost 7 years ago. Updated almost 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1417275

Description of problem:
Attempting to manage a RHEL 5.11 host results in a "NoMethodError: undefined method `[]' for nil:NilClass"

Version-Release number of selected component (if applicable):
6.2.7

How reproducible:
Register a RHEL5 host and try to manage it.

Steps to Reproduce:
1. Register a RHEL5 host to Satellite using subscription-manager
2. Locate the host in the Web UI and select Edit
3. Select Manage host

Actual results:
NoMethodError: undefined method `[]' for nil:NilClass

Expected results:
Host is managed

Additional info:
The underlying cause seems to be that the architecture is missing for the host. Setting the architecture via hammer resolves the issue. Example:

hammer host update --id 11 --managed true --architecture x86_64

After registration, the OS is added but does not appear under any architecture. Selecting RHEL 5.11 under x86_64 does not help though. In my testing, I did not have any RHEL5 content staged. Possibly doing so before registering would help, but I think it would be good to allow hosts to be registered first.

Actions #1

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6884 added
Actions #2

Updated by Justin Sherrill over 6 years ago

  • Category set to Hosts
  • translation missing: en.field_release set to 286
Actions #3

Updated by Shimon Shtein over 6 years ago

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

Also available in: Atom PDF