Don't bootstrap osds on mon-relation-departed hook

The charm attempts to bootstrap OSDs on both the mon-relation-changed
and the mon-relation-departed hooks. There is no logical reason that
the OSDs should be bootstrapped in the -departed hook.

Change-Id: I79a790291b0e361d2748d6bed8c989d16ad36daf
Closes-Bug: #1885195
This commit is contained in:
Billy Olsen 2022-05-13 11:40:39 -07:00
parent d4f3dd2ee6
commit 82f576ac30
1 changed files with 1 additions and 2 deletions

View File

@ -658,8 +658,7 @@ def get_bdev_enable_discard():
"bdev-enable-discard: %s") % bdev_enable_discard)
@hooks.hook('mon-relation-changed',
'mon-relation-departed')
@hooks.hook('mon-relation-changed')
def mon_relation():
bootstrap_key = relation_get('osd_bootstrap_key')
upgrade_key = relation_get('osd_upgrade_key')