Skip to content

GH CI testcase failed quite often #2006

@liangxin1300

Description

@liangxin1300

Some testcases are not stable, like:

    And Service "corosync-qnetd" is "started" on "qnetd-node"               # ../../opt/crmsh/test/features/steps/step_implementation.py:242
      Traceback (most recent call last):
        File "/usr/lib/python3.13/site-packages/behave/model.py", line 1991, in run
          match.run(runner.context)
          ~~~~~~~~~^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.13/site-packages/behave/matchers.py", line 105, in run
          self.func(context, *args, **kwargs)
          ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "../../opt/crmsh/test/features/steps/step_implementation.py", line 244, in step_impl
          assert check_service_state(context, name, state, addr) is True
                 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/crmsh/test/features/steps/utils.py", line 127, in check_service_state
          rc, _, _ = behave_agent.call(addr, 1122, f'systemctl is-active {service_name}', 'root')
                     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/crmsh/test/features/steps/behave_agent.py", line 69, in call
          s.connect(sockaddr)
          ~~~~~~~~~^^^^^^^^^^
      PermissionError: [Errno 13] Permission denied

It can't be reproduced each time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions