Support multiple ceph-fs (mds) units

Prefix the mds cephx relation key with the provided mds-name
value, ensuring that multiple ceph-fs units can be used
within a deployment.

Change-Id: I4cbfc23886552352d06cf0e96b8459b1ce84a682
This commit is contained in:
James Page 2019-02-25 14:08:37 +00:00
parent 77953fe1a6
commit b5c02ab37e
1 changed files with 2 additions and 1 deletions

View File

@ -623,7 +623,8 @@ def mds_relation_joined(relid=None, unit=None):
public_addr = get_public_addr()
data = {
'fsid': leader_get('fsid'),
'mds_key': ceph.get_mds_key(name=mds_name),
'{}_mds_key'.format(mds_name):
ceph.get_mds_key(name=mds_name),
'auth': config('auth-supported'),
'ceph-public-address': public_addr}
settings = relation_get(rid=relid, unit=unit)