Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Proxy.py: Pass through SSL protocol option | Sol Jerome | 2014-10-15 | 1 | -4/+7 |
| | | | | | | | | | | | | | | Previously we were not passing through the SSL protocol specified in the client's bcfg2.conf which caused it to unconditionally be set to xmlrpc/ssl. While this appears to automagically work with newer versions of openssl, the version in e.g. centos5 will fail if the server is set to use TLSv1. This commit passes through the setting from the client's bcfg2.conf so that older clients can talk to servers which are set to TLSv1 (in order to mitigate the effects of POODLE). Signed-off-by: Sol Jerome <sol.jerome@gmail.com> | ||||
* | Don't re-raise unknown exceptions per stpierre | Michael Fenn | 2013-11-02 | 1 | -4/+0 |
| | |||||
* | Proxy: Catch SSL errors and retry | Michael Fenn | 2013-11-01 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SSL library can throw an exception during the XMLRPC method call. There is no explicit except statement for this type of exception so they get raised up and abort the client's processing. This patch catches the exception so that normal retry processing occurs. Typical traceback: Traceback (most recent call last): File "/usr/sbin/bcfg2", line 29, in ? sys.exit(main()) File "/usr/sbin/bcfg2", line 26, in main return Client(setup).run() File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Client.py", line 256, in run rawconfig = self.get_config(times=times).decode('utf-8') File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Client.py", line 225, in get_config self.run_probes(times=times) File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Client.py", line 151, in run_probes probes = Bcfg2.Client.XML.XML(str(self.proxy.GetProbes())) File "/usr/lib/python2.4/site-packages/Bcfg2/Proxy.py", line 81, in __call__ return _orig_Method.__call__(self, *args) File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request verbose=self.__verbose File "/usr/lib/python2.4/site-packages/Bcfg2/Proxy.py", line 331, in request return self.parse_response(response) File "/usr/lib64/python2.4/xmlrpclib.py", line 1255, in parse_response return self._parse_response(file, None) File "/usr/lib64/python2.4/xmlrpclib.py", line 1276, in _parse_response response = file.read(1024) File "/usr/lib64/python2.4/httplib.py", line 480, in read s = self.fp.read(amt) File "/usr/lib64/python2.4/socket.py", line 303, in read data = self._sock.recv(recv_size) File "/usr/lib64/python2.4/site-packages/M2Crypto/SSL/Connection.py", line 217, in read return self._read_bio(size) File "/usr/lib64/python2.4/site-packages/M2Crypto/SSL/Connection.py", line 202, in _read_bio return m2.ssl_read(self.ssl, size, self._timeout) M2Crypto.SSL.SSLError: (104, 'Connection reset by peer') | ||||
* | Proxy: handle BadStatusLine errors gracefully | Chris St. Pierre | 2013-05-23 | 1 | -1/+1 |
| | |||||
* | Proxy: Use ASCII quotes to make python 2 happy | Sol Jerome | 2013-05-05 | 1 | -1/+1 |
| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> | ||||
* | Proxy: Fix HTTPConnection for >= python 3.2 | Sol Jerome | 2013-05-04 | 1 | -1/+6 |
| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> | ||||
* | testsuite: more text fixes | Chris St. Pierre | 2013-03-26 | 1 | -0/+2 |
| | |||||
* | Merge branch '1.3.2' into maint | Chris St. Pierre | 2013-03-21 | 1 | -0/+3 |
|\ | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Tools/__init__.py src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py testsuite/Testsrc/test_code_checks.py | ||||
| * | added PEP-8 style checks to test suite | Chris St. Pierre | 2013-03-11 | 1 | -0/+3 |
| | | |||||
* | | allow communication passwords with URL special chars (@, /, etc.) in them | Chris St. Pierre | 2013-03-18 | 1 | -3/+4 |
|/ | |||||
* | improve some error messages | Chris St. Pierre | 2012-10-04 | 1 | -3/+5 |
| | |||||
* | various pylint fixes | Chris St. Pierre | 2012-09-25 | 1 | -1/+0 |
| | |||||
* | removed debugging statement | Chris St. Pierre | 2012-09-07 | 1 | -1/+0 |
| | |||||
* | improving plugin development docs | Chris St. Pierre | 2012-09-06 | 1 | -21/+1 |
| | |||||
* | renamed Bcfg2Py3k to Compat | Chris St. Pierre | 2012-08-27 | 1 | -1/+1 |
| | |||||
* | fixed broken XML-RPC retries, made delay configurable | Chris St. Pierre | 2012-08-20 | 1 | -29/+38 |
| | |||||
* | Proxy: made SSLHTTPConnection object py3k-compatible | Chris St. Pierre | 2012-08-20 | 1 | -13/+17 |
| | |||||
* | added CherryPy-based server core | Chris St. Pierre | 2012-07-19 | 1 | -13/+1 |
| | |||||
* | Add IPv6 support | Sol Jerome | 2012-07-08 | 1 | -1/+9 |
| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> | ||||
* | fixed total think-o in ProxyError | Chris St. Pierre | 2012-05-02 | 1 | -1/+1 |
| | |||||
* | Allow to run directly from a git checkout (#1037) | Sol Jerome | 2012-03-24 | 1 | -0/+368 |
Signed-off-by: Sol Jerome <sol.jerome@gmail.com> |