Bug 1920014

Summary: Sync now on Insights does nothing
Product: Red Hat Satellite Reporter: Kenny Tordeurs <ktordeur>
Component: RH Cloud - InsightsAssignee: Shimon Shtein <sshtein>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: high    
Version: 6.9.0CC: ahumbe, aruzicka, jakob.fuerneisen, zhunting
Target Milestone: 6.9.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 3.0.15 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:25:38 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:
Attachments:
Description Flags
verification screenshot1 none

Description Kenny Tordeurs 2021-01-25 14:53:58 UTC
Description of problem:
Sync now button on Insights page after adding token does nothing.

Configure -> Insights
https://<satellite>/foreman_rh_cloud/insights_cloud

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

How reproducible:
100%

Steps to Reproduce:
1. Setup token
2. Click on sync now
3.

Actual results:
nothing happens, no task gets created


Expected results:
something

Additional info:

Comment 3 J.F. 2021-02-04 09:58:59 UTC
Same here with 6.8.2 with logs in /var/log/foreman/production.log

2021-02-04T10:57:34 [I|app|d591deac] Processing by InsightsCloud::TasksController#create as JSON
2021-02-04T10:57:34 [I|app|d591deac]   Parameters: {"task"=>{}}
2021-02-04T10:57:34 [I|app|d591deac] Performing InsightsCloud::Async::InsightsFullSync (Job ID: 13e846a1-73b2-4d4e-9688-610a65c09d5b) from Dynflow(default) enqueued at 
2021-02-04T10:57:35 [I|app|d591deac] Performed InsightsCloud::Async::InsightsFullSync (Job ID: 13e846a1-73b2-4d4e-9688-610a65c09d5b) from Dynflow(default) in 916.96ms
2021-02-04T10:57:35 [I|app|d591deac] No template found for InsightsCloud::TasksController#create, rendering head :no_content
2021-02-04T10:57:35 [I|app|d591deac] Completed 204 No Content in 937ms (ActiveRecord: 6.0ms | Allocations: 17339)

Comment 5 Jameer Pathan 2021-03-10 08:12:10 UTC
Verified:

Verified with:
- Satellite 6.9.0 snap 16
- tfm-rubygem-foreman_rh_cloud-3.0.17-1.el7sat.noarch

Test steps:
- Go to Configure > Insights
- Setup Red Hat Cloud token
- Click on "Save setting and sync recommendations" button. (This takes some time to complete)


Observations:
- Provide Insights recommendations output for hosts managed by satellite.
- "Start recommendations sync" is provided, once clicked it gives link for task created.

Comment 6 Jameer Pathan 2021-03-10 08:13:45 UTC
Created attachment 1762195 [details]
verification screenshot1

Comment 10 errata-xmlrpc 2021-04-21 13:25:38 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.9 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:1313