Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-118374

sosreport command is deprecated and fails to collect healthcheck.log; sos report works as expected

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-8.10.z
    • rhel-8.10.z
    • ipa
    • Yes
    • Low
    • rhel-idm-ipa
    • None
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      The nightly test
      `test_ipahealthcheck.py::TestIpaHealthCheck::::test_sosreport_includes_healthcheck` sosreport is deprecated and does not collect healthcheck.log; sos report produces the expected output.
      
      The test is failing on nightly rhel8.10.
      Example of run: https://idm-artifacts.psi.redhat.com/idm-ci/freeipa/Test-compose/RHEL8.10/2025-09-26_09-43/tier-1/upstream-ipahealthcheck/1/
      
      
      self = <ipatests.test_integration.test_ipahealthcheck.TestIpaHealthCheck object at 0x7f5a16f8dc50>
      create_logfile = None
      
          def test_sosreport_includes_healthcheck(self, create_logfile):
              """
              This testcase checks that sosreport command
              when run on IPA system with healthcheck installed
              collects healthcheck.log file
              """
              caseid = "123456"
              msg = "[plugin:ipa] collecting path '{}'".format(HEALTHCHECK_LOG)
              cmd = self.master.run_command(
                  [
                      "sosreport",
                      "-o",
                      "ipa",
                      "--case-id",
                      caseid,
                      "--batch",
                      "-vv",
                      "--build",
                  ]
              )
      >       assert msg in cmd.stdout_text
      E       assert "[plugin:ipa] collecting path '/var/log/ipa/healthcheck/healthcheck.log'" in "sosreport binary is deprecated, use 'sos report' instead\n"
      E        +  where "sosreport binary is deprecated, use 'sos report' instead\n" = <pytest_multihost.transport.SSHCommand object at 0x7f5a16f8d2e8>.stdout_text
      
      caseid     = '123456'
      cmd        = <pytest_multihost.transport.SSHCommand object at 0x7f5a16f8d2e8>
      create_logfile = None
      msg        = "[plugin:ipa] collecting path '/var/log/ipa/healthcheck/healthcheck.log'"
      self       = <ipatests.test_integration.test_ipahealthcheck.TestIpaHealthCheck object at 0x7f5a16f8dc50>
      
      test_integration/test_ipahealthcheck.py:1395: AssertionError
      
      ----------------------------------------------------------------------
      ----------------------------------------------------------------------
      
      sos-4.9.2-1.el8_10.noarch
      ipa-server-4.9.13-18
      ipa-healthcheck-core-0.12-6
      
      

              frenaud@redhat.com Florence Renaud
              frenaud@redhat.com Florence Renaud
              Florence Renaud Florence Renaud
              PRANAV THUBE PRANAV THUBE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: