- 
                Notifications
    You must be signed in to change notification settings 
- Fork 273
extend structured facts to provide relations between lvs, vgs and pvs #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| The failed acceptance test broke down outside the test examples, might need to be kicked again. | 
| First of all thanks for your work. 👍 In my eyes the goal should be to prevent any additional fact to add the relation between the  After that the  or to be added to the entries of the  Please note that this is only a PoC code, which means that it can probably still be optimized or that there still exist unfixed edge cases. | 
| Hi, @cruelsmith thank you for your suggestions. First, I also though that it would be simple enough to add an additional field to volume_groups revealing it's physical volumes. Then I stumbled over the strange output of  Remarkably enough, there is no man page listing  Such a solution would make lots of assumptions on the underlying API including undocumented features, requiring them to be stable among many versions, including future too. If something change, the whole thing might break. While the same code which is generating  That's why I was withdrawing from this approach and implemented a less attractive additional fact. | 
Summary
This is extending the fact
logical_volumeswith the name of the volume group they are residing on. An additional factvolume_group_mapis providing a map of volume groups and their backing physical volumes.Additional Context
As discussed on Slack, in #298 (comment) and boiled down in #308 (comment), facts having programmatically generated name should be retired. These changes are necessary to close provide all information the deprecated facts were providing.
Checklist
puppet apply)