from ceph_volume import decorators, terminal, process
from ceph_volume.api import lvm as api
from ceph_volume.systemd import systemctl
+from ceph_volume.devices.lvm.common import valid_osd_id
logger = logging.getLogger(__name__)
# (in the order of precedence, stop on the first match)
# if source list has DB volume - target device replaces it.
# if source list has WAL volume - target device replace it.
- # if source list has slow volume only - operation isn\92t permitted,
+ # if source list has slow volume only - operation isn't permitted,
# requires explicit allocation via new-db/new-wal command.detects which
def get_target_type_by_source(self, devices):
ret = None
target_lv = api.get_lv_by_fullname(self.args.target)
if not target_lv:
mlogger.error(
- 'Target path "{}" is not a Logical Volume'.formaat(
+ 'Target path "{}" is not a Logical Volume'.format(
self.args.target))
raise SystemExit(
'Unable to migrate to : {}'.format(self.args.target))
'--osd-id',
required=True,
help='Specify an OSD ID to detect associated devices for zapping',
+ type=valid_osd_id
)
parser.add_argument(
'--osd-id',
required=True,
help='Specify an OSD ID to attach new volume to',
+ type=valid_osd_id,
)
parser.add_argument(