Bug 1836357

Summary: All auto-generated Inventory Upload tasks fail with error "TypeError: no implicit conversion of Integer into String"
Product: Red Hat Satellite Reporter: Ashish Humbe <ahumbe>
Component: RH Cloud - InventoryAssignee: Shimon Shtein <sshtein>
Status: CLOSED DUPLICATE QA Contact: Mirek Długosz <mzalewsk>
Severity: high Docs Contact:
Priority: high    
Version: 6.7.0CC: aruzicka
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-17 10: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 Ashish Humbe 2020-05-15 17:11:02 UTC
Description of problem:
All auto-generated Inventory Upload tasks fail with error, only manually executed Inventory Upload tasks are working properly. 

Action "Dynflow::ActiveJob::QueueAdapters::JobWrapper" fails with error: TypeError: no implicit conversion of Integer into String

Backtrace: 

/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'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/i18n-1.4.0/lib/i18n.rb:284:in `with_locale'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activejob-5.2.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activejob-5.2.1/lib/active_job/logging.rb:26:in `block (4 levels) in <module:Logging>'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'



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

How reproducible:
Always

Steps to Reproduce:
1. Configure Cloud Connector on the satellite server which uploads inventory data once in a day
2. Keep the satellite server running for 1-2 days 
3. Search for ForemanInventoryUpload::Async::GenerateReportJob tasks and check its status.

Actual results:
ForemanInventoryUpload::Async::GenerateReportJob task fail with error

Expected results:
Automated inventory data upload should work successfully. 

Additional info:

Comment 1 Shimon Shtein 2020-05-17 10:33:11 UTC

*** This bug has been marked as a duplicate of bug 1825760 ***