Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1956190 - Invalid json created and reported to cloud
Summary: Invalid json created and reported to cloud
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Inventory
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.10.0
Assignee: Shimon Shtein
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-03 07:39 UTC by Sanket Jagtap
Modified: 2024-12-20 19:59 UTC (History)
5 users (show)

Fixed In Version: tfm-rubygem-foreman_rh_cloud-3.0.21
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1973332 (view as bug list)
Environment:
Last Closed: 2021-11-16 14:10:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tfm-rubygem-foreman_rh_cloud-3.0.18.1-2.HOTFIXRHBZ1956190.el7sat.noarch.rpm (3.37 MB, application/x-rpm)
2021-06-14 21:44 UTC, Mike McCune
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman_rh_cloud pull 541 0 None open Filter out tags with empty values 2021-05-03 17:33:46 UTC
Red Hat Knowledge Base (Solution) 6379051 0 None None None 2021-10-01 14:26:47 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:11:10 UTC

Description Sanket Jagtap 2021-05-03 07:39:42 UTC
Description of problem:
In the production logs, there is a issue that we are observing, related a invalid json been submitted to yupana from various accounts.

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

How reproducible:
Always

Steps to Reproduce:
Looks like the value for some key field is not propogated to the report and a invalid json is created. this is how the json looks, 

{"namespace": "satellite","key": "lifecycle_environment",},
{"namespace": "satellite","key": "content_view",}, 
{"namespace": "satellite","key": "satellite_instance_id","value": "XXXXXXXXXXXXXXXXXXXXX4"}, 
{"namespace": "satellite","key": "organization_id","value": "1"}]},


Actual results:
Invalid json is reported and rejected.

Expected results:
Invalid json , should not be created, or (verified/linted) before being uploaded to cloud.

Additional info:

Comment 3 Mike McCune 2021-06-14 21:43:32 UTC
*** Satellite 6.9.2 and 6.9.2.1 Hotfix Available ***

1) Download tfm-rubygem-foreman_rh_cloud-3.0.18.1-2.HOTFIXRHBZ1956190.el7sat.noarch.rpm from this bugzilla to your Satellite


2) stop services:

satellite-maintain service stop

3) Install:

rpm -Uvh tfm-rubygem-foreman_rh_cloud-3.0.18.1-2.HOTFIXRHBZ1956190.el7sat.noarch.rpm

4) restart:

satellite-maintain service start

5) resume operations

Comment 4 Mike McCune 2021-06-14 21:44:28 UTC
Created attachment 1791085 [details]
tfm-rubygem-foreman_rh_cloud-3.0.18.1-2.HOTFIXRHBZ1956190.el7sat.noarch.rpm

Comment 5 Jameer Pathan 2021-09-09 09:37:52 UTC
Verified 

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

Test steps:
- Generated report from customer db 6.10.0 snap 15 satellite.
- Verified generated archive with Subscription Watch QE team.
OR
- Have hosts registered with satellite. 
- Generate inventory reports.

Observations:
- Valid json file is created.

Comment 8 errata-xmlrpc 2021-11-16 14:10:50 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


Note You need to log in before you can comment on or make changes to this bug.