Project

General

Profile

Bug #20724

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

Added by Uldis Biks over 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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.

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
Screenshot katello 2017 08 24%2010 29 06

History

#1 Updated by Uldis Biks over 4 years ago

Katello 3.4.4
Foreman 1.15.3

#2 Updated by Uldis Biks over 4 years ago

  • Status changed from New to Resolved

Resolved - issue was foreman_custom_parameters plugin

#3 Updated by Uldis Biks over 4 years ago

Thanks to klaas__ from #theforeman

#4 Updated by John Mitsch over 4 years ago

  • Legacy Backlogs Release (now unused) set to 166

Also available in: Atom PDF