Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1449570

Summary: Many no route matches errors for rhsm/consumer URLs for RHEL6.9 clients
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: Subscription ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Og Maciel <omaciel>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.9CC: bbuckingham, greartes, jcallaha, jsherril, omaciel, oshtaier, pgozart, rajgupta
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.4.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:42:36 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:
Bug Depends On:    
Bug Blocks: 1122832    

Description Peter Vreman 2017-05-10 09:37:03 UTC
Description of problem:

[crash/LI] root@li-lc-1017:~# zgrep 'No route matches.*rhsm/consumer' /var/log/foreman/production.log*.gz  | head -n5
/var/log/foreman/production.log-20170427.gz: | ActionController::RoutingError (No route matches [PUT] "/rhsm/consumers/34dc1eeb-0376-4f1d-af9a-b8025f9c68d1/certificates"):

[crash/LI] root@li-lc-1017:~# zgrep 'No route matches.*rhsm/consumer' /var/log/foreman/production.log*.gz  | wc -l
19589

This is only for RHEL6.9 clients. Other clients with RHEL6.8,7.2,7.3 do not generate these routing errors


The URL is also visible in the client rhsm.log:

$ grep 'PUT /rhsm/consumer.*/certificates' /var/log/rhsm/rhsm.log | head -n1
2017-05-07 04:12:00,371 [INFO] subscription-manager:25043:MainThread @connection.py:525 - Response: status=404, request="PUT /rhsm/consumers/738d54cc-8f52-4997-8ce1-27561a2fea36/certificates?lazy_regen=true"

This URL is triggered from 'subscription-manager refresh' as implemented for https://bugzilla.redhat.com/show_bug.cgi?id=1393580 and https://bugzilla.redhat.com/show_bug.cgi?id=1367243



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


How reproducible:


Steps to Reproduce:
1. Connect RHEL6.9 client
2. Run subscription-manager refresh on Client
3.

Actual results:
RoutingErrors in foreman production.log

Expected results:
No erros in foreman production.log

Additional info:

Comment 2 Barnaby Court 2017-05-15 12:41:01 UTC
The version of subscription-manager in RHEL 6.9 started making use of the put action on /consumers/{consumer_id}/certificates to clear the certificates as part of the "subscription-manager refresh" command. This should be forwarded to the Candlepin server by the katello layer. This change to sub-man was by design.

Comment 3 Justin Sherrill 2017-07-12 17:13:26 UTC
Created redmine issue http://projects.theforeman.org/issues/20291 from this bug

Comment 4 Satellite Program 2017-07-17 18:05:47 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20291 has been resolved.

Comment 9 Satellite Program 2017-08-03 22:06:53 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20291 has been resolved.

Comment 11 Justin Sherrill 2017-09-07 13:35:05 UTC
I can propose for 6.2.z

Comment 14 Og Maciel 2017-11-28 19:46:31 UTC
This has been verified on satellite-6.3.0-21.0.beta.el7sat.noarch

* Verified that routing error is no longer showing up on Satellite server logs
* Verified that 404 log message is also not showing up on hosts (6.9 and 7.4)

Comment 15 Bryan Kearney 2018-02-21 16:40:16 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 16 Bryan Kearney 2018-02-21 16:42:36 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 17 Satellite Program 2018-02-21 16:54:37 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> > 
> > For information on the advisory, and where to find the updated files, follow the link below.
> > 
> > If the solution does not work for you, open a new bug report.
> > 
> > https://access.redhat.com/errata/RHSA-2018:0336