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

undefined method `name' when opening a compliance report

XMLWordPrintable

    • None
    • None
    • None
    • None
    • Yes

      Description of problem:

      When I run a SCAP scan and then want to view it in Hosts -> Compliance -> Reports, I get an error and the report doesn't get shown:

      Oops, we're sorry but something went wrong undefined
       method `name' for {:id=>#<Host::Managed id: 19, name: 
      "<HOST_FQDN>", last_compile: 
      "2025-08-26 09:20:23.000000000 +0200", last_report: [FILTERED], 
      updated_at: "2025-08-26 09:20:24.048052000 +0200", created_at: 
      "2025-08-25 12:05:57.919963000 +0200", root_pass: nil, architecture_id: 
      1, operatingsystem_id: 1, ptable_id: nil, medium_id: nil, build: false, 
      comment: "", disk: nil, installed_at: "2025-08-25 12:06:26.988617000 
      +0200", model_id: 1, hostgroup_id: nil, owner_id: 4, owner_type: "User",
       enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil,
       image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: 
      nil, certname: nil, image_id: nil, organization_id: 1, location_id: 2, 
      type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil,
       provision_method: nil, grub_pass: nil, discovery_rule_id: nil, 
      global_status: 2, lookup_value_matcher: [FILTERED], openscap_proxy_id: 
      1, pxe_loader: nil, initiated_at: "2025-08-25 12:06:02.943185000 +0200",
       build_errors: nil, creator_id: 1>}:Hash 

      Traceback attached.

      How reproducible:

      Deterministic on sat stream snap 122.0 and 125.0.

      Is this issue a regression from an earlier version:

      Yes

      Steps to Reproduce:

      1. Have a Satellite with SCAP capability, some SCAP content, SCAP policy, and a host configured as foreman_scap client with that policy enabled

      2. Run SCAP scans on the host, wait for it to finish

      3. Hosts -> Compliance -> Reports

      4. Click the "... ago" link in the "Reported At" column

      Actual behavior:
      A page opens with the above mentioned error

      Expected behavior:
      arf report opened

      Business Impact / Additional info:

       

              ofedoren@redhat.com Oleh Fedorenko
              lhellebr@redhat.com Lukas Hellebrandt
              Lukas Hellebrandt Lukas Hellebrandt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: