#9000 Nightly failure (rawhide) in test_ipahealthcheck.py::TestIpaHealthCheck::test_sosreport_includes_healthcheck
Closed: fixed 8 months ago by frenaud. Opened 8 months ago by frenaud.

The nightly test test_ipahealthcheck.py::TestIpaHealthCheck::test_sosreport_includes_healthcheck is failing in rawhide, see PR #1195 with the following logs and report:

self = <ipatests.test_integration.test_ipahealthcheck.TestIpaHealthCheck object at 0x7f52f9cae110>
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",
                "-v",
                "--build",
            ]
        )
>       assert msg in cmd.stdout_text
E       assert "[plugin:ipa] collecting path '/var/log/ipa/healthcheck/healthcheck.log'" in "Please note the 'sosreport' command has been deprecated in favor of the new 'sos' command, E.G. 'sos report'.\nRedire...ins\n\n\nYour sosreport build tree has been generated in:\n\t/var/tmp/sosreport-master-123456-2021-09-25-jrzflre\n\n\n"
E        +  where "Please note the 'sosreport' command has been deprecated in favor of the new 'sos' command, E.G. 'sos report'.\nRedire...ins\n\n\nYour sosreport build tree has been generated in:\n\t/var/tmp/sosreport-master-123456-2021-09-25-jrzflre\n\n\n" = <pytest_multihost.transport.SSHCommand object at 0x7f52fa0ed660>.stdout_text

The test started failing with the update of sos package to 4.2-1.fc36.
With the previous version, the sos command was displaying the collected files but it seems the new version does not have the expected verbose output any more. The expected line is visible only if sosreport -vv is used


Metadata Update from @frenaud:
- Issue assigned to frenaud

8 months ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6032

8 months ago

master:

  • a6b3993 ipatests: increase sosreport verbosity

ipa-4-9:

  • fc384b0 ipatests: increase sosreport verbosity

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

8 months ago

Login to comment on this ticket.

Metadata