Bug 2097751 - Traceback in production.log while trying to remediate issue from c.r.c when inventory status on satellite is not synced.
Summary: Traceback in production.log while trying to remediate issue from c.r.c when i...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Cloud Connector
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
: 2097749 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-16 12:59 UTC by Jameer Pathan
Modified: 2023-07-11 07:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18865 0 None None None 2023-07-11 07:05:04 UTC

Description Jameer Pathan 2022-06-16 12:59:24 UTC
Description of problem:
Traceback in production.log while trying to remediate issue from c.r.c when inventory status on satellite is not synced.

Version-Release number of selected component (if applicable):
- Satellite 6.11.0 snap 25
- rubygem-foreman_rh_cloud-5.0.39-1.el8sat.noarch

How reproducible:
- Tried once

Steps to Reproduce:
1. Configure RHC on Satellite (Go to Configure > Inventory upload > Click on "Configure Cloud Connector" button.)
2. Register Host with satellite and Insights.
3. Try to remediate Insights issue from c.r.c
4. Check /var/log/foreman/production.log on Satellite.

Actual results:
- Traceback with following message.
2022-06-16T08:02:20 [W|app|5b7270f6] Some hosts were not found/ignored. 
Looked for: ["1c9ddase4-2764-439a-bc54-b390dasb73f1", 
"c8dsa2809-bc9a-46be-90f0-91385das6d5bb"], found ids: []

Expected results:
- No traceback in production.log
- Proper error message shown either on c.r.c or Satellite.

Additional info:
- This happens when the inventory status on satellite is not synced.
(Go to Configure > Inventory upload > Click on "Sync Inventory status".)

Comment 2 Shimon Shtein 2022-06-16 13:06:01 UTC
This will need a change in the code to avoid executing a REX job on an empty list of hosts.

Comment 3 Brad Buckingham 2022-06-16 14:02:55 UTC
*** Bug 2097749 has been marked as a duplicate of this bug. ***


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