terraform-provider-libvirt/libvirt/helper
Boris b56a61c776
feat: lvm storage pool impl (#1088)
* feat: lvm storage pool impl

This feature also adds support for target and source blocks in pool. Deprecating the old top-level path, and opening the door for supporting more pool backends, following libvirt description closer.

- refactor the lvm pool implementation
- add proper source and target so we can add more pool implementations later
- handle deprecation of top level path properly
- less checks, lets libvirt handle it
- add acceptance tests
- refactor the test helper block device creation out of domain
- add docs
- skip the tests if the host does not support logical pools
- skip early if acceptance tests are disabled
* fix: dir path is actually on target, not source
* add name attribute to pool source
* cleanup support for existing vg
* move code to configure provider to common function

---------

Co-authored-by: dpap <daniel.pap@qualysoft.com>
Co-authored-by: Duncan Mac-Vicar P. <duncan@mac-vicar.eu>
Co-authored-by: Boris Momčilović <boris.momcilovic@sb22.com>
2024-10-03 00:53:51 +02:00
..
hashcode gofmt 2022-12-29 02:22:52 +01:00
mutexkv gofmt 2022-12-29 02:22:52 +01:00
suppress lint fixes 2024-08-16 11:00:19 +02:00
test feat: lvm storage pool impl (#1088) 2024-10-03 00:53:51 +02:00