Bug 1494207

Summary: stack trace when client calls 'enabled_repos'
Product: Red Hat Satellite Reporter: Chris Duryee <cduryee>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.11CC: bbuckingham
Target Milestone: UnspecifiedKeywords: FieldEngineering, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-03 19:20:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Duryee 2017-09-21 16:45:43 UTC
Description of problem:

Occasionally, clients may receive a 500 when calling a PUT on '/rhsm/systems/<UUID>/enabled_repos'.  Short version of error is:


NoMethodError: undefined method `save_bound_repos_by_path!' for nil:NilClass
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.144/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:176:in `block in enabled_repos'
 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:72:in `as'
 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:78:in `as_anonymous_admin'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.144/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:175:in `enabled_repos'


See attachment for full error from log, including request params.

Version-Release number of selected component (if applicable): 6.2.11 w/ a few hotfixes

I'm not sure how to reproduce this issue, I saw it while looking for an unrelated issue.

Comment 4 Brad Buckingham 2017-09-28 20:48:30 UTC
Created redmine issue http://projects.theforeman.org/issues/21155 from this bug

Comment 5 Bryan Kearney 2018-10-03 19:20:24 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Rich Jerrido or Bryan Kearney. Thank you.