Bug 2053923

Summary: InsightsScheduledSync raises exception when allow_auto_insights_sync is false
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: CLOSED ERRATA QA Contact: addubey
Severity: high Docs Contact:
Priority: high    
Version: 6.11.0CC: addubey, aruzicka, pcreech
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-foreman_rh_cloud-5.0.35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:33:11 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 Pavel Moravec 2022-02-13 08:52:05 UTC
Description of problem:
On a default Sat7.0 snap 9 installation, an execution of planned InsightsScheduledSync task fails with backtrace:

undefined local variable or method `logger' for #<InsightsCloud::Async::InsightsScheduledSync:0x000056216b6a1278> (NameError)
/usr/share/gems/gems/foreman_rh_cloud-5.0.31/lib/insights_cloud/async/insights_scheduled_sync.rb:8:in `plan'
/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/action.rb:525:in `block (3 levels) in execute_plan'


Version-Release number of selected component (if applicable):
Sat7.0 snap 9


How reproducible:
100%


Steps to Reproduce:
1. Install Sat7.0 and wait for the first UTC midnight
2. Check status of executed InsightsScheduledSync task(s)


Actual results:
stopped/error task with above backtrace


Expected results:
successful (dummy) run for the default allow_auto_insights_sync = false setting


Additional info:

Comment 5 errata-xmlrpc 2022-07-05 14:33:11 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.11 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-2022:5498