• rhel-system-roles-1.78.1-0.1.el10
    • sst_system_roles
    • 3
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • System Roles Sprint 1, System Roles Sprint 2
    • Bug Fix
    • Hide
      Cause (the user action or circumstances that trigger the bug):
      Consequence (what the user experience is when the bug occurs):
      Fix (what has changed to fix the bug; do not include overly technical details):
      Result (what happens now that the patch is applied):
      Show
      Cause (the user action or circumstances that trigger the bug): Consequence (what the user experience is when the bug occurs): Fix (what has changed to fix the bug; do not include overly technical details): Result (what happens now that the patch is applied):
    • Proposed

      What were you trying to do that didn't work?

      Create second sshd service with this kind of configuration:

      ---
      - name: Configure second SSHD service on different port
        hosts: all
        vars:
          sshd_service: sshd2
          sshd_config_file: /etc/ssh2/sshd_config
          sshd_install_service: true
          sshd_manage_selinux: true
          sshd:
            Port: 2222
            ForceCommand: echo "CONNECTED2"
        tasks:
          - name: Run the role
            ansible.builtin.include_role:
              name: linux-system-roles.sshd

      Please provide the package NVR for which bug is seen:

      rhel-system-roles-1.23.0-2.21.el9

      Note: worked fine in rhel-system-roles-1.22.0-2.el9, therefore qualifies as a regression

      How reproducible:

      always

      Steps to reproduce

      1. run our test https://pkgs.devel.redhat.com/cgit/tests/openssh/tree/Sanity/ansible-sshd
      2.  
      3.  

      Expected results

      passes

      Actual results

      fails - second sshd service seems to try to use port 22, conflicting with the regular SSHD

      :: [ 13:31:30 ] :: [  BEGIN   ] :: Running 'journalctl -xeu sshd2.service'
      Mar 15 13:31:30 rhel-9-3-0-z-stream.fingertip.local systemd[1]: Starting OpenBSD Secure Shell server...
      ░░ Subject: A start job for unit sshd2.service has begun execution
      ░░ Defined-By: systemd
      ░░ Support: https://access.redhat.com/support
      ░░ 
      ░░ A start job for unit sshd2.service has begun execution.
      ░░ 
      ░░ The job identifier is 2735.
      Mar 15 13:31:30 rhel-9-3-0-z-stream.fingertip.local sshd[18842]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
      Mar 15 13:31:30 rhel-9-3-0-z-stream.fingertip.local sshd[18842]: error: Bind to port 22 on :: failed: Address already in use.
      Mar 15 13:31:30 rhel-9-3-0-z-stream.fingertip.local sshd[18842]: fatal: Cannot bind any address.
      Mar 15 13:31:30 rhel-9-3-0-z-stream.fingertip.local systemd[1]: sshd2.service: Main process exited, code=exited, status=255/EXCEPTION
      ░░ Subject: Unit process exited
      ░░ Defined-By: systemd
      ░░ Support: https://access.redhat.com/support
      ░░ 
      ░░ An ExecStart= process belonging to unit sshd2.service has exited.
      ░░ 
      ░░ The process' exit code is 'exited' and its exit status is 255.
      Mar 15 13:31:30 rhel-9-3-0-z-stream.fingertip.local systemd[1]: sshd2.service: Failed with result 'exit-code'.
      ░░ Subject: Unit failed
      ░░ Defined-By: systemd
      ░░ Support: https://access.redhat.com/support
      ░░ 
      ░░ The unit sshd2.service has entered the 'failed' state with result 'exit-code'.
      Mar 15 13:31:30 rhel-9-3-0-z-stream.fingertip.local systemd[1]: Failed to start OpenBSD Secure Shell server.
      ░░ Subject: A start job for unit sshd2.service has failed
      ░░ Defined-By: systemd
      ░░ Support: https://access.redhat.com/support
      ░░ 
      ░░ A start job for unit sshd2.service has finished with a failure.
      ░░ 
      ░░ The job identifier is 2735 and the job result is failed.

            rmeggins@redhat.com Richard Megginson
            szidek@redhat.com Stanislav Zidek
            Richard Megginson Richard Megginson
            David Jez David Jez
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: