-
Bug
-
Resolution: Done-Errata
-
Normal
-
None
-
rhel-system-roles-1.78.1-0.1.el9
-
None
-
None
-
ZStream
-
3
-
rhel-sst-system-roles
-
3
-
QE ack, Dev ack
-
False
-
-
Yes
-
Red Hat Enterprise Linux
-
System Roles Sprint 1, System Roles Sprint 2, System Roles Sprint 3
-
Approved Blocker
-
Pass
-
rhel-system-roles-1.76.0-0.1.8.el9
-
None
-
Bug Fix
-
-
Done
-
None
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
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.
- links to
-
RHEA-2024:130467 rhel-system-roles bug fix and enhancement update