Releases: linux-system-roles/storage
add meta/requirements.yml; support Rocky Linux; test with ansible 2.12
add meta/requirements.yml (#231)
The storage role requires ansible.posix.mount. Add a requirement
for the ansible.posix collection.
support ansible-core 2.11 ansible-lint, ansible-test
Add support for Rocky Linux 8 (#229)
This file is a copy of RedHat_8.yml / CentOS_8.yml.
support python 39, ansible-core 2.12, ansible-plugin-scan (#234)
update tox-lsr version to 2.7.1 (#236)
update the tox-lsr version used in github actions tox CI
to 2.7.1
The only difference between this an 2.7.0 is that Ansible 2.12
is now GA.
Signed-off-by: Rich Megginson [email protected]
Support ansible-core; Improve wording in README files
use tox-lsr version 2.5.1
This version removes support for molecule until we can figure out
what to do about molecule. This should make all of the tox tests
pass (except for python 2.6).
Signed-off-by: Rich Megginson [email protected]
use apt-get install -y
Signed-off-by: Rich Megginson [email protected]
replace json_query with selectattr and map
Replace crypttab with lineinfile (#228)
- Replace crypttab with lineinfile
Crypttab is not available in ansible-core, hence need to replace it
- Add create: true to lineinfile to create the file if it doesn't exist
Use lower case title for consistency
Set mode properly
- Remove entries with regexp regardeless of password specified, fix mode
Improve wording (#230)
Added skip checks feature to speed up the tests (#218)
- Added skip checks feature to speed up the tests
- added new fact that allows to skip some checks in case the role is run
multiple times within the same playbook - this should help speed up the tests
- Added skip checks feature to speed up the tests
- removed "packages_installed", now it is part of "required_packages"
check - pylint fixes
- luks tests install extra packages and checks skipping causes race
condition - checks do not disabled in this case
(commit will be squashed into previous one)
revert fix for dm-vdo error - this is now fixed
revert fix for testing bz1991062
do not check for dm-vdo
drop support for ansible 2.8
Raise supported Ansible version to 2.9
min_ansible_version is now 2.9
Bug 1989197 - drop support for Ansible 2.8
https://bugzilla.redhat.com/show_bug.cgi?id=1989197
Fix tests_lvm_errors; skip vdo tests if dm-vdo not found
use volume1_size; check for expected error
https://bugzilla.redhat.com/show_bug.cgi?id=1990793
The test was using volume_size
, which is undefined, instead
of volume1_size
. Furthermore, the error was being masked by
the rescue
block because the rescue was not checking for the
correct error message. The fix is to use volume1_size
AND check
for the correct error message.
I'll note that there are several tests that do not look for the
correct error message, and we may run into this problem with other
tests.
skip test if kvdo and dm-vdo are not found
https://bugzilla.redhat.com/show_bug.cgi?id=1991062
Am getting this error when testing vdo:
Failed to commit changes to disk: Process reported exit code 3: modprobe: FATAL: Module dm-vdo not found in directory /lib/modules/5.14.0-0.rc4.35.el9.x86_64
/usr/sbin/modprobe failed: 1
vdo: Required device-mapper target(s) not detected in your kernel.
Run `lvcreate --help' for more information.
So I'll just skip vdo testing unless both kvdo and dm-vdo are found.
tag tests that use NVME and SCSI
tag tests that use NVME and SCSI
some test environments like the basic smoke test do not have access to NVME
or SCSI devices. We need to be able to skip these tests.
omit unnecessary conditional - deadcode reported by static scanner
omit unnecessary conditional - deadcode reported by static scanner
The list comprehension does not need the conditional evaluation since
the condition is already checked by the if
clause. This code
triggers a warning by a static code checker.
Also adds the scsi and nvme tests for tests_lvm_percent_size
which was added by an earlier commit.
Support percentage-based volume sizes; test NVME and SCSI
Added support for NVME and SCSI HW test setup
This change serves to cover the gap in testing until CI rework is complete.
CI currently does not support creation of multiple VMs to run the tests
with different hardware settings. To overcome this, provision.fmf
will now create
single VM with triple the amount of disks - additional disks will use NVME and SCSI respectively.
find_unused_disk
will filter its results by specified interface.
New script generate_tests.py
was added. It automatically generates new test playbooks based
on discovered tests_*.yml files.
Two additional scripts in /tests/scripts
directory pre-commit
and post-commit
are prepared
git hooks that ensure that tests are properly generated and added to each new commit.
However these two scripts have to be manually copied to <storage_role_repo>/.git/hooks/ and made
executable for the hook to work.
skip vdo test if kernel module is not loadable
The vdo kernel module is an "out of tree" module which means that it
may not be available if the vdo module version does not match the
current kernel version. In that case, skip the vdo test so that we
don't get a false positive test result.
Add support for percentage-based volume sizes.
Volume sizes of the form 'XX%' (where 'XX' is an integer no greater
than 100) will be intepreted as a percentage of the size of the pool
that will contain the volume.
Simplify conditionals in volume size verification routines.
Handle int sizes such as default of 0 for a disk size.
Allow a tolerance of up to 1% when verifying volume size in tests.
Fixed volume relabeling
Fixed volume relabeling
- modifying volume label no longer causes test failure
- added forced udev update which should fix occasional test failures
- added test
Fixes #99
LVMVDO support
LVMVDO support (#181)
- LVMVDO support
- added support for LVM VDO
- new accepted pool options:
- vdo_compression
- vdo_deduplication
- vdo_size
- added tests for LVM VDO
- added support for COPR repositories