ceilometer/ceilometer/objectstore
Mark Goddard ed404c5f66 Fix CA file for Swift pollster
Most OpenStack API communication uses the cafile option in the
service_credentials config. For swift the client is created differently,
and does not get this option. When TLS is used, we may get an error like
the following:

exceptions.SSLError: HTTPSConnectionPool(host='1.2.3.4', port=443): Max
retries exceeded with url: /swift/v1/AUTH_XXXX (Caused by
SSLError(SSLError("bad handshake: Error([('SSL routines',
'tls_process_server_certificate', 'certificate verify failed')],)",),))

This change fixes the issue by creating an HTTP connection for the Swift
client that uses the configured CA file.

Closes-Bug: #1940660
Change-Id: I38f9ff2bec0a2a3cb9dfc5c362284e33c12f3127
2021-08-20 14:25:44 +01:00
..
__init__.py Implement object store metering 2012-11-30 11:07:30 +01:00
rgw.py Remove six.moves 2020-09-27 11:26:03 +08:00
rgw_client.py Remove six.moves 2020-09-27 11:26:03 +08:00
swift.py Fix CA file for Swift pollster 2021-08-20 14:25:44 +01:00