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:
parent
77953fe1a6
commit
b5c02ab37e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue