Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-41512

The "Host inventory report job" sometimes goes into paused state with error Couldn't find Organization without an ID in Satellite 6.18 with IoP enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • 6.18.1, 6.18.2
    • RH Cloud
    • None
    • False
    • sat-proton
    • None
    • None
    • None
    • None

      I couldn't figure out how but this task was triggered in my satellite twice when i was testing for https://issues.redhat.com/browse/SAT-41510 and https://issues.redhat.com/browse/SAT-41511 

       

      The paused task ForemanInventoryUpload::Async::HostInventoryReportJob has two steps in Run tab:

      ForemanInventoryUpload::Async::GenerateHostReport - Success

      ForemanInventoryUpload::Async::CreateMissingInsightsFacets - Error 

      ~~~

       

      ActiveRecord::RecordNotFound
      Couldn't find Organization without an ID
      
      ---
      - "/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/finder_methods.rb:455:in
        `find_with_ids'"
      - "/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/relation/finder_methods.rb:69:in
        `find'"
      - "/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/querying.rb:22:in `find'"
      - "/usr/share/gems/gems/activerecord-7.0.8.7/lib/active_record/core.rb:271:in `find'"
      - "/usr/share/gems/gems/foreman_rh_cloud-12.2.12/lib/foreman_inventory_upload/async/create_missing_insights_facets.rb:9:in
        `run'"
      

       

      ~~~

      After 43 mins or so, That task was triggered again when i had triggered the Generate and Upload action from UI and that time, It completed fine and withing seconds. 

       

      Affected Version:

      Red Hat Satellite 6.18.2 

      foreman_rh_cloud 12.2.12 and .13

       

      Expected behavior:

      No such inconsistent behaviors with the same task. 

              Unassigned Unassigned
              rhn-support-saydas Sayan Das
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: