if not line:
continue
- # spliting on ';' because that is what the lvm call uses as
+ # splitting on ';' because that is what the lvm call uses as
# '--separator'
output_items = [i.strip() for i in line.split(';')]
# map the output to the fiels
if matches:
tag_filtered.append(pvolume)
# return the tag_filtered pvolumes here, the `filtered` list is no
- # longer useable
+ # longer usable
return tag_filtered
return filtered
some_call()
print "Success!"
- If multiple exceptions need to be catched they need to be provided as a
+ If multiple exceptions need to be caught they need to be provided as a
tuple::
@catches((TypeError, AttributeError))
# blow up with a KeyError if this doesn't exist
osd_fsid = osd_lv.tags['ceph.osd_fsid']
if not osd_journal_lv:
- # must be a disk partition, by quering blkid by the uuid we are ensuring that the
+ # must be a disk partition, by querying blkid by the uuid we are ensuring that the
# device path is always correct
journal_uuid = osd_lv.tags['ceph.journal_uuid']
osd_journal = disk.get_device_from_partuuid(journal_uuid)
)
)
terminal.success(
- 'To take over managment of this scanned OSD, and disable ceph-disk and udev, run:'
+ 'To take over management of this scanned OSD, and disable ceph-disk and udev, run:'
)
terminal.success(' ceph-volume simple activate %s %s' % (osd_id, osd_fsid))
for k, v in kw.items():
self._convert(v, k)
- # only pursue the first occurence
+ # only pursue the first occurrence
break
def _convert(self, size, unit):
For filestore: The path for the OSD would exist at this point even if no
OSD data device is mounted, so the keyring is written to fetch the key, and
then the data device is mounted on that directory, making the keyring
- "dissapear".
+ "disappear".
"""
if os.path.exists('/var/lib/ceph/osd/%s-%s/lockbox.keyring' % (conf.cluster, osd_id)):
return
--setuser ceph --setgroup ceph
In some cases it is required to use the keyring, when it is passed in as
- a keywork argument it is used as part of the ceph-osd command
+ a keyword argument it is used as part of the ceph-osd command
"""
path = '/var/lib/ceph/osd/%s-%s/' % (conf.cluster, osd_id)
monmap = os.path.join(path, 'activate.monmap')