Execution of foreman-rake rh_cloud_inventory:report:generate fails with error Couldn't find Organization without an ID

Solution Verified - Updated -

Issue

  • When executing the foreman-rake rh_cloud_inventory:report:generate command without passing any environment variables, the command fails with the following error:

    rake aborted!
    ForemanTasks::TaskError: Task 211f8106-f3c9-4196-91ff-2ae98d92e00f: ActiveRecord::RecordNotFound: Couldn't find Organization without an ID
    
  • It used to execute fine in Red Hat Satellite 6.17 or earlier.

Environment

  • Red Hat Satellite 6.18

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