Description of problem:
schedule inventory plugin sync failed due to 'organization_id' typecasting.
observed since last few days upload has not happened and by looking at the logs found below error.
2020-04-17T10:01:22 [I|app|] Performed ForemanInventoryUpload::Async::GenerateAllReportsJob (Job ID: 160d2769-88b7-4a3f-96b6-f803d
42c675a) from Dynflow(default) in 6512.74ms
2020-04-17T10:01:22 [I|app|] Performing ForemanInventoryUpload::Async::GenerateReportJob (Job ID: d5b032b1-ccfd-44a2-8444-2c4a5f91
4518) from Dynflow(default) with arguments: "/var/lib/foreman/red_hat_inventory/generated_reports/", 1
2020-04-17T10:01:22 [E|app|] Error performing ForemanInventoryUpload::Async::GenerateReportJob (Job ID: d5b032b1-ccfd-44a2-8444-2c
4a5f914518) from Dynflow(default) in 0.62ms: TypeError (no implicit conversion of Integer into String):
/opt/rh/rh-ruby25/root/usr/share/ruby/open3.rb:199:in `spawn'
/opt/rh/rh-ruby25/root/usr/share/ruby/open3.rb:199:in `popen_run'
/opt/rh/rh-ruby25/root/usr/share/ruby/open3.rb:190:in `popen2e'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_rh_cloud-1.0.4.1/lib/foreman_inventory_upload/async/shell_process.rb:10:in `perform'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_rh_cloud-1.0.4.1/lib/foreman_inventory_upload/async/generate_report_job.rb:12:in `perform'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activejob-5.2.1/lib/active_job/execution.rb:39:in `block in perform_now'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. crate new organisation and location in satellite
2. configure inventory upload plugin
3. add some inventory
4. wait for schedule sync to be happen.
Actual results:
Schedule sync has not invoked.
Expected results:
schedule sync should upload inventory once in a 24 Hr.
Additional info:
Scheduled sync finishes without problem - there is no exception raised during run.
Tested on:
Satellite 6.8.0 snap 5
pulp-server-2.21.2-1.el7sat.noarch
satellite-6.8.0-0.4.beta.el7sat.noarch
foreman-2.1.0-0.20.rc2.el7sat.noarch
katello-3.16.0-0.3.rc1.el7sat.noarch
tfm-rubygem-foreman_rh_cloud-2.0.7-1.el7sat.noarch
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 (Important: Satellite 6.8 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-2020:4366