Bug 1967593

Summary: RH Cloud Plugins are using upstream version identifiers when connecting to the cloud.
Product: Red Hat Satellite Reporter: Lindani Phiri <lphiri>
Component: RH Cloud - InsightsAssignee: Shimon Shtein <sshtein>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ahumbe, aruzicka, zhunting
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.0.26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:11: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:

Description Lindani Phiri 2021-06-03 12:52:03 UTC
Description of problem:


The RH Cloud Plugins  (Insights and Inventory) are using Foreman version identifiers as user agent strings when sending data to cloud.redhat.com such as

"Foreman 2.3"  instead of "Satellite 6.9".

This unnecessarily complicates usage reporting/analytics on the cloud side and its impossible to tell if an upstream or downstream installation is being used by a customer.

Both plugins should be updated to use version information from the downstream theme.

This should include the "branch_info" collected by the insights client.




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


How reproducible:
Always


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jameer Pathan 2021-09-29 10:06:50 UTC
Verified

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

Test steps:
- Enable debug logging on satellite.
- Run "insights-client' on satellite content host registered with insight.
- Check '/var/log/foreman/production.log'

Observations:
- Downstream version identifier is used as user agent string.

2021-09-29T05:55:27 [D|app|0e37b565] User agent for telemetry is: Satellite/6.10.0 Beta;foreman_rh_cloud/4.0.26;insights-client/3.0.13-1 (Core 3.0.243; requests 2.20.0) Red Hat Enterprise Linux 8.2 (CPython 3.6.8; Linux 4.18.0-193.28.1.el8_2.x86_64); bash

Comment 4 errata-xmlrpc 2021-11-16 14:11: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.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