From 2ed42cf9e31b2805f03ea0f07c89bd2816cdb959 Mon Sep 17 00:00:00 2001 From: Mohan Sharma Date: Tue, 27 Dec 2022 11:31:04 +0530 Subject: [PATCH] ceph-volume: fix drive-group issue The drive-group expects the batch_args to be a string, however in the current version it is passed as a list of one element, thus calling the first item of the list solves the issue. Fixes: https://tracker.ceph.com/issues/59203 Signed-off-by: Mohan Sharma (cherry picked from commit 7602a99f7a1308c684a7c1d619bb6d9f09c79af9) --- src/ceph-volume/ceph_volume/drive_group/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-volume/ceph_volume/drive_group/main.py b/src/ceph-volume/ceph_volume/drive_group/main.py index 9e93bc759e70..9626089c8605 100644 --- a/src/ceph-volume/ceph_volume/drive_group/main.py +++ b/src/ceph-volume/ceph_volume/drive_group/main.py @@ -78,7 +78,7 @@ class Deploy(object): print(cmd) else: logger.info('Running ceph-volume command: {}'.format(cmd)) - batch_args = cmd.split(' ')[2:] + batch_args = cmd[0].split(' ')[2:] b = Batch(batch_args) b.main() -- 2.47.3