Execution of 'katello:reimport' fails with error "TypeError: no implicit conversion of String into Integer"

Solution Verified - Updated -

Issue

  • Execution of the foreman-rake katello:reimport --trace command fails with the following error i.e.

    ** Invoke katello:reimport (first_time)
    ** Invoke dynflow:client (first_time)
    ** Invoke environment (first_time)
    ** Execute environment
    ** Execute dynflow:client
    ** Invoke katello:check_ping (first_time)
    ** Invoke environment
    ** Invoke dynflow:client
    ** Execute katello:check_ping
    ** Execute katello:reimport
    Importing Katello::Subscription
    Importing Katello::Pool
    Importing Katello::Content
    rake aborted!
    TypeError: no implicit conversion of String into Integer
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:39:in `[]'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:39:in `block in find_product_for_content'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:38:in `each'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:38:in `find'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:38:in `find_product_for_content'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:66:in `block in handle_product_moves'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:63:in `each'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:63:in `handle_product_moves'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:84:in `block in import'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:83:in `each'
    /usr/share/gems/gems/katello-4.7.0.25/app/services/katello/product_content_importer.rb:83:in `import'
    /usr/share/gems/gems/katello-4.7.0.25/app/models/katello/content.rb:55:in `block in import_all'
    

Environment

  • Red Hat Satellite 6.13

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content