Modify ↓
Ticket #1012 (closed defect: fixed)
Client spits out a trace if it cannot connect to the server
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawlP6DRBvIJ7NLpLWILbgzURvGbMtGEyd8U | Owned by: | desai |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: |
Description
If the client cannot initiate a connection to the server (for whatever reason), it spits out a Python trace, which is a bit ugly:
$ bcfg2 -S https://does.not.exist Traceback (most recent call last): File "/usr/sbin/bcfg2", line 332, in <module> client.run() File "/usr/sbin/bcfg2", line 198, in run probe_data = proxy.GetProbes() File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib/pymodules/python2.6/Bcfg2/Proxy.py", line 280, in request self.send_content(h, request_body) File "/usr/lib/python2.6/xmlrpclib.py", line 1349, in send_content connection.endheaders() File "/usr/lib/python2.6/httplib.py", line 908, in endheaders self._send_output() File "/usr/lib/python2.6/httplib.py", line 780, in _send_output self.send(msg) File "/usr/lib/python2.6/httplib.py", line 739, in send self.connect() File "/usr/lib/pymodules/python2.6/Bcfg2/Proxy.py", line 162, in connect self._connect_py26ssl() File "/usr/lib/pymodules/python2.6/Bcfg2/Proxy.py", line 196, in _connect_py26ssl self.sock.connect((self.host, self.port)) File "/usr/lib/python2.6/ssl.py", line 290, in connect socket.connect(self, addr) File "<string>", line 1, in connect socket.gaierror: [Errno -2] Name or service not known
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
Fixed the traceback in 44f427f197c7f4e2cb4bba250450454bf7b8d179. Thanks for the bug report.