Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Feb 16, 2024
1 parent bb3ed66 commit 479a999
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions tests/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,26 @@
{% endfor %}
{{ cleanup_pools }}
- name: Save unused_disk_return before verify
set_fact:
unused_disks_before: "{{ unused_disks }}"

- name: Verify that pools/volumes used in test are removed
include_tasks: get_unused_disk.yml
vars:
min_size: "{{ test_disk_min_size }}"
min_return: "{{ test_disk_count }}"

- name: Debug why list of unused disks has changed
shell: |
set -euxo pipefail
exec 1>&2
mount -f -l
df -H
lvs --all
pvs --all
vgs --all
cat /tmp/snapshot_role.log || :
changed_when: false
when: unused_disks_before != unused_disks_return.disks
failed_when: unused_disks_before != unused_disks_return.disks
1 change: 0 additions & 1 deletion tests/tests_set_mount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
mountpoint: "{{ test_mnt_parent ~ '/lv7_mp' }}"
percent_space_required: 15
mountpoint_create: true

tasks:
- name: Run tests
block:
Expand Down

0 comments on commit 479a999

Please sign in to comment.