Bug 1708851

Summary: [Satellite 6.6.0 Snap2] "410 gone" alert popped up on Satellite UI after manifest file successfully uploaded.
Product: Red Hat Satellite Reporter: Devendra Singh <desingh>
Component: Subscription ManagementAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: Devendra Singh <desingh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: desingh, jomitsch, zhunting
Target Milestone: 6.6.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.12.0.3-11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:51:16 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 Devendra Singh 2019-05-11 06:02:32 UTC
Description of problem:
"410 gone" alert popped up on Satellite UI after manifest file successfully uploaded.  


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

How reproducible:
always

Steps to Reproduce:
1. Install satellite.
2. Login to Satellite UI.
3. Click on the content sidebar and select Subscriptions 
4. Upload manifest file.
5. Manifest file uploaded successfully.

Actual results:
After manifest file uploaded we observed "410 Gone" message on the Subscriptions screen.

Expected results:

This alert should not be displayed on the UI screen after manifest file uploaded.


Additional info:

This popped up alert didn't observe on Satellite 6.5.

Comment 5 Devendra Singh 2019-05-24 15:52:11 UTC
Uploaded manifest file available on CDN, I downloaded it at "14 March 2019", And used the same manifest here(the Same step repeated today and observed 410 gone error with the older manifest file)

But this issue didn't observe with the latest created manifest file.

Comment 11 John Mitsch 2019-05-29 22:14:17 UTC
Created redmine issue https://projects.theforeman.org/issues/26912 from this bug

Comment 12 John Mitsch 2019-05-29 22:22:42 UTC
Thanks Devendra,

The error is valid, 410 GONE means the subscription allocation no longer exists in RHSM, you will have to create a new manifest in the portal and import it. I opened a PR to show a more user-friendly message.

Comment 13 Bryan Kearney 2019-05-30 00:03:38 UTC
Upstream bug assigned to jomitsch

Comment 14 Bryan Kearney 2019-05-30 00:03:39 UTC
Upstream bug assigned to jomitsch

Comment 15 Bryan Kearney 2019-06-11 14:03:46 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26912 has been resolved.

Comment 17 Devendra Singh 2019-07-11 09:31:47 UTC
Thanks John for fixing this issue.

This issue has been successfully verified with the latest snap(6.6.0-snap10).

The populated message after uploading the non-existence manifest file was very meaningful. 

"The Subscription Allocation providing the imported manifest has been removed. Please create a new Subscription Allocation and import the new manifest."

Comment 18 Bryan Kearney 2019-10-22 19:51: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-2019:3172