mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-05 09:45:13 +00:00
* fix(lvol): use --extents (-l) for thin-pool creation with percentage size Fixes #11923 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore(lvol): add changelog fragment for #11925 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(lvol): add integration tests for thin-pool creation with percentage sizes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(lvol): use extent-aligned size for thin-pool absolute-size idempotency test Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(lvol): reduce thin-pool sizes to leave space for test_pvs.yml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(lvol): add shrink=false to thin-pool absolute-size idempotency check Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(lvol): add shrink: false to thin volume idempotency test LVM reports thin volume size slightly above requested (metadata overhead), triggering spurious shrink attempts. Disable shrink for idempotency checks to avoid false failures. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
782 B
YAML
26 lines
782 B
YAML
---
|
|
####################################################################
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
####################################################################
|
|
|
|
# Copyright (c) Ansible Project
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
- name: Install required packages (Linux)
|
|
package:
|
|
name: lvm2
|
|
state: present
|
|
when: ansible_facts.system == 'Linux'
|
|
|
|
- name: Test lvol module
|
|
block:
|
|
- import_tasks: setup.yml
|
|
|
|
- import_tasks: test_thinpool.yml
|
|
|
|
- import_tasks: test_pvs.yml
|
|
|
|
always:
|
|
- import_tasks: teardown.yml
|