Switch to using mds_bootstrap_key

This commit is contained in:
James Page 2016-09-29 21:24:59 +01:00
parent 409e6b4a6a
commit 9980b239af
1 changed files with 2 additions and 5 deletions

View File

@ -17,19 +17,16 @@ class CephClient(RelationBase):
scope = scopes.GLOBAL
auto_accessors = ['key', 'fsid', 'auth']
auto_accessors = ['mds_bootstrap_key', 'fsid', 'auth']
@hook('{requires:ceph-mds}-relation-{joined}')
def joined(self):
# TODO: what does this next line do?
self.set_remote(key='mds-name',
value=socket.gethostname())
self.set_state('{relation_name}.connected')
@hook('{requires:ceph-mds}-relation-{changed,departed}')
def changed(self):
data = {
'key': self.key(),
'mds_bootstrap_key': self.mds_bootstrap_key(),
'fsid': self.fsid(),
'auth': self.auth(),
'mon_hosts': self.mon_hosts()