Project

General

Profile

Actions

Bug #20724

closed

undefined method `[]' for nil:NilClass when registering or editing host

Added by Uldis Biks about 7 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When trying to register new host

# subscription-manager register --org="WL" --activationkey="Test"
undefined method `[]' for nil:NilClass
#

From /var/log/rhsm/rhsm.log

2017-08-24 09:28:58,081 [ERROR] subscription-manager:6556:MainThread @managercli.py:1141 - undefined method `[]' for nil:NilClass
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/subscription_manager/managercli.py", line 1136, in _do_command
content_tags=self.installed_mgr.tags)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 928, in registerConsumer
return self.conn.request_post(url, params)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 697, in request_post
return self._request("POST", method, params)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 611, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 661, in validateResponse
raise RestlibException(response['status'], error_msg, response.get('headers'))
RestlibException: undefined method `[]' for nil:NilClass

When trying to edit host in WUI same error - screen shot attached.


Files

screenshot-katello_2017-08-24 10-29-06.png View screenshot-katello_2017-08-24 10-29-06.png 1.15 MB WUI screenshot Uldis Biks, 08/24/2017 04:07 AM
Actions #1

Updated by Uldis Biks about 7 years ago

Katello 3.4.4
Foreman 1.15.3

Actions #2

Updated by Uldis Biks about 7 years ago

  • Status changed from New to Resolved

Resolved - issue was foreman_custom_parameters plugin

Actions #3

Updated by Uldis Biks about 7 years ago

Thanks to klaas__ from #theforeman

Actions #4

Updated by John Mitsch about 7 years ago

  • Translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF