]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add inventory command 25013/head
authorJan Fajerski <jfajerski@suse.com>
Wed, 31 Oct 2018 13:59:05 +0000 (14:59 +0100)
committerAlfredo Deza <adeza@redhat.com>
Fri, 9 Nov 2018 20:19:01 +0000 (15:19 -0500)
commit36876a0bff2578cb8561df060a56d4991ea71c31
treef0e64e9ef5e542b8b9c4f4e91fbef9fd1179f688
parente88466c421051dc73dcab6021301619246ca3929
ceph-volume: add inventory command

The inventory command provides information about a nodes disk inventory.
Existing logical volumes on a disk or one of its partitions are scanned
and reported.
The output can be formatted as plain text or json.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 57adfc6bb8abd9fc84b1378d5f69a16994d19e11)
src/ceph-volume/ceph_volume/api/lvm.py
src/ceph-volume/ceph_volume/inventory/__init__.py [new file with mode: 0644]
src/ceph-volume/ceph_volume/inventory/main.py [new file with mode: 0644]
src/ceph-volume/ceph_volume/main.py
src/ceph-volume/ceph_volume/tests/test_inventory.py [new file with mode: 0644]
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/util/device.py