From 1aa49fa4a9b7dff77e7148661e71891ec66f2548 Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Wed, 16 Dec 2020 14:13:25 +0100 Subject: [PATCH] ceph-volume: pass --filter-for-batch from drive-group subcommand Otherwise the drive-group spec potentially tries to pull in the root device (if it fits). Fixes: https://tracker.ceph.com/issues/48631 Signed-off-by: Jan Fajerski (cherry picked from commit a6a03d0f5535a053239ae9e49c53ac9208bb0738) --- 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 a224b21a5f48b..9e93bc759e70b 100644 --- a/src/ceph-volume/ceph_volume/drive_group/main.py +++ b/src/ceph-volume/ceph_volume/drive_group/main.py @@ -90,7 +90,7 @@ class Deploy(object): def get_dg_spec(self, dg): dg_spec = DriveGroupSpec._from_json_impl(dg) dg_spec.validate() - i = Inventory([]) + i = Inventory(['--filter-for-batch']) i.main() inventory = i.get_report() devices = [Device.from_json(i) for i in inventory] -- 2.39.5