ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
835 stars 1.53k forks source link

vdo: no longer works in RHEL 9 #8810

Open roffery opened 3 months ago

roffery commented 3 months ago

Summary

Using community.general.vdo module plugin in RHEL 9 and variants results in the following:

msg: 'Failed to find required executable "vdo" in paths: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin'

vdo in RHEL 9 is now built into LVM instead of having a standalone service and program.

Issue Type

Bug Report

Component Name

vdo

Ansible Version

$ ansible --version
ansible [core 2.16.9]
  config file = /root/.ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.12/site-packages/ansible
  ansible collection location = /root/collections:/root/.ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.12.5 (main, Aug 13 2024, 01:30:38) [GCC 12.2.0] (/usr/local/bin/python)
  jinja version = 3.1.4
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general

# /root/.ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.general 8.6.3

Configuration

No response

OS / Environment

No response

Steps to Reproduce

- name: Manage LV VDO
  community.general.vdo:
    name: 'myvol'
    device: '/dev/myvg/myvol'
    logicalsize: '100G'

Expected Results

Manage VDO

Actual Results

Failed to find required executable "vdo" in paths: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin

Code of Conduct

ansibullbot commented 3 months ago

cc @bgurney-rh @rhawalsh click here for bot help

roffery commented 3 months ago

FWIW, command to convert a non-VDO LV to a VDO LV:

lvconvert --type vdo-pool -n vdo-myvol -V 100G myvg/myvol
felixfontein commented 3 months ago

--type vdo-pool is also available on Arch's lvconvert. The lvm changelog will probably be useful when trying to figure out from when exactly it's supported: https://sourceware.org/git/?p=lvm2.git;a=blob_plain;f=WHATS_NEW;hb=HEAD.