Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 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 ***