Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19621 {Sat6.11/RHCloud/Bug} foreman-rake command to clean insights status fails
  3. SAT-25486

[DEV] {Sat6.11/RHCloud/Bug} foreman-rake command to clean insights status fails

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • RH Cloud
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Phoenix - Content
    • Sprint 134, Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141

      The below foreman-rake command to clean insights status

      1. foreman-rake rh_cloud_insights:clean_statuses SEARCH="params.host_registration_insights=f"
        API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
        rake aborted!
        ScopedSearch::QueryNotSupported: external method 'search_by_params' failed with error: undefined method `subtree_ids' for nil:NilClass
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/query_builder.rb:420:in `rescue in to_ext_method_sql'
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/query_builder.rb:417:in `to_ext_method_sql'
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/query_builder.rb:217:in `sql_test'
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/query_builder.rb:562:in `sql_test'
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/query_builder.rb:509:in `to_single_field_sql'
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/query_builder.rb:521:in `to_sql'
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/query_builder.rb:54:in `build_find_params'
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/query_builder.rb:22:in `build_query'
        /usr/share/gems/gems/scoped_search-4.1.9/lib/scoped_search/definition.rb:328:in `block in register_named_scope!'
        /usr/share/foreman/app/models/host.rb:15:in `method_missing'
        /usr/share/gems/gems/foreman_rh_cloud-5.0.46/app/services/foreman_rh_cloud/insights_status_cleaner.rb:4:in `clean'
        /usr/share/gems/gems/foreman_rh_cloud-5.0.46/lib/tasks/insights.rake:18:in `block (2 levels) in <top (required)>'
        /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
        ~~~

      DEV Tracker for https://issues.redhat.com/browse/SAT-19621
      Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2232559

              rhn-support-chrobert Chris Roberts
              satellite-focaccia-bot Focaccia Bot
              Shimon Shtein Shimon Shtein
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: