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 1859112 - Error 500 returned when token expired while provisioning a Content Host
Summary: Error 500 returned when token expired while provisioning a Content Host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: 6.6.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.14.0
Assignee: Leos Stejskal
QA Contact: Shweta Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-21 09:38 UTC by Anand Jambhulkar
Modified: 2023-11-08 14:17 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:17:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-11046 0 None None None 2023-05-11 08:54:55 UTC
Red Hat Issue Tracker SAT-16893 0 None None None 2023-05-11 08:54:59 UTC
Red Hat Issue Tracker SAT-17433 0 None None None 2023-05-11 08:54:56 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:17:51 UTC

Description Anand Jambhulkar 2020-07-21 09:38:46 UTC
Description of problem:
----------------------

When a Content View fails to provision, it throws "500 Internal Server Error" message. However, the customer feels that the error code that should be thrown when the token expires is 4.1


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

Red Hat Satellite 6.6


Steps to Reproduce:
------------------

Following are the steps shared by the customer to reproduce the issue -

1. Create a host.

2. Trigger the build.

3. Let token expire.

4. Boot the node.

5. Check error message. It will be 500.


Actual results:
--------------

The screenshot (error500.png) shows - "500 Internal Server Error" message.


Expected results:
----------------

The customer thinks that it should be error message with the error code of 401 (Comment-9 and Case Description).


Additional info:
---------------

I had informed him that the error code 401 is for "incorrect user authentication" and error code 500 is for "Internal Server Error", and had shared the following link with him (Comment-4) -

	https://access.redhat.com/documentation/en-us/red_hat_satellite/6.6/html-single/api_guide/index#appe-Response_Codes

Also attaching the screenshots provided by the customer to the ticket.

Comment 11 Leos Stejskal 2022-06-16 12:29:16 UTC
Created redmine issue https://projects.theforeman.org/issues/35068 from this bug

Comment 12 Brad Buckingham 2022-09-02 20:25:18 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 13 Brad Buckingham 2022-09-02 20:31:26 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 15 Brad Buckingham 2022-10-28 18:00:09 UTC
Thank you for your interest in Red Hat Satellite. 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 feel free to contact your Red Hat Account Team. Thank you.

Comment 16 Leos Stejskal 2023-03-29 07:01:14 UTC
Created redmine issue https://projects.theforeman.org/issues/36243 from this bug

Comment 17 Bryan Kearney 2023-04-03 16:01:24 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35068 has been resolved.

Comment 18 Bryan Kearney 2023-04-03 16:01:42 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35068 has been resolved.

Comment 19 Bryan Kearney 2023-04-03 16:01:51 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35068 has been resolved.

Comment 20 Leos Stejskal 2023-05-05 11:35:40 UTC
https://github.com/theforeman/smart-proxy/pull/869

Comment 21 Bryan Kearney 2023-05-05 12:01:23 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35068 has been resolved.

Comment 22 Leos Stejskal 2023-05-05 12:22:18 UTC
Moving back to assigned, https://github.com/theforeman/smart-proxy/pull/869 is still in review

Comment 23 Shweta Singh 2023-07-11 07:27:23 UTC
Verified.

Version Tested: Satellite 6.14.0 Snap 5.0

Verification Steps:
1. Create a host, register it.
2. Update the "token expiration" setting in Administer --> Settings to 5 minutes so that token will expire soon.
3. Start provisioning the host.
4. Boot the host.
5. Check the error message.

Result:
It no longer shows 500 error after token expires and gives proper error.

Comment 26 errata-xmlrpc 2023-11-08 14:17:32 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 (Important: Satellite 6.14 security and bug fix update), 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-2023:6818


Note You need to log in before you can comment on or make changes to this bug.