From ef3448a13580268c503f9113c4342ff6595531ce Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Tue, 8 Sep 2015 11:27:52 -0400 Subject: [PATCH] Temporarily remove dependency on package certifi Package certifi is not listed in openstack global requirements, so we need to temporarily remove it. We can revert this patch once certifi has been added to global requirements, which is unlikely to happen in short term since global requirements repo is currently freezing. Change-Id: Ibf82c52cf570739dd142734bc5328b5af0bd2540 Partially-Implements: blueprint kubernetes-v1 --- magnum/common/pythonk8sclient/swagger_client/rest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magnum/common/pythonk8sclient/swagger_client/rest.py b/magnum/common/pythonk8sclient/swagger_client/rest.py index f9f85f2..819d568 100644 --- a/magnum/common/pythonk8sclient/swagger_client/rest.py +++ b/magnum/common/pythonk8sclient/swagger_client/rest.py @@ -23,7 +23,6 @@ import sys import io import json import ssl -import certifi import logging # python 2 and python 3 compatibility library @@ -76,10 +75,11 @@ class RESTClientObject(object): # https pool manager # certificates validated using Mozilla’s root certificates + # TODO(hongbin): fix the hard-coded ca_certs path self.ssl_pool_manager = urllib3.PoolManager( num_pools=pools_size, cert_reqs=ssl.CERT_REQUIRED, - ca_certs=certifi.where() + ca_certs='/etc/ssl/certs/ca-certificates.crt' ) def agent(self, url):