Bug 1162502
Summary: | targetd should refuse to start if SSL credentials are missing | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Bruno Goncalves <bgoncalv> |
Component: | targetd | Assignee: | Tony Asleson <tasleson> |
Status: | CLOSED ERRATA | QA Contact: | Martin Hoyer <mhoyer> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.4 | CC: | agrover, mhoyer, mthacker, tasleson |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1162278 | Environment: | |
Last Closed: | 2017-08-01 20:43:39 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: | |
Embargoed: | |||
Bug Depends On: | 1162278 | ||
Bug Blocks: | 1385242 |
Description
Bruno Goncalves
2014-11-11 08:03:04 UTC
Just to track the port of the patch to RHEL-7 What happens is the missing certificate files are not noticed until a client actually tries to use the service. It would be better to check that the required files are present at start up to ensure that the clients can hopefully connect cleanly. Traceback (most recent call last): File "/usr/lib64/python2.7/SocketServer.py", line 290, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib64/python2.7/SocketServer.py", line 318, in process_request self.finish_request(request, client_address) File "/home/tasleson/projects/targetd/targetd/main.py", line 160, in finish_request suppress_ragged_eofs=True) File "/usr/lib64/python2.7/ssl.py", line 943, in wrap_socket ciphers=ciphers) File "/usr/lib64/python2.7/ssl.py", line 554, in __init__ self._context.load_cert_chain(certfile, keyfile) IOError: [Errno 2] No such file or directory Tested with targetd-0.8.5-1.el7, works well. No regression found. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1982 |