From: Jan Fajerski Date: Wed, 16 Dec 2020 13:13:25 +0000 (+0100) Subject: ceph-volume: pass --filter-for-batch from drive-group subcommand X-Git-Tag: v15.2.10~32^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1aa49fa4a9b7dff77e7148661e71891ec66f2548;p=ceph.git 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) --- diff --git a/src/ceph-volume/ceph_volume/drive_group/main.py b/src/ceph-volume/ceph_volume/drive_group/main.py index a224b21a5f48..9e93bc759e70 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]