Add support for disk wiping without GPT formatting
To support a Rook based Ceph cluster, provide an option when wiping disks to skip adding a partition table. This allows preparing disks on all hosts during provisioning from the active controller that will be formatted and run as OSDs when the Rook k8s application is applied. Change-Id: I93a9770b0d78ddddc01fe7956d7ad7058acc8e71 Story: 2005527 Task: 41127 Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
committed by
Bob Church
parent
c4fd795af5
commit
083a073332
@@ -90,6 +90,11 @@ def do_host_disk_list(cc, args):
|
||||
@utils.arg('device_name_path_uuid',
|
||||
metavar='<device name or path or UUID>',
|
||||
help='Name or uuid of disk on the host [REQUIRED]')
|
||||
@utils.arg('-s', '--skip_formatting',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='Wipe the current partition information but do not add a new'
|
||||
' partition table.')
|
||||
@utils.arg('--confirm',
|
||||
action='store_true',
|
||||
default=False,
|
||||
@@ -118,6 +123,7 @@ def do_host_disk_wipe(cc, args):
|
||||
|
||||
fields = dict()
|
||||
fields['partition_table'] = constants.PARTITION_TABLE_GPT
|
||||
fields['skip_formatting'] = 'True' if args.skip_formatting else 'False'
|
||||
|
||||
patch = []
|
||||
for (k, v) in fields.items():
|
||||
|
||||
Reference in New Issue
Block a user