From 50e35f955d76bda1e87317718f9053e123bfccff Mon Sep 17 00:00:00 2001 From: Mohamad Gebai Date: Sun, 31 Mar 2019 13:04:10 -0400 Subject: [PATCH] ceph-volume: look for hidden partitions when populating lvs Signed-off-by: Mohamad Gebai (cherry picked from commit 463091e46ba4032f1b8d90a6770fd7e2d3277a74) --- src/ceph-volume/ceph_volume/api/lvm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph-volume/ceph_volume/api/lvm.py b/src/ceph-volume/ceph_volume/api/lvm.py index 87f64881b506e..4b2b4f783dc9f 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -311,14 +311,14 @@ def get_api_lvs(): Command and delimited output should look like:: - $ lvs --noheadings --readonly --separator=';' -o lv_tags,lv_path,lv_name,vg_name + $ lvs --noheadings --readonly --separator=';' -a -o lv_tags,lv_path,lv_name,vg_name ;/dev/ubuntubox-vg/root;root;ubuntubox-vg ;/dev/ubuntubox-vg/swap_1;swap_1;ubuntubox-vg """ fields = 'lv_tags,lv_path,lv_name,vg_name,lv_uuid,lv_size' stdout, stderr, returncode = process.call( - ['lvs', '--noheadings', '--readonly', '--separator=";"', '-o', fields], + ['lvs', '--noheadings', '--readonly', '--separator=";"', '-a', '-o', fields], verbose_on_failure=False ) return _output_parser(stdout, fields) -- 2.39.5