ceph-ansible/tests
Guillaume Abrioux 53793b352e tests: (lvm_setup.yml), don't shrink lvol
when rerunning lvm_setup.yml on existing cluster with OSDs already
deployed, it fails like following:

```
fatal: [osd0]: FAILED! => changed=false
  msg: Sorry, no shrinking of data-lv2 to 0 permitted.
```

because we are asking `lvol` module to create a volume on an empty VG
with size extents = `100%FREE`.

The default behavior of `lvol` is to shrink the volume if the LV's current
size is greater than the requested size.

Given the requested size is calculated like this:

`size_requested = size_percent * this_vg['free'] / 100`

in our case, it is similar to:

`size_requested = 100 * 0 / 100` which basically means `0`

So the current LV size is well greater than the requested size which
leads the module to attempt to shrink it to 0 which isn't obviously now
allowed.

Adding `shrink: false` to the module calls fixes this issue.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 218f4ae361)
2020-07-22 18:47:27 -04:00
..
functional tests: (lvm_setup.yml), don't shrink lvol 2020-07-22 18:47:27 -04:00
inventories add a mdss group to the CLI testing inventory 2016-05-06 14:47:45 -05:00
library ceph_volume: make zap function idempotent 2020-06-23 10:49:07 +02:00
plugins/filter move library/plugins tests files under tests dir 2019-10-28 15:54:31 +01:00
scripts tests: add time command in vagrant_up.sh 2020-01-10 17:41:27 +01:00
README.md WIP: first implementation of functional tests 2015-02-22 02:31:28 +01:00
README.rst tests: create a README with some explanation on how to use the test harness 2016-11-04 13:59:33 -04:00
conftest.py tests: add dashboard testinfra configuration 2020-04-07 15:25:45 +02:00
pytest.ini tests: register mark in pytest configuration 2020-04-07 15:25:45 +02:00
requirements.txt tests/requirements: bump testinfra 2020-03-09 13:33:44 +01:00

README.md

Functional tests

These playbooks aim to individually validate each Ceph component. Some of them require packages to be installed. Ideally you will run these tests from a client machine or from the Ansible server.