puppetlabs / puppetlabs-lvm

Puppet Module to manage LVM
https://forge.puppetlabs.com/puppetlabs/lvm
GNU General Public License v2.0
124 stars 275 forks source link

Facts lvm_vg_* unavailable #298

Closed rtib closed 1 year ago

rtib commented 1 year ago

Describe the Bug

Facts lvm_vg_* and lvm_vg_*_pvs aren't resolved since v2.0.0 release.

Expected Behavior

As those facts where not declared deprecated neither removed from the code, they are expected to be available.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Run sudo puppet facts | grep lvm_vg on a node having LVM volume groups configured with module version 2.0.x and earlier.

Environment

Additional Context

With commit https://github.com/puppetlabs/puppetlabs-lvm/commit/8e1e8eb1718f31a75d9edf79b123c74d61364e55 the setcode blocks of the affected facts here have been moved into the setcode block above. I assume, such an encapsulation of setcode blocks is not supported with Facter.

cruelsmith commented 1 year ago

As @rtib also pointed out via slack the newer structured facts logical_volumes, physical_volumes and volume_groups are missing its relations to each other. That should be also fixed by adding pv_name, vg_name, lv_full_name to the structured facts so it allows cross referencing.