]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: pass --filter-for-batch from drive-group subcommand 39523/head
authorJan Fajerski <jfajerski@suse.com>
Wed, 16 Dec 2020 13:13:25 +0000 (14:13 +0100)
committerJan Fajerski <jfajerski@suse.com>
Wed, 17 Feb 2021 14:27:06 +0000 (15:27 +0100)
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 <jfajerski@suse.com>
(cherry picked from commit a6a03d0f5535a053239ae9e49c53ac9208bb0738)

src/ceph-volume/ceph_volume/drive_group/main.py

index a224b21a5f48b50bee059dc83ddf8049be835686..9e93bc759e70b1fc4bb6236d818d2b6a4ef29577 100644 (file)
@@ -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]