community.general
community.general copied to clipboard
lvol modules does not compute the correct size when using 100%VG with mirrored LVM volume
Summary
The issue was already reported in https://github.com/ansible/ansible/issues/64250 for the old repository, but not migrated. I have nothing much to add to the original report. The problem still persists.
Issue Type
Bug Report
Component Name
lvol
Ansible Version
$ ansible --version
ansible [core 2.16.4]
config file = /home/pascal/.ansible.cfg
configured module search path = ['/home/pascal/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.10/site-packages/ansible
ansible collection location = /home/pascal/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.13 (main, Mar 15 2024, 07:36:23) [Clang 16.0.6 ] (/usr/local/bin/python3.10)
jinja version = 3.1.3
libyaml = True
Community.general Version
$ ansible-galaxy collection list community.general
ansible [core 2.16.4]
config file = /home/pascal/.ansible.cfg
configured module search path = ['/home/pascal/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.10/site-packages/ansible
ansible collection location = /home/pascal/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.13 (main, Mar 15 2024, 07:36:23) [Clang 16.0.6 ] (/usr/local/bin/python3.10)
jinja version = 3.1.3
libyaml = True
~/src/hypervisors $ ansible-galaxy collection list community.general
# /usr/local/lib/python3.10/site-packages/ansible_collections
Collection Version
----------------- -------
community.general 8.4.0
Configuration
$ ansible-config dump --only-changed
ANSIBLE_NOCOLOR(env: ANSIBLE_NOCOLOR) = True
CONFIG_FILE() = /home/pascal/.ansible.cfg
EDITOR(env: EDITOR) = vi
PAGER(env: PAGER) = more
OS / Environment
Target: Debian 12.
Steps to Reproduce
community.general.lvol:
vg: "foo"
lv: "bar"
size: "100%VG"
opts: "-m1"
Expected Results
The module is idempotent, i.e. does nothing on subsequent runs.
Actual Results
msg: Logical Volume bar could not be extended. Not enough free space left (1526184.0m required / 0.0m available)
Code of Conduct
- [X] I agree to follow the Ansible Code of Conduct