Fix ssl config update when api node is split

Currently, if we deploy cinder-api and cinder-volume to different nodes,
ssl_key and ssl_cert don't get configured on the api node.

The ApacheSSLContext's __call__ method should gate on the 'api' service
being enabled, rather than 'cinder-common'.

Change-Id: I6d5d6710a73f9393ad7c45c3307925b10cda641d
Closes-bug: #1741479
This commit is contained in:
Seyeong Kim 2018-01-05 22:09:18 +09:00
parent a2dfed738f
commit 6b2363f11e
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class ApacheSSLContext(SSLContext):
def __call__(self):
# late import to work around circular dependency
from cinder_utils import service_enabled
if not service_enabled('cinder-common'):
if not service_enabled('api'):
return {}
return super(ApacheSSLContext, self).__call__()