When a data partition is removed and the journal partition is not
removed, ceph-disk list will not find a journal_for information and
should just ignore it.
http://tracker.ceph.com/issues/13157 Fixes: #13157
Signed-off-by: Loic Dachary <ldachary@redhat.com>
desc = ['ceph data (dmcrypt %s)' % dmcrypt['type'], 'holders: ' + ','.join(dmcrypt['holders'])]
elif dev['ptype'] == JOURNAL_UUID:
desc.append('ceph journal')
- if dev['journal_for']:
+ if dev.get('journal_for'):
desc.append('for %s' % dev['journal_for'])
elif dev['ptype'] in (DMCRYPT_JOURNAL_UUID,
DMCRYPT_LUKS_JOURNAL_UUID):