This adds the support of the --osd-id option to the raw prepare command.
Fixes: https://tracker.ceph.com/issues/61995
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit
16729656aa208deeedd631dcf871d501d6eba7f5)
action='store_true',
help='Enable device encryption via dm-crypt',
)
+ parser.add_argument(
+ '--osd-id',
+ help='Reuse an existing OSD id',
+ default=None,
+ type=arg_validators.valid_osd_id,
+ )
return parser
# reuse a given ID if it exists, otherwise create a new ID
self.osd_id = prepare_utils.create_id(
- osd_fsid, json.dumps(secrets))
+ osd_fsid,
+ json.dumps(secrets),
+ osd_id=self.args.osd_id)
prepare_bluestore(
self.args.data,