Bug 1996650

Summary: rh_cloud tasks become paused instead of failed
Product: Red Hat Satellite Reporter: Shimon Shtein <sshtein>
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: ahumbe, aruzicka, osousa, zhunting
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_rh_cloud-4.0.26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:13:28 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 Shimon Shtein 2021-08-23 11:45:43 UTC
Description of problem:

When a task fails for any reason, it becomes pused, but without any practical way to resume it.

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


How reproducible:
Always

Steps to Reproduce:
1. Set an invalid rh_cloud token
2. Go to Configure -> Insights
3. Press the sync button

Actual results:

Task becomes paused


Expected results:

Task fails

Comment 1 Jameer Pathan 2021-09-23 08:41:54 UTC
Verified:

Verified with:
- Satellite 6.10.0 snap 20
- tfm-rubygem-foreman_rh_cloud-4.0.26-1.el7sat.noarch

Test steps:
- Set an invalid rh_cloud token
- Go to Configure > Insights
- Click on "Sync recommendations" button.

Observations:
- Task state: "stopped" and Result: "error"
- Following error is given once task fails:

Recommendation sync has failed: ERF50-1206 [Foreman::WrappedException]: Unable to authenticate using rh_cloud_token setting ([RestClient::BadRequest]: 400 Bad Request),ERF50-1206 [Foreman::WrappedException]: Unable to authenticate using rh_cloud_token setting ([RestClient::BadRequest]: 400 Bad Request)
view the task page for more details

Comment 4 errata-xmlrpc 2021-11-16 14:13:28 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 (Moderate: Satellite 6.10 Release), 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-2021:4702