Where the command for activation of disk partition were missing and could handle only the activation of entire disk.
Added “ceph-disk activate” command in the above mentioned function after “ceph-disk prepare” in lib/ceph/util.py. On adding this command deployment of ceph-osd on partition was successful.
Note: During the addition of “ceph-disk activate” command , ran into one more issue where an empty value in the partition array seen , when tried to split using split method was throwing an error due to inaccessibility of the value. Addition of space as a delimiter while splitting partition array resolved the issue.
Further debugging of code, led me to the below function in “cs:ceph-osd-249” charm
def osdize_dev(dev, osd_format, osd_journal, reformat_osd=False, errors= False, encrypt=False, bluestore=False):
ignore_
…..
Where the command for activation of disk partition were missing and could handle only the activation of entire disk.
Added “ceph-disk activate” command in the above mentioned function after “ceph-disk prepare” in lib/ceph/util.py. On adding this command deployment of ceph-osd on partition was successful.
Note: During the addition of “ceph-disk activate” command , ran into one more issue where an empty value in the partition array seen , when tried to split using split method was throwing an error due to inaccessibility of the value. Addition of space as a delimiter while splitting partition array resolved the issue.