Bug 1985910

Summary: Use downstream version in branch_info instead of an upstream one
Product: Red Hat Satellite Reporter: Shimon Shtein <sshtein>
Component: BrandingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: huali, inecas, jpathan, ktordeur, pcreech, sshtein, wpinheir
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_theme_satellite-8.0.1.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:12:52 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-07-26 08:31:34 UTC
Description of problem:

Currently branch_info endpoint that is used by insights-client (https://github.com/theforeman/foreman_rh_cloud/blob/fd4c1a2e01a59835daa3444171b2a03802f6fc39/app/controllers/insights_cloud/api/machine_telemetries_controller.rb#L39) reports upstream foreman version.

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


How reproducible:


Steps to Reproduce:
1. generate an insights-client report and look for product version node there.

Actual results:
"product": {"major_version": "2", "type": "Foreman", "minor_version": "3"}

Expected results:
"product": {"major_version": "6", "type": "Satellite", "minor_version": "7"}

Comment 2 Jameer Pathan 2021-08-06 12:27:45 UTC
Verified

Verified with:
- Satellite 6.10.0 snap 12
-

Test step:
- Run "insights-client --verbose" on satellite content host registered with insights.

Observation:
- Output of "insights-client --verbose" command contains:
"product": {"type": "Satellite", "major_version": "6", "minor_version": "10"}

Comment 5 errata-xmlrpc 2021-11-16 14:12:52 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