Red Hat Bugzilla – Bug 1478599
older versions of lvm do not support --reportformat=json
Last modified: 2017-12-05 18:39:05 EST
Description of problem: Older versions of lvm do not allow --reportformat flags which the ceph-volume lvm api uses.
How reproducible: On systems with older lvm versions like Xenial
Steps to Reproduce: Run `ceph-volume lvm prepare` in Xenial
> sudo vgs --reportformat=json
> vgs: unrecognized option '--reportformat=json'
Additional info: The use of JSON needs to be dropped, and parsing of the CLI output needs to be implemented in ceph_volume/devices/lvm/api.py
lvm allows filtering, ordering, and separator addition(s) so it is a matter of defining this correctly and then parsing the output.
Verified working on Xenial.
merged commit 60eb0e5 into master
Would you please do the cherry-pick to luminous so it'll be in v12.2.0?
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.