| Summary: | systemctl restart/start sshd shows no error if start fails | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Mario Trangoni <mjtrangoni> |
| Component: | openssh | Assignee: | Jakub Jelen <jjelen> |
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | cww, jjelen, michele, msekleta, plautrba, pvrabec, systemd-maint, szidek, tmraz, tscherf, tspeetje |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1291172 | Environment: | |
| Last Closed: | 2017-03-28 13:08:59 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mario Trangoni
2016-11-24 14:49:17 UTC
This would be a problem. If I read the original bug correctly, this is the same behavior as it was in RHEL7 so far (activating status even after failure). We can set RestartPreventExitStatus=255 but all the errors in SSH return 255 (except some command-line options) so this would basically prevent the below expected behavior with "slow networks": In the case that a computer gets IP from DHCP server later than sshd is started (#1352214) sshd simply failed and was restarted in 42 seconds, which was enough to make the service accessible again. We could, on the other hand, change the sshd dependency to network-online.target, but I didn't get the explanation what does it mean and do not know what other dependencies will be brought together with this target during the boot. As a bottomline I am quite opposed to this change, unless it would cause significant problems. Just tested the behavior of fresh install of RHEL7.2, which behaves the same way as the proposed solution without RestartPreventExitStatus=255 (except it does not report the errors in case the configuration is broken). This is intended behavior especially for the "slow networks" as described in the previous comment. There is difference from the Debian bug, that they do not have the 42 seconds timeout. Debian sshd would: * throttle processor * after several tries hits limit and fails permanently -- hard fail (none of that will happen in RHEL) Let me know if there is something to clarify, bu otherwise I will close this bug as WONTFIX. It would be nice, if systemd would report exit code 3 from "systemctl status" but it is nothing that ever worked before. |